import { __assign as o } from "../../../../../tslib/tslib.es6.es.js";
import { isKeyframesTarget as f } from "./is-keyframes-target.es.js";
var e = function() {
  return {
    type: "spring",
    stiffness: 500,
    damping: 25,
    restSpeed: 10
  };
}, t = function(r) {
  return {
    type: "spring",
    stiffness: 550,
    damping: r === 0 ? 2 * Math.sqrt(550) : 30,
    restSpeed: 10
  };
}, i = function() {
  return {
    type: "keyframes",
    ease: "linear",
    duration: 0.3
  };
}, u = function(r) {
  return {
    type: "keyframes",
    duration: 0.8,
    values: r
  };
}, s = {
  x: e,
  y: e,
  z: e,
  rotate: e,
  rotateX: e,
  rotateY: e,
  rotateZ: e,
  scaleX: t,
  scaleY: t,
  scale: t,
  opacity: i,
  backgroundColor: i,
  color: i,
  default: t
}, c = function(r, a) {
  var n;
  return f(a) ? n = u : n = s[r] || s.default, o({ to: a }, n(a));
};
export {
  t as criticallyDampedSpring,
  c as getDefaultTransition,
  i as linearTween,
  e as underDampedSpring
};
//# sourceMappingURL=default-transitions.es.js.map
