{"ast":null,"code":"import _objectSpread from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/objectSpread2.js\";\nimport _objectWithoutProperties from \"C:/Users/user/Desktop/04portreact/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\";\nvar _excluded = [\"rest\"],\n  _excluded2 = [\"className\", \"size\", \"variant\", \"weight\", \"color\", \"highContrast\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { codePropDefs } from './code.props';\nimport { extractMarginProps, withMarginProps, withBreakpoints } from '../helpers';\nvar Code = React.forwardRef(function (props, forwardedRef) {\n  var _extractMarginProps = extractMarginProps(props),\n    marginRest = _extractMarginProps.rest,\n    marginProps = _objectWithoutProperties(_extractMarginProps, _excluded);\n  var className = marginRest.className,\n    _marginRest$size = marginRest.size,\n    size = _marginRest$size === void 0 ? codePropDefs.size.default : _marginRest$size,\n    _marginRest$variant = marginRest.variant,\n    variant = _marginRest$variant === void 0 ? codePropDefs.variant.default : _marginRest$variant,\n    _marginRest$weight = marginRest.weight,\n    weight = _marginRest$weight === void 0 ? codePropDefs.weight.default : _marginRest$weight,\n    _marginRest$color = marginRest.color,\n    color = _marginRest$color === void 0 ? codePropDefs.color.default : _marginRest$color,\n    _marginRest$highContr = marginRest.highContrast,\n    highContrast = _marginRest$highContr === void 0 ? codePropDefs.highContrast.default : _marginRest$highContr,\n    codeProps = _objectWithoutProperties(marginRest, _excluded2);\n  return React.createElement(\"code\", _objectSpread(_objectSpread({\n    \"data-accent-color\": color\n  }, codeProps), {}, {\n    ref: forwardedRef,\n    className: classNames('rt-Code', className, withBreakpoints(size, 'rt-r-size'), \"rt-variant-\".concat(variant), withBreakpoints(weight, 'rt-r-weight'), {\n      'rt-high-contrast': highContrast\n    }, withMarginProps(marginProps))\n  }));\n});\nCode.displayName = 'Code';\nexport { Code };","map":{"version":3,"names":["React","classNames","codePropDefs","extractMarginProps","withMarginProps","withBreakpoints","Code","forwardRef","props","forwardedRef","_extractMarginProps","marginRest","rest","marginProps","_objectWithoutProperties","_excluded","className","_marginRest$size","size","default","_marginRest$variant","variant","_marginRest$weight","weight","_marginRest$color","color","_marginRest$highContr","highContrast","codeProps","_excluded2","createElement","_objectSpread","ref","concat","displayName"],"sources":["../../../src/components/code.tsx"],"sourcesContent":[null],"mappings":";;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,YAAY,QAAQ,cAAc;AAC3C,SAASC,kBAAkB,EAAEC,eAAe,EAAEC,eAAe,QAAQ,YAAY;AAOjF,IAAMC,IAAI,GAAGN,KAAK,CAACO,UAAU,CAAyB,UAACC,KAAK,EAAEC,YAAY,EAAI;EAC5E,IAAAC,mBAAA,GAA6CP,kBAAkB,CAACK,KAAK,CAAC;IAAxDG,UAAU,GAAAD,mBAAA,CAAhBE,IAAI;IAAiBC,WAAW,GAAAC,wBAAA,CAAAJ,mBAAA,EAAAK,SAAA;EACxC,IACEC,SAAS,GAOPL,UAAU,CAPZK,SAAS;IAAAC,gBAAA,GAOPN,UAAU,CANZO,IAAI;IAAJA,IAAI,GAAAD,gBAAA,cAAGf,YAAY,CAACgB,IAAI,CAACC,OAAO,GAAAF,gBAAA;IAAAG,mBAAA,GAM9BT,UAAU,CALZU,OAAO;IAAPA,OAAO,GAAAD,mBAAA,cAAGlB,YAAY,CAACmB,OAAO,CAACF,OAAO,GAAAC,mBAAA;IAAAE,kBAAA,GAKpCX,UAAU,CAJZY,MAAM;IAANA,MAAM,GAAAD,kBAAA,cAAGpB,YAAY,CAACqB,MAAM,CAACJ,OAAO,GAAAG,kBAAA;IAAAE,iBAAA,GAIlCb,UAAU,CAHZc,KAAK;IAALA,KAAK,GAAAD,iBAAA,cAAGtB,YAAY,CAACuB,KAAK,CAACN,OAAO,GAAAK,iBAAA;IAAAE,qBAAA,GAGhCf,UAAU,CAFZgB,YAAY;IAAZA,YAAY,GAAAD,qBAAA,cAAGxB,YAAY,CAACyB,YAAY,CAAC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