"use strict";const _=require("classnames"),s=require("react"),r="checkboxGroup _checkboxGroup_7e6fa",h="checkbox _checkbox_101b6",k="checkboxButton _checkboxButton_84fc7",x="checked _checked_fa7db",u="disabled _disabled_9037e",m="labelFirst _labelFirst_76309",p="slate _slate_d1f4a",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;
