Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/hooks/useHeightTransition.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,r,c){const[i,u]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{i&&(a(c),t&&e(c))}),[c,i,t]),[i,n=>{n.target===c.current&&i&&!t?(r(!0),u(!1),e(c)):n.target===c.current&&(r(!1),u(!1))},e=>{e.preventDefault(),t&&!i&&a(c),i||u(!0)}]};var n=r("liferay!frontend-js-react-web$react");const e=e=>{e&&e.current&&e.current.style.removeProperty("height")},a=e=>{if(e&&e.current){const t=Array.prototype.slice.call(e.current.children).reduce(((e,t)=>e+t.clientHeight),0);e.current.setAttribute("style","height: ".concat(t,"px"))}}}}));
//# sourceMappingURL=useHeightTransition.es.js.map