document.addEventListener("DOMContentLoaded",()=>{var n;const e=window.softwareLicenseShow;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 r=new FormData(t),o={};r.forEach((c,d)=>o[d]=c),(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)})});
