decord/source/3242_formatDistance.js
2026-07-20 16:05:17 +00:00

30 lines
960 B
JavaScript

// Module ID: 3242
// Function ID: 25899
// Name: formatDistance
// Dependencies: []
// Exports: default
// Module 3242 (formatDistance)
let closure_0 = { lessThanXSeconds: {}, xSeconds: {}, halfAMinute: "medio minuto", lessThanXMinutes: {}, xMinutes: {}, aboutXHours: {}, xHours: {}, xDays: {}, aboutXWeeks: {}, xWeeks: {}, aboutXMonths: {}, xMonths: {}, aboutXYears: {}, xYears: {}, overXYears: {}, almostXYears: {} };
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 = `hace ${tmp}`;
}
text = `en ${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;