!function(t){"use strict";({init:function(){t(".multistep-checkout-progress").on("click",".multistep-item",this.stepProgressBar),t(".multistep-checkout-navigation").on("click","a",this.navigation),t(".checkout-order-review-wrapper").insertBefore(t('.multistep-checkout-content[data-step="order"] .multistep-checkout-navigation')),setTimeout((function(){t("form.checkout .required, form.woocommerce-form-login .required").each((function(){t(this).closest(".form-row").find("input").attr("required",!0),t(this).closest(".form-row").find("select").attr("required",!0)}))}),1e3)},stepProgressBar:function(){var e=t(this).data("step"),i=t(this).siblings(".multistep-item.active"),o=t("form.woocommerce-checkout").valid();if(setTimeout((function(){t("form.woocommerce-checkout .woocommerce-input-wrapper .error:not(label), .woocommerce-form__input-checkbox[required].error").each((function(){return t("html").animate({scrollTop:t(this).offset().top-100},500),t(this).focus(),!1}))}),100),!o)return i.addClass("error"),!1;i.removeClass("error"),t(this).addClass("active").siblings().removeClass("active"),t('.multistep-checkout-content[data-step="'+e+'"]').addClass("active").siblings().removeClass("active")},navigation:function(e){var i=t(".multistep-checkout-progress").offset().top-70;t(e.target).hasClass("multistep-checkout-next")?(e.preventDefault(),t("html").animate({scrollTop:i},300,(function(){setTimeout((function(){t(".multistep-item.active").next(".multistep-item").trigger("click")}),100)}))):t(e.target).hasClass("multistep-checkout-prev")&&(e.preventDefault(),t("html").animate({scrollTop:i},500,(function(){setTimeout((function(){t(".multistep-item.active").prev(".multistep-item").trigger("click")}),100)})))}}).init()}(jQuery);