function i(s, e = "NA") {
  if (!s)
    return e;
  const t = s.trim().split(/\s+/);
  if (t.length === 0 || t[0] === "")
    return e;
  if (t.length === 1)
    return t[0].substring(0, 2).toUpperCase();
  {
    const n = t[0].substring(0, 1), r = t[1].substring(0, 1);
    return (n + r).toUpperCase();
  }
}
export {
  i as default
};
//# sourceMappingURL=getNameInitials.js.map
