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

46 lines
3.2 KiB
JavaScript

/* Metro module 3366; source: unknown; dependencies: [] */
function _fun26144(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#26144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3493:6, offset: 0x00f3db81, size: 374 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
object = {lessThanXSeconds: {'one': 'น้อยกว่า 1 วินาที', 'other': 'น้อยกว่า {{count}} วินาที'},
xSeconds: {'one': '1 วินาที', 'other': '{{count}} วินาที'}, halfAMinute: 'ครึ่งนาที',
lessThanXMinutes: {'one': 'น้อยกว่า 1 นาที', 'other': 'น้อยกว่า {{count}} นาที'}, xMinutes: {'one': '1 นาที',
'other': '{{count}} นาที'}, aboutXHours: {'one': 'ประมาณ 1 ชั่วโมง', 'other': 'ประมาณ {{count}} ชั่วโมง'},
xHours: {'one': '1 ชั่วโมง', 'other': '{{count}} ชั่วโมง'}, xDays: {'one': '1 วัน', 'other': '{{count}} วัน'},
aboutXWeeks: {'one': 'ประมาณ 1 สัปดาห์', 'other': 'ประมาณ {{count}} สัปดาห์'}, xWeeks: {'one': '1 สัปดาห์',
'other': '{{count}} สัปดาห์'}, aboutXMonths: {'one': 'ประมาณ 1 เดือน', 'other': 'ประมาณ {{count}} เดือน'},
xMonths: {'one': '1 เดือน', 'other': '{{count}} เดือน'}, aboutXYears: {'one': 'ประมาณ 1 ปี',
'other': 'ประมาณ {{count}} ปี'}, xYears: {'one': '1 ปี', 'other': '{{count}} ปี'},
overXYears: {'one': 'มากกว่า 1 ปี', 'other': 'มากกว่า {{count}} ปี'}, almostXYears: {'one': 'เกือบ 1 ปี',
'other': 'เกือบ {{count}} ปี'}};
exports.default = formatDistance_26145;
module.exports = exports.default;
function formatDistance_26145(a0, a1, a2) { // fn#26145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3493:1513, offset: 0x00f3dcf7, size: 182 bytes, params: 4, frame: 18
var r0;
var r4;
var other;
var replace;
var value;
const property = env0_0[a0];
if (typeof property === 'string') {
r4 = 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;
}
r4 = r0;
}
return a2 == null ? r4 : a2.addSuffix ? a2.comparison && a2.comparison > 0 ? a0 === 'halfAMinute' ? 'ใน' + r4 : 'ใน ' + r4 : r4 + 'ที่ผ่านมา' : r4;
}
}
global.__d(_fun26144, 3366, []) /* metro module 3366 */;