text: window.isResizable=!!window.isResizable&&window.isResizable;class e{constructor(e,t){this.container=e,this.targetResize=null,this.elmsResizable=document.querySelectorAll(t),this.started=!1,this.init()}init(){[].forEach.call(this.elmsResizable,(e=>{if(null==e.querySelector(".resizer")||"dndmain"==e.id&&null==document.querySelector("#dndmain > .resizer")){let t=document.createElement("div");t.className="resizer icomoon-resize",e.appendChild(t)}})),window.isResizable||(window.isResizable=!0,AI.listen("body","mouseleave",this.container,(()=>{this.targetResize=null})),AI.listen("body","mousedown",".resizer",(e=>{this.targetResize=e.parentNode,this.started=!0,this.onStart&&this.onStart(e)})),AI.listenAll("body","mousemove",(e=>{if(null==this.targetResize||!this.started)return;let t=this.getPosition(e,this.targetResize);this.targetResize.style.width=t.x+"px",this.targetResize.style.height=t.y+"px"})),AI.listenAll("body","mouseup",(e=>{this.started&&(this.started=!1,this.onStop&&this.onStop(e,this.targetResize),this.targetResize=null)})))}getPosition(e,t){let i=t.getBoundingClientRect();const s=e.x-i.x,l=e.y-i.y;return this.setLimit?this.setLimit(s,l):{x:s,y:l}}}export{e as R};
  //# sourceMappingURL=Resizable-f0a931a9.js.map
  