"use strict";const _=require("classnames"),s=require("react"),r="checkboxGroup _checkboxGroup_42c90",h="checkbox _checkbox_1d2b3",k="checkboxButton _checkboxButton_8a956",x="checked _checked_f33ac",u="disabled _disabled_d7a19",m="labelFirst _labelFirst_a01e4",p="slate _slate_898a6",e={checkboxGroup:r,checkbox:h,checkboxButton:k,checked:x,disabled:u,labelFirst:m,slate:p},v=l=>{const{className:o,isChecked:d,isLabelFirst:a,isDisabled:t,label:c,onChange:i,dataQa:n,isBgSlate:b}=l;return s.createElement("label",{className:_(e.checkbox,"checkbox",o,d&&e.checked,a&&e.isLabelFirst,t&&e.disabled,b&&e.slate)},c&&a&&s.createElement("span",null,c),s.createElement("input",{type:"checkbox",onChange:i,className:_(e.checkboxButton,"checkboxButton mr-2 px-0"),disabled:t,"data-qa-id":n}),c&&!a&&s.createElement("span",null,c))};exports.Checkbox=v;
