Liferay.Loader.define("data-engine-js-components-web@1.0.75/js/core/components/FieldDragPreview.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=n?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var a=({containerRef:e})=>{const t=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const{width:r}=getComputedStyle(e.current),n=e.current.cloneNode(!0),o=t.current;return o.parentElement.style.width=r,o.appendChild(n),()=>{o.remove()}}),[e,t]),n.default.createElement("div",{className:"ddm-drag dragging"},n.default.createElement("div",{ref:t}))};t.default=a}}));
//# sourceMappingURL=FieldDragPreview.es.js.map