Liferay.Loader.define("data-engine-js-components-web@1.0.79/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:d}=(0,r.usePage)(),m=(0,i.useEvaluate)(c.default),f=(0,i.useEvaluate)(u.default),p=(0,o.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(((i,o)=>l.default.createElement("li",{className:(0,s.default)("multi-step-item",{active:o===e,complete:o<e,"multi-step-item-expand":o+1!==a.length}),key:o,onClick:()=>{o<e?p(m({activePage:e,formId:(0,n.getFormId)((0,n.getFormNode)(d.current)),selectedPage:o})):o>e&&p(f({activePage:e,formId:(0,n.getFormId)((0,n.getFormNode)(d.current)),selectedPage:o}))}},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"===i.paginationItemRenderer?Liferay.Language.get("success-page"):i.title?i.title:Liferay.Language.get("untitled-page")),t?l.default.createElement("a",{className:"multi-step-icon","data-multi-step-icon":o+1,href:"javascript:void(0);"}):l.default.createElement("span",{className:"multi-step-icon","data-multi-step-icon":o+1})))))))};var s=d(a("liferay!frontend-js-react-web$classnames")),l=d(a("liferay!frontend-js-react-web$react")),i=a("../../../core/hooks/useEvaluate.es"),o=a("../../../core/hooks/useForm.es"),r=a("../../../core/hooks/usePage.es"),n=a("../../../utils/formId.es"),u=d(a("../thunks/nextPage.es")),c=d(a("../thunks/previousPage.es"));function d(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=MultiStep.es.js.map