import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as r}from"react/jsx-runtime";import{forwardRef as o}from"react";import{FormControlLabel as n}from"@material-ui/core";import a from"classnames";import c from"./RadioAndCheckboxLabel.scss.js";var l=["control","testId","className","inputRef","checked","label","onChange","disabled","labelPlacement","size"];function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function m(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?i(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var s={medium:c.medium,small:c.small},p={end:c.placementEnd,start:c.placementStart,top:c.placementTop,bottom:c.placementBottom},b=o((function(e,o){var i=e.control,b=e.testId,d=e.className,f=e.inputRef,u=e.checked,O=void 0!==u&&u,h=e.label,j=e.onChange,P=e.disabled,y=e.labelPlacement,v=void 0===y?"end":y,g=e.size,w=void 0===g?"medium":g,k=t(e,l);return r("div",{className:a(c.root,p[v],s[w],d),children:r(n,m({ref:o,control:i,className:c.label,"data-testid":b,inputRef:f,checked:O,onChange:j,disabled:P,label:h,labelPlacement:v},k))})}));export{b as RadioAndCheckboxLabel};
//# sourceMappingURL=RadioAndCheckboxLabel.js.map
