mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
5.5 KiB
JSON
1 line
5.5 KiB
JSON
|
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n listClassName: PropTypes.string,\n cssModule: PropTypes.object,\n size: PropTypes.string,\n tag: tagPropType,\n listTag: tagPropType,\n 'aria-label': PropTypes.string\n};\nvar defaultProps = {\n tag: 'nav',\n listTag: 'ul',\n 'aria-label': 'pagination'\n};\n\nvar Pagination = function Pagination(props) {\n var _classNames;\n\n var className = props.className,\n listClassName = props.listClassName,\n cssModule = props.cssModule,\n size = props.size,\n Tag = props.tag,\n ListTag = props.listTag,\n label = props['aria-label'],\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"listClassName\", \"cssModule\", \"size\", \"tag\", \"listTag\", \"aria-label\"]);\n\n var classes = mapToCssModules(classNames(className), cssModule);\n var listClasses = mapToCssModules(classNames(listClassName, 'pagination', (_classNames = {}, _classNames[\"pagination-\" + size] = !!size, _classNames)), cssModule);\n return /*#__PURE__*/React.createElement(Tag, {\n className: classes,\n \"aria-label\": label\n }, /*#__PURE__*/React.createElement(ListTag, _extends({}, attributes, {\n className: listClasses\n })));\n};\n\nPagination.propTypes = propTypes;\nPagination.defaultProps = defaultProps;\nexport default Pagination;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/Pagination.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","children","node","className","string","listClassName","cssModule","object","size","tag","listTag","defaultProps","Pagination","props","_classNames","Tag","ListTag","label","attributes","classes","listClasses","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oC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P9C;;AASA,MAAIM,OAAO,GAAGrB,eAAe,CAACD,UAAU,CAACM,SAAD,CAAX,EAAwBG,SAAxB,CAA7B;AACA,MAAIc,WAAW,GAAGtB,eAAe,CAACD,UAAU,CAACQ,aAAD,EAAgB,YAAhB,GAA+BS,WAAW,GAAG,EAAd,EAAkBA,WAAW,CAAC,gBAAgBN,IAAjB,CAAX,GAAoC,CAAC,CAACA,IAAxD,EAA8DM,WAA7F,EAAX,EAAuHR,SAAvH,CAAjC;AACA,SAAO,aAAaX,KAAK,CAAC0B,aAAN,CAAoBN,GAApB,EAAyB;AAC3CZ,IAAAA,SAAS,EAAEgB,OADgC;AAE3C,kBAAcF;AAF6B,GAAzB,EAGjB,aAAatB,KAAK,CAAC0B,aAAN,CAAoBL,OAApB,EAA6BvB,QAAQ,CAAC,EAAD,EAAKyB,UAAL,EAAiB;AACpEf,IAAAA,SAAS,EAAEiB;AADyD,GAAjB,CAArC,CAHI,CAApB;AAMD,CApBD;;AAsBAR,UAAU,CAACZ,SAAX,GAAuBA,SAAvB;AACAY,UAAU,CAACD,YAAX,GAA0BA,YAA1B;AACA,eAAeC,UAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimp
|