import { defineComponent as p, computed as i, toDisplayString as r } from "vue";
import { isNil as s } from "lodash-unified";
import { getOptionValue as d, getOptionLabel as u } from "./helper.mjs";
const y = /* @__PURE__ */ p({
  name: "ApFieldRadioRead",
  __name: "read",
  props: {
    mode: { default: "edit" },
    class: {},
    style: {},
    emptyText: { default: "--" },
    customReadMode: {},
    prefixCls: {},
    value: {},
    size: {},
    options: {},
    disabled: { type: Boolean, default: void 0 },
    name: {},
    buttonStyle: {},
    id: {},
    block: { type: Boolean },
    optionType: {},
    onChange: {},
    "onUpdate:value": {},
    vertical: { type: Boolean, default: !1 },
    request: {}
  },
  setup(a) {
    const e = a, n = i(() => {
      const t = e.value;
      if (s(t))
        return e.emptyText;
      const o = e.options?.find(
        (l) => t === d(l)
      );
      return u(o) || e.emptyText;
    });
    return (t, o) => r(n.value);
  }
});
export {
  y as default
};
