import{m as d}from"./module.esm-A8h-QRCZ.js";d.data("metaAdd",()=>({contest:null,selectedItems:[],questionlevel:null,draggedItem:null,draggedFrom:null,draggedIndex:null,isDragging:!1,startDrag(e,t,s){this.draggedItem=t==="selected"?this.selectedItems[s]:[],this.draggedFrom=t,this.draggedIndex=s,this.isDragging=!0,e.dataTransfer.effectAllowed="move"},endDrag(){this.isDragging=!1},allowDrop(e){e.preventDefault()},handleDrop(e,t=null){e.preventDefault(),this.draggedFrom==="selected"&&(this.selectedItems.splice(this.draggedIndex,1),t!==null?this.selectedItems.splice(t,0,this.draggedItem):this.selectedItems.push(this.draggedItem)),this.resetDragState(),this.selectedItems.forEach((s,l)=>{s.order=l})},deleteItem(e){this.selectedItems.splice(e,1)},resetDragState(){this.draggedItem=null,this.draggedFrom=null,this.draggedIndex=null,this.isDragging=!1}}));d.start();
