import { radioGroupModelKey as e, radioGroupNameKey as t } from "./keys.js";
import n from "./PlRadio.js";
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, openBlock as d, provide as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, useSlots as v, withCtx as y } from "vue";
var b = /* @__PURE__ */ c({
	__name: "PlRadioGroup",
	props: /* @__PURE__ */ l({
		name: {},
		options: {},
		keyExtractor: { type: Function }
	}, {
		modelValue: {},
		modelModifiers: {}
	}),
	emits: ["update:modelValue"],
	setup(c) {
		let l = _(c, "modelValue"), b = c;
		v();
		let x = b.keyExtractor ?? ((e, t) => t);
		return f(t, b.name), f(e, l), (e, t) => (d(), a("fieldset", { class: u(e.$style.container) }, [
			o("legend", { class: u(e.$style.label) }, [m(e.$slots, "label")], 2),
			(d(!0), a(r, null, p(c.options, (e, t) => (d(), i(n, {
				key: g(x)(e.value, t),
				value: e.value,
				disabled: e.disabled
			}, {
				default: y(() => [s(h(e.label), 1)]),
				_: 2
			}, 1032, ["value", "disabled"]))), 128)),
			m(e.$slots, "default")
		], 2));
	}
});
export { b as default };

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