1 2!function s(a,i,l){function c(e,t){if(!i[e]){if(!a[e]){var o="function"==typeof require&&require;if(!t&&o)return o(e,!0);if(h)return h(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var n=i[e]={exports:{}};a[e][0].call(n.exports,function(t){return c(a[e][1][t]||t)},n,n.exports,s,a,i,l)}return i[e].exports}for(var h="function"==typeof require&&require,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=(n.prototype.verdictLength=function(t){var e=0,o="",r=t.length;switch(!0){case 0<r&&r<5:o="3 points for length ("+r+")",e=3;break;case 4<r&&r<8:o="6 points for length ("+r+")",e=6;break;case 7<r&&r<16:o="12 points for length ("+r+")",e=12;break;case 15<r:o="18 points for length ("+r+")",e=18}return{score:e,log:o}},n.prototype.verdictLetter=function(t){var e=0,o="",r=t.match(/[a-z]/),n=t.match(/[A-Z]/);return r?o=n?(e=7,"7 points for letters are mixed"):(e=5,"5 point for at least one lower case char"):n&&(e=5,o="5 points for at least one upper case char"),{score:e,log:o}},n.prototype.verdictNumbers=function(t){var e=0,o="",r=t.replace(/\D/gi,"");return 1<r.length?(e=7,o="7 points for at least three numbers"):0<r.length&&(e=5,o="5 points for at least one number"),{score:e,log:o}},n.prototype.verdictSpecialChars=function(t){var e=0,o="",r=t.replace(/[\w\s]/gi,"");return 1<r.length?(e=10,o="10 points for at least two special chars"):0<r.length&&(e=5,o="5 points for at least one special char"),{score:e,log:o}},n.prototype.verdictCombos=function(t,e,o){var r=0,n="";return 7===t&&0<e&&0<o?(r=6,n="6 combo points for letters, numbers and special characters"):0<t&&0<e&&0<o?(r=4,n="4 combo points for letters, numbers and special characters"):7===t&&0<e?(r=2,n="2 combo points for mixed case letters and numbers"):0<t&&0<e?(r=1,n="1 combo points for letters and numbers"):7===t&&(r=1,n="1 combo points for mixed case letters"),{score:r,log:n}},n.prototype.finalVerdict=function(t){return t<16?"very weak":15<t&&t<25?"weak":24<t&&t<35?"mediocre":34<t&&t<45?"strong":"stronger"},n.prototype.calculate=function(t){var e=this.verdictLength(t),o=this.verdictLetter(t),r=this.verdictNumbers(t),n=this.verdictSpecialChars(t),s=this.verdictCombos(o.score,r.score,n.score),a=e.score+o.score+r.score+n.score+s.score,i=[e.log,o.log,r.log,n.log,s.log,a+" points final score"].join("\n");return{score:a,verdict:this.finalVerdict(a),log:i}},n);function n(){}o.default=r},{}],2:[function(t,e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=t("./PasswordStrengthCalculator"),n=window.document,s=(a.prototype.contentLoaded=function(){this.zone=n.getElementById("sfrZone"),this.zoneEmpty=n.getElementById("sfrZone_empty"),this.zoneLoading=n.getElementById("sfrZone_loading"),this.barGraph=n.getElementById("bargraph"),this.barGraph&&(this.barGraph.classList.add("show"),this.passwordStrengthCalculator=new r.default,this.isInternetExplorer()?this.loadInternetExplorerPolyfill():this.attachToElementById("sfrpassword","keyup",this.callTestPassword.bind(this))),this.attachToElementById("sfrCountry","change",this.countryChanged.bind(this)),this.attachToElementById("sfrCountry","keyup",this.countryChanged.bind(this)),this.attachToElementById("uploadButton","change",this.uploadFile.bind(this)),this.attachToElementById("removeImageButton","click",this.removeFile.bind(this))},a.prototype.showElement=function(t){t.classList.remove("d-none"),t.classList.add("d-block")},a.prototype.hideElement=function(t){t.classList.remove("d-block"),t.classList.add("d-none")},a.prototype.attachToElementById=function(t,e,o){var r=n.getElementById(t);this.attachToElement(r,e,o)},a.prototype.attachToElement=function(t,e,o){t&&t.addEventListener(e,o)},a.prototype.callTestPassword=function(t){var e=t.target,o=this.passwordStrengthCalculator.calculate(e.value);if("meter"===this.barGraph.tagName.toLowerCase())this.barGraph.value=o.score;else for(var r=this.barGraph,n=Math.min(Math.floor(o.score/3.4),10),s=(r.contentDocument||r.contentWindow.document).getElementsByClassName("blind"),a=0;a<s.length;a++){var i=s[a];a<n?this.hideElement(i):this.showElement(i)}},a.prototype.isInternetExplorer=function(){var t=navigator.userAgent;return-1<t.indexOf("MSIE ")||-1<t.indexOf("Trident/")},a.prototype.loadInternetExplorerPolyfill=function(){var t=this,e=n.getElementsByTagName("body").item(0),o=n.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src","https://unpkg.com/meter-polyfill/dist/meter-polyfill.min.js"),o.onload=function(){meterPolyfill(t.barGraph),t.attachToElementById("sfrpassword","keyup",t.callTestPassword)},e.appendChild(o)},a.prototype.countryChanged=function(t){if(("change"===t.type||"ke
2yup"===t.type&&(40===t.keyCode||38===t.keyCode))&&!0!==this.loading&&this.zone){var e=t.target||t.srcElement,o=e.options[e.selectedIndex].value;this.loading=!0,this.zone.disabled=!0,this.hideElement(this.zoneEmpty),this.showElement(this.zoneLoading),this.ajaxRequest=new XMLHttpRequest,this.ajaxRequest.onload=this.xhrReadyOnLoad.bind(this),this.ajaxRequest.open("POST","index.php?ajax=sf_register"),this.ajaxRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),this.ajaxRequest.send("tx_sfregister[action]=zones&tx_sfregister[parent]="+o)}},a.prototype.xhrReadyOnLoad=function(t){var e=t.target;if(4===e.readyState&&200===e.status){var o=JSON.parse(e.responseText);this.hideElement(this.zoneLoading),"error"===o.status||0===o.data.length?this.showElement(this.zoneEmpty):this.addZoneOptions(o.data)}this.loading=!1},a.prototype.addZoneOptions=function(t){for(var o=this;this.zone.length;)this.zone.removeChild(this.zone[0]);t.forEach(function(t,e){o.zone.options[e]=new Option(t.label,t.value)}),this.zone.disabled=!1},a.prototype.uploadFile=function(){var t=n.getElementById("uploadFile");t&&(t.value=this.value)},a.prototype.removeFile=function(){var t=n.getElementById("removeImage");t&&(t.value="1"),this.submitForm()},a.prototype.submitForm=function(){var t=n.getElementById("sfrForm");t&&t.reset()},a);function a(){this.loading=!1,this.ajaxRequest=null,this.barGraph=null,this.passwordStrengthCalculator=null,this.zone=null,this.zoneEmpty=null,this.zoneLoading=null,n.addEventListener("DOMContentLoaded",this.contentLoaded.bind(this))}o.default=s},{"./PasswordStrengthCalculator":1}],3:[function(t,e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var r=new(t("./SfRegister").default);window.sfRegister_submitForm=function(){r.submitForm()}},{"./SfRegister":2}]},{},[3]); 3//# sourceMappingURL=sf_register.js.map
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.