define('ember-toolbars/transitions/move-over', ['exports', 'liquid-fire', 'ember-toolbars/transition-helpers'], function (exports, _liquidFire, _transitionHelpers) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = moveOver;

  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;
  }

  function moveOver(dimension, direction, opts) {
    var _this = this;

    var _propertiesFor = (0, _transitionHelpers.propertiesFor)(dimension),
        property = _propertiesFor.property,
        measure = _propertiesFor.measure;

    return (0, _transitionHelpers.waitForPrevious)(this, 'moving-in').then(function () {
      var bigger = (0, _transitionHelpers.biggestSize)(_this, measure);
      var animateMargin = (0, _transitionHelpers.marginAdjustment)(_this, measure, opts);
      return _liquidFire.Promise.all([animateMargin(), (0, _liquidFire.animate)(_this.oldElement, _defineProperty({}, property, bigger * direction + 'px'), opts), (0, _liquidFire.animate)(_this.newElement, _defineProperty({}, property, ["0px", -1 * bigger * direction + 'px']), opts, 'moving-in')]);
    });
  }
});