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