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

1 line
6.1 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { TabContext } from './TabContext';\nimport { mapToCssModules, omit, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n activeTab: PropTypes.any,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar TabContent = /*#__PURE__*/function (_Component) {\n _inheritsLoose(TabContent, _Component);\n\n TabContent.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (prevState.activeTab !== nextProps.activeTab) {\n return {\n activeTab: nextProps.activeTab\n };\n }\n\n return null;\n };\n\n function TabContent(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.state = {\n activeTab: _this.props.activeTab\n };\n return _this;\n }\n\n var _proto = TabContent.prototype;\n\n _proto.render = function render() {\n var _this$props = this.props,\n className = _this$props.className,\n cssModule = _this$props.cssModule,\n Tag = _this$props.tag;\n var attributes = omit(this.props, Object.keys(propTypes));\n var classes = mapToCssModules(classNames('tab-content', className), cssModule);\n return /*#__PURE__*/React.createElement(TabContext.Provider, {\n value: {\n activeTabId: this.state.activeTab\n }\n }, /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n })));\n };\n\n return TabContent;\n}(Component);\n\nexport default TabContent;\nTabContent.propTypes = propTypes;\nTabContent.defaultProps = defaultProps;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/TabContent.js"],"names":["_extends","_inheritsLoose","React","Component","PropTypes","classNames","TabContext","mapToCssModules","omit","tagPropType","propTypes","tag","activeTab","any","className","string","cssModule","object","defaultProps","TabContent","_Component","getDerivedStateFromProps","nextProps","prevState","props","_this","call","state","_proto","prototype","render","_this$props","Tag","attributes","Object","keys","classes","createElement","Provider","value","activeTabId"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,cAAP,MAA2B,0CAA3B;AACA,OAAOC,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,SAASC,eAAT,EAA0BC,IAA1B,EAAgCC,WAAhC,QAAmD,SAAnD;AACA,IAAIC,SAAS,GAAG;AACdC,EAAAA,GAAG,EAAEF,WADS;AAEdG,EAAAA,SAAS,EAAER,SAAS,CAACS,GAFP;AAGdC,EAAAA,SAAS,EAAEV,SAAS,CAACW,MAHP;AAIdC,EAAAA,SAAS,EAAEZ,SAAS,CAACa;AAJP,CAAhB;AAMA,IAAIC,YAAY,GAAG;AACjBP,EAAAA,GAAG,EAAE;AADY,CAAnB;;AAIA,IAAIQ,UAAU,GAAG,aAAa,UAAUC,UAAV,EAAsB;AAClDnB,EAAAA,cAAc,CAACkB,UAAD,EAAaC,UAAb,CAAd;;AAEAD,EAAAA,UAAU,CAACE,wBAAX,GAAsC,SAASA,wBAAT,CAAkCC,SAAlC,EAA6CC,SAA7C,EAAwD;AAC5F,QAAIA,SAAS,CAACX,SAAV,KAAwBU,SAAS,CAACV,SAAtC,EAAiD;AAC/C,aAAO;AACLA,QAAAA,SAAS,EAAEU,SAAS,CAACV;AADhB,OAAP;AAGD;;AAED,WAAO,IAAP;AACD,GARD;;AAUA,WAASO,UAAT,CAAoBK,KAApB,EAA2B;AACzB,QAAIC,KAAJ;;AAEAA,IAAAA,KAAK,GAAGL,UAAU,CAACM,IAAX,CAAgB,IAAhB,EAAsBF,KAAtB,KAAgC,IAAxC;AACAC,IAAAA,KAAK,CAACE,KAAN,GAAc;AACZf,MAAAA,SAAS,EAAEa,KAAK,CAACD,KAAN,CAAYZ;AADX,KAAd;AAGA,WAAOa,KAAP;AACD;;AAED,MAAIG,MAAM,GAAGT,UAAU,CAACU,SAAxB;;AAEAD,EAAAA,MAAM,CAACE,MAAP,GAAgB,SAASA,MAAT,GAAkB;AAChC,QAAIC,WAAW,GAAG,KAAKP,KAAvB;AAAA,QACIV,SAAS,GAAGiB,WAAW,CAACjB,SAD5B;AAAA,QAEIE,SAAS,GAAGe,WAAW,CAACf,SAF5B;AAAA,QAGIgB,GAAG,GAAGD,WAAW,CAACpB,GAHtB;AAIA,QAAIsB,UAAU,GAAGzB,IAAI,CAAC,KAAKgB,KAAN,EAAaU,MAAM,CAACC,IAAP,CAAYzB,SAAZ,CAAb,CAArB;AACA,QAAI0B,OAAO,GAAG7B,eAAe,CAACF,UAAU,CAAC,aAAD,EAAgBS,SAAhB,CAAX,EAAuCE,SAAvC,CAA7B;AACA,WAAO,aAAad,KAAK,CAACmC,aAAN,CAAoB/B,UAAU,CAACgC,QAA/B,EAAyC;AAC3DC,MAAAA,KAAK,EAAE;AACLC,QAAAA,WAAW,EAAE,KAAKb,KAAL,CAAWf;AADnB;AADoD,KAAzC,EAIjB,aAAaV,KAAK,CAACmC,aAAN,CAAoBL,GAApB,EAAyBhC,QAAQ,CAAC,EAAD,EAAKiC,UAAL,EAAiB;AAChEnB,MAAAA,SAAS,EAAEsB;AADqD,KAAjB,CAAjC,CAJI,CAApB;AAOD,GAdD;;AAgBA,SAAOjB,UAAP;AACD,CA1C6B,CA0C5BhB,SA1C4B,CAA9B;;AA4CA,eAAegB,UAAf;AACAA,UAAU,CAACT,SAAX,GAAuBA,SAAvB;AACAS,UAAU,CAACD,YAAX,GAA0BA,YAA1B","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { TabContext } from './TabContext';\nimport { mapToCssModules, omit, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n activeTab: PropTypes.any,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar TabContent = /*#__PURE__*/function (_Component) {\n _inheritsLoose(TabContent, _Component);\n\n TabContent.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (prevState.activeTab !== nextProps.activeTab) {\n return {\n activeTab: nextProps.activeTab\n };\n }\n\n return null;\n };\n\n function TabContent(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.state = {\n activeTab: _this.props.activeTab\n };\n return _this;\n }\n\n var _proto = TabContent.prototype;\n\n _proto.render = function render() {\n var _this$props = this.props,\n className = _this$props.className,\n cssModule = _this$props.cssModule,\n Tag = _this$props.tag;\n var attributes = omit(this.props, Object.keys(propTypes));\n var classes = mapToCssModules(classNames('tab-content', className), cssModule);\n return /*#__PURE__*/React.createElement(TabContext.Provider, {\n value: {\n activeTabId: this.state.activeTab\n }\n }, /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n })));\n };\n\n return TabContent;\n}(Component);\n\nexport default TabContent;\nTabContent.propTypes = propTypes;\nTabContent.defaultProps = defaultProps;"]},"metadata":{},"sourceType":"module"}