GoScrobble/web/node_modules/.cache/babel-loader/ff4401456fd117e4e09c477a0cec6436.json

1 line
5.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';\nimport InputGroupText from './InputGroupText';\nvar propTypes = {\n tag: tagPropType,\n addonType: PropTypes.oneOf(['prepend', 'append']).isRequired,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar InputGroupAddon = function InputGroupAddon(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n addonType = props.addonType,\n children = props.children,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tag\", \"addonType\", \"children\"]);\n\n var classes = mapToCssModules(classNames(className, 'input-group-' + addonType), cssModule); // Convenience to assist with transition\n\n if (typeof children === 'string') {\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }), /*#__PURE__*/React.createElement(InputGroupText, {\n children: children\n }));\n }\n\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes,\n children: children\n }));\n};\n\nInputGroupAddon.propTypes = propTypes;\nInputGroupAddon.defaultProps = defaultProps;\nexport default InputGroupAddon;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/InputGroupAddon.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","InputGroupText","propTypes","tag","addonType","oneOf","isRequired","children","node","className","string","cssModule","object","defaultProps","InputGroupAddon","props","Tag","attributes","classes","createElement"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,6BAAP,MAA0C,yDAA1C;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,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AADyD,KAAjB,CAAjC,EAEhB,aAAatB,KAAK,CAACuB,aAAN,CAAoBlB,cAApB,EAAoC;AACnDM,MAAAA,QAAQ,EAAEA;AADyC,KAApC,CAFG,CAApB;AAKD;;AAED,SAAO,aAAaX,KAAK,CAACuB,aAAN,CAAoBH,GAApB,EAAyBtB,QAAQ,CAAC,EAAD,EAAKuB,UAAL,EAAiB;AACpER,IAAAA,SAAS,EAAES,OADyD;AAEpEX,IAAAA,QAAQ,EAAEA;AAF0D,GAAjB,CAAjC,CAApB;AAID,CAtBD;;AAwBAO,eAAe,CAACZ,SAAhB,GAA4BA,SAA5B;AACAY,eAAe,CAACD,YAAhB,GAA+BA,YAA/B;AACA,eAAeC,eAAf","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';\nimport InputGroupText from './InputGroupText';\nvar propTypes = {\n tag: tagPropType,\n addonType: PropTypes.oneOf(['prepend', 'append']).isRequired,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar InputGroupAddon = function InputGroupAddon(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n addonType = props.addonType,\n children = props.children,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"tag\", \"addonType\", \"children\"]);\n\n var classes = mapToCssModules(classNames(className, 'input-group-' + addonType), cssModule); // Convenience to assist with transition\n\n if (typeof children === 'string') {\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }), /*#__PURE__*/React.createElement(InputGroupText, {\n children: children\n }));\n }\n\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes,\n children: children\n }));\n};\n\nInputGroupAddon.propTypes = propTypes;\nInputGroupAddon.defaultProps = defaultProps;\nexport default InputGroupAddon;"]},"metadata":{},"sourceType":"module"}