decord/source/3654_formatDistance.js
2026-07-21 06:55:02 +00:00

31 lines
4.5 KiB
JavaScript

// Module ID: 3654
// Function ID: 27955
// Name: formatDistance
// Dependencies: []
// Exports: default
// Module 3654 (formatDistance)
let closure_0 = { lessThanXSeconds: { -9223372036854775808: true, 0: true }, xSeconds: { -9223372036854775808: "<string:3275882499>", 0: "<string:3338666739>" }, halfAMinute: "n\u1EEDa ph\u00FAt", lessThanXMinutes: { -9223372036854775808: "<string:3074555907>", 0: "<string:3154117363>" }, xMinutes: { -9223372036854775808: -0.00000000000000711054831386611, 0: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004105388287639464 }, aboutXHours: { -9223372036854775808: -131166.4669227601, 0: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004105367067681554 }, xHours: { -9223372036854775808: "<string:3141664771>", 0: "<string:3221226227>" }, xDays: { -9223372036854775808: "<string:3108110339>", 0: "<string:3187671795>" }, aboutXWeeks: { -9223372036854775808: -0.00000000000000000000000000000000000000000000000000000000000000000007423758193560378, 0: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004104836568733813 }, xWeeks: { -9223372036854775808: -0.000000000000000000000000000000000000000000000000000000000000004865234187843088, 0: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000410487900864963 }, aboutXMonths: { -9223372036854775808: -0.0000000000000000000000000000000000000000000000000000000003188479901083765, 0: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000410490022860754 }, xMonths: { -9223372036854775808: -0.000000000000000000000000000000000000000000000000000020896021957530255, 0: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000551116805923814 }, aboutXYears: { -9223372036854775808: -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013462759068156722, 0: 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000410549438742965 }, xYears: { -9223372036854775808: null, 0: null }, overXYears: { -9223372036854775808: "<string:2739011587>", 0: "<string:2751464452>" }, almostXYears: { -9223372036854775808: false, 0: false } };
export default function formatDistance(arg0, arg1, addSuffix) {
if ("string" === typeof closure_0[arg0]) {
let tmp5 = tmp;
if (null != addSuffix) {
tmp5 = tmp;
if (addSuffix.addSuffix) {
if (!addSuffix.comparison) {
let text = `${tmp} trước`;
}
text = `${tmp} nữa`;
}
}
return tmp5;
} else if (1 === arg1) {
let one = tmp.one;
} else {
const _String = String;
one = tmp.other.replace("{{count}}", String(arg1));
const str = tmp.other;
}
};
export default exports.default;