/*! component-smartwizard.js | Adminuiux 2025 */

"use strict";
document.addEventListener("DOMContentLoaded", function () {

    $('#smartwizard').smartWizard({
        toolbar: {
            extraHtml: '<a class="btn btn-outline-accent float-start" href="#">Skip</a><a class="btn btn-theme finish-btn" style="display:none" href="#">Finish</a>' // Extra html to show on toolbar
        },
    });
    $("#smartwizard").on("showStep", function (e, anchorObject, stepNumber, stepDirection, stepPosition) {
        if (stepPosition === 'last') {
            $(".finish-btn").show();
        } else {
            $(".finish-btn").hide();
        }
    });

    $('#smartwizard2').smartWizard({
        theme: 'dots',
        toolbar: {
            extraHtml: '<a class="btn btn-outline-accent float-start" href="mobileux-dashboard.html">Skip</a><a class="btn btn-theme finish-btn" style="display:none" href="mobileux-dashboard.html">Finish</a>' // Extra html to show on toolbar
        },
    });

});
