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

283 lines
10 KiB
JavaScript

/* Metro module 3739; source: unknown; dependencies: [3738] */
function _fun28412(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3866:6, offset: 0x00f78097, size: 144 bytes, params: 8, frame: 15
const n2 = n;
if (typeof exports !== 'object') {
if (typeof global.define !== 'function') {
n2(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], n2);
} else {
n2(this.moment);
}
} else if (module === undefined) {
if (typeof global.define !== 'function') {
n2(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], n2);
} else {
n2(this.moment);
}
} else if (typeof require === 'function') {
n2(require(3738) /* metro dependency 3738 */);
} else if (typeof global.define !== 'function') {
n2(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], n2);
} else {
n2(this.moment);
}
function n(a0) { // fn#28413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3866:48, offset: 0x00f78127, size: 550 bytes, params: 2, frame: 29
var RegExp;
var value4;
var property;
var value5;
var prototype;
var value6;
var value7;
var regExp;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var value14;
var value15;
var value16;
var value17;
var value18;
var value19;
const plural = function(a0) {
return a0 > 1 && a0 < 5 && ~~(a0 / 10) !== 1;
};
const s_284152 = s_28415;
let value = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
const value2 = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
const defineLocale = a0.defineLocale;
const object = {months: value, monthsShort: value2};
const items4 = [];
const value3 = 0;
let r14 = value3;
reducibleLoop1: while (true) {
RegExp = global.RegExp;
value4 = '^' + value[r14];
property = value2[r14];
value5 = value4 + '$|^' + property;
prototype = RegExp.prototype;
value6 = Object.create(prototype, {constructor: {value: RegExp}});
value7 = value5 + '$';
regExp = new RegExp(value7, 'i');
value8 = regExp instanceof Object ? regExp : value6;
items4[r14] = value8;
value9 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
if (value9 < 12) {
r14 = value9;
continue reducibleLoop1;
}
break reducibleLoop1;
}
object.monthsParse = items4;
const items2 = [];
r14 = value3;
reducibleLoop3: while (true) {
RegExp = global.RegExp;
value10 = '^' + value2[r14];
prototype = RegExp.prototype;
value11 = Object.create(prototype, {constructor: {value: RegExp}});
value12 = value10 + '$';
regExp = new RegExp(value12, 'i');
value13 = regExp instanceof Object ? regExp : value11;
items2[r14] = value13;
value14 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
if (value14 < 12) {
r14 = value14;
continue reducibleLoop3;
}
break reducibleLoop3;
}
object.shortMonthsParse = items2;
const items3 = [];
let r12 = value3;
reducibleLoop5: while (true) {
RegExp = global.RegExp;
value15 = '^' + value[r12];
prototype = RegExp.prototype;
value16 = Object.create(prototype, {constructor: {value: RegExp}});
value17 = value15 + '$';
regExp = new RegExp(value17, 'i');
value18 = regExp instanceof Object ? regExp : value16;
items3[r12] = value18;
value19 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
if (value19 < 12) {
r12 = value19;
continue reducibleLoop5;
}
break reducibleLoop5;
}
object.longMonthsParse = items3;
object.weekdays = 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_');
object.weekdaysShort = 'ne_po_út_st_čt_pá_so'.split('_');
object.weekdaysMin = 'ne_po_út_st_čt_pá_so'.split('_');
object.longDateFormat = {'LT': 'H:mm', 'LTS': 'H:mm:ss', 'L': 'DD.MM.YYYY', 'LL': 'D. MMMM YYYY',
'LLL': 'D. MMMM YYYY H:mm', 'LLLL': 'dddd D. MMMM YYYY H:mm', 'l': 'D. M. YYYY'};
object.calendar = {'sameDay': '[dnes v] LT', 'nextDay': '[zítra v] LT', 'nextWeek': null, 'lastDay': '[včera v] LT',
'lastWeek': null, 'sameElse': 'L', nextWeek: function() {
var value = this.day();
if (value === 0) {
return '[v neděli v] LT';
}
if (value === 1) {
return '[v] dddd [v] LT';
}
if (value === 2) {
return '[v] dddd [v] LT';
}
if (value === 3) {
return '[ve středu v] LT';
}
if (value === 4) {
return '[ve čtvrtek v] LT';
}
if (value === 5) {
return '[v pátek v] LT';
}
if (value === 6) {
return '[v sobotu v] LT';
}
}, lastWeek: function() {
var value = this.day();
if (value === 0) {
return '[minulou neděli v] LT';
}
if (value === 1) {
return '[minulé] dddd [v] LT';
}
if (value === 2) {
return '[minulé] dddd [v] LT';
}
if (value === 3) {
return '[minulou středu v] LT';
}
if (value === 4) {
return '[minulý] dddd [v] LT';
}
if (value === 5) {
return '[minulý] dddd [v] LT';
}
if (value === 6) {
return '[minulou sobotu v] LT';
}
}};
object.relativeTime = {'future': 'za %s', 'past': 'před %s', s: s_284152, ss: s_284152, m: s_284152, mm: s_284152,
h: s_284152, hh: s_284152, d: s_284152, dd: s_284152, M: s_284152, MM: s_284152, y: s_284152, yy: s_284152};
object.dayOfMonthOrdinalParse = RegExp('\\d{1,2}\\.', '');
object.ordinal = '%d.';
object.week = {'dow': 1, 'doy': 4};
return Reflect.apply(defineLocale, a0, ['cs', object]);
function nM(a0, a1, a2, a3) { // fn#28415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3866:304, owner: n.M, offset: 0x00f78377, size: 605 bytes, params: 5, frame: 15
var r2;
let value = a0 + ' ';
if (a2 === 's') {
return a1 || a3 ? 'pár sekund' : 'pár sekundami';
}
if (a2 === 'ss') {
if (a1) {
value += plural(a0) ? 'sekundy' : 'sekund';
r2 = value;
} else if (a3) {
value += plural(a0) ? 'sekundy' : 'sekund';
r2 = value;
} else {
value += 'sekundami';
r2 = value;
}
return r2;
}
if (a2 === 'm') {
return a1 ? 'minuta' : a3 ? 'minutu' : 'minutou';
}
if (a2 === 'mm') {
if (a1) {
value += plural(a0) ? 'minuty' : 'minut';
r2 = value;
} else if (a3) {
value += plural(a0) ? 'minuty' : 'minut';
r2 = value;
} else {
value += 'minutami';
r2 = value;
}
return r2;
}
if (a2 === 'h') {
return a1 ? 'hodina' : a3 ? 'hodinu' : 'hodinou';
}
if (a2 === 'hh') {
if (a1) {
value += plural(a0) ? 'hodiny' : 'hodin';
r2 = value;
} else if (a3) {
value += plural(a0) ? 'hodiny' : 'hodin';
r2 = value;
} else {
value += 'hodinami';
r2 = value;
}
return r2;
}
if (a2 === 'd') {
return a1 || a3 ? 'den' : 'dnem';
}
if (a2 === 'dd') {
if (a1) {
value += plural(a0) ? 'dny' : 'dní';
r2 = value;
} else if (a3) {
value += plural(a0) ? 'dny' : 'dní';
r2 = value;
} else {
value += 'dny';
r2 = value;
}
return r2;
}
if (a2 === 'M') {
return a1 || a3 ? 'měsíc' : 'měsícem';
}
if (a2 === 'MM') {
if (a1) {
value += plural(a0) ? 'měsíce' : 'měsíců';
r2 = value;
} else if (a3) {
value += plural(a0) ? 'měsíce' : 'měsíců';
r2 = value;
} else {
value += 'měsíci';
r2 = value;
}
return r2;
}
if (a2 === 'y') {
return a1 || a3 ? 'rok' : 'rokem';
}
if (a2 === 'yy') {
if (a1) {
value += plural(a0) ? 'roky' : 'let';
r2 = value;
} else if (a3) {
value += plural(a0) ? 'roky' : 'let';
r2 = value;
} else {
value += 'lety';
r2 = value;
}
return r2;
}
}
}
}
global.__d(_fun28412, 3739, [3738]) /* metro module 3739, dependencies: [3738] */;