'use strict';

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

var vue = require('vue');
var warning = require('../_util/warning.js');
var omit = require('../_util/omit.js');
var Base = require('./Base.js');

const linkProps = () => omit.default({
  ...Base.baseProps(),
  ellipsis: {
    type: Boolean,
    default: void 0
  }
}, ["component"]);
const Link = (props, {
  slots,
  attrs
}) => {
  const {
    ellipsis,
    rel,
    ...restProps
  } = {
    ...props,
    ...attrs
  };
  warning.default(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 = linkProps();

exports.default = Link;
exports.linkProps = linkProps;
//# sourceMappingURL=Link.js.map
