import { defineComponent as r, useSlots as u, createElementBlock as p, createBlock as i, unref as f, openBlock as d, normalizeClass as V, createVNode as k, createElementVNode as $, mergeProps as n, renderSlot as b } from "vue";
/* empty css                 */
import m from "./PlCheckboxBase.vue.js";
const B = {
  name: "PlCheckbox"
}, v = /* @__PURE__ */ r({
  ...B,
  props: {
    modelValue: { type: Boolean },
    disabled: { type: Boolean },
    indeterminate: { type: Boolean }
  },
  emits: ["update:modelValue"],
  setup(t) {
    const a = t, s = u();
    return (l, e) => f(s).default ? (d(), p("div", {
      key: 0,
      class: V(["pl-checkbox", { disabled: t.disabled }])
    }, [
      k(m, n(a, {
        "onUpdate:modelValue": e[0] || (e[0] = (o) => l.$emit("update:modelValue", o))
      }), null, 16),
      $("label", {
        onClick: e[1] || (e[1] = (o) => l.$emit("update:modelValue", !l.$props.modelValue))
      }, [
        b(l.$slots, "default")
      ])
    ], 2)) : (d(), i(m, n({ key: 1 }, a, {
      "onUpdate:modelValue": e[2] || (e[2] = (o) => l.$emit("update:modelValue", o))
    }), null, 16));
  }
});
export {
  v as default
};
//# sourceMappingURL=PlCheckbox.vue.js.map
