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