import{a as n}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1163.js";import{e as r,b as i}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1164.js";import{W as p}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb1162.js";import{t as u}from"./v_7_4_3_28_345c6a4a-aab6-4ec9-a0c6-3718e7fdb11623.js";const m=async o=>{const{user:a,session:t,auth_google:e}=i.getState(),{user:s}=await p.Conn("getMyDeviceId");return{event_id:o,user_id:a.user_id,name:a.name,email:a.email,email_auth:e.email_auth,whatsapp_plugin:s,user_premium:!!a.user_premium,user_status:t.user_status,navigator:navigator.userAgent,time:u(),dataCadastro:a.dataCadastro,whatsapp_registro:a.whatsapp_registro,path:a.path,afiliado:a.afiliado,campanhaID:a.campanhaID,cookies:a?.cookies}},d=async o=>{const{getWebhooks:a}=r.getState(),t=a("open_functions"),{session:e}=i.getState();if(e.is_auth&&t.active){const s=await m(o);n.post(t.link,s,{headers:{"Content-Type":"application/json"}})}};export{d as w};
