import { defineComponent as B, useSlots as v, shallowRef as x, openBlock as g, createBlock as _, normalizeProps as r, guardReactiveProps as s, unref as o, createSlots as p, withCtx as n, createVNode as F, mergeProps as k, renderList as u, renderSlot as f } from "vue";
import { omit as m, pick as N } from "lodash-unified";
import "../../../ap-field/number/index.vue2.mjs";
import { apFormItemSlotNames as c } from "../../constant.mjs";
import "../../item/index.vue2.mjs";
import S from "../../item/index.vue.mjs";
import C from "../../../ap-field/number/index.vue.mjs";
const T = /* @__PURE__ */ B({
  name: "ApFormItemNumber",
  __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: {},
    bordered: { type: Boolean },
    valuePropName: {},
    initialValue: {},
    _signal: {},
    transform: {},
    description: {},
    customFilled: {},
    disabled: { type: Boolean, default: void 0 },
    autoFocus: { type: Boolean },
    field: { default: () => ({}) },
    placeholder: {}
  },
  setup(l, { expose: b }) {
    const h = l, d = v(), a = x();
    return b({
      focus: () => {
        a.value?.focus();
      },
      blur: () => {
        a.value?.blur();
      }
    }), (i, $) => (g(), _(S, r(s(o(m)(h, ["field", "placeholder"]))), p({
      default: n(() => [
        F(C, k({
          ref_key: "inputNumberRef",
          ref: a,
          placeholder: l.placeholder,
          disabled: l.disabled
        }, l.field), p({ _: 2 }, [
          u(o(m)(d, o(c)), (y, e) => ({
            name: e,
            fn: n((t) => [
              f(i.$slots, e, r(s(t || {})))
            ])
          }))
        ]), 1040, ["placeholder", "disabled"])
      ]),
      _: 2
    }, [
      u(o(N)(d, o(c)), (y, e) => ({
        name: e,
        fn: n((t) => [
          f(i.$slots, e, r(s(t || {})))
        ])
      }))
    ]), 1040));
  }
});
export {
  T as default
};
