import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t}from"react/jsx-runtime";import{forwardRef as o,useCallback as n}from"react";import{Radio as i}from"@material-ui/core";import{RadioAndCheckboxLabel as c}from"../RadioAndCheckboxLabel/RadioAndCheckboxLabel.js";import a from"../RadioAndCheckboxLabel/RadioAndCheckboxLabel.scss.js";var l=["onChange","labelPlacement","size"];function b(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 m=o((function(o,m){var p=o.onChange,s=o.labelPlacement,f=void 0===s?"end":s,u=o.size,d=void 0===u?"medium":u,O=r(o,l),h=n((function(e){return null==p?void 0:p(e.target.checked,e)}),[p]);return t(c,function(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?b(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({control:t(i,{className:a.control}),onChange:h,ref:m,labelPlacement:f,size:d},O))}));export{m as Radio};
//# sourceMappingURL=Radio.js.map
