"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.tooltipPositions = exports.asyncStates = void 0;

var _utils = require("@vincent_za/utils");

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 asyncStates = function asyncStates(_ref) {
  var _ref2;

  var isList = _ref.isList;
  return _ref2 = {
    none: []
  }, _defineProperty(_ref2, _utils.IS_INITIAL, isList ? [_utils.SHAPE_ASYNC_STATUS_INITIAL, _utils.SHAPE_ASYNC_STATUS_INITIAL] : _utils.SHAPE_ASYNC_STATUS_INITIAL), _defineProperty(_ref2, _utils.IS_BUSY, isList ? [_utils.SHAPE_ASYNC_STATUS_INITIAL, _utils.SHAPE_ASYNC_STATUS_REQUESTED] : _utils.SHAPE_ASYNC_STATUS_REQUESTED), _defineProperty(_ref2, _utils.IS_SUCCESSFUL, isList ? [_utils.SHAPE_ASYNC_STATUS_INITIAL, _utils.SHAPE_ASYNC_STATUS_SUCCEEDED] : _utils.SHAPE_ASYNC_STATUS_SUCCEEDED), _defineProperty(_ref2, _utils.IS_ERROR, isList ? [_utils.SHAPE_ASYNC_STATUS_INITIAL, (0, _utils.SHAPE_ASYNC_STATUS_FAILED)(undefined, 'error')] : (0, _utils.SHAPE_ASYNC_STATUS_FAILED)(undefined, 'error')), _ref2;
};

exports.asyncStates = asyncStates;
var tooltipPositions = {
  top: 'top',
  right: 'right',
  bottom: 'bottom',
  left: 'left'
};
exports.tooltipPositions = tooltipPositions;