'use strict';

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

var vue = require('vue');
require('../../../utils/index.cjs');
var useConfigInject = require('../../config-provider/src/hooks/useConfigInject.cjs');
var props = require('./props.cjs');
var props$1 = require('../../../utils/vue/props.cjs');

var ABreadcrumbSeparator = /* @__PURE__ */ vue.defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ABreadcrumbSeparator",
  __ANT_BREADCRUMB_SEPARATOR: true,
  inheritAttrs: false,
  props: props.breadcrumbSeparatorProps(),
  setup(props, {
    slots,
    attrs
  }) {
    const {
      prefixCls
    } = useConfigInject.default("breadcrumb", props);
    return () => {
      var _a;
      const {
        class: className,
        ...restAttrs
      } = attrs;
      const children = props$1.flattenChildren((_a = slots.default) == null ? void 0 : _a.call(slots));
      return vue.createVNode("span", {
        "class": [`${prefixCls.value}-separator`, className],
        ...restAttrs
      }, [children.length > 0 ? children : "/"]);
    };
  }
});

exports.default = ABreadcrumbSeparator;
//# sourceMappingURL=BreadcrumbSeparator.cjs.map
