"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"),n=require("react"),o=require("../Radio/Radio.js"),i=require("../RadioAndCheckboxGroup/RadioAndCheckboxGroup.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),a=c(r),p=["onChange","size","spacing","direction"];function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){u.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var l=function(e,r){return r===e};exports.RadioGroup=function(e){var r=e.onChange,c=e.size,u=void 0===c?"medium":c,d=e.spacing,b=void 0===d?"normal":d,f=e.direction,O=void 0===f?"vertical":f,j=a.default(e,p),g=n.useCallback((function(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return null==r?void 0:r.apply(void 0,[e].concat(o))}}),[r]);return t.jsx(i.RadioAndCheckboxGroup,s(s({},j),{},{size:u,spacing:b,direction:O,component:o.Radio,getOnChangeHandler:g,getOptionChecked:l}))};
//# sourceMappingURL=RadioGroup.js.map
