!(function (e, t) { "object" == typeof exports && "object" == typeof module ? (module.exports = t()) : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? (exports.rexWizard = t()) : (e.rexWizard = t()); })(this, () => { return ( (e = { 987: (e) => { function t(e, t) { var n = document.createElement("style"); (n.type = "text/css"), (n.innerHTML = "." + e + " {" + t + "}"), document.head.appendChild(n); } e.exports = function e(n) { var i = n.general, r = n.steps, o = document.getElementById(null == i ? void 0 : i.targetElement) || d(null == i ? void 0 : i.targetElement, document.body), l = document.getElementById("progressBarContainer") || d("progressBarContainer", null == o ? void 0 : o.parentNode, o); function d(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null, i = document.createElement("div"); return (i.id = e), i.setAttribute("style", "display:flex; align-items:center; justify-content:space-around"), n ? t.insertBefore(i, n) : t.appendChild(i), i; } function a(e, n, i) { e.innerHTML = ""; var r, o, l = document.createElement("div"), d = "setup-wizard__pregress-bar"; t(d, "width:100%; text-align: center; display:flex;"), (o = d), (r = l).classList ? r.classList.add(o) : (r.className += " " + o), null == n || n.forEach(function (e, n) { var r = document.createElement("div"); (r.innerHTML = ""), (r.innerHTML = n === i || n > i ? "

".concat(n + 1, " ").concat(null == e ? void 0 : e.stepText, "

") : '\n

\n \n \n \n \n \n '.concat( null == e ? void 0 : e.stepText, "\n

\n " )); var o = "setup-wizard__pregress-step"; t(o, "display: inline-block; position: relative; padding: 15px 68.5px 15px 16px; background: #E5E8F3;"), r.classList.add(o), r.classList.add(n < i ? "step-visited" : n === i ? "step-active" : "step-not-visited"), l.appendChild(r); }), e.appendChild(l); } function p(e, t, n) { var i, r, o; if (((e.innerHTML = ""), null !== (i = t[null == n ? void 0 : n.currentStep]) && void 0 !== i && i.title)) { var l, d = document.createElement("h1"); (d.textContent = null === (l = t[null == n ? void 0 : n.currentStep]) || void 0 === l ? void 0 : l.title), e.appendChild(d); } if (null !== (r = t[null == n ? void 0 : n.currentStep]) && void 0 !== r && r.description) { var a, p = document.createElement("p"); (p.textContent = null === (a = t[null == n ? void 0 : n.currentStep]) || void 0 === a ? void 0 : a.description), e.appendChild(p); } var u = document.createElement("div"); (u.innerHTML = null === (o = t[null == n ? void 0 : n.currentStep]) || void 0 === o ? void 0 : o.html), (u.className = "active-step"), e.appendChild(u); } function u(e) { e < r.length && e >= 0 && ((i.currentStep = e), p(o, r, i), a(l, r, null == i ? void 0 : i.currentStep)); } return ( (function (e, t, n) { var i = e.logo, r = e.logoStyles, o = document.getElementById("wizardLogo"); !o && i ? (((o = document.createElement("img")).id = "wizardLogo"), (o.src = i), (o.alt = "Wizard Logo"), o.classList.add(r || ""), t.insertBefore(o, n)) : o && i && ((o.src = i), o.classList.add(r || "")); })(i, null == l ? void 0 : l.parentNode, l), a(l, r, null == i ? void 0 : i.currentStep), p(o, r, i), { rexWizard: e, previousStep: function () { u((null == i ? void 0 : i.currentStep) - 1); }, nextStep: function () { u((null == i ? void 0 : i.currentStep) + 1); }, skipStep: function () { var e, t; (e = null == i ? void 0 : i.currentStep), u( -1 !== (t = null == r ? void 0 : r.findIndex(function (t, n) { return n > e && !t.isSkip; })) ? t : (null == r ? void 0 : r.length) - 1 ); }, getCurrentStep: function () { return null == i ? void 0 : i.currentStep; }, } ); }; }, }), (t = {}), (function n(i) { var r = t[i]; if (void 0 !== r) return r.exports; var o = (t[i] = { exports: {} }); return e[i](o, o.exports, n), o.exports; })(987) ); var e, t; });