"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),function(r){var t=r.fn.val;r.fn.val=function(e){return 0');n.text(s),n.on("click",function(e){e.preventDefault(),r(t).trigger("inputunlock")}),r(t).after(n)}r(t).trigger("inputlocked")},togglePasswordVisibility:function(e){if(r(this).parent().hasClass("show-password"))if(r(this).prev().attr("type","password"),r(this).parent().removeClass("show-password"),r(this).hasClass("icons-eye"))r(this).removeClass("icons-eye").addClass("icons-eye-blocked");else{var t=r(this).data("showlabel");r(this).text(t),r(this).parent().find(".sr-only").html(t)}else if(r(this).prev().attr("type","text"),r(this).parent().addClass("show-password"),r(this).hasClass("icons-eye-blocked"))r(this).removeClass("icons-eye-blocked").addClass("icons-eye");else{var s=r(this).data("hidelabel");r(this).text(s),r(this).parent().find(".sr-only").html(s)}}};s.init()}(jQuery);