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