import { c as classNames } from "./reactSlick.js";
import React__default from "react";
const checkboxGroup = "checkboxGroup _checkboxGroup_decfe";
const checkbox = "checkbox _checkbox_77096";
const checkboxButton = "checkboxButton _checkboxButton_d6972";
const checked = "checked _checked_1a4a1";
const disabled = "disabled _disabled_20f5c";
const labelFirst = "labelFirst _labelFirst_1b19f";
var styles = {
  checkboxGroup,
  checkbox,
  checkboxButton,
  checked,
  disabled,
  labelFirst
};
const Checkbox = (props) => {
  const { className, isChecked, isLabelFirst, isDisabled, label, onChange, dataQa } = props;
  return /* @__PURE__ */ React__default.createElement("label", {
    className: classNames(styles.checkbox, "checkbox", className, isChecked && styles.checked, isLabelFirst && styles.isLabelFirst, isDisabled && styles.isDisabled)
  }, label && isLabelFirst && /* @__PURE__ */ React__default.createElement("span", null, label), /* @__PURE__ */ React__default.createElement("input", {
    type: "checkbox",
    onChange,
    className: classNames(styles.checkboxButton, "checkboxButton mr-2 px-0"),
    disabled: isDisabled,
    "data-qa-id": dataQa
  }), label && !isLabelFirst && /* @__PURE__ */ React__default.createElement("span", null, label));
};
export { Checkbox as C };
