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