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(".login-btn").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();let o=document.getElementById("exampleInputEmail1").value;const r=document.getElementById("exampleInputPassword1").value;o.indexOf("@"),o.indexOf(".");if(o=o.trim(),""===o)return e("error","Email is Required ❌");if(""===r)return e("error","Password is Required ❌");if(r.length<6){e("error","Password must be at least 6 Characters Long ❌")}else document.querySelector("form").submit()}))}))}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(".signup-btn").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),window.location.href="/signup"}))}))}catch(e){console.log(e)}