mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-29 03:45:15 +00:00
1 line
5.4 KiB
JSON
1 line
5.4 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 tag: tagPropType,\n active: PropTypes.bool,\n disabled: PropTypes.bool,\n color: PropTypes.string,\n action: PropTypes.bool,\n className: PropTypes.any,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'li'\n};\n\nvar handleDisabledOnClick = function handleDisabledOnClick(e) {\n e.preventDefault();\n};\n\nvar ListGroupItem = function ListGroupItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n active = props.active,\n disabled = props.disabled,\n action = props.action,\n color = props.color,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tag\", \"active\", \"disabled\", \"action\", \"color\"]);\n\n var classes = mapToCssModules(classNames(className, active ? 'active' : false, disabled ? 'disabled' : false, action ? 'list-group-item-action' : false, color ? \"list-group-item-\" + color : false, 'list-group-item'), cssModule); // Prevent click event when disabled.\n\n if (disabled) {\n attributes.onClick = handleDisabledOnClick;\n }\n\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nListGroupItem.propTypes = propTypes;\nListGroupItem.defaultProps = defaultProps;\nexport default ListGroupItem;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/ListGroupItem.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","tag","active","bool","disabled","color","string","action","className","any","cssModule","object","defaultProps","handleDisabledOnClick","e","preventDefault","ListGroupItem","props","Tag","attributes","classes","onClick","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCA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CAP9C;;AASA,MAAIG,OAAO,GAAGtB,eAAe,CAACD,UAAU,CAACW,SAAD,EAAYN,MAAM,GAAG,QAAH,GAAc,KAAhC,EAAuCE,QAAQ,GAAG,UAAH,GAAgB,KAA/D,EAAsEG,MAAM,GAAG,wBAAH,GAA8B,KAA1G,EAAiHF,KAAK,GAAG,qBAAqBA,KAAxB,GAAgC,KAAtJ,EAA6J,iBAA7J,CAAX,EAA4LK,SAA5L,CAA7B,CAVgD,CAUqL;;AAErO,MAAIN,QAAJ,EAAc;AACZe,IAAAA,UAAU,CAACE,OAAX,GAAqBR,qBAArB;AACD;;AAED,SAAO,aAAalB,KAAK,CAAC2B,aAAN,CAAoBJ,GAApB,EAAyBzB,QAAQ,CAAC,EAAD,EAAK0B,UAAL,EAAiB;AACpEX,IAAAA,SAAS,EAAEY;AADyD,GAAjB,CAAjC,CAApB;AAGD,CAnBD;;AAqBAJ,aAAa,CAAChB,SAAd,GAA0BA,SAA1B;AACAgB,aAAa,CAACJ,YAAd,GAA6BA,YAA7B;AACA,eAAeI,aAAf","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 tag: tagPropType,\n active: PropTypes.bool,\n disabled: PropTypes.bool,\n color: PropTypes.string,\n action: PropTypes.bool,\n className: PropTypes.any,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'li'\n};\n\nvar handleDisabledOnClick = function handleDisabledOnClick(e) {\n e.preventDefault();\n};\n\nvar ListGroupItem = function ListGroupItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n active = props.active,\n disabled = props.disabled,\n action = props.action,\n color = props.color,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tag\", \"active\", \"disabled\", \"action\", \"color\"]);\n\n var classes = mapToCssModules(classNames(className, active ? 'active' : false, disabled ? 'disabled' : false, action ? 'list-group-item-action' : false, color ? \"list-group-item-\" + color : false, 'list-group-item'), cssModule); // Prevent click event when disabled.\n\n if (disabled) {\n attributes.onClick = handleDisabledOnClick;\n }\n\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nListGroupItem.propTypes = propTypes;\nListGroupItem.defaultProps = defaultProps;\nexport default ListGroupItem;"]},"metadata":{},"sourceType":"module"} |