import{a as n}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab7.js";import{d as r,a as i}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab20.js";import{W as p}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab19.js";import{t as u}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab23.js";const m=async o=>{const{user:a,session:t,auth_google:s}=i.getState(),{user:e}=await p.Conn("getMyDeviceId");return{event_id:o,user_id:a.user_id,name:a.name,email:a.email,email_auth:s.email_auth,whatsapp_plugin:e,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:s}=i.getState();if(s.is_auth&&t.active){const e=await m(o);n.post(t.link,e,{headers:{"Content-Type":"application/json"}})}};export{d as w};
