{"ast":null,"code":"'use client';\n\nimport _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 = [\"className\", \"style\", \"size\", \"variant\", \"color\", \"highContrast\", \"radius\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport * as SwitchPrimitive from '@radix-ui/react-switch';\nimport { switchPropDefs } from './switch.props';\nimport { extractMarginProps, withMarginProps, withBreakpoints } from '../helpers';\nvar Switch = 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    style = marginRest.style,\n    _marginRest$size = marginRest.size,\n    size = _marginRest$size === void 0 ? switchPropDefs.size.default : _marginRest$size,\n    _marginRest$variant = marginRest.variant,\n    variant = _marginRest$variant === void 0 ? switchPropDefs.variant.default : _marginRest$variant,\n    _marginRest$color = marginRest.color,\n    color = _marginRest$color === void 0 ? switchPropDefs.color.default : _marginRest$color,\n    _marginRest$highContr = marginRest.highContrast,\n    highContrast = _marginRest$highContr === void 0 ? switchPropDefs.highContrast.default : _marginRest$highContr,\n    _marginRest$radius = marginRest.radius,\n    radius = _marginRest$radius === void 0 ? switchPropDefs.radius.default : _marginRest$radius,\n    switchProps = _objectWithoutProperties(marginRest, _excluded2);\n  return React.createElement(\"span\", {\n    \"data-radius\": radius,\n    className: classNames('rt-SwitchRoot', className, withBreakpoints(size, 'rt-r-size'), \"rt-variant-\".concat(variant), {\n      'rt-high-contrast': highContrast\n    }, withMarginProps(marginProps)),\n    style: style\n  }, React.createElement(SwitchPrimitive.Root, _objectSpread(_objectSpread({\n    \"data-accent-color\": color\n  }, switchProps), {}, {\n    ref: forwardedRef,\n    className: \"rt-reset-button rt-SwitchButton\"\n  }), React.createElement(SwitchPrimitive.Thumb, {\n    className: \"rt-SwitchThumb\"\n  })));\n});\nSwitch.displayName = 'Switch';\nexport { Switch };","map":{"version":3,"names":["_objectSpread","_objectWithoutProperties","_excluded","_excluded2","React","classNames","SwitchPrimitive","switchPropDefs","extractMarginProps","withMarginProps","withBreakpoints","Switch","forwardRef","props","forwardedRef","_extractMarginProps","marginRest","rest","marginProps","className","style","_marginRest$size","size","default","_marginRest$variant","variant","_marginRest$color","color","_marginRest$highContr","highContrast","_marginRest$radius","radius","switchProps","createElement","concat","Root","ref","Thumb","displayName"],"sources":["../../../src/components/switch.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAY;;AAAC,OAAAA,aAAA;AAAA,OAAAC,wBAAA;AAAA,IAAAC,SAAA;EAAAC,UAAA;AAEb,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,eAAe,MAAM,wBAAwB;AACzD,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,kBAAkB,EAAEC,eAAe,EAAEC,eAAe,QAAQ,YAAY;AAUjF,IAAMC,MAAM,GAAGP,KAAK,CAACQ,UAAU,CAA6B,UAACC,KAAK,EAAEC,YAAY,EAAI;EAClF,IAAAC,mBAAA,GAA6CP,kBAAkB,CAACK,KAAK,CAAC;IAAxDG,UAAU,GAAAD,mBAAA,CAAhBE,IAAI;IAAiBC,WAAW,GAAAjB,wBAAA,CAAAc,mBAAA,EAAAb,SAAA;EACxC,IACEiB,SAAS,GAQPH,UAAU,CARZG,SAAS;IACTC,KAAK,GAOHJ,UAAU,CAPZI,KAAK;IAAAC,gBAAA,GAOHL,UAAU,CANZM,IAAI;IAAJA,IAAI,GAAAD,gBAAA,cAAGd,cAAc,CAACe,IAAI,CAACC,OAAO,GAAAF,gBAAA;IAAAG,mBAAA,GAMhCR,UAAU,CALZS,OAAO;IAAPA,OAAO,GAAAD,mBAAA,cAAGjB,cAAc,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