"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),a=require("react"),i=require("@material-ui/core"),n=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.js"),o=require("../RadioAndCheckboxLabel/RadioAndCheckboxLabel.scss.js"),t=a.forwardRef((function(t,l){var s=t.onChange,c=t.indeterminate,d=t.labelPlacement,b=void 0===d?"end":d,u=t.size,m=void 0===u?"medium":u,x=e.__rest(t,["onChange","indeterminate","labelPlacement","size"]),h=a.useCallback((function(e){return null==s?void 0:s(e.target.checked,e)}),[s]);return r.jsx(n.RadioAndCheckboxLabel,e.__assign({control:r.jsx(i.Checkbox,{className:o.control,indeterminate:c}),onChange:h,ref:l,labelPlacement:b,size:m},x))}));exports.Checkbox=t;
