Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/App",["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","./DataEngineTaglibCompatibilityLayer","./FormBuilder","./config/initialConfig","./config/initialState","./hooks/useData","./reducers/fieldSetReducer","./reducers/rulesReducer","./reducers/sidebarReducer"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r("@frontend-taglib-clay$clayui/modal"),n=r("data-engine-js-components-web"),i=r("data-engine-js-components-web/js/core/reducers/index.es"),d=r("data-engine-js-components-web/js/custom/form/reducers/index.es"),o=j(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"),l=r("./DataEngineTaglibCompatibilityLayer"),s=r("./FormBuilder"),f=j(r("./config/initialConfig")),b=j(r("./config/initialState")),g=r("./hooks/useData"),y=j(r("./reducers/fieldSetReducer")),p=j(r("./reducers/rulesReducer")),m=j(r("./reducers/sidebarReducer"));function j(e){return e&&e.__esModule?e:{default:e}}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P=e=>{const{config:t,state:r}=(0,n.parseProps)(e),{dataDefinition:j,dataLayout:w}=(0,g.useData)({dataDefinitionId:t.dataDefinitionId,dataLayoutId:t.dataLayoutId});return j&&w?o.default.createElement(c.DndProvider,{backend:u.HTML5Backend},o.default.createElement(a.ClayModalProvider,null,o.default.createElement(n.ConfigProvider,{config:t,initialConfig:f.default},o.default.createElement(n.FormProvider,{initialState:b.default,reducers:[i.dataLayoutReducer,i.dragAndDropReducer,i.fieldEditableReducer,y.default,i.languageReducer,d.pageReducer,i.pagesStructureReducer,p.default,m.default],value:O(O(O({},r),j),{},{dataLayout:w})},o.default.createElement(l.DataEngineTaglibCompatibilityLayer,null),o.default.createElement(s.FormBuilder,null))))):null};t.default=P}}));
//# sourceMappingURL=App.js.map