GoScrobble/web/node_modules/.cache/babel-loader/cbf82d42972eb202d7466d83a4043005.json

1 line
6.9 KiB
JSON
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
{"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,CAA0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