System.register([],(function(e){"use strict";return{execute:function(){var t=e("A","anj-dragging");var n=function(){function e(e,t){var n=this;this.element=e;this.data=t;this.dragStartListener=function(e){return n.onDragStart(e)};this.dragEndListener=function(e){return n.onDragEnd(e)}}e.prototype.connect=function(){this.element.setAttribute("draggable","true");this.element.addEventListener("dragstart",this.dragStartListener);this.element.addEventListener("dragend",this.dragEndListener);return this};e.prototype.disconnect=function(){this.element.removeAttribute("draggable");this.element.removeEventListener("dragstart",this.dragStartListener);this.element.removeEventListener("dragend",this.dragEndListener);return undefined};e.prototype.onDragStart=function(e){this.element.classList.add(t);if(e.dataTransfer){e.dataTransfer.effectAllowed="move";if(this.data){e.dataTransfer.setData("data",JSON.stringify(this.getData()))}}};e.prototype.onDragEnd=function(e){e.preventDefault();this.element.classList.remove(t)};e.prototype.getData=function(){return typeof this.data==="function"?this.data():this.data};return e}();e("D",n);var r=e("a","anj-dragover");var a=function(){function e(e){var t=this;this.element=e;this.dragEnterListener=function(){return t.onDragEnter()};this.dragLeaveListener=function(){return t.onDragLeave()};this.dragOverListener=function(e){return t.onDragOver(e)};this.dropListener=function(e){return t.onDrop(e)}}e.prototype.connect=function(){this.element.addEventListener("dragenter",this.dragEnterListener);this.element.addEventListener("dragleave",this.dragLeaveListener);this.element.addEventListener("dragover",this.dragOverListener);this.element.addEventListener("drop",this.dropListener);return this};e.prototype.disconnect=function(){this.element.removeEventListener("dragenter",this.dragEnterListener);this.element.removeEventListener("dragleave",this.dragLeaveListener);this.element.removeEventListener("dragover",this.dragOverListener);this.element.removeEventListener("drop",this.dropListener);return undefined};e.prototype.onDragEnter=function(){this.element.classList.add(r)};e.prototype.onDragLeave=function(){this.element.classList.remove(r)};e.prototype.onDragOver=function(e){if(e.preventDefault){e.preventDefault()}this.checkStyle();e.dataTransfer.dropEffect="move";return false};e.prototype.onDrop=function(e){if(e.stopPropagation){e.stopPropagation()}this.element.classList.remove(r);if(e.dataTransfer&&e.dataTransfer.getData&&e.dataTransfer.getData("data")){var t=JSON.parse(e.dataTransfer.getData("data"));var n=new CustomEvent("anjDrop",{detail:t,bubbles:true});this.element.dispatchEvent(n)}return false};e.prototype.checkStyle=function(){if(!this.element.classList.contains(r)){this.element.classList.add(r)}};return e}();e("b",a)}}}));