import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}export var useCheckboxEventsHandler=function(a,b,c){var d=_objectSpread({},a);return d.onChange=function(){for(var e,f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=g[0],j={component:"Checkbox",event:"change",options:{label:d.label,checked:i,pageURL:window.location.href,DOMRef:c.current,props:d}};return b(j),null===(e=a.onChange)||void 0===e?void 0:e.call.apply(e,[a].concat(g))},d};
//# sourceMappingURL=useCheckboxEventsHandler.js.map