Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/admin/js/components/LazyRoute",["module","exports","require","liferay!frontend-js-react-web$react","liferay!frontend-js-dependencies-web$react-router-dom"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function LazyRoute(e){let{importPath:r}=e,t=function _objectWithoutProperties(e,r){if(null==e)return{};var t,n,o=function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["importPath"]);const a=(0,n.useMemo)((()=>(0,n.lazy)((()=>new Promise(((e,t)=>{Liferay.Loader.require([r],(r=>e(r)),(e=>t(e)))}))))),[r]);return n.default.createElement(o.Route,_extends({},t,{render:e=>n.default.createElement(a,e)}))};var n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}t.default=e,r&&r.set(e,t);return t}(t("liferay!frontend-js-react-web$react")),o=t("liferay!frontend-js-dependencies-web$react-router-dom");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}}}));
//# sourceMappingURL=LazyRoute.js.map