'use strict';

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

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

const skeletonButtonProps = () => {
  return {
    ...Element.skeletonElementProps(),
    size: String,
    block: Boolean
  };
};
const SkeletonButton = /* @__PURE__ */ vue.defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ASkeletonButton",
  props: initDefaultProps.default(skeletonButtonProps(), {
    size: "default"
  }),
  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}-button`
      }), null)]));
    };
  }
});

exports.default = SkeletonButton;
exports.skeletonButtonProps = skeletonButtonProps;
//# sourceMappingURL=Button.js.map
