Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/admin/js/App.es",["module","exports","require","@frontend-taglib-clay$clayui/loading-indicator","@frontend-taglib-clay$clayui/modal","data-engine-js-components-web","data-engine-js-components-web/js/core/reducers/index.es","data-engine-js-components-web/js/custom/form/reducers/index.es","liferay!frontend-js-react-web$react","liferay!frontend-js-react-web$react-dnd","liferay!frontend-js-react-web$react-dnd-html5-backend","liferay!frontend-js-dependencies-web$react-router-dom","./components/LazyRoute","./components/NavigationBar.es","./config/initialConfigState.es","./config/initialState.es","./hooks/useAutoSave.es","./hooks/useToast.es","./reducers/index.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=App;var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/loading-indicator")),n=r("@frontend-taglib-clay$clayui/modal"),o=r("data-engine-js-components-web"),i=r("data-engine-js-components-web/js/core/reducers/index.es"),l=r("data-engine-js-components-web/js/custom/form/reducers/index.es"),d=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=a?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),c=r("liferay!frontend-js-react-web$react-dnd"),u=r("liferay!frontend-js-react-web$react-dnd-html5-backend"),s=r("liferay!frontend-js-dependencies-web$react-router-dom"),f=_interopRequireDefault(r("./components/LazyRoute")),p=r("./components/NavigationBar.es"),m=r("./config/initialConfigState.es"),g=r("./config/initialState.es"),b=_interopRequireDefault(r("./hooks/useAutoSave.es")),y=r("./hooks/useToast.es"),j=r("./reducers/index.es");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,n=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function App(e){let{autosaveInterval:t,autosaveURL:r,mainRequire:R}=e,v=_objectWithoutProperties(e,["autosaveInterval","autosaveURL","mainRequire"]);const{config:h,state:w}=(0,o.parseProps)(v);return d.default.createElement(c.DndProvider,{backend:u.HTML5Backend,context:window},d.default.createElement(o.ConfigProvider,{config:h,initialConfig:m.INITIAL_CONFIG_STATE},d.default.createElement(n.ClayModalProvider,null,d.default.createElement(o.FormProvider,{init:g.initState,initialState:g.BUILDER_INITIAL_STATE,reducers:[i.dragAndDropReducer,j.elementSetReducer,i.fieldEditableReducer,j.formInfoReducer,i.languageReducer,l.objectFieldsReducer,l.pageReducer,i.pagesStructureReducer,j.rulesReducer,j.sidebarReducer],value:w},d.default.createElement(o.KeyboardDNDContextProvider,null,d.default.createElement(y.ToastProvider,null,d.default.createElement(s.HashRouter,null,d.default.createElement(b.default,{interval:t,url:r},d.default.createElement(s.Route,{component:p.NavigationBar,path:"/"}),d.default.createElement(d.Suspense,{fallback:d.default.createElement(a.default,null)},d.default.createElement(s.Switch,null,d.default.createElement(f.default,{exact:!0,importPath:"".concat(R,"/admin/js/pages/FormBuilder.es"),path:"/"}),d.default.createElement(f.default,{importPath:"".concat(R,"/admin/js/pages/RuleBuilder.es"),path:"/rules"}),d.default.createElement(f.default,{importPath:"".concat(R,"/admin/js/pages/Report"),path:"/report"})))))))))))}App.displayName="App"}}));
//# sourceMappingURL=App.es.js.map