Liferay.Loader.define("data-engine-js-components-web@1.0.112/js/core/hooks/useEvaluate.es",["module","exports","require","liferay!frontend-js-react-web$react","./useConfig.es","./useForm.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.useEvaluate=function useEvaluate(e){const{groupId:t,portletNamespace:r,viewMode:s}=(0,o.useConfig)(),{defaultLanguageId:u,editingLanguageId:i,objectFields:c,pages:l,rules:f,title:p}=(0,a.useFormState)();return(0,n.useCallback)((n=>e(function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({defaultLanguageId:u,editingLanguageId:i,groupId:t,objectFields:c,pages:l,portletNamespace:r,rules:f,title:p,viewMode:s},n))),[u,i,t,c,l,r,f,e,p,s])};var n=r("liferay!frontend-js-react-web$react"),o=r("./useConfig.es"),a=r("./useForm.es");function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=useEvaluate.es.js.map