import{_ as i,s as a}from"./AppHeader.D4x1A4Fm.js";function m(t){if(!t)return"";const e=Date.now()-new Date(t).getTime(),n=Math.floor(e/6e4);if(n<1)return i("just now","nimblymail-smtp");if(n<60)return a(i("%dm ago","nimblymail-smtp"),n);const o=Math.floor(n/60);if(o<24)return a(i("%dh ago","nimblymail-smtp"),o);const r=Math.floor(o/24);return r<7?a(i("%dd ago","nimblymail-smtp"),r):u(t)}function u(t){if(!t)return"";const e=new Date(t),n=e.getDate(),o=e.toLocaleString("en",{month:"short"}),r=e.getFullYear(),s=e.toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit"});return`${n} ${o} ${r} ${s}`}function c(t){return t>=1e3?`${(t/1e3).toFixed(1)}s`:`${t}ms`}function f(t){return{sent:"green",failed:"red",pending:"blue"}[t]||"default"}function d(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}export{c as a,d as c,u as f,f as g,m as r};
//# sourceMappingURL=formatters.Dpv97gTr.js.map
