!function(){var e=function(){var t,n=window.location.pathname;return console.log("path -> ",n),console.log("Call URL -> ",window.datas.sslHost),t=jQuery.Event("sslAttempt"),$(document).trigger(t),t.isDefaultPrevented()||$.ajax(window.datas.sslHost,{dataType:"json",xhrFields:{withCredentials:!0},success:function(e){if(console.log("Success -> ",e),t=jQuery.Event("sslSuccess"),$(document).trigger(t,[e]),!t.isDefaultPrevented())return e.ajax_auth_token&&$("#lform").find('input[name="ajax_auth_token"]').attr("value",e.ajax_auth_token),r(n)},error:function(e){if(console.log("Error during AJAX SSL authentication",e),t=jQuery.Event("sslFailure"),$(document).trigger(t,[e]),!t.isDefaultPrevented()&&(0===e.status&&r(n),e.responseJSON&&"error"in e.responseJSON&&"9"===e.responseJSON.error&&r(n),e.responseJSON)&&"html"in e.responseJSON)return $("#errormsg").html(e.responseJSON.html),$(window).trigger("load")}}),!1},r=function(e){var t=$("#lform").attr("action");return t.match(/^#$/)?t=e:t+=e,console.log("form action URL -> ",t),$("#lform").attr("action",t),$("#lform").submit()};$(document).ready(function(){return $(".sslclick").on("click",e)})}.call(this);