import{b as e,m as r,A as n}from"../../vendor.js";import{useRef as o,useState as a,useEffect as t}from"react";import{O as i}from"../Option/index.js";import{D as l}from"../Draggable/index.js";import{T as s}from"../Text/index.js";var m={render:function(m){var c=m.element,d=m.elementInnerRef,u=m.className,f=o(),p=a(null),v=e(p,2),x=v[0],g=v[1];t((function(){g(d.current)}),[d.current]);return r.jsx(l,{ref:f,onBeforeDragStart:function(){var e,r,n;null===(e=f.current)||void 0===e||null===(r=e.tooltipRef)||void 0===r||null===(n=r.current)||void 0===n||n.close()},dragImage:x,data:c,children:r.jsx(i,{onClick:function(e){return e.preventDefault()},option:{icon:"drag_handle"},className:n(u,"oak-drag-handle"),name:r.jsx(s,{name:"core.tooltips.move",default:"Move"})})})}},c=[m];export{c as o};
//# sourceMappingURL=index.options.js.map
