import { XBubble } from "./Bubble.js";
import { createVNode, defineComponent, isVNode, mergeProps, ref } from "vue";
import { Divider } from "antdv-next";
//#region components/bubble/Divider.tsx
function _isSlot(s) {
	return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
}
var XBubbleDivider = /* @__PURE__ */ defineComponent({
	name: "AxBubbleDivider",
	props: {
		prefixCls: {
			type: String,
			default: "antd-bubble"
		},
		content: {
			type: [
				String,
				Number,
				Object,
				Array
			],
			default: ""
		},
		rootClass: {
			type: String,
			default: ""
		},
		style: {
			type: [
				String,
				Object,
				Array
			],
			default: void 0
		},
		class: {
			type: [
				String,
				Array,
				Object
			],
			default: void 0
		},
		styles: {
			type: Object,
			default: () => ({})
		},
		classes: {
			type: Object,
			default: () => ({})
		},
		dividerProps: {
			type: Object,
			default: () => ({})
		}
	},
	setup(props, { expose, attrs }) {
		const bubbleRef = ref();
		expose({ get nativeElement() {
			return bubbleRef.value?.nativeElement;
		} });
		return () => createVNode(XBubble, mergeProps({ "ref": bubbleRef }, attrs, {
			"prefixCls": props.prefixCls,
			"content": props.content,
			"variant": "borderless",
			"rootClass": props.rootClass,
			"style": props.style,
			"class": [`${props.prefixCls}-divider`, props.class],
			"styles": props.styles,
			"classes": props.classes
		}), { content: ({ content }) => createVNode(Divider, props.dividerProps, _isSlot(content) ? content : { default: () => [content] }) });
	}
});
//#endregion
export { XBubbleDivider, XBubbleDivider as default };
