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

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

  exports.default = function (dimension, opts) {
    if (this.newElement) {
      if (opts && opts.adjust) {
        var _propertiesFor = (0, _transitionHelpers.propertiesFor)(dimension),
            measure = _propertiesFor.measure;

        var size = parseInt(this.newElement.css(measure), 10);
        opts.adjust.forEach(function (_ref) {
          var element = _ref.element,
              property = _ref.property;

          (0, _liquidFire.animate)(element, _defineProperty({}, property, size + 'px'), { duration: 0, queue: false });
        });
      }
      this.newElement.css({ visibility: '' });
    }
  };

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