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