Liferay.Loader.define("data-engine-js-components-web@1.0.86/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 previousPage({activePage:e,defaultLanguageId:a,editingLanguageId:t,formId:n,groupId:r,pages:s,portletNamespace:u,rules:d,selectedPage:l,viewMode:g}){return p=>{(0,i.evaluate)(null,{activePage:e,defaultLanguageId:a,editingLanguageId:t,formId:n,groupId:r,nextPage:e-1,pages:s,portletNamespace:u,previousPage:e,rules:d,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:s[i].title})}))}};var o=t("../../../core/actions/eventTypes.es"),i=t("../../../utils/evaluation.es")}));
//# sourceMappingURL=previousPage.es.js.map