Liferay.Loader.define("data-engine-js-components-web@1.0.55/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:u,rules:s,viewMode:l}){return g=>{(0,i.evaluate)(null,{activePage:e,defaultLanguageId:a,editingLanguageId:t,formId:n,groupId:r,nextPage:e-1,pages:d,portletNamespace:u,previousPage:e,rules:s,viewMode:l}).then((a=>{let t=e;for(let o=e-1;o>-1;o--)if(a[o].enabled){t=o;break}const i=Math.max(t,0);g({payload:{activePage:i},type:o.EVENT_TYPES.PAGE.CHANGE}),g({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