!function(o){"use strict";var e=function(){var e,n,c=0;e=fusion.getAdminbarHeight(),n=o(".fusion-header-wrapper").find("div"),c=0,n.each((function(){"fixed"===o(this).css("position")&&(c=o(this).height())})),o("html, body").stop(),setTimeout((function(){o("html, body").animate({scrollTop:o(".woocommerce-notices-wrapper").offset().top-e-c-10},500)}),10)};o("form.checkout").on("checkout_place_order",(function(){if(Boolean(fusionWooNoticesVars.login_required)&&!fusionWooNoticesVars.is_logged_in)return e(),!1})),o("form.checkout_coupon").on("submit",(function(e){const n=o(e.currentTarget);n.find("#coupon_code").length?n.find(".awb-coupon-error-wrapper").find(".coupon-error-notice").remove():(n.prepend('
'),n.find(".awb-coupon-error-wrapper").hide())})),o(document.body).on("checkout_error avada_checkout_error",(function(e,n){var c,r,t=0,i=0,s=0,a="undefined"!=typeof avadaWooCommerceVars?avadaWooCommerceVars.woocommerce_checkout_error:"";o(".fusion-woo-notices-tb .woocommerce-notices-wrapper").length&&("checkout_error"===e.type&&void 0!==n?((c=o(n.replace(/
  • /g,'
  • '))).find("li[data-id]").each((function(){o("#"+o(this).data("id")+"_field").addClass("woocommerce-invalid woocommerce-invalid-required-field")})),1'+a+"
  • "),t=fusion.getAdminbarHeight(),r=o(".fusion-header-wrapper").find("div"),i=0,r.each((function(){"fixed"===o(this).css("position")&&(i=o(this).height())}))):(void 0===n&&(n=a),c=o('