Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.84/admin/js/components/form-settings/FormSettingsApi",["module","exports","require","data-engine-js-components-web","liferay!frontend-js-react-web$react"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("data-engine-js-components-web"),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("liferay!frontend-js-react-web$react"));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}const e=(e,t)=>{var n;return null===(n=e.find((e=>e.fieldName===t)))||void 0===n?void 0:n.value[0]};var i=o.default.forwardRef(((t,n)=>{const{pages:a}=(0,r.useFormState)();(0,o.useEffect)((()=>{const e="formSettingsAPI";return Liferay.component(e,{reactComponentRef:n},{destroyOnNavigate:!0}),()=>{Liferay.destroyComponent(e)}}),[n]);const i=(0,o.useMemo)((()=>(0,r.getFields)(a)),[a]);return n.current={getFields:()=>i,getObjectDefinitionId:()=>{const t=e(i,"storageType"),n=e(i,"objectDefinitionId");return"object"===t&&n?n:null}},null}));t.default=i}}));
//# sourceMappingURL=FormSettingsApi.js.map