"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),t=require("react"),l=require("@material-ui/core"),r=require("classnames"),s=require("./RadioAndCheckboxLabel.scss.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(r),d={medium:s.medium,small:s.small},i={end:s.placementEnd,start:s.placementStart,top:s.placementTop,bottom:s.placementBottom},c=t.forwardRef((function(t,r){var o=t.control,c=t.testId,m=t.className,u=t.inputRef,b=t.checked,f=void 0!==b&&b,p=t.label,h=t.onChange,v=t.disabled,j=t.labelPlacement,x=void 0===j?"end":j,_=t.size,q=void 0===_?"medium":_,C=e.__rest(t,["control","testId","className","inputRef","checked","label","onChange","disabled","labelPlacement","size"]);return a.jsx("div",{className:n.default(s.root,i[x],d[q],m),children:a.jsx(l.FormControlLabel,e.__assign({ref:r,control:o,className:s.label,"data-testid":c,inputRef:u,checked:f,onChange:h,disabled:v,label:p,labelPlacement:x},C))})}));exports.RadioAndCheckboxLabel=c;
