Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 14676; source: modules/premium/powerups/utils/getBoostLifecyclePhase.tsx; dependencies: [21, 2] */
|
||||
function _fun110786(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14873:6, offset: 0x023870a1, size: 135 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/utils/getBoostLifecyclePhase.tsx');
|
||||
exports.BOOST_EXPIRING_DISPLAY_WINDOW_DAYS = 3;
|
||||
exports.BOOST_EXPIRING_DISPLAY_WINDOW_MS = 259200000;
|
||||
exports.getBoostLifecycleInfo = getBoostLifecycleInfo;
|
||||
exports.getBoostLifecycleTimestamp = getBoostLifecycleTimestamp;
|
||||
}
|
||||
|
||||
function getBoostLifecycleInfo(a0, a1) { // fn#110787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14873:296, offset: 0x02387128, size: 149 bytes, params: 3, frame: 12
|
||||
return a0.ended ? {phase: 'expired'} : a0.endsAt == null ? a0.endsAt == null ? {phase: 'gave'} : a0.endsAt.getTime() - a1 <= 259200000 ? {phase: 'expiring',
|
||||
endsAt: a0.endsAt} : {phase: 'gave'} : a0.endsAt.getTime() <= a1 ? {phase: 'expired'} : a0.endsAt == null ? {phase: 'gave'} : a0.endsAt.getTime() - a1 <= 259200000 ? {phase: 'expiring',
|
||||
endsAt: a0.endsAt} : {phase: 'gave'};
|
||||
}
|
||||
|
||||
function getBoostLifecycleTimestamp(a0, a1) { // fn#110788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14873:524, offset: 0x023871bd, size: 192 bytes, params: 3, frame: 15
|
||||
var r2;
|
||||
var endsAt;
|
||||
var value;
|
||||
const phase = a1.phase;
|
||||
if (phase === 'gave') {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
return value.extractTimestamp(a0.id);
|
||||
}
|
||||
if (phase === 'expiring') {
|
||||
return a1.endsAt.getTime() - 259200000;
|
||||
}
|
||||
if (phase === 'expired') {
|
||||
endsAt = a0.endsAt;
|
||||
value = undefined;
|
||||
r2 = endsAt == null ? value : endsAt.getTime();
|
||||
if (r2 == null) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.extractTimestamp(a0.id);
|
||||
r2 = value;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user