Liferay.Loader.define("data-engine-taglib@3.3.53/data_layout_builder/js/hooks/useLazy.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function useLazy(t){const n=u(new Map);return r((({getInstance:r,pluginId:u})=>{if(!n.current.has(u)){const a=r(u),l=e((()=>a.then((e=>({default:()=>e?t({instance:e}):null})))));n.current.set(u,l)}const l=n.current.get(u);return a.default.createElement(l,null)}),[t])};var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("liferay!frontend-js-react-web$react"));const{lazy:e,useCallback:r,useRef:u}=a.default}}));
//# sourceMappingURL=useLazy.es.js.map