import{c as o}from"./_plugin-vue_export-helper-63b51ba4.js";import{N as i}from"./Navbar-4fa05ff0.js";let a=o({components:{Navbar:i}});a.mount("#app");document.querySelector("#form").addEventListener("submit",t=>{t.preventDefault();let r=document.querySelector("#pin-input").value;document.querySelector("#status").innerHTML="";let n=JSON.stringify({pin:r});fetch("/api/pin",{method:"POST",body:n}).then(e=>e.json()).then(e=>{e.status.toString().toLowerCase()==="true"?(document.querySelector("#status").innerHTML='<div class="alert alert-success" role="alert">Success! Please check Moonlight to continue</div>',document.querySelector("#pin-input").value=""):document.querySelector("#status").innerHTML='<div class="alert alert-danger" role="alert">Pairing Failed: Check if the PIN is typed correctly</div>'})});
