"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),i=require("react"),o=require("../Radio/Radio.js"),n=require("../RadioAndCheckboxGroup/RadioAndCheckboxGroup.js"),t=function(e,r){return r===e};exports.RadioGroup=function(a){var d=a.onChange,s=a.size,u=void 0===s?"medium":s,c=a.spacing,p=void 0===c?"normal":c,l=a.direction,g=void 0===l?"vertical":l,v=e.__rest(a,["onChange","size","spacing","direction"]),_=i.useCallback((function(r){return function(i){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return null==d?void 0:d.apply(void 0,e.__spreadArray([r],o,!1))}}),[d]);return r.jsx(n.RadioAndCheckboxGroup,e.__assign({},v,{size:u,spacing:p,direction:g,component:o.Radio,getOnChangeHandler:_,getOptionChecked:t}))};
