Files
discord-decomp/sources/by-id/module-03765.jsx
T
2026-07-27 16:20:00 +03:00

82 lines
3.9 KiB
React

/* Metro module 3765; source: unknown; dependencies: [3738] */
function _fun28541(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3892:6, offset: 0x00f7cfe2, size: 144 bytes, params: 8, frame: 15
const closure = t_28542;
if (typeof exports !== 'object') {
if (typeof global.define !== 'function') {
closure(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], closure);
} else {
closure(this.moment);
}
} else if (module === undefined) {
if (typeof global.define !== 'function') {
closure(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], closure);
} else {
closure(this.moment);
}
} else if (typeof require === 'function') {
closure(require(3738) /* metro dependency 3738 */);
} else if (typeof global.define !== 'function') {
closure(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], closure);
} else {
closure(this.moment);
}
}
function t_28542(a0) { // fn#28542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3892:47, offset: 0x00f7d072, size: 261 bytes, params: 2, frame: 16
const defineLocale = a0.defineLocale;
const object2 = {};
object2.months = '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_');
object2.monthsShort = '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_');
object2.weekdays = '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_');
object2.weekdaysShort = '週日_週一_週二_週三_週四_週五_週六'.split('_');
object2.weekdaysMin = '日_一_二_三_四_五_六'.split('_');
object2.longDateFormat = {'LT': 'HH:mm', 'LTS': 'HH:mm:ss', 'L': 'YYYY/MM/DD', 'LL': 'YYYY年M月D日',
'LLL': 'YYYY年M月D日 HH:mm', 'LLLL': 'YYYY年M月D日dddd HH:mm', 'l': 'YYYY/M/D', 'll': 'YYYY年M月D日',
'lll': 'YYYY年M月D日 HH:mm', 'llll': 'YYYY年M月D日dddd HH:mm'};
object2.meridiemParse = RegExp('凌晨|早上|上午|中午|下午|晚上', '');
object2.meridiemHour = function(a0, a1) {
var r4;
var value = a0;
r4 = value !== 12 ? value : 0;
return a1 === '凌晨' || a1 === '早上' || a1 === '上午' ? r4 : a1 === '中午' ? r4 >= 11 ? r4 : r4 + 12 : a1 === '下午' ? r4 + 12 : a1 !== '晚上' ? undefined : r4 + 12;
};
object2.meridiem = function(a0, a1, a2) {
var value = 100 * a0 + a1;
return value < 600 ? '凌晨' : value < 900 ? '早上' : value < 1130 ? '上午' : value < 1230 ? '中午' : value < 1800 ? '下午' : '晚上';
};
object2.calendar = {'sameDay': '[今天] LT', 'nextDay': '[明天] LT', 'nextWeek': '[下]dddd LT', 'lastDay': '[昨天] LT',
'lastWeek': '[上]dddd LT', 'sameElse': 'L'};
object2.dayOfMonthOrdinalParse = RegExp('\\d{1,2}(日|月|週)', '');
object2.ordinal = function(a0, a1) {
if (a1 === 'd') {
return a0 + '日';
}
if (a1 === 'D') {
return a0 + '日';
}
if (a1 === 'DDD') {
return a0 + '日';
}
if (a1 === 'M') {
return a0 + '月';
}
if (a1 === 'w') {
return a0 + '週';
}
if (a1 === 'W') {
return a0 + '週';
}
return a0;
};
object2.relativeTime = {'future': '%s內', 'past': '%s前', 's': '幾秒', 'ss': '%d 秒', 'm': '1 分鐘', 'mm': '%d 分鐘',
'h': '1 小時', 'hh': '%d 小時', 'd': '1 天', 'dd': '%d 天', 'M': '1 個月', 'MM': '%d 個月', 'y': '1 年', 'yy': '%d 年'};
return Reflect.apply(defineLocale, a0, ['zh-tw', object2]);
}