import { defineComponent, useSlots, computed, mergeProps, unref, withCtx, createVNode, renderSlot, createCommentVNode, openBlock, createBlock, useSSRContext } from 'vue'; import { ssrRenderComponent, ssrRenderClass, ssrRenderSlot } from 'vue/server-renderer'; import { b as baseButtonIconSize, B as BasicIconOld, u as usePrefix } from './BasicIconOld-Booq7UXp.mjs'; import { M as Button } from './server.mjs'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "BasicButtonOld", __ssrInlineRender: true, props: { icon: {}, iconSize: { default: baseButtonIconSize }, iconClass: { default: "" }, suffixIcon: { type: Boolean }, type: {}, size: {}, loading: { type: Boolean } }, setup(__props) { const slot = useSlots(); const _class = computed(() => { if (!slot.default) { return "!px-1 !py-1"; } return ""; }); const _loading = computed(() => { if (props.loading) { return "flex"; } else return "unset"; }); const { prefixCls } = usePrefix("main-button"); const props = __props; return (_ctx, _push, _parent, _attrs) => { const _component_AButton = Button; const _cssVars = { style: { "--4c652d46": _loading.value } }; _push(ssrRenderComponent(_component_AButton, mergeProps({ type: props.type, size: props.size, class: [unref(prefixCls), _class.value], loading: props.loading }, _attrs, _cssVars), { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`