"use strict";

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

var _focus = require("../../../mixins/focus");

var getBoxShadow = function getBoxShadow(props) {
  var themeProps = {
    theme: props.theme
  };

  if (props.isDarkMode) {
    return "".concat((0, _focus.darkModeBoxShadow)(themeProps));
  } // eslint-disable-next-line no-extra-boolean-cast


  if (!!props.insetFocus) {
    return "".concat((0, _focus.focusedBoxShadow)(themeProps), ", ").concat((0, _focus.focusedBorderShadow)({
      inset: true
    }), " ").concat((0, _focus.focusedBorderColor)(themeProps));
  }

  return "".concat((0, _focus.focusedBorderShadow)({
    inset: false
  }), " ").concat((0, _focus.focusedBorderColor)(themeProps), ", ").concat((0, _focus.focusedBoxShadow)(themeProps));
};

exports.getBoxShadow = getBoxShadow;

var getFocusState = function getFocusState(_ref) {
  var _ref$hasTransition = _ref.hasTransition,
      hasTransition = _ref$hasTransition === void 0 ? true : _ref$hasTransition;
  return hasTransition ? (0, _focus.getBaseFocusState)({}) : (0, _focus.getBaseFocusState)({
    baseTransition: false,
    hoverTransition: false
  });
};

exports.getFocusState = getFocusState;