1import i from"../../../../_virtual/jquery-BmT8mmiG.js";function a(o,s,t){let e;return function(){let r=this,d=arguments,h=function(){e=null,o.apply(r,d)};clearTimeout(e),e=setTimeout(h,s)}}class p{constructor(s){this.$password=s}initialize(){let s=this.$password.closest("fieldset").find("input[type=password]");if(s.length===2)if(s.first().get(0)===this.$password.get(0)){let t=a(()=>this._updateScoreBar(),500);this.$password.keydown(()=>t()),this.$password.change(()=>this._updateScoreBar())}else{let t=a(()=>this._updateConfirmBar(),500);this.$originalPassword=s.first(),this.$password.keydown(()=>t()),this.$password.change(()=>this._updateConfirmBar())}}_updateScoreBar(){let s=i("base").attr("href")||"/",t=this.$password.height()*.2;i.post(s+"f/changepassword/validate",{password:this.$password.val()}).done(e=>{let r=e.sufficient?"green":"red";this.$password.css({borderBottom:`${t}px solid ${r}`})}).fail(()=>{this.$password.css({borderBottom:`${t}px solid red`})})}_updateConfirmBar(){let s=this.$password.height()*.2,t=this.$originalPassword.val()===this.$password.val()?"green":"red";this.$password.css({borderBottom:`${s}px solid ${t}`})}}export{p as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.