mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-29 03:45: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 tag: tagPropType,\n wrapTag: tagPropType,\n toggle: PropTypes.func,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n children: PropTypes.node,\n closeAriaLabel: PropTypes.string,\n charCode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n close: PropTypes.object\n};\nvar defaultProps = {\n tag: 'h5',\n wrapTag: 'div',\n closeAriaLabel: 'Close',\n charCode: 215\n};\n\nvar ModalHeader = function ModalHeader(props) {\n var closeButton;\n\n var className = props.className,\n cssModule = props.cssModule,\n children = props.children,\n toggle = props.toggle,\n Tag = props.tag,\n WrapTag = props.wrapTag,\n closeAriaLabel = props.closeAriaLabel,\n charCode = props.charCode,\n close = props.close,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"children\", \"toggle\", \"tag\", \"wrapTag\", \"closeAriaLabel\", \"charCode\", \"close\"]);\n\n var classes = mapToCssModules(classNames(className, 'modal-header'), cssModule);\n\n if (!close && toggle) {\n var closeIcon = typeof charCode === 'number' ? String.fromCharCode(charCode) : charCode;\n closeButton = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: toggle,\n className: mapToCssModules('close', cssModule),\n \"aria-label\": closeAriaLabel\n }, /*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": \"true\"\n }, closeIcon));\n }\n\n return /*#__PURE__*/React.createElement(WrapTag, _extends({}, attributes, {\n className: classes\n }), /*#__PURE__*/React.createElement(Tag, {\n className: mapToCssModules('modal-title', cssModule)\n }, children), close || closeButton);\n};\n\nModalHeader.propTypes = propTypes;\nModalHeader.defaultProps = defaultProps;\nexport default ModalHeader;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/ModalHeader.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","tag","wrapTag","toggle","func","className","string","cssModule","object","children","node","closeAriaLabel","charCode","oneOfType","number","close","defaultProps","ModalHeader","props","closeButton","Tag","WrapTag","attributes","classes","closeIcon","String","fromCharCode","createElement","type","onClick"],"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,GAAG,EAAEF,WADS;AAEdG,EAAAA,OAAO,EAAEH,WAFK;AAGdI,EAAAA,MAAM,EAAEP,SAAS,CAACQ,IAHJ;AAIdC,EAAAA,SAAS,EAAET,SAAS,CAACU,MAJP;AAKdC,EAAAA,SAAS,EAAEX,SAAS,CAACY,MALP;AAMdC,EAAAA,QAAQ,EAAEb,SAAS,CAACc,IANN;AAOdC,EAAAA,cAAc,EAAEf,SAAS,CAACU,MAPZ;AAQdM,EAAAA,QAAQ,EAAEhB,SAAS,CAACiB,SAAV,CAAoB,CAACjB,SAAS,CAACU,MAAX,EAAmBV,SAAS,CAACkB,MAA7B,CAApB,CARI;AASdC,EAAAA,KAAK,EAAEnB,SAAS,CAACY;AATH,CAAhB;AAWA,IAAIQ,YAAY,GAAG;AACjBf,EAAAA,GAAG,EAAE,IADY;AAEjBC,EAAAA,OAAO,EAAE,KAFQ;AAGjBS,EAAAA,cAAc,EAAE,OAHC;AAIjBC,EAAAA,QAAQ,EAAE;AAJO,CAAnB;;AAOA,IAAIK,WAAW,GAAG,SAASA,W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