import{A as c,b as e}from"../index.js";const o={contact_created:()=>e("Contact created","pressio-crm"),contact_created_from_form:()=>e("Contact captured from form","pressio-crm"),deal_created:()=>e("Deal created","pressio-crm"),deal_won:()=>e("Deal won","pressio-crm"),deal_lost:()=>e("Deal lost","pressio-crm"),note_added:()=>e("Note added","pressio-crm"),email_sent:()=>e("Email sent","pressio-crm"),task_created:()=>e("Task created","pressio-crm"),task_completed:()=>e("Task completed","pressio-crm")};function m(r){if(!r)return"";if(r.title&&r.title.trim()!=="")return r.title;const t=r.type||"",s=r.meta||{};if(t==="stage_change")return s.new_stage_name?c(e("Deal moved to %s","pressio-crm"),s.new_stage_name):e("Deal stage changed","pressio-crm");if(o[t])return o[t]();if(t){const a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return e("Activity","pressio-crm")}export{m as a};
