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