"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.skeletonPropsDescription = exports.skeletonPropTypes = exports.skeletonDefaultProps = exports.propsDescription = exports.defaultProps = exports["default"] = void 0;

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

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

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

var _TooltipCustomIds = _interopRequireDefault(require("./Tooltip.customIds.js"));

var _Tooltip = _interopRequireDefault(require("./Tooltip.constantProps"));

var _skeletonDefaultProps;

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 = {
  container: _propTypes["default"].node,
  arrow: _propTypes["default"].bool
};
exports["default"] = _default;
var defaultProps = {
  placement: _Tooltip["default"].placement.bottom,
  offsetOption: 6
};
exports.defaultProps = defaultProps;

var skeletonPropTypes = _objectSpread(_objectSpread({
  floatingReference: _propTypes["default"].func.isRequired,
  title: _propTypes["default"].string,
  className: _propTypes["default"].string,
  x: _propTypes["default"].number,
  y: _propTypes["default"].number,
  arrowX: _propTypes["default"].number,
  arrowY: _propTypes["default"].number,
  arrowPlacment: _propTypes["default"].string,
  placement: _propTypes["default"].oneOf(Object.values(_Tooltip["default"].placement)),
  offsetOption: _propTypes["default"].number,
  arrow: _propTypes["default"].bool
}, _customClassName["default"]), _automationPropTypes["default"]);

exports.skeletonPropTypes = skeletonPropTypes;
var skeletonDefaultProps = (_skeletonDefaultProps = {}, _defineProperty(_skeletonDefaultProps, _customClassName.customClassPropName, {}), _defineProperty(_skeletonDefaultProps, _automationPropTypes.automationPropsName, _TooltipCustomIds["default"]), _skeletonDefaultProps);
exports.skeletonDefaultProps = skeletonDefaultProps;
var propsDescription = {
  container: "To define tooltip container",
  arrow: "arrow needed in the tooltip"
};
exports.propsDescription = propsDescription;
var skeletonPropsDescription = {
  floatingReference: "To define floating popup reference",
  title: "display title in the floating popup",
  x: "tootip popup x location",
  y: "tootip popup y location",
  arrowX: "arrow x location",
  arrowY: "arrow y location",
  arrow: "arrow needed in the tooltip",
  className: "class name for css customization",
  arrowPlacment: "locate arrow in the tootlip"
};
exports.skeletonPropsDescription = skeletonPropsDescription;