Files
2026-07-28 01:06:53 +03:00

46 lines
2.6 KiB
JavaScript

/* Metro module 1952; source: unknown; dependencies: [] */
function _fun21766(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2079:6, offset: 0x00ef8cdd, size: 374 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
object = {lessThanXSeconds: {'one': 'less than a second', 'other': 'less than {{count}} seconds'},
xSeconds: {'one': '1 second', 'other': '{{count}} seconds'}, halfAMinute: 'half a minute',
lessThanXMinutes: {'one': 'less than a minute', 'other': 'less than {{count}} minutes'},
xMinutes: {'one': '1 minute', 'other': '{{count}} minutes'}, aboutXHours: {'one': 'about 1 hour',
'other': 'about {{count}} hours'}, xHours: {'one': '1 hour', 'other': '{{count}} hours'},
xDays: {'one': '1 day', 'other': '{{count}} days'}, aboutXWeeks: {'one': 'about 1 week',
'other': 'about {{count}} weeks'}, xWeeks: {'one': '1 week', 'other': '{{count}} weeks'},
aboutXMonths: {'one': 'about 1 month', 'other': 'about {{count}} months'}, xMonths: {'one': '1 month',
'other': '{{count}} months'}, aboutXYears: {'one': 'about 1 year', 'other': 'about {{count}} years'},
xYears: {'one': '1 year', 'other': '{{count}} years'}, overXYears: {'one': 'over 1 year',
'other': 'over {{count}} years'}, almostXYears: {'one': 'almost 1 year', 'other': 'almost {{count}} years'}};
exports.default = formatDistance;
module.exports = exports.default;
function formatDistance(a0, a1, a2) { // fn#21767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2079:1022, offset: 0x00ef8e53, size: 153 bytes, params: 4, frame: 16
var r0;
var r3;
var other;
var replace;
var value;
const property = env0_0[a0];
if (typeof property === 'string') {
r3 = property;
} else {
if (a1 === 1) {
r0 = property.one;
} else {
other = property.other;
replace = other.replace;
value = a1.toString();
value = Reflect.apply(replace, other, ['{{count}}', value]);
r0 = value;
}
r3 = r0;
}
return a2 == null ? r3 : a2.addSuffix ? a2.comparison && a2.comparison > 0 ? 'in ' + r3 : r3 + ' ago' : r3;
}
}
global.__d(_fun21766, 1952, []) /* metro module 1952 */;