import{a}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89266.js";import{V as o}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89265.js";import{V as s}from"./v_7_4_3_72_6a457bf5-eeae-4570-8821-bd6fa39c89264.js";async function p(r){try{const{bearer_token:e}=o.getState().user;return e?(await a.post(`${s.backend_plugin}api/user/update`,r,{headers:{Authorization:`Bearer ${e}`,"access-token":s.cript_key}})).data:{success:!1,msg_id:"no_token",message:"Token de autenticação não encontrado."}}catch(e){return console.error("[updateUser] Erro: ",e),{success:!1,msg_id:e.response?.msg_id,message:e.response?.data?.message||e.message}}}export{p as u};
