{"ast":null,"code":"import _objectSpread from \"C:/Users/user/Desktop/portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nvar _excluded = [\"rest\"],\n  _excluded2 = [\"rest\"],\n  _excluded3 = [\"className\", \"asChild\", \"display\", \"direction\", \"align\", \"justify\", \"wrap\", \"gap\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Slot } from './slot';\nimport { flexPropDefs } from './flex.props';\nimport { extractMarginProps, withMarginProps, extractLayoutProps, withLayoutProps, withBreakpoints } from '../helpers';\nvar Flex = 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 ? flexPropDefs.display.default : _layoutRest$display,\n    _layoutRest$direction = layoutRest.direction,\n    direction = _layoutRest$direction === void 0 ? flexPropDefs.direction.default : _layoutRest$direction,\n    _layoutRest$align = layoutRest.align,\n    align = _layoutRest$align === void 0 ? flexPropDefs.align.default : _layoutRest$align,\n    _layoutRest$justify = layoutRest.justify,\n    justify = _layoutRest$justify === void 0 ? flexPropDefs.justify.default : _layoutRest$justify,\n    _layoutRest$wrap = layoutRest.wrap,\n    wrap = _layoutRest$wrap === void 0 ? flexPropDefs.wrap.default : _layoutRest$wrap,\n    _layoutRest$gap = layoutRest.gap,\n    gap = _layoutRest$gap === void 0 ? flexPropDefs.gap.default : _layoutRest$gap,\n    flexProps = _objectWithoutProperties(layoutRest, _excluded3);\n  var Comp = asChild ? Slot : 'div';\n  return React.createElement(Comp, _objectSpread(_objectSpread({}, flexProps), {}, {\n    ref: forwardedRef,\n    className: classNames('rt-Flex', className, withBreakpoints(display, 'rt-r-display'), withBreakpoints(direction, 'rt-r-fd'), withBreakpoints(align, 'rt-r-ai'), withBreakpoints(justify, 'rt-r-jc', {\n      between: 'space-between'\n    }), withBreakpoints(wrap, 'rt-r-fw'), withBreakpoints(gap, 'rt-r-gap'), withLayoutProps(layoutProps), withMarginProps(marginProps))\n  }));\n});\nFlex.displayName = 'Flex';\nexport { Flex };","map":{"version":3,"names":["React","classNames","Slot","flexPropDefs","extractMarginProps","withMarginProps","extractLayoutProps","withLayoutProps","withBreakpoints","Flex","forwardRef","props","forwardedRef","_extractMarginProps","marginRest","rest","marginProps","_objectWithoutProperties","_excluded","_extractLayoutProps","layoutRest","layoutProps","_excluded2","className","asChild","_layoutRest$display","display","default","_layoutRest$direction","direction","_layoutRest$align","align","_layoutRest$justify","justify","_layoutRest$wrap","wrap","_layoutRest$gap","gap","flexProps","_excluded3","Comp","createElement","_objectSpread","ref","between","displayName"],"sources":["../../../src/components/flex.tsx"],"sourcesContent":[null],"mappings":";;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,YAAY,QAAQ,cAAc;AAC3C,SACEC,kBAAkB,EAClBC,eAAe,EACfC,kBAAkB,EAClBC,eAAe,EACfC,eAAe,QACV,YAAY;AAanB,IAAMC,IAAI,GAAGT,KAAK,CAACU,UAAU,CAAyB,UAACC,KAAK,EAAEC,YAAY,EAAI;EAC5E,IAAAC,mBAAA,GAA6CT,kBAAkB,CAACO,KAAK,CAAC;IAAxDG,UAAU,GAAAD,mBAAA,CAAhBE,IAAI;IAAiBC,WAAW,GAAAC,wBAAA,CAAAJ,mBAAA,EAAAK,SAAA;EACxC,IAAAC,mBAAA,GAA6Cb,kBAAkB,CAACQ,UAAU,CAAC;IAA7DM,UAAU,GAA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