try{const e=(e,t)=>{let o={};return o[e]={theme:"relax",text:t,type:e,layout:"topRight",progressBar:!0,closeWith:["click","button"],timeout:6e3,sounds:{sources:["/storage/sounds/Ting.mp3"],volume:.5,conditions:["docHidden","docVisible"]}},"success"===o[e].type&&(o[e].theme="relax"),"error"===o[e].type&&(o[e].theme="sunset"),new Noty(o[e]).show()};document.querySelectorAll(".signup-btn").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();const o=document.getElementById("name").value.trim(),r=document.getElementById("email").value.trim(),n=document.getElementById("password").value,l=document.getElementById("confirm_password").value,s=r.indexOf("@"),a=r.indexOf(".");if(""===o)return e("error","Name is Required ❌");if(""===r)return e("error","Email is Required ❌");if(""===n)return e("error","Password is Required ❌");if(""!==l)if(o.length<3){e("error","Name must be at least 6 Characters Long ❌")}else if(n.length<6){e("error","Password must be at least 6 Characters Long ❌")}else if(l===n)if(r.match(/\S+@\S+\.\S+/))if(r.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/))if(s<1||a<s+2||a+2>=r.length){e("error","Invalid Email Address ❌")}else document.querySelector("form").submit();else{e("error","Invalid Email Address ❌")}else{e("error","Invalid Email Address ❌")}else{e("error","Password does not match ❌")}else{e("error","Password does not match ❌")}}))}))}catch(e){console.log(e)}try{document.querySelectorAll(".google-btn").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),window.location.href="/auth/google"}))}))}catch(e){console.log(e)}try{document.querySelectorAll(".login-btn").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),window.location.href="/"}))}))}catch(e){console.log(e)}try{"false"===document.getElementById("User").value&&"/signup"===window.location.pathname&&(document.querySelector("header h1").textContent="Employee Sign Up")}catch(e){console.log(e)}