Liferay.Loader.define("data-engine-js-components-web@1.0.107/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 MultiStep({activePage:e,editable:t,pages:a}){const{containerElement:d}=(0,o.usePage)(),m=(0,r.useEvaluate)(c.default),f=(0,r.useEvaluate)(n.default),p=(0,l.useForm)();return i.default.createElement("div",{className:"ddm-form-pagination position-relative wizard-mode"},i.default.createElement("ol",{className:"ddm-wizard multi-step-indicator-label-top multi-step-nav multi-step-nav-collapse-sm"},a.map(((r,l)=>i.default.createElement("li",{className:(0,s.default)("multi-step-item",{active:l===e,complete:l<e,"multi-step-item-expand":l+1!==a.length}),key:l,onClick:()=>{l<e?p(m({activePage:e,formId:(0,u.getFormId)((0,u.getFormNode)(d.current)),selectedPage:l})):l>e&&p(f({activePage:e,formId:(0,u.getFormId)((0,u.getFormNode)(d.current)),selectedPage:l}))}},i.default.createElement("div",{className:"multi-step-divider"}),i.default.createElement("div",{className:"multi-step-indicator"},i.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?i.default.createElement("a",{className:"multi-step-icon","data-multi-step-icon":l+1,href:"javascript:void(0);"}):i.default.createElement("span",{className:"multi-step-icon","data-multi-step-icon":l+1})))))))};var s=_interopRequireDefault(a("liferay!frontend-js-react-web$classnames")),i=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),r=a("../../../core/hooks/useEvaluate.es"),l=a("../../../core/hooks/useForm.es"),o=a("../../../core/hooks/usePage.es"),u=a("../../../utils/formId.es"),n=_interopRequireDefault(a("../thunks/nextPage.es")),c=_interopRequireDefault(a("../thunks/previousPage.es"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=MultiStep.es.js.map