mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
7.5 KiB
JSON
1 line
7.5 KiB
JSON
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n disabled: PropTypes.bool,\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n onClick: PropTypes.func,\n href: PropTypes.any\n};\nvar defaultProps = {\n tag: 'a'\n};\n\nvar NavLink = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(NavLink, _React$Component);\n\n function NavLink(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = NavLink.prototype;\n\n _proto.onClick = function onClick(e) {\n if (this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n if (this.props.href === '#') {\n e.preventDefault();\n }\n\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n className = _this$props.className,\n cssModule = _this$props.cssModule,\n active = _this$props.active,\n Tag = _this$props.tag,\n innerRef = _this$props.innerRef,\n attributes = _objectWithoutPropertiesLoose(_this$props, [\"className\", \"cssModule\", \"active\", \"tag\", \"innerRef\"]);\n\n var classes = mapToCssModules(classNames(className, 'nav-link', {\n disabled: attributes.disabled,\n active: active\n }), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n ref: innerRef,\n onClick: this.onClick,\n className: classes\n }));\n };\n\n return NavLink;\n}(React.Component);\n\nNavLink.propTypes = propTypes;\nNavLink.defaultProps = defaultProps;\nexport default NavLink;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/NavLink.js"],"names":["_extends","_objectWithoutPropertiesLoose","_assertThisInitialized","_inheritsLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","tag","innerRef","oneOfType","object","func","string","disabled","bool","active","className","cssModule","onClick","href","any","defaultProps","NavLink","_React$Component","props","_this","call","bind","_proto","prototype","e","preventDefault","render","_this$props","Tag","attributes","classes","createElement","ref","Component"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,6BAAP,MAA0C,yDAA1C;AACA,OAAOC,sBAAP,MAAmC,kDAAnC;AACA,OAAOC,cAAP,MAA2B,0CAA3B;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,QAAQ,EAAEN,SAAS,CAACO,SAAV,CAAoB,CAACP,SAAS,CAACQ,MAAX,EAAmBR,SAAS,CAACS,IAA7B,EAAmCT,SAAS,CAACU,MAA7C,CAApB,CAFI;AAGdC,EAAAA,QAAQ,EAAEX,SAAS,CAACY,IAHN;AAIdC,EAAAA,MAAM,EAAEb,SAAS,CAACY,IAJJ;AAKdE,EAAAA,SAAS,EAAEd,SAAS,CAACU,MALP;AAMdK,EAAAA,SAAS,EAAEf,SAAS,CAACQ,MANP;AAOdQ,EAAAA,OAAO,EAAEhB,SAAS,CAACS,IAPL;AAQdQ,EAAAA,IAAI,EAAEjB,SAAS,CAACkB;AARF,CAAhB;AAUA,IAAIC,YAAY,GAAG;AACjBd,EAAAA,GAAG,EAAE;AADY,CAAnB;;AAIA,IAAIe,OAAO,GAA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A3B,EAAqC,KAArC,EAA4C,UAA5C,CAAd,CAN9C;;AAQA,QAAIG,OAAO,GAAGhC,eAAe,CAACD,UAAU,CAACa,SAAD,EAAY,UAAZ,EAAwB;AAC9DH,MAAAA,QAAQ,EAAEsB,UAAU,CAACtB,QADyC;AAE9DE,MAAAA,MAAM,EAAEA;AAFsD,KAAxB,CAAX,EAGzBE,SAHyB,CAA7B;AAIA,WAAO,aAAahB,KAAK,CAACoC,aAAN,CAAoBH,GAApB,EAAyBrC,QAAQ,CAAC,EAAD,EAAKsC,UAAL,EAAiB;AACpEG,MAAAA,GAAG,EAAE9B,QAD+D;AAEpEU,MAAAA,OAAO,EAAE,KAAKA,OAFsD;AAGpEF,MAAAA,SAAS,EAAEoB;AAHyD,KAAjB,CAAjC,CAApB;AAKD,GAlBD;;AAoBA,SAAOd,OAAP;AACD,CAjD0B,CAiDzBrB,KAAK,CAACsC,SAjDmB,CAA3B;;AAmDAjB,OAAO,CAAChB,SAAR,GAAoBA,SAApB;AACAgB,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 _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n disabled: PropTypes.bool,\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n onClick: PropTypes.func,\n href: PropTypes.any\n};\nvar defaultProps = {\n tag: 'a'\n};\n\nvar NavLink = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(NavLink, _React$Component);\n\n function NavLink(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = NavLink.prototype;\n\n _proto.onClick = function onClick(e) {\n if (this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n if (this.props.href === '#') {\n e.preventDefault();\n }\n\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n className = _this$props.className,\n cssModule = _this$props.cssModule,\n active = _this$props.active,\n Tag = _this$props.tag,\n innerRef = _this$props.innerRef,\n attributes = _objectWithoutPropertiesLoose(_this$props, [\"className\", \"cssModule\", \"active\", \"tag\", \"innerRef\"]);\n\n var classes = mapToCssModules(classNames(className, 'nav-link', {\n disabled: attributes.disabled,\n active: active\n }), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n ref: innerRef,\n onClick: this.onClick,\n className: classes\n }));\n };\n\n return NavLink;\n}(React.Component);\n\nNavLink.propTypes = propTypes;\nNavLink.defaultProps = defaultProps;\nexport default NavLink;"]},"metadata":{},"sourceType":"module"} |