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

136 lines
6.1 KiB
JavaScript

/* Metro module 3755; source: unknown; dependencies: [3738] */
function _fun28490(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3882:6, offset: 0x00f7b15a, size: 144 bytes, params: 8, frame: 15
const n_284912 = n_28491;
if (typeof exports !== 'object') {
if (typeof global.define !== 'function') {
n_284912(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], n_284912);
} else {
n_284912(this.moment);
}
} else if (module === undefined) {
if (typeof global.define !== 'function') {
n_284912(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], n_284912);
} else {
n_284912(this.moment);
}
} else if (typeof require === 'function') {
n_284912(require(3738) /* metro dependency 3738 */);
} else if (typeof global.define !== 'function') {
n_284912(this.moment);
} else if (global.define.amd) {
global.define(['../moment'], n_284912);
} else {
n_284912(this.moment);
}
function n_28491(a0) { // fn#28491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3882:47, offset: 0x00f7b1ea, size: 381 bytes, params: 2, frame: 17
const n_28491Plural = function(a0) {
return a0 % 10 < 5 && a0 % 10 > 1 && ~~(a0 / 10) % 10 !== 1;
};
const ss2 = ss;
const env0_0 = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
const env0_1 = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
const defineLocale = a0.defineLocale;
const object = {months: months_28494};
object.monthsShort = 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_');
object.weekdays = 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_');
object.weekdaysShort = 'ndz_pon_wt_śr_czw_pt_sob'.split('_');
object.weekdaysMin = 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_');
object.longDateFormat = {'LT': 'HH:mm', 'LTS': 'HH:mm:ss', 'L': 'DD.MM.YYYY', 'LL': 'D MMMM YYYY',
'LLL': 'D MMMM YYYY HH:mm', 'LLLL': 'dddd, D MMMM YYYY HH:mm'};
object.calendar = {'sameDay': '[Dziś o] LT', 'nextDay': '[Jutro o] LT', 'nextWeek': null,
'lastDay': '[Wczoraj o] LT', 'lastWeek': null, 'sameElse': 'L', nextWeek: function() {
var value = this.day();
if (value === 0) {
return '[W niedzielę o] LT';
}
if (value === 2) {
return '[We wtorek o] LT';
}
if (value === 3) {
return '[W środę o] LT';
}
if (value === 6) {
return '[W sobotę o] LT';
}
return '[W] dddd [o] LT';
}, lastWeek: function() {
var value = this.day();
if (value === 0) {
return '[W zeszłą niedzielę o] LT';
}
if (value === 3) {
return '[W zeszłą środę o] LT';
}
if (value === 6) {
return '[W zeszłą sobotę o] LT';
}
return '[W zeszły] dddd [o] LT';
}};
object.relativeTime = {'future': 'za %s', 'past': '%s temu', 's': 'kilka sekund', ss: ss2, m: ss2, mm: ss2, h: ss2,
hh: ss2, d: '1 dzień', dd: '%d dni', M: 'miesiąc', MM: ss2, y: 'rok', yy: ss2};
object.dayOfMonthOrdinalParse = RegExp('\\d{1,2}\\.', '');
object.ordinal = '%d.';
object.week = {'dow': 1, 'doy': 4};
return Reflect.apply(defineLocale, a0, ['pl', object]);
function n_28491MM(a0, a1, a2) { // fn#28493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3882:367, owner: n_28491.MM, offset: 0x00f7b3a0, size: 300 bytes, params: 4, frame: 13
const value = a0 + ' ';
if (a2 === 'ss') {
return value + (n_28491Plural(a0) ? 'sekundy' : 'sekund');
}
if (a2 === 'm') {
return a1 ? 'minuta' : 'minutę';
}
if (a2 === 'mm') {
return value + (n_28491Plural(a0) ? 'minuty' : 'minut');
}
if (a2 === 'h') {
return a1 ? 'godzina' : 'godzinę';
}
if (a2 === 'hh') {
return value + (n_28491Plural(a0) ? 'godziny' : 'godzin');
}
if (a2 === 'MM') {
return value + (n_28491Plural(a0) ? 'miesiące' : 'miesięcy');
}
if (a2 === 'yy') {
return value + (n_28491Plural(a0) ? 'lata' : 'lat');
}
}
function n_28491Months(a0, a1) { // fn#28494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3882:767, owner: n_28491.months, offset: 0x00f7b4cc, size: 173 bytes, params: 3, frame: 14
var r1;
var r0;
var binding;
var month;
var property;
var value3;
if (a0) {
if (a1 === '') {
binding = env0_1;
month = a0.month;
property = binding[Reflect.apply(month, a0, [])];
value3 = '(' + property;
binding = env0_0;
month = a0.month;
property = binding[Reflect.apply(month, a0, [])];
r1 = value3 + '|' + property + ')';
} else {
r1 = RegExp('D MMMM', '').test(a1) ? env0_1[a0.month()] : env0_0[a0.month()];
}
r0 = r1;
} else {
r0 = env0_0;
}
return r0;
}
}
}
global.__d(_fun28490, 3755, [3738]) /* metro module 3755, dependencies: [3738] */;