🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 01:07:03 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
plugins
/
blocksy-companion
/
static
/
bundle
📍 /home/eliteewa/public_html/wp-content/plugins/blocksy-companion/static/bundle
🔄 Refresh
✏️
Editing: account.js
Writable
!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.ctEvents,r=e.n(t),o=window.ctFrontend;var n=function(e,t){let r=function(e){var t=jQuery();return[...e.querySelectorAll("input")].map(function(e){t=t.add(e)}),t}(t);if("object"==typeof grecaptcha)grecaptcha.ready(function(){grecaptcha.execute(WFLSVars.recaptchasitekey,{action:"login"}).then(function(t){var o=jQuery("#wfls-captcha-token");o.length?o.val(t):r.length&&((o=jQuery('<input type="hidden" name="wfls-captcha-token" id="wfls-captcha-token" />')).val(t),r.parent().append(o)),"function"==typeof e&&e(!0)})});else{var o=jQuery("#wfls-captcha-token");o.length?o.val("grecaptcha-missing"):r.length&&((o=jQuery('<input type="hidden" name="wfls-captcha-token" id="wfls-captcha-token" />')).val("grecaptcha-missing"),r.parent().append(o)),"function"==typeof e&&e(!0)}};const c=function(e,t){return!(!window.WPDEF||window.turnstile)&&(function(e,t){"v3_recaptcha"!=WPDEF.options.version?"v2_checkbox"!=WPDEF.options.version&&"v2_invisible"!=WPDEF.options.version||[...t.querySelectorAll('div[id^="wpdef_recaptcha_"]')].forEach(function(t){if(""!==t.innerHTML.trim())return;const r={sitekey:WPDEF.options.sitekey,theme:WPDEF.options.theme,size:WPDEF.options.size,callback:function(){"function"==typeof e&&e(!0)}};grecaptcha.render(t.id,r)}):grecaptcha.ready(function(){grecaptcha.execute(WPDEF.options.siteKey,{action:"WPDEF_reCaptcha"}).then(function(t){document.querySelectorAll(".g-recaptcha-response").forEach(function(e){e.value=t}),"function"==typeof e&&e(!0)})})}(function(){return e()},t),!0)},i=function(e){[...e.querySelectorAll(".g-recaptcha, .anr_captcha_field")].map(function(e){e.classList.contains("anr_captcha_field")?grecaptcha.reset(parseFloat(e.firstElementChild.id.replace("anr_captcha_field_",""))-1):grecaptcha.reset(e.gID)})},a=function(e){return new Promise(function(t){(function(e,t){return!(!window.WFLSVars||!parseInt(WFLSVars.useCAPTCHA)||(n(function(){return e()},t),0))})(t,e)||c(t,e)||t()})};var s=window.jQuery,l=e.n(s);const u=function(e){const t=function(){var t=e.closest("form");!function(e,t){var r=l()(e).find(".woocommerce-password-strength");""===l()(t).val()?(r.hide(),l()(document.body).trigger("wc-password-strength-hide")):0===r.length?(l()(t.nextElementSibling).after('<div class="woocommerce-password-strength" aria-live="polite"></div>'),l()(document.body).trigger("wc-password-strength-added")):(r.show(),l()(document.body).trigger("wc-password-strength-show"))}(t,e);let r=function(e,t){let r=l()(e).find(".woocommerce-password-strength"),o=l()(e).find(".woocommerce-password-hint"),n='<small class="woocommerce-password-hint">'+wc_password_strength_meter_params.i18n_password_hint+"</small>",c=wp.passwordStrength.meter(l()(t).val(),wp.passwordStrength.userInputDisallowedList()),i="";if(r.removeClass("short bad good strong"),o.remove(),r.is(":hidden"))return c;switch(c<wc_password_strength_meter_params.min_password_strength&&(i=" - "+wc_password_strength_meter_params.i18n_password_error),c){case 0:r.addClass("short").html(pwsL10n.short+i),r.after(n);break;case 1:case 2:r.addClass("bad").html(pwsL10n.bad+i),r.after(n);break;case 3:r.addClass("good").html(pwsL10n.good+i);break;case 4:r.addClass("strong").html(pwsL10n.strong+i);break;case 5:r.addClass("short").html(pwsL10n.mismatch)}return c}(t,e),o=l()(t).find('button[name="wp-submit"]');e.value.length>0&&r<wc_password_strength_meter_params.min_password_strength&&-1!==r?o.attr("disabled","disabled").addClass("disabled"):o.prop("disabled",!1).removeClass("disabled")};e.addEventListener("keyup",t),e.addEventListener("change",t)},d=function(e,t){const r=t.querySelector('[name="validate_2fa_form"]');if(!r)return!1;let o="";e.parentNode.querySelector('[name="validate_2fa_form"]')&&(o=e.parentNode.querySelector('[id="authcode"]').value,e.parentNode.querySelector('[name="validate_2fa_form"]').remove()),e.insertAdjacentElement("beforebegin",r),r.querySelector('[id="authcode"]').value=o;let n=r.querySelector('input.authcode[inputmode="numeric"]'),c=n?.dataset.digits||0;if(n){let e=!1;n.addEventListener("input",function(){let t=this.value.replace(/[^0-9 ]/g,"").trimStart();!e&&c&&t.length===Math.floor(c/2)?(t+=" ",e=!0):e&&!this.value&&(e=!1),this.value=t,c&&t.replace(/ /g,"").length==c&&void 0!==r.requestSubmit&&(r.requestSubmit(),r.submit.disabled="disabled")})}return r.addEventListener("submit",function(t){t.preventDefault();let o=new FormData(r);fetch(r.action,{method:r.method,body:o}).then(function(e){return e.text()}).then(function(t){h(e);const{doc:r,hasError:o}=y(e.closest(".ct-login-form"),t);o&&d(e,r),o||setTimeout(function(){location=e.querySelector('[name="redirect_to"]').value},2e3)})}),!0},f=function(e,t){const r=t.querySelector('form[name^="itsec-"]');if(!r)return!1;if("itsec-2fa-on-board"===r.name)return location.reload(),!0;const o=e.parentNode?.querySelector('form[name^="itsec-"]');return o?o.replaceWith(r):e.insertAdjacentElement("beforebegin",r),r.addEventListener("submit",function(t){t.preventDefault(),p(r);const o=r.getAttribute("action"),n=r.getAttribute("method")||"post";fetch(o,{method:n,body:new FormData(r)}).then(function(e){return e.redirected&&e.url?(h(r),setTimeout(function(){location=e.url},500),null):e.text()}).then(function(t){if(null===t)return;h(r);const o=(new DOMParser).parseFromString(t,"text/html"),n=o.querySelector("#login_error, #login-error");n&&w(e.closest(".ct-login-form"),n.innerHTML),f(e,o)||n||location.reload()})}),!0},m=function(e){let t=e.querySelector('[name="loginform"]');t&&t.addEventListener("submit",function(e){if(e.preventDefault(),window.ct_customizer_localizations)return;p(t);let r=new FormData(t);r.append("redirect_to",location.href),t.querySelector('[name="username"]')&&r.append("log",t.querySelector('[name="username"]').value);let o=`${ct_localizations.ajax_url}?action=blc_implement_user_login`;if(window.WFLSVars&&!t.loginProceed)return r.append("action","wordfence_ls_authenticate"),o=WFLSVars.ajaxurl,void a(t).then(function(){fetch(o,{method:t.method,body:r}).then(function(e){return e.json()}).then(function(e){h(t);let r=!!e.error;const o=t.closest(".ct-login-form"),n=t.closest(".ct-login-form").querySelector("form");if(r&&w(o,e.error),e.message&&v(n,e.message),e.login){if(e.two_factor_required){if(!t.querySelector("#wfls-prompt-overlay")){var c=l()('<div id="wfls-prompt-overlay"></div>'),a=l()('<div id="wfls-prompt-wrapper"></div>'),s=l()('<label for="wfls-token">');s.text("Wordfence 2FA Code "),s.append(l()('<a href="javascript:void(0)" class="wfls-2fa-code-help wfls-tooltip-trigger" title="The Wordfence 2FA Code can be found within the authenticator app you used when first activating two-factor authentication. You may also use one of your recovery codes."><i class="dashicons dashicons-editor-help"></i></a>')),s=l()("<p>").append(s);var u=l()('<p><input type="text" name="wfls-token" id="wfls-token" aria-describedby="wfls-token-error" class="input" value="" size="6" autocomplete="one-time-code"/></p>'),d=l()('<p class="wfls-remember-device-wrapper"><label for="wfls-remember-device"><input name="wfls-remember-device" type="checkbox" id="wfls-remember-device" value="1" /> </label></p>');d.find("label").append("Remember for 30 days");var f=l()('<p class="submit"><input type="submit" name="wfls-token-submit" id="wfls-token-submit" class="button button-primary button-large"/></p>');f.find("input[type=submit]").val("Log In"),a.append(s),a.append(u),parseInt(WFLSVars.allowremember)&&a.append(d),a.append(f),c.append(a),l()(n).css("position","relative").append(c),l()("#wfls-token").focus(),new(l().Zebra_Tooltips)(l()(".wfls-tooltip-trigger"))}}else{const e=new FormData(t);e.append("redirect_to",location.href),fetch(`${ct_localizations.ajax_url}?action=blc_implement_user_login`,{method:t.method,body:e}).then(function(e){return e.json()}).then(function({data:{html:e,redirect_to:t}}){location=t})}t.loginProceed=!0}(!r||r&&-1===t.closest(".ct-login-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&i(t.closest(".ct-login-form"))})});a(t).then(function(){fetch(o,{method:t.method,body:r}).then(function(e){if(200!==e.status)return void e.text().then(function(e){h(t);const r=function(e,t){const r=e.closest(".ct-login-form");if(!r)return!0;let o=ct_localizations.login_generic_error_msg;if(-1!==t.indexOf("jetpack_protect_process_math_form")){const n=t.match(/<h2.*?>(.*?)<\/h2>/);n&&n.length>1&&(o=n[1]),w(e.closest(".ct-login-form"),o);const c=document.createElement("div");c.innerHTML=t;const i=c.querySelector("form"),a=r.querySelector("#jetpack_protect_answer");if(i){const e=i.querySelector('input[type="submit"], button[type="submit"]');e&&e.remove,a&&a.parentNode.remove();const t=r.querySelector(".login-remember");t&&t.insertAdjacentElement("beforebegin",...i.children)}return!1}if(-1!==t.indexOf("Jetpack")&&-1!==t.indexOf("<strong>")){const r=t.match(/<strong.*?>(.*?)<\/strong>/);return r&&r.length>1&&(o=r[1]),w(e.closest(".ct-login-form"),o),!1}return!0}(t,e);r&&w(t.closest(".ct-login-form"),ct_localizations.login_generic_error_msg)});if(e.redirected&&e.url)return{data:{html:"",redirect_to:e.url}};return(e.headers.get("content-type")||"").includes("application/json")?e.json():e.text().then(function(e){return{__intercepted:!0,html:e}})}).then(function(e){if(void 0===e)return;if(e&&e.__intercepted){const r=(new DOMParser).parseFromString(e.html,"text/html");return f(t,r)||location.reload(),void h(t)}const{data:{html:r,redirect_to:o}}=e,{doc:n,hasError:c}=y(t.closest(".ct-login-form"),r);c?h(t):d(t,n)||setTimeout(function(){location=o},2e3),(!c||c&&-1===t.closest(".ct-login-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&i(t.closest(".ct-login-form"))})})})},p=function(e){const t=e.querySelector('[name*="submit"]');t&&t.classList.add("ct-loading")},h=function(e){const t=e.querySelector('[name*="submit"]');t&&t.classList.remove("ct-loading")},g=function(e,{screen:t="login"}){if(e.querySelector(`.ct-${t}-form`)||(t="login"),e.querySelector("ul")&&e.querySelector(`ul .ct-${t}`)&&(e.querySelector("ul .active").classList.remove("active"),e.querySelector(`ul .ct-${t}`).classList.add("active")),e.querySelector('[class*="-form"].active').classList.remove("active"),e.querySelector(`.ct-${t}-form`).classList.add("active"),"login"===t){const t=e.querySelector(".ct-login-form");t&&t.querySelectorAll('[name="validate_2fa_form"], form[name^="itsec-"]').forEach(function(e){return e.remove()})}e.querySelector(`.ct-${t}-form form`)&&e.querySelector(`.ct-${t}-form form`).reset(),e.querySelector(".ct-account-modal").classList.remove("ct-error");let r=e.querySelector(`.ct-${t}-form`).querySelector(".ct-form-notification");r&&r.remove();let o=e.querySelector(`.ct-${t}-form`).querySelector(".ct-form-notification-error");o&&o.remove(),function(e){[...e.querySelectorAll(".g-recaptcha, .anr_captcha_field")].map(function(e){e.gID||(e.innerHTML="",e.gID=grecaptcha.render(e))})}(e)};let w=function(e,t){let r=e.querySelector(".ct-form-notification-error");r&&r.remove(),e.closest(".ct-account-modal").classList.remove("ct-error"),t&&(e.insertAdjacentHTML("afterbegin",`<div class="ct-form-notification-error">${t}</div>`),requestAnimationFrame(function(){e.closest(".ct-account-modal").classList.add("ct-error")}))};const y=function(e,t){let r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector("#login_error"),n="";return o&&(n=o.innerHTML),w(e,n),{hasError:!!o,doc:r}},v=function(e,t){let r=e.querySelector(".ct-form-notification");r&&r.remove(),e.closest(".ct-account-modal").classList.remove("ct-error"),t&&e.insertAdjacentHTML("afterbegin",`<div class="ct-form-notification">${t}</div>`)},_=function(e,t){let r=(new DOMParser).parseFromString(t,"text/html"),o=r.querySelector(".message"),n="";return o&&(n=o.innerHTML),v(e,n),{doc:r}};let b="";const S={login:".ct-account-modal #loginform .cf-turnstile",lostpassword:".ct-account-modal #lostpasswordform .cf-turnstile",register:".ct-account-modal #registerform .cf-turnstile"},q=function(){window.anr_onloadCallback&&window.anr_onloadCallback(),window.turnstile&&Object.keys(S).forEach(function(e){document.querySelector(S[e])&&turnstile.render(S[e])}),function(){if(!window.google||!google.accounts||!google.accounts.id)return;const e=document.querySelectorAll(".googlesitekit-sign-in-with-google__frontend-output-button");e.length&&e.forEach(function(e){const t=e.closest("form").querySelector(".login-submit");t&&t.insertAdjacentElement("afterend",e),google.accounts.id.renderButton(e,{})})}(),window.Dokan_Vendor_Registration&&window.Dokan_Vendor_Registration.init()};(0,o.registerDynamicChunk)("blocksy_account",{mount:function(e,{event:t}){if(document.body.dataset.panel)return;if(!b){let t=document.querySelector("#ct-account-modal-template");if(!t)return void(location=document.querySelector('[data-id="account"] .ct-account-item')?document.querySelector('[data-id="account"] .ct-account-item').href:e.href);const r=t.content.cloneNode(!0);b=r.firstElementChild.outerHTML,window.turnstile&&Object.keys(S).forEach(function(e){document.querySelector(S[e])&&(turnstile.remove(S[e]),"register"===e&&turnstile.remove(".ct-account-modal #registerform .sct-woocommerce-register"))}),t.remove()}let o=document.querySelector("#account-modal");o||(document.querySelector(".ct-drawer-canvas").insertAdjacentHTML("beforeend",b),o=document.querySelector(".ct-drawer-canvas").lastElementChild,o.querySelectorAll("script").forEach(function(e){const t=document.createElement("script");[...e.attributes].forEach(function({name:e,value:r}){t.setAttribute(e,r)}),e.textContent&&(t.textContent=e.textContent),e.replaceWith(t)}));!function(e){if(!e)return;if(e.hasListeners)return;e.hasListeners=!0,m(e);let t=e.querySelector('[name="loginform"]'),o=e.querySelector('[name="registerform"]'),n=e.querySelector('[name="lostpasswordform"]');if(e.addEventListener("click",function(r){r.target.href&&r.target.href.indexOf("lostpassword")>-1&&(g(e,{screen:"forgot-password"}),r.preventDefault()),r.target.href&&r.target.classList.contains("showlogin")&&(g(e,{screen:"login"}),r.preventDefault()),r.target.href&&(r.target.href.indexOf("wp-login")>-1||t&&r.target.href===t.action||r.target.href.indexOf("login")>-1||"yes"===r.target.dataset.login)&&-1===r.target.href.indexOf("lostpassword")&&(g(e,{screen:"login"}),r.preventDefault())},!0),e.querySelectorAll(".show-password-input + .show-password-input")&&e.querySelectorAll(".show-password-input + .show-password-input").forEach(function(e){e.remove()}),[...e.querySelectorAll(".show-password-input")].map(function(e){e.addEventListener("click",function(t){e.previousElementSibling.type="password"===e.previousElementSibling.type?"text":"password"})}),o){o.addEventListener("submit",function(e){e.preventDefault(),window.ct_customizer_localizations||(p(o),a(o).then(function(){return fetch(`${ct_localizations.ajax_url}?action=blc_implement_user_registration`,{method:o.method,body:new FormData(o)}).then(function(e){return e.text()}).then(function(e){const{doc:t,hasError:n}=y(o.closest(".ct-register-form"),e);h(o),n||_(o.closest(".ct-register-form"),e),r().trigger("blocksy:account:register:"+(n?"error":"success")),n||o.querySelector('[name="redirect_to"]')&&o.querySelector('[name="role"][value="seller"]:checked')&&(location=o.querySelector('[name="redirect_to"]').value),(!n||n&&-1===o.closest(".ct-register-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&i(o.closest(".ct-register-form"))})}))});let e=o.querySelector("#user_pass_register");e&&u(e)}n&&n.addEventListener("submit",function(e){e.preventDefault(),window.ct_customizer_localizations||(p(n),fetch(`${ct_localizations.ajax_url}?action=blc_implement_user_lostpassword`,{method:n.method,body:new FormData(n)}).then(function(e){return e.text()}).then(function(e){const{doc:t,hasError:r}=y(n.closest(".ct-forgot-password-form"),e);h(n),r||_(n.closest(".ct-forgot-password-form"),e),(!r||r&&-1===n.closest(".ct-forgot-password-form").querySelector(".ct-form-notification-error").innerHTML.indexOf("Captcha"))&&i(n.closest(".ct-forgot-password-form"))}))}),["login","register","forgot-password"].map(function(t){Array.from(e.querySelectorAll(`.ct-${t}`)).map(function(r){r.addEventListener("click",function(r){r.preventDefault(),g(e,{screen:t})}),r.addEventListener("keyup",function(r){13===r.keyCode&&(r.preventDefault(),g(e,{screen:t}))})})})}(o),g(o,{screen:e.dataset.view||"login"}),q(),r().trigger("ct:overlay:handle-click",{e:t,href:"#account-modal",options:{isModal:!0,computeScrollContainer:function(){if(o.closest("body"))return o.querySelector(".ct-account-forms")}}})}}),r().on("ct:modal:closed",function(e){e.closest("#account-modal")&&e.remove()})}();
💾 Save Changes
❌ Cancel