mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
4.5 KiB
JSON
1 line
4.5 KiB
JSON
{"ast":null,"code":"import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules } from './utils';\n\nvar CarouselIndicators = function CarouselIndicators(props) {\n var items = props.items,\n activeIndex = props.activeIndex,\n cssModule = props.cssModule,\n onClickHandler = props.onClickHandler,\n className = props.className;\n var listClasses = mapToCssModules(classNames(className, 'carousel-indicators'), cssModule);\n var indicators = items.map(function (item, idx) {\n var indicatorClasses = mapToCssModules(classNames({\n active: activeIndex === idx\n }), cssModule);\n return /*#__PURE__*/React.createElement(\"li\", {\n key: \"\" + (item.key || Object.values(item).join('')),\n onClick: function onClick(e) {\n e.preventDefault();\n onClickHandler(idx);\n },\n className: indicatorClasses\n });\n });\n return /*#__PURE__*/React.createElement(\"ol\", {\n className: listClasses\n }, indicators);\n};\n\nCarouselIndicators.propTypes = {\n items: PropTypes.array.isRequired,\n activeIndex: PropTypes.number.isRequired,\n cssModule: PropTypes.object,\n onClickHandler: PropTypes.func.isRequired,\n className: PropTypes.string\n};\nexport default CarouselIndicators;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/CarouselIndicators.js"],"names":["React","PropTypes","classNames","mapToCssModules","CarouselIndicators","props","items","activeIndex","cssModule","onClickHandler","className","listClasses","indicators","map","item","idx","indicatorClasses","active","createElement","key","Object","values","join","onClick","e","preventDefault","propTypes","array","isRequired","number","object","func","string"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAASC,eAAT,QAAgC,SAAhC;;AAEA,IAAIC,kBAAkB,GAAG,SAASA,kBAAT,CAA4BC,KAA5B,EAAmC;AAC1D,MAAIC,KAAK,GAAGD,KAAK,CAACC,KAAlB;AAAA,MACIC,WAAW,GAAGF,KAAK,CAACE,WADx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rB,EAAAA,cAAc,EAAER,SAAS,CAAC8B,IAAV,CAAeH,UAJF;AAK7BlB,EAAAA,SAAS,EAAET,SAAS,CAAC+B;AALQ,CAA/B;AAOA,eAAe5B,kBAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules } from './utils';\n\nvar CarouselIndicators = function CarouselIndicators(props) {\n var items = props.items,\n activeIndex = props.activeIndex,\n cssModule = props.cssModule,\n onClickHandler = props.onClickHandler,\n className = props.className;\n var listClasses = mapToCssModules(classNames(className, 'carousel-indicators'), cssModule);\n var indicators = items.map(function (item, idx) {\n var indicatorClasses = mapToCssModules(classNames({\n active: activeIndex === idx\n }), cssModule);\n return /*#__PURE__*/React.createElement(\"li\", {\n key: \"\" + (item.key || Object.values(item).join('')),\n onClick: function onClick(e) {\n e.preventDefault();\n onClickHandler(idx);\n },\n className: indicatorClasses\n });\n });\n return /*#__PURE__*/React.createElement(\"ol\", {\n className: listClasses\n }, indicators);\n};\n\nCarouselIndicators.propTypes = {\n items: PropTypes.array.isRequired,\n activeIndex: PropTypes.number.isRequired,\n cssModule: PropTypes.object,\n onClickHandler: PropTypes.func.isRequired,\n className: PropTypes.string\n};\nexport default CarouselIndicators;"]},"metadata":{},"sourceType":"module"} |