1import "/-d1363---KeukpIMk/zxcvbn.js?_linka=d20797";import translate from "/-d1127---RDTYinol/dictionary.js?_linka=a68655";export default class PasswordStrength{constructor(){this.target=".password-strength-js";this.result=".password-strength__result";this.score=".password-strength__score span";this.bar=".password-strength__bar";this.rules=".password-strength__rules";this.rulesShort=".password-strength__rules--short";this.init()}init(){this.$target=$(this.target);this.$result=$(this.result);this.$score=$(this.score);this.$bar=$(this.bar); 2this.$rules=$(this.rules);this.$rulesShort=$(this.rulesShort);this.bind()}bind(){this.$target.on("keyup",$.proxy(this.passwordCheck,this))}passwordCheck(){let passwordStrength=zxcvbn(this.$target.val());let passwordLength=passwordStrength.password.length;let $btn=this.$target.parents("form").find("input[type\x3d'submit']");let passwordScore=passwordStrength.score;this.$score.html(translate("PASSWORD_STRENGTH_"+(passwordLength>0?passwordScore:"EMPTY")));this.$bar.attr("data-password-strength",passwordLength> 30?passwordScore:"empty");if(passwordScore<2&&passwordLength>0){this.$rules.addClass("password-strength__rules--show");this.$rulesShort.removeClass("password-strength__rules--show");this.$target.addClass("error");$btn.attr("disabled",true)}else{this.$rules.removeClass("password-strength__rules--show");this.$rulesShort.removeClass("password-strength__rules--show");if(passwordLength>7){this.$target.removeClass("error");$btn.attr("disabled",false)}else if(passwordLength!==0){this.$rulesShort.addClass("password-strength__rules--show"); 4this.$score.html(translate("PASSWORD_STRENGTH_"+"1"));this.$bar.attr("data-password-strength",1)}else this.$target.removeClass("error")}}};
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.