var getInitials=function(a){var r=a.firstName,e=a.lastName;return"".concat(r[0]).concat(e[0])};var urlRegex=new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?");var hasLink=function(a){return urlRegex.test(a)};var urlPattern=/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim;var pseudoUrlPattern=/(^|[^\/])(www\.[\S]+(\b|$))/gim;var emailAddressPattern=/[\w.-]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;var linkify=function(a){if(!a){return""}if(!a.replace){return a}return a.replace(urlPattern,'<a href="$&">$&</a>').replace(pseudoUrlPattern,'$1<a href="http://$2">$2</a>').replace(emailAddressPattern,'<a href="mailto:$&">$&</a>').replace(/\n/g,"<br />")};export{getInitials as g,hasLink as h,linkify as l};