mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
6.9 KiB
JSON
1 line
6.9 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 tabs: PropTypes.bool,\n pills: PropTypes.bool,\n vertical: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n horizontal: PropTypes.string,\n justified: PropTypes.bool,\n fill: PropTypes.bool,\n navbar: PropTypes.bool,\n card: PropTypes.bool,\n tag: tagPropType,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'ul',\n vertical: false\n};\n\nvar getVerticalClass = function getVerticalClass(vertical) {\n if (vertical === false) {\n return false;\n } else if (vertical === true || vertical === 'xs') {\n return 'flex-column';\n }\n\n return \"flex-\" + vertical + \"-column\";\n};\n\nvar Nav = function Nav(props) {\n var className = props.className,\n cssModule = props.cssModule,\n tabs = props.tabs,\n pills = props.pills,\n vertical = props.vertical,\n horizontal = props.horizontal,\n justified = props.justified,\n fill = props.fill,\n navbar = props.navbar,\n card = props.card,\n Tag = props.tag,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tabs\", \"pills\", \"vertical\", \"horizontal\", \"justified\", \"fill\", \"navbar\", \"card\", \"tag\"]);\n\n var classes = mapToCssModules(classNames(className, navbar ? 'navbar-nav' : 'nav', horizontal ? \"justify-content-\" + horizontal : false, getVerticalClass(vertical), {\n 'nav-tabs': tabs,\n 'card-header-tabs': card && tabs,\n 'nav-pills': pills,\n 'card-header-pills': card && pills,\n 'nav-justified': justified,\n 'nav-fill': fill\n }), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nNav.propTypes = propTypes;\nNav.defaultProps = defaultProps;\nexport default Nav;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/Nav.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","tabs","bool","pills","vertical","oneOfType","string","horizontal","justified","fill","navbar","card","tag","className","cssModule","object","defaultProps","getVerticalClass","Nav","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,IAAI,EAAEL,SAAS,CAACM,IADF;AAEdC,EAAAA,KAAK,EAAEP,SAAS,CAACM,IAFH;AAGdE,EAAAA,QAAQ,EAAER,SAAS,CAACS,SAAV,CAAoB,CAACT,SAAS,CAACM,IAAX,EAAiBN,SAAS,CAACU,MAA3B,CAApB,CAHI;AAIdC,EAAAA,UAAU,EAAEX,SAAS,CAACU,MAJR;AAKdE,EAAAA,SAAS,EAAEZ,SAAS,CAACM,IALP;AAMdO,EAAAA,IAAI,EAAEb,SAAS,CAACM,IANF;AAOdQ,EAAAA,MAAM,EAAEd,SAAS,CAACM,IAPJ;AAQdS,EAAAA,IAAI,EAAEf,SAAS,CAACM,IARF;AASdU,EAAAA,GAAG,EAAEb,WATS;AAUdc,EAAAA,SAAS,EAAEjB,SAAS,CAACU,MAVP;AAWdQ,EAAAA,SAAS,EAAElB,SAAS,CAACmB;AAXP,CAAhB;AAaA,IAAIC,YAAY,GAAG;AACjBJ,EAAAA,GAAG,EAAE,IADY;AAEjBR,EAAAA,QAAQ,EAAE;AAFO,CAAnB;;AAKA,IAAIa,gBAAgB,GAAG,SAASA,gBAAT,CAA0Bb,QAA1B,EAAoC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AI,IAAIV,IAFuI;AAGnK,iBAAaE,KAHsJ;AAInK,yBAAqBQ,IAAI,IAAIR,KAJsI;AAKnK,qBAAiBK,SALkJ;AAMnK,gBAAYC;AANuJ,GAA7H,CAAX,EAOzBK,SAPyB,CAA7B;AAQA,SAAO,aAAanB,KAAK,CAAC4B,aAAN,CAAoBH,GAApB,EAAyB3B,QAAQ,CAAC,EAAD,EAAK4B,UAAL,EAAiB;AACpER,IAAAA,SAAS,EAAES;AADyD,GAAjB,CAAjC,CAApB;AAGD,CAzBD;;AA2BAJ,GAAG,CAAClB,SAAJ,GAAgBA,SAAhB;AACAkB,GAAG,CAACF,YAAJ,GAAmBA,YAAnB;AACA,eAAeE,GAAf","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 tabs: PropTypes.bool,\n pills: PropTypes.bool,\n vertical: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n horizontal: PropTypes.string,\n justified: PropTypes.bool,\n fill: PropTypes.bool,\n navbar: PropTypes.bool,\n card: PropTypes.bool,\n tag: tagPropType,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'ul',\n vertical: false\n};\n\nvar getVerticalClass = function getVerticalClass(vertical) {\n if (vertical === false) {\n return false;\n } else if (vertical === true || vertical === 'xs') {\n return 'flex-column';\n }\n\n return \"flex-\" + vertical + \"-column\";\n};\n\nvar Nav = function Nav(props) {\n var className = props.className,\n cssModule = props.cssModule,\n tabs = props.tabs,\n pills = props.pills,\n vertical = props.vertical,\n horizontal = props.horizontal,\n justified = props.justified,\n fill = props.fill,\n navbar = props.navbar,\n card = props.card,\n Tag = props.tag,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tabs\", \"pills\", \"vertical\", \"horizontal\", \"justified\", \"fill\", \"navbar\", \"card\", \"tag\"]);\n\n var classes = mapToCssModules(classNames(className, navbar ? 'navbar-nav' : 'nav', horizontal ? \"justify-content-\" + horizontal : false, getVerticalClass(vertical), {\n 'nav-tabs': tabs,\n 'card-header-tabs': card && tabs,\n 'nav-pills': pills,\n 'card-header-pills': card && pills,\n 'nav-justified': justified,\n 'nav-fill': fill\n }), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nNav.propTypes = propTypes;\nNav.defaultProps = defaultProps;\nexport default Nav;"]},"metadata":{},"sourceType":"module"} |