import{r as t,h as o,H as e}from"./p-f8363b1b.js";const i={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},s=class{constructor(o){t(this,o)}render(){return o(e,{style:Object.assign(Object.assign({position:"absolute",userSelect:"none"},i[this.direction]),this.replaceStyles||{}),onMouseDown:t=>{this.resizeStart(t,this.direction)},onTouchStart:t=>{this.resizeStart(t,this.direction)}},o("slot",null))}};export{s as fireenjin_resizer}