import{c as f}from"./constructNow-D-xxKKNw.js";import{g5 as M,bl as o}from"./index-CK33qGU_.js";function s(r,n){const t=M(r),a=M(n);return+t==+a}function u(r){return s(r,f(r))}const c=(r,n,t)=>{if(u(r))return"today";if(n&&t.fromDate){if(+r==+t.fromDate)return o(r,"dd MMM. y");if(r.getHours()===0&&r.getMinutes()===0)return o(r,"dd MMM. y")}if(t.toDate){if(+r==+t.toDate)return o(r,"dd MMM. y");if(r.getHours()===23&&r.getMinutes()===30)return o(r,"dd MMM. y")}return o(r,"dd MMM. y H:mm a")};export{c as g};
