import { c as classNames } from "./reactSlick.js";
import React__default from "react";
const checkboxGroup = "checkboxGroup _checkboxGroup_48e41";
const checkbox = "checkbox _checkbox_ddcf4";
const checkboxButton = "checkboxButton _checkboxButton_1bead";
const checked = "checked _checked_69dab";
const disabled = "disabled _disabled_9dec6";
const labelFirst = "labelFirst _labelFirst_7289a";
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 };
