react-dnd-html5-backend
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReactDnDHTML5Backend=e():t.ReactDnDHTML5Backend=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return new u["default"](t)}e.__esModule=!0,e["default"]=i;var a=r(28),u=o(a),s=r(32),c=o(s),f=r(7),p=n(f);e.NativeTypes=p,e.getEmptyImage=c["default"]},function(t,e){function r(t){var e=typeof t;return"number"==e||"boolean"==e||"string"==e&&"__proto__"!==t||null==t}t.exports=r},function(t,e,r){var n=r(8),o=r(9),i=n(o,"Map");t.exports=i},function(t,e,r){function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(5);t.exports=n},function(t,e,r){var n=r(8),o=n(Object,"create");t.exports=o},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e,r){function n(t,e){if("function"!=typeof t)throw new TypeError(a);return e=u(void 0===e?t.length-1:i(e),0),function(){for(var r=arguments,n=-1,i=u(r.length-e,0),a=Array(i);++n<i;)a[n]=r[e+n];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,r[0],a);case 2:return t.call(this,r[0],r[1],a)}var s=Array(e+1);for(n=-1;++n<e;)s[n]=r[n];return s[e]=a,o(t,this,s)}}var o=r(18),i=r(81),a="Expected a function",u=Math.max;t.exports=n},function(t,e){"use strict";e.__esModule=!0;var r="__NATIVE_FILE__";e.FILE=r;var n="__NATIVE_URL__";e.URL=n;var o="__NATIVE_TEXT__";e.TEXT=o},function(t,e,r){function n(t,e){var r=null==t?void 0:t[e];return o(r)?r:void 0}var o=r(76);t.exports=n},function(t,e,r){(function(t,n){var o=r(54),i={"function":!0,object:!0},a=i[typeof e]&&e&&!e.nodeType?e:null,u=i[typeof t]&&t&&!t.nodeType?t:null,s=o(a&&u&&"object"==typeof n&&n),c=o(i[typeof self]&&self),f=o(i[typeof window]&&window),p=o(i[typeof this]&&this),d=s||f!==(p&&p.window)&&f||c||p||Function("return this")();t.exports=d}).call(e,r(85)(t),function(){return this}())},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){function n(t){return i(t)&&o(t)}var o=r(25),i=r(14);t.exports=n},function(t,e,r){function n(t){var e=o(t)?s.call(t):"";return e==i||e==a}var o=r(13),i="[object Function]",a="[object GeneratorFunction]",u=Object.prototype,s=u.toString;t.exports=n},function(t,e){function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=r},function(t,e){function r(t){return!!t&&"object"==typeof t}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=r(79),i=n(o),a=i["default"](function(){return/firefox/i.test(navigator.userAgent)});e.isFirefox=a;var u=i["default"](function(){return Boolean(window.safari)});e.isSafari=u},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(68),i=r(69),a=r(70),u=r(71),s=r(72);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=s,t.exports=n},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.__data__=new o;++e<r;)this.push(t[e])}var o=r(16),i=r(53);n.prototype.push=i,t.exports=n},function(t,e){function r(t,e,r){var n=r.length;switch(n){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}t.exports=r},function(t,e,r){function n(t,e){return!!t.length&&o(t,e,0)>-1}var o=r(47);t.exports=n},function(t,e){function r(t,e,r){for(var n=-1,o=t.length;++n<o;)if(r(e,t[n]))return!0;return!1}t.exports=r},function(t,e,r){function n(t,e){var r=t.__data__;if(o(e)){var n=r.__data__,a="string"==typeof e?n.string:n.hash;return a[e]===i}return r.has(e)}var o=r(1),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t,e){return o?void 0!==t[e]:a.call(t,e)}var o=r(4),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e){function r(t,e){return t="number"==typeof t||o.test(t)?+t:-1,e=null==e?n:e,t>-1&&t%1==0&&e>t}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e,r){function n(t){return o(t)&&u.call(t,"callee")&&(!c.call(t,"callee")||s.call(t)==i)}var o=r(11),i="[object Arguments]",a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=a.propertyIsEnumerable;t.exports=n},function(t,e,r){function n(t){return null!=t&&!("function"==typeof t&&i(t))&&a(o(t))}var o=r(58),i=r(12),a=r(26);t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&n>=t}var n=9007199254740991;t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=r(83),a=n(i),u=r(84),s=n(u),c=function(){function t(){o(this,t),this.entered=[]}return t.prototype.enter=function(t){var e=this.entered.length;return this.entered=a["default"](this.entered.filter(function(e){return document.documentElement.contains(e)&&(!e.contains||e.contains(t))}),[t]),0===e&&this.entered.length>0},t.prototype.leave=function(t){var e=this.entered.length;return this.entered=s["default"](this.entered.filter(function(t){return document.documentElement.contains(t)}),t),e>0&&0===this.entered.length},t.prototype.reset=function(){this.entered=[]},t}();e["default"]=c,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=r(75),u=o(a),s=r(33),c=o(s),f=r(27),p=o(f),d=r(15),h=r(31),l=r(30),v=r(7),g=n(v),y=function(){function t(e){i(this,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new p["default"],this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this)}return t.prototype.setup=function(){if("undefined"!=typeof window){if(this.constructor.isSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.constructor.isSetUp=!0,this.addEventListeners(window)}},t.prototype.teardown=function(){"undefined"!=typeof window&&(this.constructor.isSetUp=!1,this.removeEventListeners(window),this.clearCurrentDragSourceNode())},t.prototype.addEventListeners=function(t){t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0)},t.prototype.removeEventListeners=function(t){t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0)},t.prototype.connectDragPreview=function(t,e,r){var n=this;return this.sourcePreviewNodeOptions[t]=r,this.sourcePreviewNodes[t]=e,function(){delete n.sourcePreviewNodes[t],delete n.sourcePreviewNodeOptions[t]}},t.prototype.connectDragSource=function(t,e,r){var n=this;this.sourceNodes[t]=e,this.sourceNodeOptions[t]=r;var o=function(e){return n.handleDragStart(e,t)},i=function(e){return n.handleSelectStart(e,t)};return e.setAttribute("draggable",!0),e.addEventListener("dragstart",o),e.addEventListener("selectstart",i),function(){delete n.sourceNodes[t],delete n.sourceNodeOptions[t],e.removeEventListener("dragstart",o),e.removeEventListener("selectstart",i),e.setAttribute("draggable",!1)}},t.prototype.connectDropTarget=function(t,e){var r=this,n=function(e){return r.handleDragEnter(e,t)},o=function(e){return r.handleDragOver(e,t)},i=function(e){return r.handleDrop(e,t)};return e.addEventListener("dragenter",n),e.addEventListener("dragover",o),e.addEventListener("drop",i),function(){e.removeEventListener("dragenter",n),e.removeEventListener("dragover",o),e.removeEventListener("drop",i)}},t.prototype.getCurrentSourceNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions[t];return u["default"](e||{},{dropEffect:"move"})},t.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},t.prototype.getCurrentSourcePreviewNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourcePreviewNodeOptions[t];return u["default"](e||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})},t.prototype.getSourceClientOffset=function(t){return h.getNodeClientOffset(this.sourceNodes[t])},t.prototype.isDraggingNativeItem=function(){var t=this.monitor.getItemType();return Object.keys(g).some(function(e){return g[e]===t})},t.prototype.beginDragNativeItem=function(t){this.clearCurrentDragSourceNode();var e=l.createNativeDragSource(t);this.currentNativeSource=new e,this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),window.addEventListener("mousemove",this.endDragNativeItem,!0)},t.prototype.endDragNativeItem=function(){this.isDraggingNativeItem()&&(window.removeEventListener("mousemove",this.endDragNativeItem,!0),this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},t.prototype.endDragIfSourceWasRemovedFromDOM=function(){var t=this.currentDragSourceNode;document.body.contains(t)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()},t.prototype.setCurrentDragSourceNode=function(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.currentDragSourceNodeOffset=h.getNodeClientOffset(t),this.currentDragSourceNodeOffsetChanged=!1,window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t.prototype.clearCurrentDragSourceNode=function(){return this.currentDragSourceNode?(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0):!1},t.prototype.checkIfCurrentDragSourceRectChanged=function(){var t=this.currentDragSourceNode;return t?this.currentDragSourceNodeOffsetChanged?!0:(this.currentDragSourceNodeOffsetChanged=!c["default"](h.getNodeClientOffset(t),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged):!1},t.prototype.handleTopDragStartCapture=function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},t.prototype.handleDragStart=function(t,e){this.dragStartSourceIds.unshift(e)},t.prototype.handleTopDragStart=function(t){var e=this,r=this.dragStartSourceIds;this.dragStartSourceIds=null;var n=h.getEventClientOffset(t);this.actions.beginDrag(r,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});var o=t.dataTransfer,i=l.matchNativeItemType(o);if(this.monitor.isDragging()){if("function"==typeof o.setDragImage){var a=this.monitor.getSourceId(),u=this.sourceNodes[a],s=this.sourcePreviewNodes[a]||u,c=this.getCurrentSourcePreviewNodeOptions(),f=c.anchorX,p=c.anchorY,d={anchorX:f,anchorY:p},v=h.getDragPreviewOffset(u,s,n,d);o.setDragImage(s,v.x,v.y)}try{o.setData("application/json",{})}catch(g){}this.setCurrentDragSourceNode(t.target);var y=this.getCurrentSourcePreviewNodeOptions(),D=y.captureDraggingState;D?this.actions.publishDragSource():setTimeout(function(){return e.actions.publishDragSource()})}else if(i)this.beginDragNativeItem(i);else{if(!(o.types||t.target.hasAttribute&&t.target.hasAttribute("draggable")))return;t.preventDefault()}},t.prototype.handleTopDragEndCapture=function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()},t.prototype.handleTopDragEnterCapture=function(t){this.dragEnterTargetIds=[];var e=this.enterLeaveCounter.enter(t.target);if(e&&!this.monitor.isDragging()){var r=t.dataTransfer,n=l.matchNativeItemType(r);n&&this.beginDragNativeItem(n)}},t.prototype.handleDragEnter=function(t,e){this.dragEnterTargetIds.unshift(e)},t.prototype.handleTopDragEnter=function(t){var e=this,r=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){d.isFirefox()||this.actions.hover(r,{clientOffset:h.getEventClientOffset(t)});var n=r.some(function(t){return e.monitor.canDropOnTarget(t)});n&&(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect())}},t.prototype.handleTopDragOverCapture=function(){this.dragOverTargetIds=[]},t.prototype.handleDragOver=function(t,e){this.dragOverTargetIds.unshift(e)},t.prototype.handleTopDragOver=function(t){var e=this,r=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer.dropEffect="none");this.actions.hover(r,{clientOffset:h.getEventClientOffset(t)});var n=r.some(function(t){return e.monitor.canDropOnTarget(t)});n?(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(t.preventDefault(),t.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(t.preventDefault(),t.dataTransfer.dropEffect="move")},t.prototype.handleTopDragLeaveCapture=function(t){this.isDraggingNativeItem()&&t.preventDefault();var e=this.enterLeaveCounter.leave(t.target);e&&this.isDraggingNativeItem()&&this.endDragNativeItem()},t.prototype.handleTopDropCapture=function(t){this.dropTargetIds=[],t.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(t.dataTransfer),this.enterLeaveCounter.reset()},t.prototype.handleDrop=function(t,e){this.dropTargetIds.unshift(e)},t.prototype.handleTopDrop=function(t){var e=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:h.getEventClientOffset(t)}),this.actions.drop(),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()},t.prototype.handleSelectStart=function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},t}();e["default"]=y,t.exports=e["default"]},function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var n=function(){function t(e,n){r(this,t);for(var o=e.length,i=[],a=0;o>a;a++)i.push(a);i.sort(function(t,r){return e[t]<e[r]?-1:1});for(var u=[],s=[],c=[],f=void 0,p=void 0,a=0;o-1>a;a++)f=e[a+1]-e[a],p=n[a+1]-n[a],s.push(f),u.push(p),c.push(p/f);for(var d=[c[0]],a=0;a<s.length-1;a++){var h=c[a],l=c[a+1];if(0>=h*l)d.push(0);else{f=s[a];var v=s[a+1],g=f+v;d.push(3*g/((g+v)/h+(g+f)/l))}}d.push(c[c.length-1]);for(var y=[],D=[],m=void 0,a=0;a<d.length-1;a++){m=c[a];var x=d[a],_=1/s[a],g=x+d[a+1]-m-m;y.push((m-x-g)*_),D.push(g*_*_)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=D}return t.prototype.interpolate=function(t){var e=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=e.length-1;if(t===e[a])return r[a];for(var u=0,s=i.length-1,c=void 0;s>=u;){c=Math.floor(.5*(u+s));var f=e[c];if(t>f)u=c+1;else{if(!(f>t))return r[c];s=c-1}}a=Math.max(0,s);var p=t-e[a],d=p*p;return r[a]+n[a]*p+o[a]*d+i[a]*p*d},t}();e["default"]=n,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e,r){var n=e.reduce(function(e,r){return e||t.getData(r)},null);return null!=n?n:r}function u(t){var e=d[t],r=e.exposeProperty,n=e.matchesTypes,a=e.getData;return function(){function t(){o(this,t),this.item=Object.defineProperties({},i({},r,{get:function(){return console.warn("Browser doesn't allow reading \""+r+'" until the drop event.'),null},configurable:!0,enumerable:!0}))}return t.prototype.mutateItemByReadingDataTransfer=function(t){delete this.item[r],this.item[r]=a(t,n)},t.prototype.canDrag=function(){return!0},t.prototype.beginDrag=function(){return this.item},t.prototype.isDragging=function(t,e){return e===t.getSourceId()},t.prototype.endDrag=function(){},t}()}function s(t){var e=Array.prototype.slice.call(t.types||[]);return Object.keys(d).filter(function(t){var r=d[t].matchesTypes;return r.some(function(t){return e.indexOf(t)>-1})})[0]||null}e.__esModule=!0;var c;e.createNativeDragSource=u,e.matchNativeItemType=s;var f=r(7),p=n(f),d=(c={},i(c,p.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(t){return Array.prototype.slice.call(t.files)}}),i(c,p.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(t,e){return a(t,e,"").split("\n")}}),i(c,p.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(t,e){return a(t,e,"")}}),c)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.nodeType===f?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,o=r.left;return{x:o,y:n}}function i(t){return{x:t.clientX,y:t.clientY}}function a(t,e,r,n){var i="IMG"===e.nodeName&&(u.isFirefox()||!document.documentElement.contains(e)),a=i?t:e,s=o(a),f={x:r.x-s.x,y:r.y-s.y},p=t.offsetWidth,d=t.offsetHeight,h=n.anchorX,l=n.anchorY,v=i?e.width:p,g=i?e.height:d;u.isSafari()&&i?(g/=window.devicePixelRatio,v/=window.devicePixelRatio):u.isFirefox()&&!i&&(g*=window.devicePixelRatio,v*=window.devicePixelRatio);var y=new c["default"]([0,.5,1],[f.x,f.x/p*v,f.x+v-p]),D=new c["default"]([0,.5,1],[f.y,f.y/d*g,f.y+g-d]),m=y.interpolate(h),x=D.interpolate(l);return u.isSafari()&&i&&(x+=(window.devicePixelRatio-1)*g),{x:m,y:x}}e.__esModule=!0,e.getNodeClientOffset=o,e.getEventClientOffset=i,e.getDragPreviewOffset=a;var u=r(15),s=r(29),c=n(s),f=1},function(t,e){"use strict";function r(){return n||(n=new Image,n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}e.__esModule=!0,e["default"]=r;var n=void 0;t.exports=e["default"]},function(t,e){"use strict";function r(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++){if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;var a=t[r[i]],u=e[r[i]];if(a!==u)return!1}return!0}e.__esModule=!0,e["default"]=r,t.exports=e["default"]},function(t,e,r){function n(){}var o=r(4),i=Object.prototype;n.prototype=o?o(null):i,t.exports=n},function(t,e,r){var n=r(9),o=n.Reflect;t.exports=o},function(t,e,r){var n=r(8),o=r(9),i=n(o,"Set");t.exports=i},function(t,e){function r(t,e){for(var r=-1,n=t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}t.exports=r},function(t,e,r){function n(t,e,r,n){return void 0===t||o(t,i[r])&&!a.call(n,r)?e:t}var o=r(5),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){var n=t[e];(!o(n,r)||o(n,i[e])&&!a.call(t,e)||void 0===r&&!(e in t))&&(t[e]=r)}var o=r(5),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);if(0>r)return!1;var n=t.length-1;return r==n?t.pop():a.call(t,r,1),!0}var o=r(3),i=Array.prototype,a=i.splice;t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);return 0>r?void 0:t[r][1]}var o=r(3);t.exports=n},function(t,e,r){function n(t,e){return o(t,e)>-1}var o=r(3);t.exports=n},function(t,e,r){function n(t,e,r){var n=o(t,e);0>n?t.push([e,r]):t[n][1]=r}var o=r(3);t.exports=n},function(t,e,r){function n(t,e,r,n){var p=-1,d=i,h=!0,l=t.length,v=[],g=e.length;if(!l)return v;r&&(e=u(e,s(r))),n?(d=a,h=!1):e.length>=f&&(d=c,h=!1,e=new o(e));t:for(;++p<l;){var y=t[p],D=r?r(y):y;if(h&&D===D){for(var m=g;m--;)if(e[m]===D)continue t;v.push(y)}else d(e,D,n)||v.push(y)}return v}var o=r(17),i=r(19),a=r(20),u=r(37),s=r(51),c=r(21),f=200;t.exports=n},function(t,e,r){function n(t,e,r,s){s||(s=[]);for(var c=-1,f=t.length;++c<f;){var p=t[c];u(p)&&(r||a(p)||i(p))?e?n(p,e,r,s):o(s,p):r||(s[s.length]=p)}return s}var o=r(38),i=r(24),a=r(10),u=r(11);t.exports=n},function(t,e,r){function n(t,e,r){if(e!==e)return o(t,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}var o=r(63);t.exports=n},function(t,e,r){function n(t){t=null==t?t:Object(t);var e=[];for(var r in t)e.push(r);return e}var o=r(35),i=r(67),a=Object.prototype,u=o?o.enumerate:void 0,s=a.propertyIsEnumerable;u&&!s.call({valueOf:1},"valueOf")&&(n=function(t){return i(u(t))}),t.exports=n},function(t,e){function r(t){return function(e){return null==e?void 0:e[t]}}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},function(t,e,r){function n(t,e,r){var n=-1,p=i,d=t.length,h=!0,l=[],v=l;if(r)h=!1,p=a;else if(d>=f){var g=e?null:s(t);if(g)return c(g);h=!1,p=u,v=new o}else v=e?[]:l;t:for(;++n<d;){var y=t[n],D=e?e(y):y;if(h&&D===D){for(var m=v.length;m--;)if(v[m]===D)continue t;e&&v.push(D),l.push(y)}else p(v,D,r)||(v!==l&&v.push(D),l.push(y))}return l}var o=r(17),i=r(19),a=r(20),u=r(21),s=r(57),c=r(73),f=200;t.exports=n},function(t,e,r){function n(t){var e=this.__data__;if(o(t)){var r=e.__data__,n="string"==typeof t?r.string:r.hash;n[t]=i}else e.set(t,i)}var o=r(1),i="__lodash_hash_undefined__";t.exports=n},function(t,e){function r(t){return t&&t.Object===Object?t:null}t.exports=r},function(t,e,r){function n(t,e,r,n){r||(r={});for(var i=-1,a=e.length;++i<a;){var u=e[i],s=n?n(r[u],t[u],u,r,t):t[u];o(r,u,s)}return r}var o=r(40);t.exports=n},function(t,e,r){function n(t){return i(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a="function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=3>i?void 0:a,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,a)}return e})}var o=r(65),i=r(6);t.exports=n},function(t,e,r){var n=r(36),o=r(80),i=n&&2===new n([1,2]).size?function(t){return new n(t)}:o;t.exports=i},function(t,e,r){var n=r(49),o=n("length");t.exports=o},function(t,e,r){function n(t,e){return o(t,e)&&delete t[e]}var o=r(22);t.exports=n},function(t,e,r){function n(t,e){if(o){var r=t[e];return r===i?void 0:r}return u.call(t,e)?t[e]:void 0}var o=r(4),i="__lodash_hash_undefined__",a=Object.prototype,u=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){t[e]=o&&void 0===r?i:r}var o=r(4),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t){var e=t?t.length:void 0;return u(e)&&(a(t)||s(t)||i(t))?o(e,String):null}var o=r(50),i=r(24),a=r(10),u=r(26),s=r(77);t.exports=n},function(t,e){function r(t,e,r){for(var n=t.length,o=e+(r?0:-1);r?o--:++o<n;){var i=t[o];if(i!==i)return o}return-1}t.exports=r},function(t,e){function r(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}t.exports=r},function(t,e,r){function n(t,e,r){if(!u(r))return!1;var n=typeof e;return("number"==n?i(r)&&a(e,r.length):"string"==n&&e in r)?o(r[e],t):!1}var o=r(5),i=r(25),a=r(23),u=r(13);t.exports=n},function(t,e){function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}var n=Object.prototype;t.exports=r},function(t,e){function r(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}t.exports=r},function(t,e,r){function n(){this.__data__={hash:new o,map:i?new i:[],string:new o}}var o=r(34),i=r(2);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return u(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map["delete"](t):i(e.map,t)}var o=r(2),i=r(41),a=r(59),u=r(1);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return u(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map.get(t):i(e.map,t)}var o=r(2),i=r(42),a=r(60),u=r(1);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return u(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map.has(t):i(e.map,t)}var o=r(2),i=r(43),a=r(22),u=r(1);t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__;return u(t)?a("string"==typeof t?r.string:r.hash,t,e):o?r.map.set(t,e):i(r.map,t,e),this}var o=r(2),i=r(44),a=r(61),u=r(1);t.exports=n},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}t.exports=r},function(t,e,r){var n=r(55),o=r(56),i=r(78),a=o(function(t,e,r,o){n(e,i(e),t,o)});t.exports=a},function(t,e,r){var n=r(18),o=r(39),i=r(74),a=r(6),u=a(function(t){return t.push(void 0,o),n(i,void 0,t)});t.exports=u},function(t,e,r){function n(t){return null==t?!1:o(t)?d.test(f.call(t)):a(t)&&(i(t)?d:s).test(t)}var o=r(12),i=r(64),a=r(14),u=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Object.prototype,f=Function.prototype.toString,p=c.hasOwnProperty,d=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return"string"==typeof t||!o(t)&&i(t)&&s.call(t)==a}var o=r(10),i=r(14),a="[object String]",u=Object.prototype,s=u.toString;t.exports=n},function(t,e,r){function n(t){for(var e=-1,r=u(t),n=o(t),s=n.length,f=i(t),p=!!f,d=f||[],h=d.length;++e<s;){var l=n[e];p&&("length"==l||a(l,h))||"constructor"==l&&(r||!c.call(t,l))||d.push(l)}return d}var o=r(48),i=r(62),a=r(23),u=r(66),s=Object.prototype,c=s.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new n.Cache,r}var o=r(16),i="Expected a function";n.Cache=o,t.exports=n},function(t,e){function r(){}t.exports=r},function(t,e,r){function n(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=0>t?-1:1;return e*a}var r=t%1;return t===t?r?t-r:t:0}var o=r(82),i=1/0,a=1.7976931348623157e308;t.exports=n},function(t,e,r){function n(t){if(i(t)){var e=o(t.valueOf)?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var r=c.test(t);return r||f.test(t)?p(t.slice(2),r?2:8):s.test(t)?a:+t}var o=r(12),i=r(13),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.exports=n},function(t,e,r){var n=r(46),o=r(52),i=r(6),a=i(function(t){return o(n(t,!1,!0))});t.exports=a},function(t,e,r){var n=r(45),o=r(11),i=r(6),a=i(function(t,e){return o(t)?n(t,e):[]});t.exports=a},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReactDnDHTML5Backend=e():t.ReactDnDHTML5Backend=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return new u["default"](t)}e.__esModule=!0,e["default"]=i;var a=r(28),u=o(a),s=r(32),c=o(s),f=r(7),p=n(f);e.NativeTypes=p,e.getEmptyImage=c["default"]},function(t,e){function r(t){var e=typeof t;return"number"==e||"boolean"==e||"string"==e&&"__proto__"!==t||null==t}t.exports=r},function(t,e,r){var n=r(8),o=r(9),i=n(o,"Map");t.exports=i},function(t,e,r){function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(5);t.exports=n},function(t,e,r){var n=r(8),o=n(Object,"create");t.exports=o},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e,r){function n(t,e){if("function"!=typeof t)throw new TypeError(a);return e=u(void 0===e?t.length-1:i(e),0),function(){for(var r=arguments,n=-1,i=u(r.length-e,0),a=Array(i);++n<i;)a[n]=r[e+n];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,r[0],a);case 2:return t.call(this,r[0],r[1],a)}var s=Array(e+1);for(n=-1;++n<e;)s[n]=r[n];return s[e]=a,o(t,this,s)}}var o=r(18),i=r(81),a="Expected a function",u=Math.max;t.exports=n},function(t,e){"use strict";e.__esModule=!0;var r="__NATIVE_FILE__";e.FILE=r;var n="__NATIVE_URL__";e.URL=n;var o="__NATIVE_TEXT__";e.TEXT=o},function(t,e,r){function n(t,e){var r=null==t?void 0:t[e];return o(r)?r:void 0}var o=r(76);t.exports=n},function(t,e,r){(function(t,n){var o=r(54),i={"function":!0,object:!0},a=i[typeof e]&&e&&!e.nodeType?e:null,u=i[typeof t]&&t&&!t.nodeType?t:null,s=o(a&&u&&"object"==typeof n&&n),c=o(i[typeof self]&&self),f=o(i[typeof window]&&window),p=o(i[typeof this]&&this),d=s||f!==(p&&p.window)&&f||c||p||Function("return this")();t.exports=d}).call(e,r(85)(t),function(){return this}())},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){function n(t){return i(t)&&o(t)}var o=r(25),i=r(14);t.exports=n},function(t,e,r){function n(t){var e=o(t)?s.call(t):"";return e==i||e==a}var o=r(13),i="[object Function]",a="[object GeneratorFunction]",u=Object.prototype,s=u.toString;t.exports=n},function(t,e){function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=r},function(t,e){function r(t){return!!t&&"object"==typeof t}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=r(79),i=n(o),a=i["default"](function(){return/firefox/i.test(navigator.userAgent)});e.isFirefox=a;var u=i["default"](function(){return Boolean(window.safari)});e.isSafari=u},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(68),i=r(69),a=r(70),u=r(71),s=r(72);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=s,t.exports=n},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.__data__=new o;++e<r;)this.push(t[e])}var o=r(16),i=r(53);n.prototype.push=i,t.exports=n},function(t,e){function r(t,e,r){var n=r.length;switch(n){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}t.exports=r},function(t,e,r){function n(t,e){return!!t.length&&o(t,e,0)>-1}var o=r(47);t.exports=n},function(t,e){function r(t,e,r){for(var n=-1,o=t.length;++n<o;)if(r(e,t[n]))return!0;return!1}t.exports=r},function(t,e,r){function n(t,e){var r=t.__data__;if(o(e)){var n=r.__data__,a="string"==typeof e?n.string:n.hash;return a[e]===i}return r.has(e)}var o=r(1),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t,e){return o?void 0!==t[e]:a.call(t,e)}var o=r(4),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e){function r(t,e){return t="number"==typeof t||o.test(t)?+t:-1,e=null==e?n:e,t>-1&&t%1==0&&e>t}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e,r){function n(t){return o(t)&&u.call(t,"callee")&&(!c.call(t,"callee")||s.call(t)==i)}var o=r(11),i="[object Arguments]",a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=a.propertyIsEnumerable;t.exports=n},function(t,e,r){function n(t){return null!=t&&!("function"==typeof t&&i(t))&&a(o(t))}var o=r(58),i=r(12),a=r(26);t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&n>=t}var n=9007199254740991;t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=r(83),a=n(i),u=r(84),s=n(u),c=function(){function t(){o(this,t),this.entered=[]}return t.prototype.enter=function(t){var e=this.entered.length;return this.entered=a["default"](this.entered.filter(function(e){return document.documentElement.contains(e)&&(!e.contains||e.contains(t))}),[t]),0===e&&this.entered.length>0},t.prototype.leave=function(t){var e=this.entered.length;return this.entered=s["default"](this.entered.filter(function(t){return document.documentElement.contains(t)}),t),e>0&&0===this.entered.length},t.prototype.reset=function(){this.entered=[]},t}();e["default"]=c,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=r(75),u=o(a),s=r(33),c=o(s),f=r(27),p=o(f),d=r(15),h=r(31),l=r(30),v=r(7),g=n(v),y=function(){function t(e){i(this,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new p["default"],this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this)}return t.prototype.setup=function(){if("undefined"!=typeof window){if(this.constructor.isSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.constructor.isSetUp=!0,this.addEventListeners(window)}},t.prototype.teardown=function(){"undefined"!=typeof window&&(this.constructor.isSetUp=!1,this.removeEventListeners(window),this.clearCurrentDragSourceNode())},t.prototype.addEventListeners=function(t){t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0)},t.prototype.removeEventListeners=function(t){t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0)},t.prototype.connectDragPreview=function(t,e,r){var n=this;return this.sourcePreviewNodeOptions[t]=r,this.sourcePreviewNodes[t]=e,function(){delete n.sourcePreviewNodes[t],delete n.sourcePreviewNodeOptions[t]}},t.prototype.connectDragSource=function(t,e,r){var n=this;this.sourceNodes[t]=e,this.sourceNodeOptions[t]=r;var o=function(e){return n.handleDragStart(e,t)},i=function(e){return n.handleSelectStart(e,t)};return e.setAttribute("draggable",!0),e.addEventListener("dragstart",o),e.addEventListener("selectstart",i),function(){delete n.sourceNodes[t],delete n.sourceNodeOptions[t],e.removeEventListener("dragstart",o),e.removeEventListener("selectstart",i),e.setAttribute("draggable",!1)}},t.prototype.connectDropTarget=function(t,e){var r=this,n=function(e){return r.handleDragEnter(e,t)},o=function(e){return r.handleDragOver(e,t)},i=function(e){return r.handleDrop(e,t)};return e.addEventListener("dragenter",n),e.addEventListener("dragover",o),e.addEventListener("drop",i),function(){e.removeEventListener("dragenter",n),e.removeEventListener("dragover",o),e.removeEventListener("drop",i)}},t.prototype.getCurrentSourceNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions[t];return u["default"](e||{},{dropEffect:"move"})},t.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},t.prototype.getCurrentSourcePreviewNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourcePreviewNodeOptions[t];return u["default"](e||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})},t.prototype.getSourceClientOffset=function(t){return h.getNodeClientOffset(this.sourceNodes[t])},t.prototype.isDraggingNativeItem=function(){var t=this.monitor.getItemType();return Object.keys(g).some(function(e){return g[e]===t})},t.prototype.beginDragNativeItem=function(t){this.clearCurrentDragSourceNode();var e=l.createNativeDragSource(t);this.currentNativeSource=new e,this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),d.isFirefox()&&window.addEventListener("mousemove",this.endDragNativeItem,!0)},t.prototype.endDragNativeItem=function(){this.isDraggingNativeItem()&&(d.isFirefox()&&window.removeEventListener("mousemove",this.endDragNativeItem,!0),this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},t.prototype.endDragIfSourceWasRemovedFromDOM=function(){var t=this.currentDragSourceNode;document.body.contains(t)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()},t.prototype.setCurrentDragSourceNode=function(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.currentDragSourceNodeOffset=h.getNodeClientOffset(t),this.currentDragSourceNodeOffsetChanged=!1,window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t.prototype.clearCurrentDragSourceNode=function(){return this.currentDragSourceNode?(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0):!1},t.prototype.checkIfCurrentDragSourceRectChanged=function(){var t=this.currentDragSourceNode;return t?this.currentDragSourceNodeOffsetChanged?!0:(this.currentDragSourceNodeOffsetChanged=!c["default"](h.getNodeClientOffset(t),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged):!1},t.prototype.handleTopDragStartCapture=function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},t.prototype.handleDragStart=function(t,e){this.dragStartSourceIds.unshift(e)},t.prototype.handleTopDragStart=function(t){var e=this,r=this.dragStartSourceIds;this.dragStartSourceIds=null;var n=h.getEventClientOffset(t);this.actions.beginDrag(r,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});var o=t.dataTransfer,i=l.matchNativeItemType(o);if(this.monitor.isDragging()){if("function"==typeof o.setDragImage){var a=this.monitor.getSourceId(),u=this.sourceNodes[a],s=this.sourcePreviewNodes[a]||u,c=this.getCurrentSourcePreviewNodeOptions(),f=c.anchorX,p=c.anchorY,d={anchorX:f,anchorY:p},v=h.getDragPreviewOffset(u,s,n,d);o.setDragImage(s,v.x,v.y)}try{o.setData("application/json",{})}catch(g){}this.setCurrentDragSourceNode(t.target);var y=this.getCurrentSourcePreviewNodeOptions(),D=y.captureDraggingState;D?this.actions.publishDragSource():setTimeout(function(){return e.actions.publishDragSource()})}else if(i)this.beginDragNativeItem(i);else{if(!(o.types||t.target.hasAttribute&&t.target.hasAttribute("draggable")))return;t.preventDefault()}},t.prototype.handleTopDragEndCapture=function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()},t.prototype.handleTopDragEnterCapture=function(t){this.dragEnterTargetIds=[];var e=this.enterLeaveCounter.enter(t.target);if(e&&!this.monitor.isDragging()){var r=t.dataTransfer,n=l.matchNativeItemType(r);n&&this.beginDragNativeItem(n)}},t.prototype.handleDragEnter=function(t,e){this.dragEnterTargetIds.unshift(e)},t.prototype.handleTopDragEnter=function(t){var e=this,r=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){d.isFirefox()||this.actions.hover(r,{clientOffset:h.getEventClientOffset(t)});var n=r.some(function(t){return e.monitor.canDropOnTarget(t)});n&&(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect())}},t.prototype.handleTopDragOverCapture=function(){this.dragOverTargetIds=[]},t.prototype.handleDragOver=function(t,e){this.dragOverTargetIds.unshift(e)},t.prototype.handleTopDragOver=function(t){var e=this,r=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer.dropEffect="none");this.actions.hover(r,{clientOffset:h.getEventClientOffset(t)});var n=r.some(function(t){return e.monitor.canDropOnTarget(t)});n?(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(t.preventDefault(),t.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(t.preventDefault(),t.dataTransfer.dropEffect="move")},t.prototype.handleTopDragLeaveCapture=function(t){this.isDraggingNativeItem()&&t.preventDefault();var e=this.enterLeaveCounter.leave(t.target);e&&this.isDraggingNativeItem()&&this.endDragNativeItem()},t.prototype.handleTopDropCapture=function(t){this.dropTargetIds=[],t.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(t.dataTransfer),this.enterLeaveCounter.reset()},t.prototype.handleDrop=function(t,e){this.dropTargetIds.unshift(e)},t.prototype.handleTopDrop=function(t){var e=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:h.getEventClientOffset(t)}),this.actions.drop(),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()},t.prototype.handleSelectStart=function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},t}();e["default"]=y,t.exports=e["default"]},function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var n=function(){function t(e,n){r(this,t);for(var o=e.length,i=[],a=0;o>a;a++)i.push(a);i.sort(function(t,r){return e[t]<e[r]?-1:1});for(var u=[],s=[],c=[],f=void 0,p=void 0,a=0;o-1>a;a++)f=e[a+1]-e[a],p=n[a+1]-n[a],s.push(f),u.push(p),c.push(p/f);for(var d=[c[0]],a=0;a<s.length-1;a++){var h=c[a],l=c[a+1];if(0>=h*l)d.push(0);else{f=s[a];var v=s[a+1],g=f+v;d.push(3*g/((g+v)/h+(g+f)/l))}}d.push(c[c.length-1]);for(var y=[],D=[],m=void 0,a=0;a<d.length-1;a++){m=c[a];var x=d[a],_=1/s[a],g=x+d[a+1]-m-m;y.push((m-x-g)*_),D.push(g*_*_)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=D}return t.prototype.interpolate=function(t){var e=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=e.length-1;if(t===e[a])return r[a];for(var u=0,s=i.length-1,c=void 0;s>=u;){c=Math.floor(.5*(u+s));var f=e[c];if(t>f)u=c+1;else{if(!(f>t))return r[c];s=c-1}}a=Math.max(0,s);var p=t-e[a],d=p*p;return r[a]+n[a]*p+o[a]*d+i[a]*p*d},t}();e["default"]=n,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e,r){var n=e.reduce(function(e,r){return e||t.getData(r)},null);return null!=n?n:r}function u(t){var e=d[t],r=e.exposeProperty,n=e.matchesTypes,a=e.getData;return function(){function t(){o(this,t),this.item=Object.defineProperties({},i({},r,{get:function(){return console.warn("Browser doesn't allow reading \""+r+'" until the drop event.'),null},configurable:!0,enumerable:!0}))}return t.prototype.mutateItemByReadingDataTransfer=function(t){delete this.item[r],this.item[r]=a(t,n)},t.prototype.canDrag=function(){return!0},t.prototype.beginDrag=function(){return this.item},t.prototype.isDragging=function(t,e){return e===t.getSourceId()},t.prototype.endDrag=function(){},t}()}function s(t){var e=Array.prototype.slice.call(t.types||[]);return Object.keys(d).filter(function(t){var r=d[t].matchesTypes;return r.some(function(t){return e.indexOf(t)>-1})})[0]||null}e.__esModule=!0;var c;e.createNativeDragSource=u,e.matchNativeItemType=s;var f=r(7),p=n(f),d=(c={},i(c,p.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(t){return Array.prototype.slice.call(t.files)}}),i(c,p.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(t,e){return a(t,e,"").split("\n")}}),i(c,p.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(t,e){return a(t,e,"")}}),c)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.nodeType===f?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,o=r.left;return{x:o,y:n}}function i(t){return{x:t.clientX,y:t.clientY}}function a(t,e,r,n){var i="IMG"===e.nodeName&&(u.isFirefox()||!document.documentElement.contains(e)),a=i?t:e,s=o(a),f={x:r.x-s.x,y:r.y-s.y},p=t.offsetWidth,d=t.offsetHeight,h=n.anchorX,l=n.anchorY,v=i?e.width:p,g=i?e.height:d;u.isSafari()&&i?(g/=window.devicePixelRatio,v/=window.devicePixelRatio):u.isFirefox()&&!i&&(g*=window.devicePixelRatio,v*=window.devicePixelRatio);var y=new c["default"]([0,.5,1],[f.x,f.x/p*v,f.x+v-p]),D=new c["default"]([0,.5,1],[f.y,f.y/d*g,f.y+g-d]),m=y.interpolate(h),x=D.interpolate(l);return u.isSafari()&&i&&(x+=(window.devicePixelRatio-1)*g),{x:m,y:x}}e.__esModule=!0,e.getNodeClientOffset=o,e.getEventClientOffset=i,e.getDragPreviewOffset=a;var u=r(15),s=r(29),c=n(s),f=1},function(t,e){"use strict";function r(){return n||(n=new Image,n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}e.__esModule=!0,e["default"]=r;var n=void 0;t.exports=e["default"]},function(t,e){"use strict";function r(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++){if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;var a=t[r[i]],u=e[r[i]];if(a!==u)return!1}return!0}e.__esModule=!0,e["default"]=r,t.exports=e["default"]},function(t,e,r){function n(){}var o=r(4),i=Object.prototype;n.prototype=o?o(null):i,t.exports=n},function(t,e,r){var n=r(9),o=n.Reflect;t.exports=o},function(t,e,r){var n=r(8),o=r(9),i=n(o,"Set");t.exports=i},function(t,e){function r(t,e){for(var r=-1,n=t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}t.exports=r},function(t,e,r){function n(t,e,r,n){return void 0===t||o(t,i[r])&&!a.call(n,r)?e:t}var o=r(5),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){var n=t[e];(!o(n,r)||o(n,i[e])&&!a.call(t,e)||void 0===r&&!(e in t))&&(t[e]=r)}var o=r(5),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);if(0>r)return!1;var n=t.length-1;return r==n?t.pop():a.call(t,r,1),!0}var o=r(3),i=Array.prototype,a=i.splice;t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);return 0>r?void 0:t[r][1]}var o=r(3);t.exports=n},function(t,e,r){function n(t,e){return o(t,e)>-1}var o=r(3);t.exports=n},function(t,e,r){function n(t,e,r){var n=o(t,e);0>n?t.push([e,r]):t[n][1]=r}var o=r(3);t.exports=n},function(t,e,r){function n(t,e,r,n){var p=-1,d=i,h=!0,l=t.length,v=[],g=e.length;if(!l)return v;r&&(e=u(e,s(r))),n?(d=a,h=!1):e.length>=f&&(d=c,h=!1,e=new o(e));t:for(;++p<l;){var y=t[p],D=r?r(y):y;if(h&&D===D){for(var m=g;m--;)if(e[m]===D)continue t;v.push(y)}else d(e,D,n)||v.push(y)}return v}var o=r(17),i=r(19),a=r(20),u=r(37),s=r(51),c=r(21),f=200;t.exports=n},function(t,e,r){function n(t,e,r,s){s||(s=[]);for(var c=-1,f=t.length;++c<f;){var p=t[c];u(p)&&(r||a(p)||i(p))?e?n(p,e,r,s):o(s,p):r||(s[s.length]=p)}return s}var o=r(38),i=r(24),a=r(10),u=r(11);t.exports=n},function(t,e,r){function n(t,e,r){if(e!==e)return o(t,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}var o=r(63);t.exports=n},function(t,e,r){function n(t){t=null==t?t:Object(t);var e=[];for(var r in t)e.push(r);return e}var o=r(35),i=r(67),a=Object.prototype,u=o?o.enumerate:void 0,s=a.propertyIsEnumerable;u&&!s.call({valueOf:1},"valueOf")&&(n=function(t){return i(u(t))}),t.exports=n},function(t,e){function r(t){return function(e){return null==e?void 0:e[t]}}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},function(t,e,r){function n(t,e,r){var n=-1,p=i,d=t.length,h=!0,l=[],v=l;if(r)h=!1,p=a;else if(d>=f){var g=e?null:s(t);if(g)return c(g);h=!1,p=u,v=new o}else v=e?[]:l;t:for(;++n<d;){var y=t[n],D=e?e(y):y;if(h&&D===D){for(var m=v.length;m--;)if(v[m]===D)continue t;e&&v.push(D),l.push(y)}else p(v,D,r)||(v!==l&&v.push(D),l.push(y))}return l}var o=r(17),i=r(19),a=r(20),u=r(21),s=r(57),c=r(73),f=200;t.exports=n},function(t,e,r){function n(t){var e=this.__data__;if(o(t)){var r=e.__data__,n="string"==typeof t?r.string:r.hash;n[t]=i}else e.set(t,i)}var o=r(1),i="__lodash_hash_undefined__";t.exports=n},function(t,e){function r(t){return t&&t.Object===Object?t:null}t.exports=r},function(t,e,r){function n(t,e,r,n){r||(r={});for(var i=-1,a=e.length;++i<a;){var u=e[i],s=n?n(r[u],t[u],u,r,t):t[u];o(r,u,s)}return r}var o=r(40);t.exports=n},function(t,e,r){function n(t){return i(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a="function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=3>i?void 0:a,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,a)}return e})}var o=r(65),i=r(6);t.exports=n},function(t,e,r){var n=r(36),o=r(80),i=n&&2===new n([1,2]).size?function(t){return new n(t)}:o;t.exports=i},function(t,e,r){var n=r(49),o=n("length");t.exports=o},function(t,e,r){function n(t,e){return o(t,e)&&delete t[e]}var o=r(22);t.exports=n},function(t,e,r){function n(t,e){if(o){var r=t[e];return r===i?void 0:r}return u.call(t,e)?t[e]:void 0}var o=r(4),i="__lodash_hash_undefined__",a=Object.prototype,u=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){t[e]=o&&void 0===r?i:r}var o=r(4),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t){var e=t?t.length:void 0;return u(e)&&(a(t)||s(t)||i(t))?o(e,String):null}var o=r(50),i=r(24),a=r(10),u=r(26),s=r(77);t.exports=n},function(t,e){function r(t,e,r){for(var n=t.length,o=e+(r?0:-1);r?o--:++o<n;){var i=t[o];if(i!==i)return o}return-1}t.exports=r},function(t,e){function r(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}t.exports=r},function(t,e,r){function n(t,e,r){if(!u(r))return!1;var n=typeof e;return("number"==n?i(r)&&a(e,r.length):"string"==n&&e in r)?o(r[e],t):!1}var o=r(5),i=r(25),a=r(23),u=r(13);t.exports=n},function(t,e){function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}var n=Object.prototype;t.exports=r},function(t,e){function r(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}t.exports=r},function(t,e,r){function n(){this.__data__={hash:new o,map:i?new i:[],string:new o}}var o=r(34),i=r(2);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return u(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map["delete"](t):i(e.map,t)}var o=r(2),i=r(41),a=r(59),u=r(1);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return u(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map.get(t):i(e.map,t)}var o=r(2),i=r(42),a=r(60),u=r(1);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return u(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map.has(t):i(e.map,t)}var o=r(2),i=r(43),a=r(22),u=r(1);t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__;return u(t)?a("string"==typeof t?r.string:r.hash,t,e):o?r.map.set(t,e):i(r.map,t,e),this}var o=r(2),i=r(44),a=r(61),u=r(1);t.exports=n},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}t.exports=r},function(t,e,r){var n=r(55),o=r(56),i=r(78),a=o(function(t,e,r,o){n(e,i(e),t,o)});t.exports=a},function(t,e,r){var n=r(18),o=r(39),i=r(74),a=r(6),u=a(function(t){return t.push(void 0,o),n(i,void 0,t)});t.exports=u},function(t,e,r){function n(t){return null==t?!1:o(t)?d.test(f.call(t)):a(t)&&(i(t)?d:s).test(t)}var o=r(12),i=r(64),a=r(14),u=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Object.prototype,f=Function.prototype.toString,p=c.hasOwnProperty,d=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return"string"==typeof t||!o(t)&&i(t)&&s.call(t)==a}var o=r(10),i=r(14),a="[object String]",u=Object.prototype,s=u.toString;t.exports=n},function(t,e,r){function n(t){for(var e=-1,r=u(t),n=o(t),s=n.length,f=i(t),p=!!f,d=f||[],h=d.length;++e<s;){var l=n[e];p&&("length"==l||a(l,h))||"constructor"==l&&(r||!c.call(t,l))||d.push(l)}return d}var o=r(48),i=r(62),a=r(23),u=r(66),s=Object.prototype,c=s.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new n.Cache,r}var o=r(16),i="Expected a function";n.Cache=o,t.exports=n},function(t,e){function r(){}t.exports=r},function(t,e,r){function n(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=0>t?-1:1;return e*a}var r=t%1;return t===t?r?t-r:t:0}var o=r(82),i=1/0,a=1.7976931348623157e308;t.exports=n},function(t,e,r){function n(t){if(i(t)){var e=o(t.valueOf)?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var r=c.test(t);return r||f.test(t)?p(t.slice(2),r?2:8):s.test(t)?a:+t}var o=r(12),i=r(13),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.exports=n},function(t,e,r){var n=r(46),o=r(52),i=r(6),a=i(function(t){return o(n(t,!1,!0))});t.exports=a},function(t,e,r){var n=r(45),o=r(11),i=r(6),a=i(function(t,e){return o(t)?n(t,e):[]});t.exports=a},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}}])}); |
@@ -222,4 +222,7 @@ 'use strict'; | ||
// If mousemove fires, the drag is over but browser failed to tell us. | ||
window.addEventListener('mousemove', this.endDragNativeItem, true); | ||
// On Firefox, if mousemove fires, the drag is over but browser failed to tell us. | ||
// This is not true for other browsers. | ||
if (_BrowserDetector.isFirefox()) { | ||
window.addEventListener('mousemove', this.endDragNativeItem, true); | ||
} | ||
}; | ||
@@ -232,3 +235,5 @@ | ||
window.removeEventListener('mousemove', this.endDragNativeItem, true); | ||
if (_BrowserDetector.isFirefox()) { | ||
window.removeEventListener('mousemove', this.endDragNativeItem, true); | ||
} | ||
@@ -235,0 +240,0 @@ this.actions.endDrag(); |
{ | ||
"name": "react-dnd-html5-backend", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "HTML5 backend for React DnD", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -180,4 +180,7 @@ import defaults from 'lodash/defaults'; | ||
// If mousemove fires, the drag is over but browser failed to tell us. | ||
window.addEventListener('mousemove', this.endDragNativeItem, true); | ||
// On Firefox, if mousemove fires, the drag is over but browser failed to tell us. | ||
// This is not true for other browsers. | ||
if (isFirefox()) { | ||
window.addEventListener('mousemove', this.endDragNativeItem, true); | ||
} | ||
} | ||
@@ -190,3 +193,5 @@ | ||
window.removeEventListener('mousemove', this.endDragNativeItem, true); | ||
if (isFirefox()) { | ||
window.removeEventListener('mousemove', this.endDragNativeItem, true); | ||
} | ||
@@ -193,0 +198,0 @@ this.actions.endDrag(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95480
1580