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

//# sourceMappingURL=PlRadio.vue2.js.map