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