import{a}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import{V as o}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import{V as s}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.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};
