import { createVNode } from 'vue';
import warning from '../_util/warning.mjs';
import omit from '../_util/omit.mjs';
import Base, { baseProps } from './Base.mjs';

const linkProps = () => omit({
  ...baseProps(),
  ellipsis: {
    type: Boolean,
    default: void 0
  }
}, ["component"]);
const Link = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis,
    rel,
    ...restProps
  } = {
    ...props,
    ...attrs
  };
  warning(typeof ellipsis !== "object", "Typography.Link", "`ellipsis` only supports boolean value.");
  const mergedProps = {
    ...restProps,
    rel: rel === void 0 && restProps.target === "_blank" ? "noopener noreferrer" : rel,
    ellipsis: !!ellipsis,
    component: "a"
  };
  delete mergedProps.navigate;
  return createVNode(Base, mergedProps, slots);
};
Link.displayName = "ATypographyLink";
Link.inheritAttrs = false;
Link.props = linkProps();

export { Link as default, linkProps };
//# sourceMappingURL=Link.mjs.map
