'use strict';

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

var vue = require('vue');
require('../../../utils/index.cjs');
var Base = require('./Base.cjs');
var props = require('./props.cjs');
var log = require('../../../utils/log.cjs');

const Link = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis,
    rel,
    ...restProps
  } = {
    ...props,
    ...attrs
  };
  log.devWarning(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 vue.createVNode(Base.default, mergedProps, slots);
};
Link.displayName = "ATypographyLink";
Link.inheritAttrs = false;
Link.props = props.linkProps();

exports.default = Link;
//# sourceMappingURL=Link.cjs.map
