(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".pl-checkbox{--color-label: var(--color-text);--cursor-label: pointer;display:flex;align-items:center;gap:8px}.pl-checkbox.disabled{--color-label: var(--color-dis-01);--cursor-label: default;pointer-events:none}.pl-checkbox>label{-webkit-user-select:none;user-select:none;color:var(--color-label);cursor:var(--cursor-label);font-size:14px;font-weight:500;display:inline-flex;align-items:center}")),document.head.appendChild(e)}}catch(l){console.error("vite-plugin-css-injected-by-js",l)}})();
import { defineComponent as p, useSlots as r, createElementBlock as u, createBlock as i, unref as f, openBlock as a, normalizeClass as V, createVNode as k, createElementVNode as $, mergeProps as d, renderSlot as b } from "vue";

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