'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var classNames = require('../_util/classNames.js');
require('../hooks/index.js');
var omit = require('../_util/omit.js');
var Element = require('./Element.js');
var index = require('./style/index.js');
var useConfigInject = require('../config-provider/hooks/useConfigInject.js');

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

exports.default = SkeletonInput;
//# sourceMappingURL=Input.js.map
