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)}});
