import _ from "classnames";
import a from "react";
const r = "checkboxGroup _checkboxGroup_7e6fa", h = "checkbox _checkbox_101b6", k = "checkboxButton _checkboxButton_84fc7", m = "checked _checked_fa7db", x = "disabled _disabled_9037e", u = "labelFirst _labelFirst_76309", p = "slate _slate_d1f4a", e = {
  checkboxGroup: r,
  checkbox: h,
  checkboxButton: k,
  checked: m,
  disabled: x,
  labelFirst: u,
  slate: p
}, B = (l) => {
  const { className: o, isChecked: d, isLabelFirst: s, isDisabled: t, label: c, onChange: i, dataQa: b, isBgSlate: n } = l;
  return /* @__PURE__ */ a.createElement(
    "label",
    {
      className: _(
        e.checkbox,
        "checkbox",
        o,
        d && e.checked,
        s && e.isLabelFirst,
        t && e.disabled,
        n && 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": b
      }
    ),
    c && !s && /* @__PURE__ */ a.createElement("span", null, c)
  );
};
export {
  B as C
};
