Files
discord-decomp/sources/by-id/module-03682.js
T
2026-07-28 01:06:53 +03:00

46 lines
2.6 KiB
JavaScript

/* Metro module 3682; source: unknown; dependencies: [] */
function _fun27946(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#27946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3809:6, offset: 0x00f65cb7, size: 374 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
object = {lessThanXSeconds: {'one': 'dưới 1 giây', 'other': 'dưới {{count}} giây'}, xSeconds: {'one': '1 giây',
'other': '{{count}} giây'}, halfAMinute: 'nửa phút', lessThanXMinutes: {'one': 'dưới 1 phút',
'other': 'dưới {{count}} phút'}, xMinutes: {'one': '1 phút', 'other': '{{count}} phút'},
aboutXHours: {'one': 'khoảng 1 giờ', 'other': 'khoảng {{count}} giờ'}, xHours: {'one': '1 giờ',
'other': '{{count}} giờ'}, xDays: {'one': '1 ngày', 'other': '{{count}} ngày'},
aboutXWeeks: {'one': 'khoảng 1 tuần', 'other': 'khoảng {{count}} tuần'}, xWeeks: {'one': '1 tuần',
'other': '{{count}} tuần'}, aboutXMonths: {'one': 'khoảng 1 tháng', 'other': 'khoảng {{count}} tháng'},
xMonths: {'one': '1 tháng', 'other': '{{count}} tháng'}, aboutXYears: {'one': 'khoảng 1 năm',
'other': 'khoảng {{count}} năm'}, xYears: {'one': '1 năm', 'other': '{{count}} năm'},
overXYears: {'one': 'hơn 1 năm', 'other': 'hơn {{count}} năm'}, almostXYears: {'one': 'gần 1 năm',
'other': 'gần {{count}} năm'}};
exports.default = formatDistance_27947;
module.exports = exports.default;
function formatDistance_27947(a0, a1, a2) { // fn#27947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3809:1031, offset: 0x00f65e2d, size: 159 bytes, params: 4, frame: 17
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 = global.String(a1);
value = Reflect.apply(replace, other, ['{{count}}', value]);
r0 = value;
}
r3 = r0;
}
return a2 == null ? r3 : a2.addSuffix ? a2.comparison && a2.comparison > 0 ? r3 + ' nữa' : r3 + ' trước' : r3;
}
}
global.__d(_fun27946, 3682, []) /* metro module 3682 */;