1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="57aa7b1e-a8fd-5812-aa34-44c708f2ceb3")}catch(e){}}(); 3import{s as e}from"./jsx-runtime-D4ePz0Hl.js";import{t}from"./react-BXH-GOAS.js";import{t as n}from"./dayjs.min-Co_qGSIM.js";import{t as r}from"./useTranslation-xRzBcOIb.js";import{o as i,s as a}from"./useCommunityMembership-DRaMPU7W.js";import{t as o}from"./relativeTime-C9cy_A9S.js";function s(e,t){return i(e,a,t)}var c=e(t(),1),l=e(n(),1),u=e(o(),1);l.default.extend(u.default);var d=`dddd`,f=`MMM D`,p=(e,{nowLabel:t,formatMinutes:n,formatHours:r,formatAgo:i}={})=>{if(!e)return``;let a=(0,l.default)(e);if(!a.isValid())return``;let o=n??(e=>`${e}m`),s=r??(e=>`${e}h`),c=e=>i?i(e):e,u=(0,l.default)(),p=u.diff(a,`minute`);if(p<1)return t??`now`;if(p<60)return c(o(p));let m=u.diff(a,`hour`);return m<24?c(s(m)):u.diff(a,`day`)<7?a.format(d):a.format(f)},m=({nowLabel:e}={})=>{let{t}=r();return(0,c.useCallback)((n,{withAgo:r=!1}={})=>p(n,{nowLabel:e??t(`community.messages.relative_time.now`,`now`),formatMinutes:e=>t(`community.messages.relative_time.minutes`,`{{count}}m`,{count:e}),formatHours:e=>t(`community.messages.relative_time.hours`,`{{count}}h`,{count:e}),formatAgo:r?e=>t(`community.messages.relative_time.ago`,`{{time}} ago`,{time:e}):void 0}),[t,e])};export{s as n,m as t}; 4//# sourceMappingURL=useShortRelativeDate-Cpl-GDDn.js.map 5//# debugId=57aa7b1e-a8fd-5812-aa34-44c708f2ceb3
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.