import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t}from"react/jsx-runtime";import{useCallback as o}from"react";import{Radio as n}from"../Radio/Radio.js";import{RadioAndCheckboxGroup as i}from"../RadioAndCheckboxGroup/RadioAndCheckboxGroup.js";var c=["onChange","size","spacing","direction"];function p(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}function a(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var u=function(e,r){return r===e},f=function(e){var p=e.onChange,f=e.size,s=void 0===f?"medium":f,m=e.spacing,b=void 0===m?"normal":m,d=e.direction,l=void 0===d?"vertical":d,O=r(e,c),g=o((function(e){return function(r){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return null==p?void 0:p.apply(void 0,[e].concat(o))}}),[p]);return t(i,a(a({},O),{},{size:s,spacing:b,direction:l,component:n,getOnChangeHandler:g,getOptionChecked:u}))};export{f as RadioGroup};
//# sourceMappingURL=RadioGroup.js.map
