!function(){"use strict";var e=function(){var t,r=window.location.pathname;return console.debug("path -> ",r),console.debug("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.debug("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),n(r)},error:function(e){if(console.error("Error during AJAX SSL authentication",e),t=jQuery.Event("sslFailure"),$(document).trigger(t,[e]),!t.isDefaultPrevented()&&(0===e.status&&n(r),e.responseJSON&&"error"in e.responseJSON&&"9"===e.responseJSON.error&&n(r),e.responseJSON)&&"html"in e.responseJSON)return $("#errormsg").html(e.responseJSON.html),$(window).trigger("load")}}),!1},n=function(e){var t=$("#lform").attr("action");return t.match(/^#$/)?t=e:t+=e,console.debug("form action URL -> ",t),$("#lform").attr("action",t),$("#lform").submit()};$(document).ready(function(){return $(".sslclick").on("click",e)})}();