(()=>{"use strict";var o,n;o=jQuery,window.RTSB&&window.RTSB._initialized&&(null===(n=window.RTSB.modules.register("checkoutLoginForm",function(){return{name:"checkoutLoginForm",version:"1.0.0",init:function(){return function(o){var n=o(document.body);n.on("click",".rtsb-checkout-login-form a.showlogin",function(){o(".rtsb-checkout-login-form .login").slideToggle()}),n.on("click",'.rtsb-checkout-login-form button[name="login"]',function(n){n.preventDefault();var e=o(n.target).parents(".woocommerce-form-login");if(e.is(".processing"))return!1;e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var r=o("#rememberme:checked"),i={action:"rtsb_ajax_login",username:o("#username").val(),password:o("#password").val(),rememberme:!!r.val()&&r.val(),__rtsb_wpnonce:rtsbPublicParams.__rtsb_wpnonce};o.ajax({type:"POST",dataType:"json",url:rtsbPublicParams.ajaxUrl,data:i,success:function(o){e.removeClass("processing").unblock(),setTimeout(function(){window.location.href=o.redirectto},500)},error:function(){}})})}(o),this}}}))||void 0===n||n.init())})();