decord/source/1924_formatDistance.js

31 lines
3.1 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1924
// Function ID: 21775
// Name: formatDistance
// Dependencies: []
// Exports: default
// Module 1924 (formatDistance)
2026-07-21 06:55:02 +00:00
let closure_0 = { lessThanXSeconds: {}, xSeconds: {}, halfAMinute: "half a minute", lessThanXMinutes: { -9223372036854775808: null, 0: null }, xMinutes: { -9223372036854775808: null, 0: null }, aboutXHours: { -9223372036854775808: "bf24b57d7a185087812949fbab7718e5", 0: "cs.messages.bf24b57d7a185087812949fbab7718e5.compiled.messages" }, xHours: { -9223372036854775808: -0.0000000004658996960064467, 0: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014992948762952195 }, xDays: { -9223372036854775808: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000205180556358453, 0: 6312893198030884000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 }, aboutXWeeks: {}, xWeeks: { -9223372036854775808: null, 0: null }, aboutXMonths: { -9223372036854775808: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000563, 0: 291633.32916642725 }, xMonths: {}, aboutXYears: { -9223372036854775808: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000306104814232579, 0: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002540898980772426 }, xYears: {}, overXYears: { -9223372036854775808: null, 0: "text-md/medium" }, almostXYears: { -9223372036854775808: ":", 0: false } };
2026-07-20 16:05:17 +00:00
export default function formatDistance(arg0, arg1, addSuffix) {
if ("string" === typeof closure_0[arg0]) {
let tmp4 = tmp;
if (null != addSuffix) {
tmp4 = tmp;
if (addSuffix.addSuffix) {
if (!addSuffix.comparison) {
let text = `${tmp} ago`;
}
text = `in ${tmp}`;
}
}
return tmp4;
} else if (1 === arg1) {
let one = tmp.one;
} else {
one = tmp.other.replace("{{count}}", arg1.toString());
const str = tmp.other;
}
};
export default exports.default;