mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25: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,WAA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AAD2B,KAA5B,EAEbH,SAFa,CALW,CAA3B;AAQD;;AAED,SAAO,aAAa7B,KAAK,CAACgC,aAAN,CAAoBN,OAApB,EAA6B5B,QAAQ,CAAC,EAAD,EAAK6B,UAAL,EAAiB;AACxEjB,IAAAA,SAAS,EAAEkB;AAD6D,GAAjB,CAArC,EAEhB,aAAa5B,KAAK,CAACgC,aAAN,CAAoBP,GAApB,EAAyB;AACxCf,IAAAA,SAAS,EAAEP,eAAe,CAAC,aAAD,EAAgBS,SAAhB;AADc,GAAzB,EAEdE,QAFc,CAFG,EAINM,KAAK,IAAII,WAJH,CAApB;AAKD,CAjCD;;AAmCAF,WAAW,CAACjB,SAAZ,GAAwBA,SAAxB;AACAiB,WAAW,CAACD,YAAZ,GAA2BA,YAA3B;AACA,eAAeC,WAAf","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 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;"]},"metadata":{},"sourceType":"module"} |