import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t}from"react/jsx-runtime";import{forwardRef as o,useCallback as n}from"react";import{Checkbox as i}from"@material-ui/core";import{RadioAndCheckboxLabel as a}from"../RadioAndCheckboxLabel/RadioAndCheckboxLabel.js";import c from"../RadioAndCheckboxLabel/RadioAndCheckboxLabel.scss.js";var b=["onChange","indeterminate","labelPlacement","size"];function l(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}var m=o((function(o,m){var p=o.onChange,s=o.indeterminate,f=o.labelPlacement,u=void 0===f?"end":f,d=o.size,h=void 0===d?"medium":d,O=r(o,b),j=n((function(e){return null==p?void 0:p(e.target.checked,e)}),[p]);return t(a,function(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({control:t(i,{className:c.control,indeterminate:s}),onChange:j,ref:m,labelPlacement:u,size:h},O))}));m.displayName="Checkbox";export{m as Checkbox};
//# sourceMappingURL=Checkbox.js.map
