Liferay.Loader.define("data-engine-js-components-web@1.0.55/js/custom/form/components/MultiStep.es",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../../../core/hooks/useEvaluate.es","../../../core/hooks/useForm.es","../../../core/hooks/usePage.es","../../../utils/formId.es","../thunks/nextPage.es","../thunks/previousPage.es"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.MultiStep=function({activePage:e,editable:t,pages:a}){const{containerElement:m}=(0,o.usePage)(),d=(0,r.useEvaluate)(c.default),f=(0,r.useEvaluate)(u.default),p=(0,i.useForm)();return l.default.createElement("div",{className:"ddm-form-pagination position-relative wizard-mode"},l.default.createElement("ol",{className:"ddm-wizard multi-step-indicator-label-top multi-step-nav multi-step-nav-collapse-sm"},a.map(((r,i)=>l.default.createElement("li",{className:(0,s.default)("multi-step-item",{active:i===e,complete:i<e,"multi-step-item-expand":i+1!==a.length}),key:i,onClick:()=>{i<e?p(d({activePage:e,formId:(0,n.getFormId)((0,n.getFormNode)(m.current))})):i>e&&p(f({activePage:e,formId:(0,n.getFormId)((0,n.getFormNode)(m.current))}))}},l.default.createElement("div",{className:"multi-step-divider"}),l.default.createElement("div",{className:"multi-step-indicator"},l.default.createElement("div",{className:"multi-step-indicator-label"},"wizard_success"===r.paginationItemRenderer?Liferay.Language.get("success-page"):r.title?r.title:Liferay.Language.get("untitled-page")),t?l.default.createElement("a",{className:"multi-step-icon","data-multi-step-icon":i+1,href:"javascript:;"}):l.default.createElement("span",{className:"multi-step-icon","data-multi-step-icon":i+1})))))))};var s=m(a("liferay!frontend-js-react-web$classnames")),l=m(a("liferay!frontend-js-react-web$react")),r=a("../../../core/hooks/useEvaluate.es"),i=a("../../../core/hooks/useForm.es"),o=a("../../../core/hooks/usePage.es"),n=a("../../../utils/formId.es"),u=m(a("../thunks/nextPage.es")),c=m(a("../thunks/previousPage.es"));function m(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=MultiStep.es.js.map