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