PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 5.7.0
Defender Security – Malware Scanner, Login Security & Firewall v5.7.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / assets / js / strong-password.js

strong-password.js in Defender Security – Malware Scanner, Login Security & Firewall 5.7.0, at assets/js/strong-password.js

2 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o,s,i=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(i.push(n.value),i.length!==e);l=!0);}catch(t){u=!0,a=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}jQuery(function(t){var e=t('input[type="password"], #reg_password, #account_password, #password_1').not('form.woocommerce-form-login input[type="password"]').not('form.login input[type="password"]').not('.woocommerce-form-login input[type="password"]').not("#password_current").not("#password_2").not('input[name*="confirm"]').not('input[name*="repeat"]');if(e.length){var r=e.closest("form"),n=t("#pass-strength-result").hide(),a={length:!1,case:!1,number:!1,symbol:!1,zxcvbn:!1},o=function(){var r;if(null!==(r=window.wpdef_pws_strings)&&void 0!==r&&r.message&&!t("#password-hint-message").length){var n='\n <p id="password-hint-message">'.concat(window.wpdef_pws_strings.message,'</p>\n <ul id="password-hint-list"></ul>\n '),a=e.parent(".password-input");a.length?a.after(n):e.after(n),s()}},s=function(){!function(t){a.length=t.length>=12,a.case=/[A-Z]/.test(t)&&/[a-z]/.test(t),a.number=/\d/.test(t),a.symbol=/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(t),a.zxcvbn="undefined"!=typeof zxcvbn&&t.length>0&&zxcvbn(t).score>=3&&!zxcvbn(t).feedback.warning}(e.val());var n=t("#password-hint-list");if(n.length){n.html(Object.entries(a).map(function(t){var e=_slicedToArray(t,2),r=e[0],n=e[1];return'<li>\n <span class="'.concat(n?"valid dashicons dashicons-yes":"invalid dashicons dashicons-no-alt",'"></span>\n ').concat(window.wpdef_pws_strings.requirements[r],"\n </li>")}).join(""));var o=r.find(':submit, button[type="submit"]');Object.values(a).every(Boolean)?o.prop("disabled",!1).removeClass("disabled"):o.prop("disabled",!0).addClass("disabled")}},i=function(){e.add(n).add('#createusersub, #submit, button[type="submit"]').off(),e.one("focus",o),e.on("input pwupdate keyup change",s)};i(),t(document.body).on("updated_checkout updated_wc_div",i)}});
2