Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.108/FieldSet/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,i){const[a,u]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{a&&(c(i),t&&e(i))}),[i,a,t]),[a,n=>{n.target===i.current&&a&&!t?(r(!0),u(!1),e(i)):n.target===i.current&&(r(!1),u(!1))},e=>{e.preventDefault(),t&&!a&&c(i),a||u(!0)}]};var n=r("liferay!frontend-js-react-web$react");const e=e=>{e&&e.current&&e.current.style.removeProperty("height")},c=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