import{a as n}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import{e as r}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.js";import{V as i,z as p}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import{t as u}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a525.js";const m=async o=>{const{user:t,session:a,auth_google:e}=i.getState(),{user:s}=await p.Conn("getMyDeviceId");return{event_id:o,user_id:t.user_id,name:t.name,email:t.email,email_auth:e.email_auth,whatsapp_plugin:s,user_premium:!!t.user_premium,user_status:a.user_status,navigator:navigator.userAgent,time:u(),dataCadastro:t.dataCadastro,whatsapp_registro:t.whatsapp_registro,path:t.path,afiliado:t.afiliado,campanhaID:t.campanhaID,cookies:t?.cookies}},d=async o=>{const{getWebhooks:t}=r.getState(),a=t("open_functions"),{session:e}=i.getState();if(e.is_auth&&a.active){const s=await m(o);n.post(a.link,s,{headers:{"Content-Type":"application/json"}})}};export{d as w};
