import { defineComponent as m, ref as c, useSlots as x, openBlock as b, createBlock as y, normalizeProps as a, guardReactiveProps as r, unref as o, createSlots as B, withCtx as s, createVNode as h, mergeProps as v, renderList as _, renderSlot as g } from "vue";
import { omit as i } from "lodash-unified";
import "../../../ap-field/index.mjs";
import "../../item/index.vue2.mjs";
import k from "../../item/index.vue.mjs";
import C from "../../../ap-field/checkbox/index.vue.mjs";
const A = /* @__PURE__ */ m({
  name: "ApFormItemCheckbox",
  __name: "index",
  props: {
    htmlFor: {},
    prefixCls: {},
    label: {},
    help: {},
    extra: {},
    labelCol: {},
    wrapperCol: {},
    hasFeedback: { type: Boolean, default: !1 },
    colon: { type: Boolean, default: void 0 },
    labelAlign: {},
    prop: {},
    name: {},
    rules: {},
    autoLink: { type: Boolean, default: !0 },
    required: { type: Boolean, default: void 0 },
    validateFirst: { type: Boolean, default: void 0 },
    validateStatus: {},
    validateTrigger: {},
    messageVariables: {},
    hidden: { type: Boolean },
    noStyle: { type: Boolean },
    tooltip: {},
    span: {},
    order: {},
    offset: {},
    push: {},
    pull: {},
    xs: {},
    sm: {},
    md: {},
    lg: {},
    xl: {},
    xxl: {},
    flex: {},
    valuePropName: {},
    initialValue: {},
    _signal: {},
    transform: {},
    description: {},
    customFilled: {},
    disabled: { type: Boolean, default: void 0 },
    autoFocus: { type: Boolean },
    field: { default: () => ({}) }
  },
  setup(e, { expose: n }) {
    const d = e, l = c(), p = x();
    return n({
      request: () => l.value?.request()
    }), (f, F) => (b(), y(k, a(r(o(i)(d, ["field"]))), B({
      default: s(() => [
        h(o(C), v({
          ref_key: "checkboxRef",
          ref: l,
          disabled: e.disabled
        }, e.field), null, 16, ["disabled"])
      ]),
      _: 2
    }, [
      _(o(i)(p, "default"), (S, t) => ({
        name: t,
        fn: s((u) => [
          g(f.$slots, t, a(r(u || {})))
        ])
      }))
    ]), 1040));
  }
});
export {
  A as default
};
