text: import t from"../../core/BaseEvent.min.js";import*as e from"../../utils/arr.min.js";class i extends t{constructor(t,e,i){super(e._interaction),this.target=void 0,this.dropzone=void 0,this.dragEvent=void 0,this.relatedTarget=void 0,this.draggable=void 0,this.timeStamp=void 0,this.propagationStopped=!1,this.immediatePropagationStopped=!1;const{element:o,dropzone:r}="dragleave"===i?t.prev:t.cur;this.type=i,this.target=o,this.currentTarget=o,this.dropzone=r,this.dragEvent=e,this.relatedTarget=e.target,this.draggable=e.interactable,this.timeStamp=e.timeStamp}reject(){const{dropState:t}=this._interaction;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){const o=t.activeDrops,r=e.findIndex(o,({dropzone:t,element:e})=>t===this.dropzone&&e===this.target);t.activeDrops.splice(r,1);const a=new i(t,this.dragEvent,"dropdeactivate");a.dropzone=this.dropzone,a.target=this.target,this.dropzone.fire(a)}else this.dropzone.fire(new i(t,this.dragEvent,"dragleave"))}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}export default i;
  //# sourceMappingURL=DropEvent.min.js.map