"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.propsDescription = exports.defaultProps = exports["default"] = void 0;

var _propTypes = _interopRequireDefault(require("prop-types"));

var _Link = _interopRequireDefault(require("./Link.ariaPropTypes"));

var _automation = _interopRequireWildcard(require("../../propTypes/automation.propTypes"));

var _Link2 = _interopRequireDefault(require("./Link.customIds"));

var _customClassName = _interopRequireWildcard(require("../../propTypes/customClassName.propTypes"));

var _htmlAttributes = _interopRequireWildcard(require("../../propTypes/htmlAttributes.propTypes"));

var _Link3 = _interopRequireDefault(require("./Link.constantProps"));

var _defaultProps;

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread({
  target: _propTypes["default"].string,
  // ['_blank','_self','_parent','_top']
  rel: _propTypes["default"].string,
  //['alternate', 'author', 'bookmark', 'canonical', 'dns-prefetch', 'external', 'help', 'icon', 'license', 'manifest', 'modulepreload', 'next', 'nofollow', 'noopener', 'noreferrer', 'opener', 'pingback', 'preconnect', 'prefetch', 'preload', 'as', 'prerender', 'prev', 'search', 'stylesheet', 'tag']
  href: _propTypes["default"].string,
  title: _propTypes["default"].string,
  download: _propTypes["default"].bool,
  children: _propTypes["default"].any,
  text: _propTypes["default"].string,
  textEllipsis: _propTypes["default"].bool,
  wordWrap: _propTypes["default"].bool,
  textDecoration: _propTypes["default"].oneOf([_Link3["default"].textDecoration.overLine, _Link3["default"].textDecoration.lineThrough, _Link3["default"].textDecoration.underLine]),
  color: _propTypes["default"].oneOf([_Link3["default"].colors["default"], _Link3["default"].colors.primary, _Link3["default"].colors.secondary]),
  size: _propTypes["default"].oneOf([_Link3["default"].size.xSmall, _Link3["default"].size.small, _Link3["default"].size.medium, _Link3["default"].size.large, _Link3["default"].size.xLarge, _Link3["default"].size.xxLarge]),
  active: _propTypes["default"].bool,
  visited: _propTypes["default"].bool,
  focused: _propTypes["default"].bool,
  hovered: _propTypes["default"].bool,
  disabled: _propTypes["default"].bool,
  onClick: _propTypes["default"].func,
  hasPreventDefaultBehaviour: _propTypes["default"].bool
}, _automation["default"]), _Link["default"]), _customClassName["default"]), _htmlAttributes["default"]);

exports["default"] = _default;
var defaultProps = (_defaultProps = {
  target: "_blank",
  rel: "no-referrer",
  visited: false,
  active: false,
  color: _Link3["default"].colors.primary,
  size: _Link3["default"].size.medium,
  hasPreventDefaultBehaviour: true
}, _defineProperty(_defaultProps, _automation.automationPropsName, _Link2["default"]), _defineProperty(_defaultProps, _customClassName.customClassPropName, {}), _defineProperty(_defaultProps, _htmlAttributes.tagAttributePropsName, {}), _defaultProps);
exports.defaultProps = defaultProps;
var propsDescription = {
  target: "Specifies where to open the linked document",
  rel: "To used specifies the relationship between the current document and the linked document. Only used if the href attribute is present.",
  href: "Specifies the URL of the page the link goes to",
  title: "To show the title content when hover the anchor tag",
  download: "download the content from the link href",
  underline: "To apply the style as underline format for the element",
  children: "Support the react component as children to render inside of anchor tag",
  text: "To render the content",
  textEllipsis: "To used triple dotted format content as visible if content is very length",
  wordWrap: "To used nexted line wrapping format content as visible if content is very length",
  textDecoration: "To apply the style as underline / lineThrough / overLine format for the element",
  color: "To apply the some styles from the component",
  active: "To apply the highlight style if this element is active",
  visited: "To apply the highlight style if this element once visited",
  focused: "To apply the highlight style if this element once focused",
  hovered: "To apply the highlight style if this element once hovered",
  disabled: "To apply the highlight style if this element once disabled",
  onClick: "Supported the click element for anchor tag",
  hasPreventDefaultBehaviour: "Used to prevent the default behaviour from the anchor tag"
};
exports.propsDescription = propsDescription;