import l from "classnames";
import t from "react";
import e from "./accelbyte-widgets521.mjs";
const k = (o) => {
  const { className: n, isChecked: r, isLabelFirst: s, isDisabled: c, label: a, onChange: i, dataQa: m, isBgSlate: b } = o;
  return /* @__PURE__ */ t.createElement(
    "label",
    {
      className: l(
        e.checkbox,
        "checkbox",
        n,
        r && e.checked,
        s && e.isLabelFirst,
        c && e.disabled,
        b && e.slate
      )
    },
    a && s && /* @__PURE__ */ t.createElement("span", null, a),
    /* @__PURE__ */ t.createElement(
      "input",
      {
        type: "checkbox",
        onChange: i,
        className: l(e.checkboxButton, "checkboxButton mr-2 px-0"),
        disabled: c,
        "data-qa-id": m
      }
    ),
    a && !s && /* @__PURE__ */ t.createElement("span", null, a)
  );
};
export {
  k as Checkbox
};
