Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,89 @@
|
||||
/* Metro module 4789; source: modules/notification_center/getTimestampString.tsx; dependencies: [1244, 3738, 2] */
|
||||
function _fun41361(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4967:6, offset: 0x0111d03e, size: 160 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = getDurationString;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notification_center/getTimestampString.tsx');
|
||||
exports.default = getTimestampString;
|
||||
exports.getAbbreviatedFormatter = getAbbreviatedFormatter;
|
||||
exports.getFullFormatter = getFullFormatter;
|
||||
exports.getDurationString = closure;
|
||||
}
|
||||
|
||||
function getDurationString({seconds, getFormatter}) { // fn#41362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4967:115, offset: 0x0111d0de, size: 514 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
var years;
|
||||
var object2;
|
||||
var months;
|
||||
var days;
|
||||
var hours;
|
||||
var minutes;
|
||||
let value = getFormatter();
|
||||
if (seconds < 60) {
|
||||
value = intl.formatToPlainString(value.minutes, {minutes: 1});
|
||||
r0 = value;
|
||||
} else if (seconds < 3600) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
minutes = value.minutes;
|
||||
object2 = {};
|
||||
object2.minutes = global.Math.floor(seconds / 60);
|
||||
value = Reflect.apply(formatToPlainString, intl, [minutes, object2]);
|
||||
r0 = value;
|
||||
} else if (seconds < 86400) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
hours = value.hours;
|
||||
object2 = {};
|
||||
object2.hours = global.Math.floor(seconds / 3600);
|
||||
value = Reflect.apply(formatToPlainString, intl, [hours, object2]);
|
||||
r0 = value;
|
||||
} else if (seconds < env0_3) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
days = value.days;
|
||||
object2 = {};
|
||||
object2.days = global.Math.floor(seconds / 86400);
|
||||
value = Reflect.apply(formatToPlainString, intl, [days, object2]);
|
||||
r0 = value;
|
||||
} else if (seconds < env0_4) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
months = value.months;
|
||||
object2 = {};
|
||||
object2.months = global.Math.floor(seconds / env0_3);
|
||||
value = Reflect.apply(formatToPlainString, intl, [months, object2]);
|
||||
r0 = value;
|
||||
} else {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
years = value.years;
|
||||
object2 = {};
|
||||
object2.years = global.Math.floor(seconds / env0_4);
|
||||
value = Reflect.apply(formatToPlainString, intl, [years, object2]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getTimestampString({since, getFormatter}) { // fn#41363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4967:707, offset: 0x0111d2e0, size: 97 bytes, params: 2, frame: 19
|
||||
const getDurationStringBinding = getDurationString;
|
||||
const object2 = {};
|
||||
const value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
object2.seconds = value.diff((importDefault(3738) /* metro dependency 3738 */)(since), 's');
|
||||
object2.getFormatter = getFormatter;
|
||||
return getDurationStringBinding(object2);
|
||||
}
|
||||
|
||||
function getAbbreviatedFormatter() { // fn#41364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4967:870, offset: 0x0111d341, size: 148 bytes, params: 1, frame: 14
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const GBLpQ8 = t.GBLpQ8;
|
||||
const XzBNbS = t.XzBNbS;
|
||||
const I1E8p6 = t.I1E8p6;
|
||||
return {minutes: t['XIGt+W'], hours: t.rhY1Rs, days: GBLpQ8, months: XzBNbS, years: I1E8p6};
|
||||
}
|
||||
|
||||
function getFullFormatter() { // fn#41365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4967:1017, offset: 0x0111d3d5, size: 154 bytes, params: 1, frame: 14
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const SoON3V = t.SoON3V;
|
||||
return {minutes: t['GqQ/Y9'], hours: t.c5zfWZ, days: t.amjnaI, months: SoON3V, years: t['12B3Re']};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user