text: 'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var _vue=require('vue'),_vue2=_interopRequireDefault(_vue),_draggabilly=require('draggabilly'),_draggabilly2=_interopRequireDefault(_draggabilly),_vuePackeryPlugin=require('vue-packery-plugin');function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var draggabillyPlugin=function(){};/* eslint-disable brace-style */exports.default=draggabillyPlugin;function recalcFactory(a){return function(){a.draggie.setPosition(a.draggie.position.x,a.draggie.position.y)}}draggabillyPlugin.install=function(a){a.directive('draggabilly',{inserted:function d(a,b){var c=b.value||{};a.draggie=a.draggie||new _draggabilly2.default(a,c),_vuePackeryPlugin.packeryEvents.$emit('draggie',{draggie:a.draggie,node:a.parentNode}),c.disableDraggabilly?a.draggie.disable():a.draggie.enable()},update:function d(a,b){var c=b.value||{};a.recalcFunc&&a.draggie.off('dragMove',a.recalcFunc),c.recalculateOnMove&&(a.recalcFunc=recalcFactory(a),a.draggie.on('dragMove',a.recalcFunc))},unbind:function b(a){a.draggie.destroy(),a.draggie=null}})};
  