Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/views/table/dnd_table/Table",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./TableContext"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r("liferay!frontend-js-react-web$classnames")),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();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 f=n?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(r,a,f):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),f=o(r("./TableContext"));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}var u=function({children:e,className:t}){const{draggingColumnName:r,isFixed:l,updateTableWidth:o}=(0,a.useContext)(f.default),u=(0,a.useRef)(null);return(0,a.useLayoutEffect)((()=>{const e=u.current.getBoundingClientRect().width;o(e)}),[o]),a.default.createElement("div",{className:(0,n.default)("dnd-table",{fixed:l,"is-dragging":null!==r},t),ref:u},e)};t.default=u}}));
//# sourceMappingURL=Table.js.map