import{Q as l}from"./QPage.7980b992.js";import{i as s}from"./interact.min.2b0a7217.js";import{b as i}from"./route-block.7fdbc26a.js";import{m as g,o as p,bn as c,af as m,at as u,ah as f,ai as x,d as y}from"./index.b1ea7675.js";const b={__name:"[model]",setup(h){g({drag:{animation:400,ghostClass:"ghost"},savePosition:{drag:{"drag-1":{}},resize:[]}}),p(()=>{o()});function o(){s(".draggable").draggable({listeners:{move:d,end:e=>{var t=e.target,a=(parseFloat(t.getAttribute("data-x"))||0)+e.dx,r=(parseFloat(t.getAttribute("data-y"))||0)+e.dy;console.log(a,r)}},inertia:!0,modifiers:[s.modifiers.restrictRect({restriction:"parent",endOnly:!0})]}).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{move:n},inertia:!0,modifiers:[s.modifiers.restrictEdges({outer:"parent"}),s.modifiers.restrictSize({min:{width:100,height:50}})]})}function d(e){var t=e.target,a=(parseFloat(t.getAttribute("data-x"))||0)+e.dx,r=(parseFloat(t.getAttribute("data-y"))||0)+e.dy;t.style.transform="translate("+a+"px, "+r+"px)",t.setAttribute("data-x",a),t.setAttribute("data-y",r)}function n(e){var t=e.target,a=parseFloat(t.getAttribute("data-x"))||0,r=parseFloat(t.getAttribute("data-y"))||0;t.style.width=e.rect.width+"px",t.style.height=e.rect.height+"px",a+=e.deltaRect.left,r+=e.deltaRect.top,t.style.transform="translate("+a+"px,"+r+"px)",t.setAttribute("data-x",a),t.setAttribute("data-y",r)}return(e,t)=>{const a=c("van-empty");return m(),u(l,{class:"q-pa-sm"},{default:f(()=>[x("div",null,[y(a,{description:"Comming soon"})])]),_:1})}}};typeof i=="function"&&i(b);export{b as default};
