import{c as f}from"./constructNow-DJ0UgZWX.js";import{gB as a,aV as o}from"./index-dP1W1_bd.js";function s(r,n){const t=a(r),M=a(n);return+t==+M}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};
