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