import { defineComponent, computed, createVNode, mergeProps } from 'vue';
import classNames from '../_util/classNames.mjs';
import '../hooks/index.mjs';
import omit from '../_util/omit.mjs';
import Element, { skeletonElementProps } from './Element.mjs';
import useStyle from './style/index.mjs';
import useConfigInject from '../config-provider/hooks/useConfigInject.mjs';

const SkeletonInput = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ASkeletonInput",
  props: {
    ...omit(skeletonElementProps(), ["shape"]),
    size: String,
    block: Boolean
  },
  setup(props) {
    const {
      prefixCls
    } = useConfigInject("skeleton", props);
    const [wrapSSR, hashId] = useStyle(prefixCls);
    const cls = computed(() => classNames(prefixCls.value, `${prefixCls.value}-element`, {
      [`${prefixCls.value}-active`]: props.active,
      [`${prefixCls.value}-block`]: props.block
    }, hashId.value));
    return () => {
      return wrapSSR(createVNode("div", {
        "class": cls.value
      }, [createVNode(Element, mergeProps(props, {
        "prefixCls": `${prefixCls.value}-input`
      }), null)]));
    };
  }
});

export { SkeletonInput as default };
//# sourceMappingURL=Input.mjs.map
