{"ast":null,"code":"import _objectSpread from \"C:/Users/user/Desktop/02portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/02portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nvar _excluded = [\"rest\"],\n  _excluded2 = [\"rest\"],\n  _excluded3 = [\"className\", \"asChild\", \"display\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Slot } from './slot';\nimport { boxPropDefs } from './box.props';\nimport { extractMarginProps, withMarginProps, extractLayoutProps, withLayoutProps, withBreakpoints } from '../helpers';\nvar Box = React.forwardRef(function (props, forwardedRef) {\n  var _extractMarginProps = extractMarginProps(props),\n    marginRest = _extractMarginProps.rest,\n    marginProps = _objectWithoutProperties(_extractMarginProps, _excluded);\n  var _extractLayoutProps = extractLayoutProps(marginRest),\n    layoutRest = _extractLayoutProps.rest,\n    layoutProps = _objectWithoutProperties(_extractLayoutProps, _excluded2);\n  var className = layoutRest.className,\n    asChild = layoutRest.asChild,\n    _layoutRest$display = layoutRest.display,\n    display = _layoutRest$display === void 0 ? boxPropDefs.display.default : _layoutRest$display,\n    boxProps = _objectWithoutProperties(layoutRest, _excluded3);\n  var Comp = asChild ? Slot : 'div';\n  return React.createElement(Comp, _objectSpread(_objectSpread({}, boxProps), {}, {\n    ref: forwardedRef,\n    className: classNames('rt-Box', className, withBreakpoints(display, 'rt-r-display'), withLayoutProps(layoutProps), withMarginProps(marginProps))\n  }));\n});\nBox.displayName = 'Box';\nexport { Box };","map":{"version":3,"names":["React","classNames","Slot","boxPropDefs","extractMarginProps","withMarginProps","extractLayoutProps","withLayoutProps","withBreakpoints","Box","forwardRef","props","forwardedRef","_extractMarginProps","marginRest","rest","marginProps","_objectWithoutProperties","_excluded","_extractLayoutProps","layoutRest","layoutProps","_excluded2","className","asChild","_layoutRest$display","display","default","boxProps","_excluded3","Comp","createElement","_objectSpread","ref","displayName"],"sources":["../../../src/components/box.tsx"],"sourcesContent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