Liferay.Loader.define("data-engine-js-components-web@1.0.79/js/core/hooks/useResizeObserver.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,r){window;Object.defineProperty(t,"__esModule",{value:!0}),t.useResizeObserver=function(e){const[t,r]=(0,n.useState)({});return(0,n.useEffect)((()=>{let t;if("ResizeObserver"in window)return t=new ResizeObserver((e=>{const{bottom:t,height:n,left:o,right:s,top:i,width:c}=e[0].contentRect;r({bottom:t,height:n,left:o,right:s,top:i,width:c})})),e.current&&t.observe(e.current),()=>t.disconnect()}),[e]),t};var n=r("liferay!frontend-js-react-web$react")}));
//# sourceMappingURL=useResizeObserver.es.js.map