const s = (r) => {
  if (typeof r != "string" || !r.trim()) return "";
  const t = r.trim().split(/\s+/g);
  return t.length === 1 ? t.join("").substring(0, 2) : t.filter((i, n) => n === 0 || n === t.length - 1).map((i) => i.slice(0, 1).toUpperCase()).join("");
};
export {
  s as extractInitialsFromName
};
//# sourceMappingURL=utils.js.map
