1const selectors={accountPages:"[data-account-pages]",resetPassword:"[data-recover-link]",hideResetPass:"[data-hideResetPass]",resetPasswordForm:"[data-recover-password-form]",loginForm:"[data-login-form]",loginTab:".account-login"};class accountPages{constructor(){if(this.elements=this._getElements(),Object.keys(this.elements).length===0)return;this._setupEventListeners(),window.location.href.indexOf("#recover")>=0&&this.elements.showResetPassword.dispatchEvent(new Event("click"))}_getElements(){const container=document.querySelector(selectors.accountPages);return container?{container,showResetPassword:document.querySelector(selectors.resetPassword),hideResetPass:document.querySelector(selectors.hideResetPass),resetPasswordForm:document.querySelector(selectors.resetPasswordForm),loginForm:document.querySelector(selectors.loginForm),loginTab:document.querySelector(selectors.loginTab)}:{}}_setupEventListeners(){this.elements?.showResetPassword?.addEventListener("click",this._handleResetPassword.bind(this)),this.elements?.hideResetPass?.addEventListener("click",this._handleResetPassword.bind(this))}_handleResetPassword(event){event.currentTarget.classList.contains("hide-resetform")?(this.elements.loginForm.style.display="block",this.elements.resetPasswordForm.style.display="none",this.elements.loginTab.classList.remove("reset"),window.location.href.indexOf("#recover")>-1&&window.history.replaceState({},"",location.href.replace("#recover",""))):(this.elements.loginForm.style.display="none",this.elements.resetPasswordForm.style.display="block",this.elements.loginTab.classList.add("reset"))}}typeof accountPages<"u"&&new accountPages; 2//# sourceMappingURL=/cdn/shop/t/28/assets/template-login-register.js.map?v=35779389561790578671789052107
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.