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