mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
7.1 KiB
JSON
1 line
7.1 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 body: PropTypes.bool,\n bottom: PropTypes.bool,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n heading: PropTypes.bool,\n left: PropTypes.bool,\n list: PropTypes.bool,\n middle: PropTypes.bool,\n object: PropTypes.bool,\n right: PropTypes.bool,\n tag: tagPropType,\n top: PropTypes.bool\n};\n\nvar Media = function Media(props) {\n var body = props.body,\n bottom = props.bottom,\n className = props.className,\n cssModule = props.cssModule,\n heading = props.heading,\n left = props.left,\n list = props.list,\n middle = props.middle,\n object = props.object,\n right = props.right,\n tag = props.tag,\n top = props.top,\n attributes = _objectWithoutPropertiesLoose(props, [\"body\", \"bottom\", \"className\", \"cssModule\", \"heading\", \"left\", \"list\", \"middle\", \"object\", \"right\", \"tag\", \"top\"]);\n\n var defaultTag;\n\n if (heading) {\n defaultTag = 'h4';\n } else if (attributes.href) {\n defaultTag = 'a';\n } else if (attributes.src || object) {\n defaultTag = 'img';\n } else if (list) {\n defaultTag = 'ul';\n } else {\n defaultTag = 'div';\n }\n\n var Tag = tag || defaultTag;\n var classes = mapToCssModules(classNames(className, {\n 'media-body': body,\n 'media-heading': heading,\n 'media-left': left,\n 'media-right': right,\n 'media-top': top,\n 'media-bottom': bottom,\n 'media-middle': middle,\n 'media-object': object,\n 'media-list': list,\n media: !body && !heading && !left && !right && !top && !bottom && !middle && !object && !list\n }), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n};\n\nMedia.propTypes = propTypes;\nexport default Media;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/Media.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","body","bool","bottom","children","node","className","string","cssModule","object","heading","left","list","middle","right","tag","top","Media","props","attributes","defaultTag","href","src","Tag","classes","media","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,MAAM,EAAEP,SAAS,CAACM,IAFJ;AAGdE,EAAAA,QAAQ,EAAER,SAAS,CAACS,IAHN;AAIdC,EAAAA,SAAS,EAAEV,SAAS,CAACW,MAJP;AAKdC,EAAAA,SAAS,EAAEZ,SAAS,CAACa,MALP;AAMdC,EAAAA,OAAO,EAAEd,SAAS,CAACM,IANL;AAOdS,EAAAA,IAAI,EAAEf,SAAS,CAACM,IAPF;AAQdU,EAAAA,IAAI,EAAEhB,SAAS,CAACM,IARF;AASdW,EAAAA,MAAM,EAAEjB,SAAS,CAACM,IATJ;AAUdO,EAAAA,MAAM,EAAEb,SAAS,CAACM,IAVJ;AAWdY,EAAAA,KAAK,EAAElB,SAAS,CAACM,IAXH;AAYda,EAAAA,GAAG,EAAEhB,WAZS;AAadiB,EAAAA,GAAG,EAAEpB,SAAS,CAACM;AAbD,CAAhB;;AAgBA,IAAIe,KAAK,GAAG,SAASA,KAAT,CAAeC,KAAf,EAAsB;AAChC,MAAIjB,IAAI,GAAGiB,KAAK,CAACjB,IAAjB;AAAA,MACIE,MAAM,GAAGe,KAAK,CAACf,MADnB;AAAA,MAEIG,SAAS,GAAGY,KAAK,CAACZ,SAFtB;A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