import{a as n}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89266.js";import{e as r}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89264.js";import{V as i,z as p}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89265.js";import{t as u}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c892625.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};
