import { defineComponent as p, mergeModels as c, useModel as f, createPropsRestProxy as y, inject as n, createElementBlock as M, openBlock as V, normalizeClass as t, withDirectives as v, createElementVNode as s, mergeProps as P, unref as r, isRef as R, vModelRadio as $, renderSlot as b } from "vue";
import { radioGroupNameKey as B, radioGroupModelKey as g } from "./keys.js";
const k = ["name"], G = /* @__PURE__ */ p({
  __name: "PlRadio",
  props: /* @__PURE__ */ c({
    name: {},
    value: {},
    disabled: { type: Boolean }
  }, {
    modelValue: {},
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(o) {
    const d = f(o, "modelValue"), m = y(o, ["name"]), i = n(B, o.name), l = n(g, d);
    return (e, a) => (V(), M("label", {
      class: t(e.$style.container)
    }, [
      v(s("input", P({
        "onUpdate:modelValue": a[0] || (a[0] = (u) => R(l) ? l.value = u : null),
        class: e.$style.input,
        type: "radio",
        name: r(i)
      }, m), null, 16, k), [
        [$, r(l)]
      ]),
      s("span", {
        class: t(e.$style.label)
      }, [
        b(e.$slots, "default")
      ], 2)
    ], 2));
  }
});
export {
  G as default
};
//# sourceMappingURL=PlRadio.vue2.js.map
