File: /var/www/html/wpdeskera/wp-content/plugins/defender-security/assets/js/strong-password.js
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,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(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function _iterableToArrayLimit(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,a,s,i,o=[],l=!0,u=!1;try{if(s=(t=t.call(r)).next,0===e){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=s.call(t)).done)&&(o.push(n.value),o.length!==e);l=!0);}catch(r){u=!0,a=r}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return o}}function _arrayWithHoles(r){if(Array.isArray(r))return r}jQuery(function(r){var e=r('input[type="password"]');if(e.length){var t=e.closest("form"),n=r("#pass-strength-result").hide(),a={length:!1,case:!1,number:!1,symbol:!1,zxcvbn:!1},s=function(){var t;if(null!==(t=window.wpdef_pws_strings)&&void 0!==t&&t.message&&!r("#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 ');e.after(n),i()}},i=function(){!function(r){a.length=r.length>=12,a.case=/[A-Z]/.test(r)&&/[a-z]/.test(r),a.number=/\d/.test(r),a.symbol=/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(r),a.zxcvbn="undefined"!=typeof zxcvbn&&r.length>0&&zxcvbn(r).score>=3&&!zxcvbn(r).feedback.warning}(e.val());var n=r("#password-hint-list");n.length&&(n.html(Object.entries(a).map(function(r){var e=_slicedToArray(r,2),t=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[t]," \n </li>")}).join("")),t.find(":submit").prop("disabled",!Object.values(a).every(Boolean)))};e.add(n).add("#createusersub, #submit").off(),e.one("focus",s),e.on("input pwupdate",i)}});