Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../utils/index.cjs`);let t=require(`date-fns`);var n;function r(e,r){return s(),(0,t.format)(e,r,{locale:n})}function i(e,r){return s(),(0,t.formatDuration)(e,{locale:n,format:r})}function a(e,r){return s(),(0,t.formatDistance)(e,r,{locale:n})}function o(){return n!==void 0}function s(){if(!o())throw Error(`Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function`)}function c(e){n=e}function l(e){return r(e,`MMMM d, y`)}function u(e){return e<60?a(0,29*1e3):i((0,t.intervalToDuration)({start:0,end:e*1e3}),[`hours`,`minutes`])}function d(t){return e.capitalizeFirstLetter(new Intl.RelativeTimeFormat(n.code,{numeric:`auto`}).formatToParts(t,`day`)[0].value,n.code)}function f(e){return(0,t.isToday)(e)?d(0):(0,t.isYesterday)(e)?d(-1):(0,t.isThisWeek)(e)?r(e,`EEEE`):(0,t.isThisYear)(e)?r(e,`EEEE, MMMM d`):r(e,`MMMM d, y`)}exports.durationInHHMM=u,exports.getDateMedium=l,exports.relativeDate=f,exports.setDateLocale=c;
//# sourceMappingURL=index.cjs.map