Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/admin/js/components/form-settings/FormSettings",["module","exports","require","data-engine-js-components-web","data-engine-js-components-web/js/core/reducers/index.es","liferay!frontend-js-react-web$react","./FormSettingsApi","./FormSettingsModal"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("data-engine-js-components-web"),a=r("data-engine-js-components-web/js/core/reducers/index.es"),i=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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),o=_interopRequireDefault(r("./FormSettingsApi")),u=_interopRequireDefault(r("./FormSettingsModal"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}var _default=e=>{const{onCloseFormSettings:t,portletNamespace:r,visibleFormSettings:s}=e,{config:c,state:l}=(0,n.parseProps)(e),d=(0,i.useRef)(null),f=(0,i.useRef)(null),p=(0,i.useRef)(e.pages),g=(0,i.useRef)(!0),m=document.querySelector("#".concat(r,"serializedSettingsContext"));return m?i.default.createElement(n.ConfigProvider,{config:c},i.default.createElement(n.FormProvider,{initialState:{activePage:0},reducers:[a.activePageReducer,a.pagesStructureReducer],value:l},i.default.createElement(u.default,{onCloseFormSettings:t,prevPagesRef:p,serializedSettingsContext:m,undoPagesRef:g,visibleFormSettings:s},i.default.createElement(n.Pages,{editable:!1,ref:f})),i.default.createElement(o.default,{ref:d}))):null};t.default=_default}}));
//# sourceMappingURL=FormSettings.js.map