"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),o=require("react"),n=require("@material-ui/core"),a=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.js"),i=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.scss.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),u=c(r),b=["onChange","labelPlacement","size"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var d=o.forwardRef((function(e,r){var c=e.onChange,d=e.labelPlacement,f=void 0===d?"end":d,p=e.size,j=void 0===p?"medium":p,O=u.default(e,b),h=o.useCallback((function(e){return null==c?void 0:c(e.target.checked,e)}),[c]);return t.jsx(a.RadioAndCheckboxLabel,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({control:t.jsx(n.Radio,{className:i.control}),onChange:h,ref:r,labelPlacement:f,size:j},O))}));exports.Radio=d;
//# sourceMappingURL=Radio.js.map
