import { defineComponent as u, computed as a, createVNode as d, Fragment as o, openBlock as r, createBlock as i, resolveDynamicComponent as s } from "vue";
import { isNil as h } from "lodash-unified";
const k = /* @__PURE__ */ u({
  name: "ApFieldSwitchRead",
  __name: "read",
  props: {
    mode: {},
    class: {},
    style: {},
    emptyText: {
      default: "--"
    },
    customReadMode: {},
    id: {},
    prefixCls: {},
    size: {
      default: "default"
    },
    disabled: {
      type: Boolean,
      default: void 0
    },
    checkedChildren: {},
    unCheckedChildren: {},
    tabindex: {},
    autofocus: {
      type: Boolean
    },
    loading: {
      type: Boolean,
      default: void 0
    },
    checked: {},
    checkedValue: {
      default: !0
    },
    unCheckedValue: {
      default: !1
    },
    onChange: {},
    onKeydown: {},
    onMouseup: {},
    "onUpdate:checked": {},
    onBlur: {},
    onFocus: {},
    onAction: {},
    confirm: {}
  },
  setup(c) {
    const e = c, t = a(() => {
      const n = e.checked;
      return h(n) ? d(o, null, [e.emptyText]) : n === e.checkedValue ? d(o, null, [e.checkedChildren || `${e.checkedValue}`]) : d(o, null, [e.unCheckedChildren || `${e.unCheckedValue}`]);
    });
    return (n, l) => (r(), i(s(t.value)));
  }
});
export {
  k as default
};
