61 lines
3.2 KiB
React
61 lines
3.2 KiB
React
/* Metro module 3306; source: unknown; dependencies: [] */
|
|
function _fun25989(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3433:6, offset: 0x00f3494a, size: 374 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = undefined;
|
|
object = {lessThanXSeconds: {'one': '1秒未満', 'other': '{{count}}秒未満', 'oneWithSuffix': '約1秒',
|
|
'otherWithSuffix': '約{{count}}秒'}, xSeconds: {'one': '1秒', 'other': '{{count}}秒'}, halfAMinute: '30秒',
|
|
lessThanXMinutes: {'one': '1分未満', 'other': '{{count}}分未満', 'oneWithSuffix': '約1分',
|
|
'otherWithSuffix': '約{{count}}分'}, xMinutes: {'one': '1分', 'other': '{{count}}分'}, aboutXHours: {'one': '約1時間',
|
|
'other': '約{{count}}時間'}, xHours: {'one': '1時間', 'other': '{{count}}時間'}, xDays: {'one': '1日',
|
|
'other': '{{count}}日'}, aboutXWeeks: {'one': '約1週間', 'other': '約{{count}}週間'}, xWeeks: {'one': '1週間',
|
|
'other': '{{count}}週間'}, aboutXMonths: {'one': '約1か月', 'other': '約{{count}}か月'}, xMonths: {'one': '1か月',
|
|
'other': '{{count}}か月'}, aboutXYears: {'one': '約1年', 'other': '約{{count}}年'}, xYears: {'one': '1年',
|
|
'other': '{{count}}年'}, overXYears: {'one': '1年以上', 'other': '{{count}}年以上'}, almostXYears: {'one': '1年近く',
|
|
'other': '{{count}}年近く'}};
|
|
exports.default = formatDistance_25990;
|
|
module.exports = exports.default;
|
|
}
|
|
|
|
function formatDistance_25990(a0, a1, a2) { // fn#25990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3433:1033, offset: 0x00f34ac0, size: 245 bytes, params: 4, frame: 18
|
|
var r0;
|
|
var r3;
|
|
var otherWithSuffix;
|
|
var other;
|
|
var replace;
|
|
let value = a2;
|
|
const r1 = value || ({});
|
|
const property = env0_0[a0];
|
|
if (typeof property === 'string') {
|
|
r3 = property;
|
|
} else {
|
|
if (a1 === 1) {
|
|
r0 = r1.addSuffix && property.oneWithSuffix ? property.oneWithSuffix : property.one;
|
|
} else if (r1.addSuffix) {
|
|
otherWithSuffix = property.otherWithSuffix;
|
|
if (otherWithSuffix) {
|
|
otherWithSuffix = property.otherWithSuffix;
|
|
replace = otherWithSuffix.replace;
|
|
value = global.String(a1);
|
|
value = Reflect.apply(replace, otherWithSuffix, ['{{count}}', value]);
|
|
r0 = value;
|
|
} else {
|
|
other = property.other;
|
|
replace = other.replace;
|
|
value = global.String(a1);
|
|
value = Reflect.apply(replace, other, ['{{count}}', value]);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
other = property.other;
|
|
replace = other.replace;
|
|
value = global.String(a1);
|
|
value = Reflect.apply(replace, other, ['{{count}}', value]);
|
|
r0 = value;
|
|
}
|
|
r3 = r0;
|
|
}
|
|
return r1.addSuffix ? r1.comparison && r1.comparison > 0 ? r3 + '後' : r3 + '前' : r3;
|
|
}
|
|
|