1 line
114 KiB
JSON
1 line
114 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames, ObjectUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { Dropdown } from 'primereact/dropdown';\nimport { InputNumber } from 'primereact/inputnumber';\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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 Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(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\nfunction _createSuper$8(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$8();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$8() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar FirstPageLink = /*#__PURE__*/function (_Component) {\n _inherits(FirstPageLink, _Component);\n\n var _super = _createSuper$8(FirstPageLink);\n\n function FirstPageLink() {\n _classCallCheck(this, FirstPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FirstPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-first p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-double-left';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return FirstPageLink;\n}(Component);\n\n_defineProperty(FirstPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$7(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$7();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$7() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar NextPageLink = /*#__PURE__*/function (_Component) {\n _inherits(NextPageLink, _Component);\n\n var _super = _createSuper$7(NextPageLink);\n\n function NextPageLink() {\n _classCallCheck(this, NextPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(NextPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-next p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-right';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return NextPageLink;\n}(Component);\n\n_defineProperty(NextPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$6(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$6();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$6() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar PrevPageLink = /*#__PURE__*/function (_Component) {\n _inherits(PrevPageLink, _Component);\n\n var _super = _createSuper$6(PrevPageLink);\n\n function PrevPageLink() {\n _classCallCheck(this, PrevPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(PrevPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-prev p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-left';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return PrevPageLink;\n}(Component);\n\n_defineProperty(PrevPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$5(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$5();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$5() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar LastPageLink = /*#__PURE__*/function (_Component) {\n _inherits(LastPageLink, _Component);\n\n var _super = _createSuper$5(LastPageLink);\n\n function LastPageLink() {\n _classCallCheck(this, LastPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(LastPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-last p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-double-right';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return LastPageLink;\n}(Component);\n\n_defineProperty(LastPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$4(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$4();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$4() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar PageLinks = /*#__PURE__*/function (_Component) {\n _inherits(PageLinks, _Component);\n\n var _super = _createSuper$4(PageLinks);\n\n function PageLinks() {\n _classCallCheck(this, PageLinks);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(PageLinks, [{\n key: \"onPageLinkClick\",\n value: function onPageLinkClick(event, pageLink) {\n if (this.props.onClick) {\n this.props.onClick({\n originalEvent: event,\n value: pageLink\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this = this;\n\n var elements;\n\n if (this.props.value) {\n var startPageInView = this.props.value[0];\n var endPageInView = this.props.value[this.props.value.length - 1];\n elements = this.props.value.map(function (pageLink, i) {\n var className = classNames('p-paginator-page p-paginator-element p-link', {\n 'p-paginator-page-start': pageLink === startPageInView,\n 'p-paginator-page-end': pageLink === endPageInView,\n 'p-highlight': pageLink - 1 === _this.props.page\n });\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: function onClick(e) {\n return _this.onPageLinkClick(e, pageLink);\n }\n }, pageLink, /*#__PURE__*/React.createElement(Ripple, null));\n\n if (_this.props.template) {\n var defaultOptions = {\n onClick: function onClick(e) {\n return _this.onPageLinkClick(e, pageLink);\n },\n className: className,\n view: {\n startPage: startPageInView - 1,\n endPage: endPageInView - 1\n },\n page: pageLink - 1,\n currentPage: _this.props.page,\n totalPages: _this.props.pageCount,\n element: element,\n props: _this.props\n };\n element = ObjectUtils.getJSXElement(_this.props.template, defaultOptions);\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: pageLink\n }, element);\n });\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-paginator-pages\"\n }, elements);\n }\n }]);\n\n return PageLinks;\n}(Component);\n\n_defineProperty(PageLinks, \"defaultProps\", {\n value: null,\n page: null,\n rows: null,\n pageCount: null,\n links: null,\n template: null\n});\n\nfunction _createSuper$3(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$3();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$3() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar RowsPerPageDropdown = /*#__PURE__*/function (_Component) {\n _inherits(RowsPerPageDropdown, _Component);\n\n var _super = _createSuper$3(RowsPerPageDropdown);\n\n function RowsPerPageDropdown() {\n _classCallCheck(this, RowsPerPageDropdown);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(RowsPerPageDropdown, [{\n key: \"hasOptions\",\n value: function hasOptions() {\n return this.props.options && this.props.options.length > 0;\n }\n }, {\n key: \"render\",\n value: function render() {\n var hasOptions = this.hasOptions();\n var options = hasOptions ? this.props.options.map(function (opt) {\n return {\n label: String(opt),\n value: opt\n };\n }) : [];\n var element = hasOptions ? /*#__PURE__*/React.createElement(Dropdown, {\n value: this.props.value,\n options: options,\n onChange: this.props.onChange,\n appendTo: this.props.appendTo,\n disabled: this.props.disabled\n }) : null;\n\n if (this.props.template) {\n var defaultOptions = {\n value: this.props.value,\n options: options,\n onChange: this.props.onChange,\n appendTo: this.props.appendTo,\n currentPage: this.props.page,\n totalPages: this.props.pageCount,\n totalRecords: this.props.totalRecords,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return RowsPerPageDropdown;\n}(Component);\n\n_defineProperty(RowsPerPageDropdown, \"defaultProps\", {\n options: null,\n value: null,\n page: null,\n pageCount: null,\n totalRecords: 0,\n appendTo: null,\n onChange: null,\n template: null,\n disabled: false\n});\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper$2(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$2();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$2() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar CurrentPageReport = /*#__PURE__*/function (_Component) {\n _inherits(CurrentPageReport, _Component);\n\n var _super = _createSuper$2(CurrentPageReport);\n\n function CurrentPageReport() {\n _classCallCheck(this, CurrentPageReport);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(CurrentPageReport, [{\n key: \"render\",\n value: function render() {\n var report = {\n currentPage: this.props.page + 1,\n totalPages: this.props.pageCount,\n first: Math.min(this.props.first + 1, this.props.totalRecords),\n last: Math.min(this.props.first + this.props.rows, this.props.totalRecords),\n rows: this.props.rows,\n totalRecords: this.props.totalRecords\n };\n var text = this.props.reportTemplate.replace(\"{currentPage}\", report.currentPage).replace(\"{totalPages}\", report.totalPages).replace(\"{first}\", report.first).replace(\"{last}\", report.last).replace(\"{rows}\", report.rows).replace(\"{totalRecords}\", report.totalRecords);\n var element = /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-paginator-current\"\n }, text);\n\n if (this.props.template) {\n var defaultOptions = _objectSpread(_objectSpread({}, report), {\n className: 'p-paginator-current',\n element: element,\n props: this.props\n });\n\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return CurrentPageReport;\n}(Component);\n\n_defineProperty(CurrentPageReport, \"defaultProps\", {\n pageCount: null,\n page: null,\n first: null,\n rows: null,\n totalRecords: null,\n reportTemplate: '({currentPage} of {totalPages})',\n template: null\n});\n\nfunction _createSuper$1(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$1();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct$1() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar JumpToPageInput = /*#__PURE__*/function (_Component) {\n _inherits(JumpToPageInput, _Component);\n\n var _super = _createSuper$1(JumpToPageInput);\n\n function JumpToPageInput(props) {\n var _this;\n\n _classCallCheck(this, JumpToPageInput);\n\n _this = _super.call(this, props);\n _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(JumpToPageInput, [{\n key: \"onChange\",\n value: function onChange(event) {\n if (this.props.onChange) {\n this.props.onChange(this.props.rows * (event.value - 1), this.props.rows);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var value = this.props.pageCount > 0 ? this.props.page + 1 : 0;\n var element = /*#__PURE__*/React.createElement(InputNumber, {\n value: value,\n onChange: this.onChange,\n className: \"p-paginator-page-input\",\n disabled: this.props.disabled\n });\n\n if (this.props.template) {\n var defaultOptions = {\n value: value,\n onChange: this.onChange,\n disabled: this.props.disabled,\n className: 'p-paginator-page-input',\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return JumpToPageInput;\n}(Component);\n\n_defineProperty(JumpToPageInput, \"defaultProps\", {\n page: null,\n rows: null,\n pageCount: null,\n disabled: false,\n template: null,\n onChange: null\n});\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar Paginator = /*#__PURE__*/function (_Component) {\n _inherits(Paginator, _Component);\n\n var _super = _createSuper(Paginator);\n\n function Paginator(props) {\n var _this;\n\n _classCallCheck(this, Paginator);\n\n _this = _super.call(this, props);\n _this.changePageToFirst = _this.changePageToFirst.bind(_assertThisInitialized(_this));\n _this.changePageToPrev = _this.changePageToPrev.bind(_assertThisInitialized(_this));\n _this.changePageToNext = _this.changePageToNext.bind(_assertThisInitialized(_this));\n _this.changePageToLast = _this.changePageToLast.bind(_assertThisInitialized(_this));\n _this.onRowsChange = _this.onRowsChange.bind(_assertThisInitialized(_this));\n _this.changePage = _this.changePage.bind(_assertThisInitialized(_this));\n _this.onPageLinkClick = _this.onPageLinkClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Paginator, [{\n key: \"isFirstPage\",\n value: function isFirstPage() {\n return this.getPage() === 0;\n }\n }, {\n key: \"isLastPage\",\n value: function isLastPage() {\n return this.getPage() === this.getPageCount() - 1;\n }\n }, {\n key: \"getPageCount\",\n value: function getPageCount() {\n return Math.ceil(this.props.totalRecords / this.props.rows);\n }\n }, {\n key: \"calculatePageLinkBoundaries\",\n value: function calculatePageLinkBoundaries() {\n var numberOfPages = this.getPageCount();\n var visiblePages = Math.min(this.props.pageLinkSize, numberOfPages); //calculate range, keep current in middle if necessary\n\n var start = Math.max(0, Math.ceil(this.getPage() - visiblePages / 2));\n var end = Math.min(numberOfPages - 1, start + visiblePages - 1); //check when approaching to last page\n\n var delta = this.props.pageLinkSize - (end - start + 1);\n start = Math.max(0, start - delta);\n return [start, end];\n }\n }, {\n key: \"updatePageLinks\",\n value: function updatePageLinks() {\n var pageLinks = [];\n var boundaries = this.calculatePageLinkBoundaries();\n var start = boundaries[0];\n var end = boundaries[1];\n\n for (var i = start; i <= end; i++) {\n pageLinks.push(i + 1);\n }\n\n return pageLinks;\n }\n }, {\n key: \"changePage\",\n value: function changePage(first, rows) {\n var pc = this.getPageCount();\n var p = Math.floor(first / rows);\n\n if (p >= 0 && p < pc) {\n var newPageState = {\n first: first,\n rows: rows,\n page: p,\n pageCount: pc\n };\n\n if (this.props.onPageChange) {\n this.props.onPageChange(newPageState);\n }\n }\n }\n }, {\n key: \"getPage\",\n value: function getPage() {\n return Math.floor(this.props.first / this.props.rows);\n }\n }, {\n key: \"empty\",\n value: function empty() {\n var pageCount = this.getPageCount();\n return pageCount === 0;\n }\n }, {\n key: \"changePageToFirst\",\n value: function changePageToFirst(event) {\n this.changePage(0, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"changePageToPrev\",\n value: function changePageToPrev(event) {\n this.changePage(this.props.first - this.props.rows, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"onPageLinkClick\",\n value: function onPageLinkClick(event) {\n this.changePage((event.value - 1) * this.props.rows, this.props.rows);\n }\n }, {\n key: \"changePageToNext\",\n value: function changePageToNext(event) {\n this.changePage(this.props.first + this.props.rows, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"changePageToLast\",\n value: function changePageToLast(event) {\n this.changePage((this.getPageCount() - 1) * this.props.rows, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"onRowsChange\",\n value: function onRowsChange(event) {\n var rows = event.value;\n this.isRowChanged = rows !== this.props.rows;\n this.changePage(0, rows);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.rows !== prevProps.rows && !this.isRowChanged) {\n this.changePage(0, this.props.rows);\n } else if (this.getPage() > 0 && prevProps.totalRecords !== this.props.totalRecords && this.props.first >= this.props.totalRecords) {\n this.changePage((this.getPageCount() - 1) * this.props.rows, this.props.rows);\n }\n\n this.isRowChanged = false;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement(key, template) {\n var element;\n\n switch (key) {\n case 'FirstPageLink':\n element = /*#__PURE__*/React.createElement(FirstPageLink, {\n key: key,\n onClick: this.changePageToFirst,\n disabled: this.isFirstPage() || this.empty(),\n template: template\n });\n break;\n\n case 'PrevPageLink':\n element = /*#__PURE__*/React.createElement(PrevPageLink, {\n key: key,\n onClick: this.changePageToPrev,\n disabled: this.isFirstPage() || this.empty(),\n template: template\n });\n break;\n\n case 'NextPageLink':\n element = /*#__PURE__*/React.createElement(NextPageLink, {\n key: key,\n onClick: this.changePageToNext,\n disabled: this.isLastPage() || this.empty(),\n template: template\n });\n break;\n\n case 'LastPageLink':\n element = /*#__PURE__*/React.createElement(LastPageLink, {\n key: key,\n onClick: this.changePageToLast,\n disabled: this.isLastPage() || this.empty(),\n template: template\n });\n break;\n\n case 'PageLinks':\n element = /*#__PURE__*/React.createElement(PageLinks, {\n key: key,\n value: this.updatePageLinks(),\n page: this.getPage(),\n rows: this.props.rows,\n pageCount: this.getPageCount(),\n onClick: this.onPageLinkClick,\n template: template\n });\n break;\n\n case 'RowsPerPageDropdown':\n element = /*#__PURE__*/React.createElement(RowsPerPageDropdown, {\n key: key,\n value: this.props.rows,\n page: this.getPage(),\n pageCount: this.getPageCount(),\n totalRecords: this.props.totalRecords,\n options: this.props.rowsPerPageOptions,\n onChange: this.onRowsChange,\n appendTo: this.props.dropdownAppendTo,\n template: template,\n disabled: this.empty()\n });\n break;\n\n case 'CurrentPageReport':\n element = /*#__PURE__*/React.createElement(CurrentPageReport, {\n reportTemplate: this.props.currentPageReportTemplate,\n key: key,\n page: this.getPage(),\n pageCount: this.getPageCount(),\n first: this.props.first,\n rows: this.props.rows,\n totalRecords: this.props.totalRecords,\n template: template\n });\n break;\n\n case 'JumpToPageInput':\n element = /*#__PURE__*/React.createElement(JumpToPageInput, {\n key: key,\n rows: this.props.rows,\n page: this.getPage(),\n pageCount: this.getPageCount(),\n onChange: this.changePage,\n disabled: this.empty(),\n template: template\n });\n break;\n\n default:\n element = null;\n break;\n }\n\n return element;\n }\n }, {\n key: \"renderElements\",\n value: function renderElements() {\n var _this2 = this;\n\n var template = this.props.template;\n\n if (template) {\n if (_typeof(template) === 'object') {\n return template.layout ? template.layout.split(' ').map(function (value) {\n var key = value.trim();\n return _this2.renderElement(key, template[key]);\n }) : Object.entries(template).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n _template = _ref2[1];\n\n return _this2.renderElement(key, _template);\n });\n }\n\n return template.split(' ').map(function (value) {\n return _this2.renderElement(value.trim());\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n if (!this.props.alwaysShow && this.getPageCount() === 1) {\n return null;\n } else {\n var className = classNames('p-paginator p-component', this.props.className);\n var leftContent = ObjectUtils.getJSXElement(this.props.leftContent, this.props);\n var rightContent = ObjectUtils.getJSXElement(this.props.rightContent, this.props);\n var elements = this.renderElements();\n var leftElement = leftContent && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-paginator-left-content\"\n }, leftContent);\n var rightElement = rightContent && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-paginator-right-content\"\n }, rightContent);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: this.props.style\n }, leftElement, elements, rightElement);\n }\n }\n }]);\n\n return Paginator;\n}(Component);\n\n_defineProperty(Paginator, \"defaultProps\", {\n totalRecords: 0,\n rows: 0,\n first: 0,\n pageLinkSize: 5,\n rowsPerPageOptions: null,\n alwaysShow: true,\n style: null,\n className: null,\n template: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',\n onPageChange: null,\n leftContent: null,\n rightContent: null,\n dropdownAppendTo: null,\n currentPageReportTemplate: '({currentPage} of {totalPages})'\n});\n\nexport { Paginator };","map":{"version":3,"names":["React","Component","classNames","ObjectUtils","Ripple","Dropdown","InputNumber","_arrayWithHoles","arr","Array","isArray","_iterableToArrayLimit","i","_i","Symbol","iterator","_arr","_n","_d","_s","_e","call","next","done","push","value","length","err","_arrayLikeToArray","len","arr2","_unsupportedIterableToArray","o","minLen","n","Object","prototype","toString","slice","constructor","name","from","test","_nonIterableRest","TypeError","_slicedToArray","_typeof","obj","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper$8","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$8","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","FirstPageLink","_Component","_super","render","className","disabled","iconClassName","element","createElement","type","onClick","template","defaultOptions","getJSXElement","_createSuper$7","_isNativeReflectConstruct$7","NextPageLink","_createSuper$6","_isNativeReflectConstruct$6","PrevPageLink","_createSuper$5","_isNativeReflectConstruct$5","LastPageLink","_createSuper$4","_isNativeReflectConstruct$4","PageLinks","onPageLinkClick","event","pageLink","originalEvent","preventDefault","_this","elements","startPageInView","endPageInView","map","page","view","startPage","endPage","currentPage","totalPages","pageCount","Fragment","rows","links","_createSuper$3","_isNativeReflectConstruct$3","RowsPerPageDropdown","hasOptions","options","opt","label","String","onChange","appendTo","totalRecords","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","_objectSpread","source","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper$2","_isNativeReflectConstruct$2","CurrentPageReport","report","first","Math","min","last","text","reportTemplate","replace","_createSuper$1","_isNativeReflectConstruct$1","JumpToPageInput","bind","_createSuper","_isNativeReflectConstruct","Paginator","changePageToFirst","changePageToPrev","changePageToNext","changePageToLast","onRowsChange","changePage","isFirstPage","getPage","isLastPage","getPageCount","ceil","calculatePageLinkBoundaries","numberOfPages","visiblePages","pageLinkSize","start","max","end","delta","updatePageLinks","pageLinks","boundaries","pc","floor","newPageState","onPageChange","empty","isRowChanged","componentDidUpdate","prevProps","prevState","renderElement","rowsPerPageOptions","dropdownAppendTo","currentPageReportTemplate","renderElements","_this2","layout","split","trim","entries","_ref","_ref2","_template","alwaysShow","leftContent","rightContent","leftElement","rightElement","style"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/paginator/paginator.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames, ObjectUtils } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { Dropdown } from 'primereact/dropdown';\nimport { InputNumber } from 'primereact/inputnumber';\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _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 Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(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\nfunction _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$8() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar FirstPageLink = /*#__PURE__*/function (_Component) {\n _inherits(FirstPageLink, _Component);\n\n var _super = _createSuper$8(FirstPageLink);\n\n function FirstPageLink() {\n _classCallCheck(this, FirstPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(FirstPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-first p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-double-left';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return FirstPageLink;\n}(Component);\n\n_defineProperty(FirstPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$7() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar NextPageLink = /*#__PURE__*/function (_Component) {\n _inherits(NextPageLink, _Component);\n\n var _super = _createSuper$7(NextPageLink);\n\n function NextPageLink() {\n _classCallCheck(this, NextPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(NextPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-next p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-right';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return NextPageLink;\n}(Component);\n\n_defineProperty(NextPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$6() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar PrevPageLink = /*#__PURE__*/function (_Component) {\n _inherits(PrevPageLink, _Component);\n\n var _super = _createSuper$6(PrevPageLink);\n\n function PrevPageLink() {\n _classCallCheck(this, PrevPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(PrevPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-prev p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-left';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return PrevPageLink;\n}(Component);\n\n_defineProperty(PrevPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$5() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar LastPageLink = /*#__PURE__*/function (_Component) {\n _inherits(LastPageLink, _Component);\n\n var _super = _createSuper$5(LastPageLink);\n\n function LastPageLink() {\n _classCallCheck(this, LastPageLink);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(LastPageLink, [{\n key: \"render\",\n value: function render() {\n var className = classNames('p-paginator-last p-paginator-element p-link', {\n 'p-disabled': this.props.disabled\n });\n var iconClassName = 'p-paginator-icon pi pi-angle-double-right';\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: this.props.onClick,\n disabled: this.props.disabled\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n }), /*#__PURE__*/React.createElement(Ripple, null));\n\n if (this.props.template) {\n var defaultOptions = {\n onClick: this.props.onClick,\n className: className,\n iconClassName: iconClassName,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return LastPageLink;\n}(Component);\n\n_defineProperty(LastPageLink, \"defaultProps\", {\n disabled: false,\n onClick: null,\n template: null\n});\n\nfunction _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$4() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar PageLinks = /*#__PURE__*/function (_Component) {\n _inherits(PageLinks, _Component);\n\n var _super = _createSuper$4(PageLinks);\n\n function PageLinks() {\n _classCallCheck(this, PageLinks);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(PageLinks, [{\n key: \"onPageLinkClick\",\n value: function onPageLinkClick(event, pageLink) {\n if (this.props.onClick) {\n this.props.onClick({\n originalEvent: event,\n value: pageLink\n });\n }\n\n event.preventDefault();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this = this;\n\n var elements;\n\n if (this.props.value) {\n var startPageInView = this.props.value[0];\n var endPageInView = this.props.value[this.props.value.length - 1];\n elements = this.props.value.map(function (pageLink, i) {\n var className = classNames('p-paginator-page p-paginator-element p-link', {\n 'p-paginator-page-start': pageLink === startPageInView,\n 'p-paginator-page-end': pageLink === endPageInView,\n 'p-highlight': pageLink - 1 === _this.props.page\n });\n var element = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: className,\n onClick: function onClick(e) {\n return _this.onPageLinkClick(e, pageLink);\n }\n }, pageLink, /*#__PURE__*/React.createElement(Ripple, null));\n\n if (_this.props.template) {\n var defaultOptions = {\n onClick: function onClick(e) {\n return _this.onPageLinkClick(e, pageLink);\n },\n className: className,\n view: {\n startPage: startPageInView - 1,\n endPage: endPageInView - 1\n },\n page: pageLink - 1,\n currentPage: _this.props.page,\n totalPages: _this.props.pageCount,\n element: element,\n props: _this.props\n };\n element = ObjectUtils.getJSXElement(_this.props.template, defaultOptions);\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: pageLink\n }, element);\n });\n }\n\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-paginator-pages\"\n }, elements);\n }\n }]);\n\n return PageLinks;\n}(Component);\n\n_defineProperty(PageLinks, \"defaultProps\", {\n value: null,\n page: null,\n rows: null,\n pageCount: null,\n links: null,\n template: null\n});\n\nfunction _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$3() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar RowsPerPageDropdown = /*#__PURE__*/function (_Component) {\n _inherits(RowsPerPageDropdown, _Component);\n\n var _super = _createSuper$3(RowsPerPageDropdown);\n\n function RowsPerPageDropdown() {\n _classCallCheck(this, RowsPerPageDropdown);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(RowsPerPageDropdown, [{\n key: \"hasOptions\",\n value: function hasOptions() {\n return this.props.options && this.props.options.length > 0;\n }\n }, {\n key: \"render\",\n value: function render() {\n var hasOptions = this.hasOptions();\n var options = hasOptions ? this.props.options.map(function (opt) {\n return {\n label: String(opt),\n value: opt\n };\n }) : [];\n var element = hasOptions ? /*#__PURE__*/React.createElement(Dropdown, {\n value: this.props.value,\n options: options,\n onChange: this.props.onChange,\n appendTo: this.props.appendTo,\n disabled: this.props.disabled\n }) : null;\n\n if (this.props.template) {\n var defaultOptions = {\n value: this.props.value,\n options: options,\n onChange: this.props.onChange,\n appendTo: this.props.appendTo,\n currentPage: this.props.page,\n totalPages: this.props.pageCount,\n totalRecords: this.props.totalRecords,\n disabled: this.props.disabled,\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return RowsPerPageDropdown;\n}(Component);\n\n_defineProperty(RowsPerPageDropdown, \"defaultProps\", {\n options: null,\n value: null,\n page: null,\n pageCount: null,\n totalRecords: 0,\n appendTo: null,\n onChange: null,\n template: null,\n disabled: false\n});\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar CurrentPageReport = /*#__PURE__*/function (_Component) {\n _inherits(CurrentPageReport, _Component);\n\n var _super = _createSuper$2(CurrentPageReport);\n\n function CurrentPageReport() {\n _classCallCheck(this, CurrentPageReport);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(CurrentPageReport, [{\n key: \"render\",\n value: function render() {\n var report = {\n currentPage: this.props.page + 1,\n totalPages: this.props.pageCount,\n first: Math.min(this.props.first + 1, this.props.totalRecords),\n last: Math.min(this.props.first + this.props.rows, this.props.totalRecords),\n rows: this.props.rows,\n totalRecords: this.props.totalRecords\n };\n var text = this.props.reportTemplate.replace(\"{currentPage}\", report.currentPage).replace(\"{totalPages}\", report.totalPages).replace(\"{first}\", report.first).replace(\"{last}\", report.last).replace(\"{rows}\", report.rows).replace(\"{totalRecords}\", report.totalRecords);\n var element = /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-paginator-current\"\n }, text);\n\n if (this.props.template) {\n var defaultOptions = _objectSpread(_objectSpread({}, report), {\n className: 'p-paginator-current',\n element: element,\n props: this.props\n });\n\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return CurrentPageReport;\n}(Component);\n\n_defineProperty(CurrentPageReport, \"defaultProps\", {\n pageCount: null,\n page: null,\n first: null,\n rows: null,\n totalRecords: null,\n reportTemplate: '({currentPage} of {totalPages})',\n template: null\n});\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar JumpToPageInput = /*#__PURE__*/function (_Component) {\n _inherits(JumpToPageInput, _Component);\n\n var _super = _createSuper$1(JumpToPageInput);\n\n function JumpToPageInput(props) {\n var _this;\n\n _classCallCheck(this, JumpToPageInput);\n\n _this = _super.call(this, props);\n _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(JumpToPageInput, [{\n key: \"onChange\",\n value: function onChange(event) {\n if (this.props.onChange) {\n this.props.onChange(this.props.rows * (event.value - 1), this.props.rows);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var value = this.props.pageCount > 0 ? this.props.page + 1 : 0;\n var element = /*#__PURE__*/React.createElement(InputNumber, {\n value: value,\n onChange: this.onChange,\n className: \"p-paginator-page-input\",\n disabled: this.props.disabled\n });\n\n if (this.props.template) {\n var defaultOptions = {\n value: value,\n onChange: this.onChange,\n disabled: this.props.disabled,\n className: 'p-paginator-page-input',\n element: element,\n props: this.props\n };\n return ObjectUtils.getJSXElement(this.props.template, defaultOptions);\n }\n\n return element;\n }\n }]);\n\n return JumpToPageInput;\n}(Component);\n\n_defineProperty(JumpToPageInput, \"defaultProps\", {\n page: null,\n rows: null,\n pageCount: null,\n disabled: false,\n template: null,\n onChange: null\n});\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar Paginator = /*#__PURE__*/function (_Component) {\n _inherits(Paginator, _Component);\n\n var _super = _createSuper(Paginator);\n\n function Paginator(props) {\n var _this;\n\n _classCallCheck(this, Paginator);\n\n _this = _super.call(this, props);\n _this.changePageToFirst = _this.changePageToFirst.bind(_assertThisInitialized(_this));\n _this.changePageToPrev = _this.changePageToPrev.bind(_assertThisInitialized(_this));\n _this.changePageToNext = _this.changePageToNext.bind(_assertThisInitialized(_this));\n _this.changePageToLast = _this.changePageToLast.bind(_assertThisInitialized(_this));\n _this.onRowsChange = _this.onRowsChange.bind(_assertThisInitialized(_this));\n _this.changePage = _this.changePage.bind(_assertThisInitialized(_this));\n _this.onPageLinkClick = _this.onPageLinkClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Paginator, [{\n key: \"isFirstPage\",\n value: function isFirstPage() {\n return this.getPage() === 0;\n }\n }, {\n key: \"isLastPage\",\n value: function isLastPage() {\n return this.getPage() === this.getPageCount() - 1;\n }\n }, {\n key: \"getPageCount\",\n value: function getPageCount() {\n return Math.ceil(this.props.totalRecords / this.props.rows);\n }\n }, {\n key: \"calculatePageLinkBoundaries\",\n value: function calculatePageLinkBoundaries() {\n var numberOfPages = this.getPageCount();\n var visiblePages = Math.min(this.props.pageLinkSize, numberOfPages); //calculate range, keep current in middle if necessary\n\n var start = Math.max(0, Math.ceil(this.getPage() - visiblePages / 2));\n var end = Math.min(numberOfPages - 1, start + visiblePages - 1); //check when approaching to last page\n\n var delta = this.props.pageLinkSize - (end - start + 1);\n start = Math.max(0, start - delta);\n return [start, end];\n }\n }, {\n key: \"updatePageLinks\",\n value: function updatePageLinks() {\n var pageLinks = [];\n var boundaries = this.calculatePageLinkBoundaries();\n var start = boundaries[0];\n var end = boundaries[1];\n\n for (var i = start; i <= end; i++) {\n pageLinks.push(i + 1);\n }\n\n return pageLinks;\n }\n }, {\n key: \"changePage\",\n value: function changePage(first, rows) {\n var pc = this.getPageCount();\n var p = Math.floor(first / rows);\n\n if (p >= 0 && p < pc) {\n var newPageState = {\n first: first,\n rows: rows,\n page: p,\n pageCount: pc\n };\n\n if (this.props.onPageChange) {\n this.props.onPageChange(newPageState);\n }\n }\n }\n }, {\n key: \"getPage\",\n value: function getPage() {\n return Math.floor(this.props.first / this.props.rows);\n }\n }, {\n key: \"empty\",\n value: function empty() {\n var pageCount = this.getPageCount();\n return pageCount === 0;\n }\n }, {\n key: \"changePageToFirst\",\n value: function changePageToFirst(event) {\n this.changePage(0, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"changePageToPrev\",\n value: function changePageToPrev(event) {\n this.changePage(this.props.first - this.props.rows, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"onPageLinkClick\",\n value: function onPageLinkClick(event) {\n this.changePage((event.value - 1) * this.props.rows, this.props.rows);\n }\n }, {\n key: \"changePageToNext\",\n value: function changePageToNext(event) {\n this.changePage(this.props.first + this.props.rows, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"changePageToLast\",\n value: function changePageToLast(event) {\n this.changePage((this.getPageCount() - 1) * this.props.rows, this.props.rows);\n event.preventDefault();\n }\n }, {\n key: \"onRowsChange\",\n value: function onRowsChange(event) {\n var rows = event.value;\n this.isRowChanged = rows !== this.props.rows;\n this.changePage(0, rows);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.rows !== prevProps.rows && !this.isRowChanged) {\n this.changePage(0, this.props.rows);\n } else if (this.getPage() > 0 && prevProps.totalRecords !== this.props.totalRecords && this.props.first >= this.props.totalRecords) {\n this.changePage((this.getPageCount() - 1) * this.props.rows, this.props.rows);\n }\n\n this.isRowChanged = false;\n }\n }, {\n key: \"renderElement\",\n value: function renderElement(key, template) {\n var element;\n\n switch (key) {\n case 'FirstPageLink':\n element = /*#__PURE__*/React.createElement(FirstPageLink, {\n key: key,\n onClick: this.changePageToFirst,\n disabled: this.isFirstPage() || this.empty(),\n template: template\n });\n break;\n\n case 'PrevPageLink':\n element = /*#__PURE__*/React.createElement(PrevPageLink, {\n key: key,\n onClick: this.changePageToPrev,\n disabled: this.isFirstPage() || this.empty(),\n template: template\n });\n break;\n\n case 'NextPageLink':\n element = /*#__PURE__*/React.createElement(NextPageLink, {\n key: key,\n onClick: this.changePageToNext,\n disabled: this.isLastPage() || this.empty(),\n template: template\n });\n break;\n\n case 'LastPageLink':\n element = /*#__PURE__*/React.createElement(LastPageLink, {\n key: key,\n onClick: this.changePageToLast,\n disabled: this.isLastPage() || this.empty(),\n template: template\n });\n break;\n\n case 'PageLinks':\n element = /*#__PURE__*/React.createElement(PageLinks, {\n key: key,\n value: this.updatePageLinks(),\n page: this.getPage(),\n rows: this.props.rows,\n pageCount: this.getPageCount(),\n onClick: this.onPageLinkClick,\n template: template\n });\n break;\n\n case 'RowsPerPageDropdown':\n element = /*#__PURE__*/React.createElement(RowsPerPageDropdown, {\n key: key,\n value: this.props.rows,\n page: this.getPage(),\n pageCount: this.getPageCount(),\n totalRecords: this.props.totalRecords,\n options: this.props.rowsPerPageOptions,\n onChange: this.onRowsChange,\n appendTo: this.props.dropdownAppendTo,\n template: template,\n disabled: this.empty()\n });\n break;\n\n case 'CurrentPageReport':\n element = /*#__PURE__*/React.createElement(CurrentPageReport, {\n reportTemplate: this.props.currentPageReportTemplate,\n key: key,\n page: this.getPage(),\n pageCount: this.getPageCount(),\n first: this.props.first,\n rows: this.props.rows,\n totalRecords: this.props.totalRecords,\n template: template\n });\n break;\n\n case 'JumpToPageInput':\n element = /*#__PURE__*/React.createElement(JumpToPageInput, {\n key: key,\n rows: this.props.rows,\n page: this.getPage(),\n pageCount: this.getPageCount(),\n onChange: this.changePage,\n disabled: this.empty(),\n template: template\n });\n break;\n\n default:\n element = null;\n break;\n }\n\n return element;\n }\n }, {\n key: \"renderElements\",\n value: function renderElements() {\n var _this2 = this;\n\n var template = this.props.template;\n\n if (template) {\n if (_typeof(template) === 'object') {\n return template.layout ? template.layout.split(' ').map(function (value) {\n var key = value.trim();\n return _this2.renderElement(key, template[key]);\n }) : Object.entries(template).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n _template = _ref2[1];\n\n return _this2.renderElement(key, _template);\n });\n }\n\n return template.split(' ').map(function (value) {\n return _this2.renderElement(value.trim());\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n if (!this.props.alwaysShow && this.getPageCount() === 1) {\n return null;\n } else {\n var className = classNames('p-paginator p-component', this.props.className);\n var leftContent = ObjectUtils.getJSXElement(this.props.leftContent, this.props);\n var rightContent = ObjectUtils.getJSXElement(this.props.rightContent, this.props);\n var elements = this.renderElements();\n var leftElement = leftContent && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-paginator-left-content\"\n }, leftContent);\n var rightElement = rightContent && /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-paginator-right-content\"\n }, rightContent);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: this.props.style\n }, leftElement, elements, rightElement);\n }\n }\n }]);\n\n return Paginator;\n}(Component);\n\n_defineProperty(Paginator, \"defaultProps\", {\n totalRecords: 0,\n rows: 0,\n first: 0,\n pageLinkSize: 5,\n rowsPerPageOptions: null,\n alwaysShow: true,\n style: null,\n className: null,\n template: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',\n onPageChange: null,\n leftContent: null,\n rightContent: null,\n dropdownAppendTo: null,\n currentPageReportTemplate: '({currentPage} of {totalPages})'\n});\n\nexport { Paginator };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,WAArB,QAAwC,kBAAxC;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,QAAT,QAAyB,qBAAzB;AACA,SAASC,WAAT,QAA4B,wBAA5B;;AAEA,SAASC,eAAT,CAAyBC,GAAzB,EAA8B;EAC5B,IAAIC,KAAK,CAACC,OAAN,CAAcF,GAAd,CAAJ,EAAwB,OAAOA,GAAP;AACzB;;AAED,SAASG,qBAAT,CAA+BH,GAA/B,EAAoCI,CAApC,EAAuC;EACrC,IAAIC,EAAE,GAAGL,GAAG,IAAI,IAAP,GAAc,IAAd,GAAqB,OAAOM,MAAP,KAAkB,WAAlB,I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