Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/69414e1c6cb4f0c34bbc7e52887e3a22.json
2020-12-22 09:59:14 -05:00

1 line
1.9 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 { findDOMNode } from 'react-dom';\nimport classNames from 'classnames';\nimport BaseOverlay from 'react-overlays/Overlay';\nimport Fade from './Fade';\nvar defaultProps = {\n transition: Fade,\n rootClose: false,\n show: false,\n placement: 'top'\n};\n\nfunction wrapRefs(props, arrowProps) {\n var ref = props.ref;\n var aRef = arrowProps.ref;\n\n props.ref = ref.__wrapped || (ref.__wrapped = function (r) {\n return ref(findDOMNode(r));\n });\n\n arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = function (r) {\n return aRef(findDOMNode(r));\n });\n}\n\nfunction Overlay(_ref) {\n var overlay = _ref.children,\n transition = _ref.transition,\n outerProps = _objectWithoutPropertiesLoose(_ref, [\"children\", \"transition\"]);\n\n transition = transition === true ? Fade : transition || null;\n return React.createElement(BaseOverlay, _extends({}, outerProps, {\n transition: transition\n }), function (_ref2) {\n var overlayProps = _ref2.props,\n arrowProps = _ref2.arrowProps,\n show = _ref2.show,\n props = _objectWithoutPropertiesLoose(_ref2, [\"props\", \"arrowProps\", \"show\"]);\n\n wrapRefs(overlayProps, arrowProps);\n if (typeof overlay === 'function') return overlay(_extends({}, props, {}, overlayProps, {\n show: show,\n arrowProps: arrowProps\n }));\n return React.cloneElement(overlay, _extends({}, props, {}, overlayProps, {\n arrowProps: arrowProps,\n className: classNames(overlay.props.className, !transition && show && 'show'),\n style: _extends({}, overlay.props.style, {}, overlayProps.style)\n }));\n });\n}\n\nOverlay.defaultProps = defaultProps;\nexport default Overlay;","map":null,"metadata":{},"sourceType":"module"}