import{s as n}from"./index-3945355b.js";import{l as o,b8 as a}from"./index-ea7817a2.js";function f(r,e){o(2,arguments);var t=n(r),M=n(e);return t.getTime()===M.getTime()}function u(r){return o(1,arguments),f(r,Date.now())}const g=(r,e,t)=>{if(u(r))return"today";if(e&&t.fromDate){if(+r==+t.fromDate)return a(r,"dd MMM. y");if(r.getHours()===0&&r.getMinutes()===0)return a(r,"dd MMM. y")}if(t.toDate){if(+r==+t.toDate)return a(r,"dd MMM. y");if(r.getHours()===23&&r.getMinutes()===30)return a(r,"dd MMM. y")}return a(r,"dd MMM. y H:mm a")};export{g};
