"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),n=require("react"),o=require("@material-ui/core"),i=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.js"),a=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.scss.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),u=c(r),b=["onChange","indeterminate","labelPlacement","size"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}var d=n.forwardRef((function(e,r){var c=e.onChange,d=e.indeterminate,f=e.labelPlacement,p=void 0===f?"end":f,h=e.size,j=void 0===h?"medium":h,O=u.default(e,b),m=n.useCallback((function(e){return null==c?void 0:c(e.target.checked,e)}),[c]);return t.jsx(i.RadioAndCheckboxLabel,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({control:t.jsx(o.Checkbox,{className:a.control,indeterminate:d}),onChange:m,ref:r,labelPlacement:p,size:j},O))}));d.displayName="Checkbox",exports.Checkbox=d;
//# sourceMappingURL=Checkbox.js.map
