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

242 lines
14 KiB
JavaScript

/* Metro module 3378; source: unknown; dependencies: [] */
function _fun26172(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#26172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3505:6, offset: 0x00f3f71c, size: 795 bytes, params: 8, frame: 17
const closure = function(a0) {
var env0_0 = a0;
return _fun26175;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
object = {};
object.lessThanXSeconds = closure({regular: {'one': 'менше секунди',
'singularNominative': 'менше {{count}} секунди', 'singularGenitive': 'менше {{count}} секунд',
'pluralGenitive': 'менше {{count}} секунд'}, future: {'one': 'менше, ніж за секунду',
'singularNominative': 'менше, ніж за {{count}} секунду', 'singularGenitive': 'менше, ніж за {{count}} секунди',
'pluralGenitive': 'менше, ніж за {{count}} секунд'}});
object.xSeconds = closure({regular: {'singularNominative': '{{count}} секунда',
'singularGenitive': '{{count}} секунди', 'pluralGenitive': '{{count}} секунд'},
past: {'singularNominative': '{{count}} секунду тому', 'singularGenitive': '{{count}} секунди тому',
'pluralGenitive': '{{count}} секунд тому'}, future: {'singularNominative': 'за {{count}} секунду',
'singularGenitive': 'за {{count}} секунди', 'pluralGenitive': 'за {{count}} секунд'}});
object.halfAMinute = function(a0, a1) {
return a1 && a1.addSuffix ? a1.comparison && a1.comparison > 0 ? 'за півхвилини' : 'півхвилини тому' : 'півхвилини';
};
object.lessThanXMinutes = closure({regular: {'one': 'менше хвилини',
'singularNominative': 'менше {{count}} хвилини', 'singularGenitive': 'менше {{count}} хвилин',
'pluralGenitive': 'менше {{count}} хвилин'}, future: {'one': 'менше, ніж за хвилину',
'singularNominative': 'менше, ніж за {{count}} хвилину', 'singularGenitive': 'менше, ніж за {{count}} хвилини',
'pluralGenitive': 'менше, ніж за {{count}} хвилин'}});
object.xMinutes = closure({regular: {'singularNominative': '{{count}} хвилина',
'singularGenitive': '{{count}} хвилини', 'pluralGenitive': '{{count}} хвилин'},
past: {'singularNominative': '{{count}} хвилину тому', 'singularGenitive': '{{count}} хвилини тому',
'pluralGenitive': '{{count}} хвилин тому'}, future: {'singularNominative': 'за {{count}} хвилину',
'singularGenitive': 'за {{count}} хвилини', 'pluralGenitive': 'за {{count}} хвилин'}});
object.aboutXHours = closure({regular: {'singularNominative': 'близько {{count}} години',
'singularGenitive': 'близько {{count}} годин', 'pluralGenitive': 'близько {{count}} годин'},
future: {'singularNominative': 'приблизно за {{count}} годину',
'singularGenitive': 'приблизно за {{count}} години', 'pluralGenitive': 'приблизно за {{count}} годин'}});
object.xHours = closure({regular: {'singularNominative': '{{count}} годину', 'singularGenitive': '{{count}} години',
'pluralGenitive': '{{count}} годин'}});
object.xDays = closure({regular: {'singularNominative': '{{count}} день', 'singularGenitive': '{{count}} днi',
'pluralGenitive': '{{count}} днів'}});
object.aboutXWeeks = closure({regular: {'singularNominative': 'близько {{count}} тижня',
'singularGenitive': 'близько {{count}} тижнів', 'pluralGenitive': 'близько {{count}} тижнів'},
future: {'singularNominative': 'приблизно за {{count}} тиждень',
'singularGenitive': 'приблизно за {{count}} тижні', 'pluralGenitive': 'приблизно за {{count}} тижнів'}});
object.xWeeks = closure({regular: {'singularNominative': '{{count}} тиждень', 'singularGenitive': '{{count}} тижні',
'pluralGenitive': '{{count}} тижнів'}});
object.aboutXMonths = closure({regular: {'singularNominative': 'близько {{count}} місяця',
'singularGenitive': 'близько {{count}} місяців', 'pluralGenitive': 'близько {{count}} місяців'},
future: {'singularNominative': 'приблизно за {{count}} місяць',
'singularGenitive': 'приблизно за {{count}} місяці', 'pluralGenitive': 'приблизно за {{count}} місяців'}});
object.xMonths = closure({regular: {'singularNominative': '{{count}} місяць',
'singularGenitive': '{{count}} місяці', 'pluralGenitive': '{{count}} місяців'}});
object.aboutXYears = closure({regular: {'singularNominative': 'близько {{count}} року',
'singularGenitive': 'близько {{count}} років', 'pluralGenitive': 'близько {{count}} років'},
future: {'singularNominative': 'приблизно за {{count}} рік', 'singularGenitive': 'приблизно за {{count}} роки',
'pluralGenitive': 'приблизно за {{count}} років'}});
object.xYears = closure({regular: {'singularNominative': '{{count}} рік', 'singularGenitive': '{{count}} роки',
'pluralGenitive': '{{count}} років'}});
object.overXYears = closure({regular: {'singularNominative': 'більше {{count}} року',
'singularGenitive': 'більше {{count}} років', 'pluralGenitive': 'більше {{count}} років'},
future: {'singularNominative': 'більше, ніж за {{count}} рік',
'singularGenitive': 'більше, ніж за {{count}} роки', 'pluralGenitive': 'більше, ніж за {{count}} років'}});
object.almostXYears = closure({regular: {'singularNominative': 'майже {{count}} рік',
'singularGenitive': 'майже {{count}} роки', 'pluralGenitive': 'майже {{count}} років'},
future: {'singularNominative': 'майже за {{count}} рік', 'singularGenitive': 'майже за {{count}} роки',
'pluralGenitive': 'майже за {{count}} років'}});
exports.default = formatDistance_26177;
module.exports = exports.default;
function buildLocalizeTokenFn_26174(a0) { // fn#26174, offset: 0x00f3fa37, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun26175;
function _fun26175(a0, a1) { // fn#26175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3505:361, offset: 0x00f3fa47, size: 216 bytes, params: 3, frame: 16
var r1;
var r2;
var r0;
var value;
var declension_26173Binding;
var past;
var value2;
var binding;
var future;
var value3;
if (a1) {
if (a1.addSuffix) {
if (a1.comparison) {
if (a1.comparison > 0) {
future = env0_0.future;
value3 = environment.__proto__;
declension_26173Binding = declension_26173;
binding = env0_0;
if (future) {
r2 = declension_26173Binding(binding.future, a0);
} else {
value = declension_26173Binding(binding.regular, a0);
value = 'за ' + value;
r2 = value;
}
r1 = r2;
} else {
past = env0_0.past;
value2 = environment.__proto__;
declension_26173Binding = declension_26173;
binding = env0_0;
if (past) {
r1 = declension_26173Binding(binding.past, a0);
} else {
value = declension_26173Binding(binding.regular, a0);
value += ' тому';
r1 = value;
}
}
} else {
past = env0_0.past;
value2 = environment.__proto__;
declension_26173Binding = declension_26173;
binding = env0_0;
if (past) {
r1 = declension_26173Binding(binding.past, a0);
} else {
value = declension_26173Binding(binding.regular, a0);
value += ' тому';
r1 = value;
}
}
r0 = r1;
} else {
value = environment.__proto__;
value = declension_26173(env0_0.regular, a0);
r0 = value;
}
} else {
value = environment.__proto__;
value = declension_26173(env0_0.regular, a0);
r0 = value;
}
return r0;
}
}
function formatDistance_26177(a0, a1, a2) { // fn#26177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3505:6062, offset: 0x00f3fb69, size: 33 bytes, params: 4, frame: 13
return env0_0[a0](a1, a2 || ({}));
}
}
function declension_26173(a0, a1) { // fn#26173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3505:43, offset: 0x00f3be39, size: 203 bytes, params: 3, frame: 17
var r1;
var pluralGenitive;
var replace;
var singularGenitive;
var singularNominative;
if (a0.one !== undefined) {
if (a1 === 1) {
return a0.one;
}
}
let value = a1 % 10;
const value2 = a1 % 100;
if (value !== 1) {
if (value >= 2) {
if (value <= 4) {
if (value2 < 10) {
singularGenitive = a0.singularGenitive;
replace = singularGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, singularGenitive, ['{{count}}', value]);
r1 = value;
} else if (value2 > 20) {
singularGenitive = a0.singularGenitive;
replace = singularGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, singularGenitive, ['{{count}}', value]);
r1 = value;
} else {
pluralGenitive = a0.pluralGenitive;
replace = pluralGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, pluralGenitive, ['{{count}}', value]);
r1 = value;
}
} else {
pluralGenitive = a0.pluralGenitive;
replace = pluralGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, pluralGenitive, ['{{count}}', value]);
r1 = value;
}
} else {
pluralGenitive = a0.pluralGenitive;
replace = pluralGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, pluralGenitive, ['{{count}}', value]);
r1 = value;
}
} else if (value2 !== 11) {
singularNominative = a0.singularNominative;
replace = singularNominative.replace;
value = global.String(a1);
value = Reflect.apply(replace, singularNominative, ['{{count}}', value]);
r1 = value;
} else if (value >= 2) {
if (value <= 4) {
if (value2 < 10) {
singularGenitive = a0.singularGenitive;
replace = singularGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, singularGenitive, ['{{count}}', value]);
r1 = value;
} else if (value2 > 20) {
singularGenitive = a0.singularGenitive;
replace = singularGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, singularGenitive, ['{{count}}', value]);
r1 = value;
} else {
pluralGenitive = a0.pluralGenitive;
replace = pluralGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, pluralGenitive, ['{{count}}', value]);
r1 = value;
}
} else {
pluralGenitive = a0.pluralGenitive;
replace = pluralGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, pluralGenitive, ['{{count}}', value]);
r1 = value;
}
} else {
pluralGenitive = a0.pluralGenitive;
replace = pluralGenitive.replace;
value = global.String(a1);
value = Reflect.apply(replace, pluralGenitive, ['{{count}}', value]);
r1 = value;
}
return r1;
}
global.__d(_fun26172, 3378, []) /* metro module 3378 */;