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

246 lines
14 KiB
JavaScript

/* Metro module 3354; source: unknown; dependencies: [] */
function _fun26109(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#26109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3481:6, offset: 0x00f3bb1e, size: 795 bytes, params: 8, frame: 17
const closure = function(a0) {
var env0_0 = a0;
return _fun26112;
};
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 != null && 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}} дня',
'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_26114;
module.exports = exports.default;
function buildLocalizeTokenFn(a0) { // fn#26111, offset: 0x00f3bf04, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun26112;
function _fun26112(a0, a1) { // fn#26112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3481:361, offset: 0x00f3bf14, size: 219 bytes, params: 3, frame: 16
var r1;
var r2;
var r0;
var value;
var declension_26110Binding;
var past;
var value2;
var binding;
var future;
var value3;
if (a1 == null) {
value = environment.__proto__;
value = declension_26110(env0_0.regular, a0);
r0 = value;
} else if (a1.addSuffix) {
if (a1.comparison) {
if (a1.comparison > 0) {
future = env0_0.future;
value3 = environment.__proto__;
declension_26110Binding = declension_26110;
binding = env0_0;
if (future) {
r2 = declension_26110Binding(binding.future, a0);
} else {
value = declension_26110Binding(binding.regular, a0);
value = 'через ' + value;
r2 = value;
}
r1 = r2;
} else {
past = env0_0.past;
value2 = environment.__proto__;
declension_26110Binding = declension_26110;
binding = env0_0;
if (past) {
r1 = declension_26110Binding(binding.past, a0);
} else {
value = declension_26110Binding(binding.regular, a0);
value += ' назад';
r1 = value;
}
}
} else {
past = env0_0.past;
value2 = environment.__proto__;
declension_26110Binding = declension_26110;
binding = env0_0;
if (past) {
r1 = declension_26110Binding(binding.past, a0);
} else {
value = declension_26110Binding(binding.regular, a0);
value += ' назад';
r1 = value;
}
}
r0 = r1;
} else {
value = environment.__proto__;
value = declension_26110(env0_0.regular, a0);
r0 = value;
}
return r0;
}
}
function formatDistance_26114(a0, a1, a2) { // fn#26114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3481:6296, offset: 0x00f3c03f, size: 28 bytes, params: 4, frame: 13
return env0_0[a0](a1, a2);
}
}
function declension_26110(a0, a1) { // fn#26110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3481: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(_fun26109, 3354, []) /* metro module 3354 */;