Liferay.Loader.define("data-engine-taglib@3.3.53/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","./KeyboardDNDText","./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=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),u=r("liferay!frontend-js-react-web$react-dnd"),l=r("liferay!frontend-js-react-web$react-dnd-html5-backend"),c=r("./DataEngineTaglibCompatibilityLayer"),f=r("./FormBuilder"),s=_interopRequireDefault(r("./KeyboardDNDText")),b=_interopRequireDefault(r("./config/initialConfig")),p=_interopRequireDefault(r("./config/initialState")),y=r("./hooks/useData"),g=_interopRequireDefault(r("./reducers/fieldSetReducer")),j=_interopRequireDefault(r("./reducers/rulesReducer")),m=_interopRequireDefault(r("./reducers/sidebarReducer"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _default=e=>{const{config:t,state:r}=(0,n.parseProps)(e),{dataDefinition:D,dataLayout:w}=(0,y.useData)({dataDefinitionId:t.dataDefinitionId,dataLayoutId:t.dataLayoutId});return D&&w?o.default.createElement(u.DndProvider,{backend:l.HTML5Backend},o.default.createElement(a.ClayModalProvider,null,o.default.createElement(n.ConfigProvider,{config:t,initialConfig:b.default},o.default.createElement(n.FormProvider,{initialState:p.default,reducers:[i.dataLayoutReducer,i.dragAndDropReducer,i.fieldEditableReducer,g.default,i.languageReducer,d.pageReducer,i.pagesStructureReducer,j.default,m.default],value:_objectSpread(_objectSpread(_objectSpread({},r),D),{},{dataLayout:w})},o.default.createElement(n.KeyboardDNDContextProvider,null,o.default.createElement(c.DataEngineTaglibCompatibilityLayer,null),o.default.createElement(f.FormBuilder,null),o.default.createElement(s.default,null)))))):null};t.default=_default}}));
//# sourceMappingURL=App.js.map