mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
3.6 KiB
JSON
1 line
3.6 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 tag: tagPropType,\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'li'\n};\n\nvar NavItem = function NavItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n active = props.active,\n Tag = props.tag,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"active\", \"tag\"]);\n\n var classes = mapToCssModules(classNames(className, 'nav-item', active ? 'active' : false), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nNavItem.propTypes = propTypes;\nNavItem.defaultProps = defaultProps;\nexport default NavItem;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/NavItem.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","tag","active","bool","className","string","cssModule","object","defaultProps","NavItem","props","Tag","attributes","classes","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,6BAAP,MAA0C,yDAA1C;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAASC,eAAT,EAA0BC,WAA1B,QAA6C,SAA7C;AACA,IAAIC,SAAS,GAAG;AACdC,EAAAA,GAAG,EAAEF,WADS;AAEdG,EAAAA,MAAM,EAAEN,SAAS,CAACO,IAFJ;AAGdC,EAAAA,SAAS,EAAER,SAAS,CAACS,MAHP;AAIdC,EAAAA,SAAS,EAAEV,SAAS,CAACW;AAJP,CAAhB;AAMA,IAAIC,YAAY,GAAG;AACjBP,EAAAA,GAAG,EAAE;AADY,CAAnB;;AAIA,IAAIQ,OAAO,GAAG,SAASA,OAAT,CAAiBC,KAAjB,EAAwB;AACpC,MAAIN,SAAS,GAAGM,KAAK,CAACN,SAAtB;AAAA,MACIE,SAAS,GAAGI,KAAK,CAACJ,SADtB;AAAA,MAEIJ,MAAM,GAAGQ,KAAK,CAACR,MAFnB;AAAA,MAGIS,GAAG,GAAGD,KAAK,CAACT,GAHhB;AAAA,MAIIW,UAAU,GAAGlB,6BAA6B,CAACgB,KAAD,EAAQ,CAAC,WAAD,EAAc,WAAd,EAA2B,QAA3B,EAAqC,KAArC,CAAR,CAJ9C;;AAMA,MAAIG,OAAO,GAAGf,eAAe,CAACD,UAAU,CAACO,SAAD,EAAY,UAAZ,EAAwBF,MAAM,GAAG,QAAH,GAAc,KAA5C,CAAX,EAA+DI,SAA/D,CAA7B;AACA,SAAO,aAAaX,KAAK,CAACmB,aAAN,CAAoBH,GAApB,EAAyBlB,QAAQ,CAAC,EAAD,EAAKmB,UAAL,EAAiB;AACpER,IAAAA,SAAS,EAAES;AADyD,GAAjB,CAAjC,CAApB;AAGD,CAXD;;AAaAJ,OAAO,CAACT,SAAR,GAAoBA,SAApB;AACAS,OAAO,CAACD,YAAR,GAAuBA,YAAvB;AACA,eAAeC,OAAf","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';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'li'\n};\n\nvar NavItem = function NavItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n active = props.active,\n Tag = props.tag,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"active\", \"tag\"]);\n\n var classes = mapToCssModules(classNames(className, 'nav-item', active ? 'active' : false), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nNavItem.propTypes = propTypes;\nNavItem.defaultProps = defaultProps;\nexport default NavItem;"]},"metadata":{},"sourceType":"module"}
|