import{a as e,j as r,A as o}from"../../vendor.js";import{useRef as n,useState as t,useEffect as a}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=n(),p=t(null),x=e(p,2),v=x[0],j=x[1];a((function(){j(d.current)}),[d.current]);return r.exports.jsx(l,{ref:f,onBeforeDragStart:function(){var e,r,o;null===(e=f.current)||void 0===e||null===(r=e.tooltipRef)||void 0===r||null===(o=r.current)||void 0===o||o.close()},dragImage:v,data:c,children:r.exports.jsx(i,{onClick:function(e){return e.preventDefault()},option:{icon:"drag_handle"},className:o(u,"oak-drag-handle"),name:r.exports.jsx(s,{name:"core.tooltips.move",default:"Move"})})})}}];export{m as o};
//# sourceMappingURL=index.options.js.map
