1(function() { 2 try { 3 var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; 4 e.SENTRY_RELEASE = { id: "live_2026-10-01-1531" }; 5 var t = new e.Error().stack; 6 t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7ed16099-fff7-43f8-9801-8cbfa1b86ce7", e._sentryDebugIdIdentifier = "sentry-dbid-7ed16099-fff7-43f8-9801-8cbfa1b86ce7"); 7 } catch (e) {} 8})(); 9import { Bo as e, Jc as t, Yo as n } from "./topMessageHandler_CaWydTPF.min.js"; 10import { N as r, O as i, R as a, X as o, Y as s, c, g as l, jt as u, nt as d, q as f, u as p, y as m, z as h } from "./runtime-core.esm-bundler_DscPLG0X.min.js"; 11//#endregion 12//#region src/components/RelativeDateTime.vue 13var g = /* @__PURE__ */ m({ 14 __name: "RelativeDateTime", 15 props: { 16 tag: { default: "div" }, 17 date: {}, 18 daily: { 19 type: Boolean, 20 default: !1 21 }, 22 upperFirst: { 23 type: Boolean, 24 default: !1 25 }, 26 tooltipFormat: {}, 27 showTime: { 28 type: Boolean, 29 default: !1 30 } 31 }, 32 setup(m, { expose: g }) { 33 let _ = t(), v = m, y = d(Date.now()), b = d(0), x = c(() => { 34 let t = y.value; 35 return v.daily && (t = e("Y-m-d", t)), n(t); 36 }), S = c(() => n(e("Y-m-d", y.value))), C = c(() => e(v.tooltipFormat || (v.daily ? "d.m.Y" : "d.m.Y H:i"), v.date)), w = c(() => e("H:i", v.date)), T = c(() => { 37 let t = v.date; 38 return v.daily && (t = e("Y-m-d", t)), n(t); 39 }), E = c(() => n(e("Y-m-d", v.date))), D = c(() => x.value - T.value), O = c(() => S.value - E.value), k = () => { 40 b.value && window.clearTimeout(b.value); 41 }; 42 i(() => { 43 k(); 44 }); 45 let A = () => { 46 let e = Math.abs(D.value), t = e / 60, n = t / 60, r = Math.round(Math.abs(O.value) / 60 / 60 / 24), i = r / 30.25, a = i / 12; 47 return { 48 seconds: Math.trunc(e), 49 minutes: Math.trunc(t), 50 hours: Math.trunc(n), 51 days: Math.trunc(r), 52 months: Math.trunc(i), 53 years: Math.trunc(a) 54 }; 55 }, j = c(() => { 56 let e = D.value > 0, t = e ? "vor " : "in ", n, { seconds: r, minutes: i, hours: a, days: o, months: s, years: c } = A(); 57 return n = c > 1 ? t + c + " Jahren" : c === 1 ? t + "einem Jahr" : s > 1 ? t + s + " Monaten" : s === 1 ? t + "einem Monat" : o > 2 ? t + o + " Tagen" : o === 2 ? e ? "Vorgestern" : "Ãbermorgen" : o === 1 ? e ? "Gestern" : "Morgen" : v.daily ? "Heute" : a > 1 ? t + a + " Stunden" : a === 1 ? t + "einer Stunde" : i > 1 ? t + i + " Minuten" : i === 1 ? t + "einer Minute" : r > 5 ? t + r + " Sekunden" : "gerade eben", v.showTime && (v.daily || o > 0) && (n += ", " + w.value), v.upperFirst ? n.charAt(0).toUpperCase() + n.slice(1) : n; 58 }), M = (e) => { 59 b.value = window.setTimeout(() => { 60 y.value = Date.now(); 61 let e; 62 if (v.daily) e = 3600; 63 else { 64 let { minutes: t, hours: n } = A(); 65 n >= 5 && (e = 3600), e = n >= 1 ? 300 : t >= 1 ? 30 : 1; 66 } 67 M(e); 68 }, e * 1e3); 69 }; 70 M(1); 71 let N = () => { 72 k(), y.value = Date.now(), M(1); 73 }; 74 return f(() => v.date, () => { 75 N(); 76 }), g(Object.assign({}, _, { 77 componentName: "RelativeDateTime", 78 recalculate: N 79 })), (e, t) => { 80 let n = a("tooltip"); 81 return o((r(), p(h(m.tag), null, { 82 default: s(() => [l(u(j.value), 1)]), 83 _: 1 84 })), [[n, C.value]]); 85 }; 86 } 87}); 88//#endregion 89export { g as t }; 90 91//# sourceMappingURL=RelativeDateTime_DVxgQc0c.min.js.map
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.