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