Liferay.Loader.define("data-engine-js-components-web@1.0.75/js/custom/form/thunks/previousPage.es",["module","exports","require","../../../core/actions/eventTypes.es","../../../utils/evaluation.es"],(function(e,a,t){window;Object.defineProperty(a,"__esModule",{value:!0}),a.default=function({activePage:e,defaultLanguageId:a,editingLanguageId:t,formId:n,groupId:r,pages:d,portletNamespace:s,rules:u,selectedPage:l,viewMode:g}){return p=>{(0,i.evaluate)(null,{activePage:e,defaultLanguageId:a,editingLanguageId:t,formId:n,groupId:r,nextPage:e-1,pages:d,portletNamespace:s,previousPage:e,rules:u,viewMode:g}).then((a=>{let t=e;if("number"==typeof l)t=l;else for(let o=e-1;o>-1;o--)if(a[o].enabled){t=o;break}const i=Math.max(t,0);p({payload:{activePage:i},type:o.EVENT_TYPES.PAGE.CHANGE}),p({payload:a,type:o.EVENT_TYPES.PAGE.UPDATE}),Liferay.fire("ddmFormPageShow",{formId:n,page:i,title:d[i].title})}))}};var o=t("../../../core/actions/eventTypes.es"),i=t("../../../utils/evaluation.es")}));
//# sourceMappingURL=previousPage.es.js.map