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