Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/contexts/FormValidationContext",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.useSetFormValidations=t.useFormValidations=t.FormValidationContextProvider=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=o?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"));function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}const e={setValidations:()=>{},validations:[]},a=o.default.createContext(e),i=({children:e})=>{const[t,r]=(0,o.useState)([]);return o.default.createElement(a.Provider,{value:{setValidations:r,validations:t}},e)};t.FormValidationContextProvider=i;const s=()=>{const{validations:e}=(0,o.useContext)(a);return e};t.useFormValidations=s;const u=()=>{const{setValidations:e}=(0,o.useContext)(a);return e};t.useSetFormValidations=u}}));
//# sourceMappingURL=FormValidationContext.js.map