document.addEventListener("DOMContentLoaded",()=>{var n;const e=window.licenseShow;if(!e)return;const a=((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||"",t=document.getElementById("manualIssueForm");t&&t.addEventListener("submit",async s=>{s.preventDefault();const c=new FormData(t),o={};c.forEach((r,d)=>o[d]=r),(await fetch(e.routes.manualIssue,{method:"POST",headers:{"X-CSRF-TOKEN":a,Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})).ok?window.location.reload():alert(e.translations.failed)})});
