This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

+88 -62
View File
@@ -1,4 +1,10 @@
/* Metro module 4278; source: utils/LibraryApplicationUtils.tsx; dependencies: [57, 1878, 4279, 661, 3829, 2] */
import Module00057 from '../by-id/module-00057.js'; /* Metro dependency 57 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SKUStore from '../stores/game_store/SKUStore.tsx'; /* Metro dependency 4279 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun36264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:6, offset: 0x01087244, size: 277 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = function(a0) {
@@ -8,14 +14,7 @@ function _fun36264(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.LibraryApplicationFlags;
const env0_6 = constantsModule.LocalDispatchApplicationStates;
const env0_7 = constantsModule.StatusTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/LibraryApplicationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('utils/LibraryApplicationUtils.tsx');
exports.getComboId = function(a0, a1) {
return '' + a0 + ':' + a1;
};
@@ -31,72 +30,99 @@ function _fun36264(global, require, importDefault, importAll, module, exports, d
return a0.reduce(_fun36272, {'total': 0, 'progress': 0});
};
exports.isUserEntitledToLibraryApplication = isUserEntitledToLibraryApplication;
}
function convertComboId(a0) { // fn#36267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:488, offset: 0x010873ad, size: 61 bytes, params: 2, frame: 13
let value = a0.split(':');
value = Module00057(value, 2);
return {applicationId: value[0], branchId: value[1]};
}
function convertComboId(a0) { // fn#36267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:488, offset: 0x010873ad, size: 61 bytes, params: 2, frame: 13
let value = a0.split(':');
value = env0_2(value, 2);
return {applicationId: value[0], branchId: value[1]};
}
function shouldShareApplicationActivity(a0, a1) { // fn#36268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:618, offset: 0x010873ea, size: 147 bytes, params: 3, frame: 14
var activeLibraryApplication;
const ShowCurrentGame = (require(3829) /* metro dependency 3829: UserSettings */).ShowCurrentGame;
const getSetting = ShowCurrentGame.getSetting;
if (Reflect.apply(getSetting, ShowCurrentGame, [])) {
if ((require(3829) /* metro dependency 3829: UserSettings */).StatusSetting.getSetting() === StatusTypes.INVISIBLE) {
return false;
function shouldShareApplicationActivity(a0, a1) { // fn#36268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:618, offset: 0x010873ea, size: 147 bytes, params: 3, frame: 14
var activeLibraryApplication;
const ShowCurrentGame = (require(3829) /* metro dependency 3829: UserSettings */).ShowCurrentGame;
const getSetting = ShowCurrentGame.getSetting;
if (Reflect.apply(getSetting, ShowCurrentGame, [])) {
if ((require(3829) /* metro dependency 3829: UserSettings */).StatusSetting.getSetting() === StatusTypes.INVISIBLE) {
return false;
}
activeLibraryApplication = a1.getActiveLibraryApplication(a0);
return activeLibraryApplication == null || !activeLibraryApplication.hasFlag(LibraryApplicationFlags.PRIVATE);
}
activeLibraryApplication = a1.getActiveLibraryApplication(a0);
return activeLibraryApplication == null || !activeLibraryApplication.hasFlag(LibraryApplicationFlags.PRIVATE);
return false;
}
return false;
}
function shouldShowGameInLibrary(a0, a1, a2) { // fn#36270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:965, offset: 0x01087499, size: 74 bytes, params: 4, frame: 13
var r1;
var r0;
var enabled;
const value = a1 != null;
if (value) {
enabled = a2.enabled;
r1 = enabled ? !a1.hasFlag(LibraryApplicationFlags.PRIVATE) : !enabled;
r1 = r1 && !a1.isHidden();
r0 = r1;
} else {
r0 = value;
}
return r0;
}
function getCombinedProgress(a0) { // fn#36271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:1149, offset: 0x010874e3, size: 38 bytes, params: 2, frame: 13
return a0.reduce(function(a0, a1) {
function shouldShowGameInLibrary(a0, a1, a2) { // fn#36270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:965, offset: 0x01087499, size: 74 bytes, params: 4, frame: 13
var r1;
var r0;
var property;
var object;
var value = a0;
var value3 = convertToTransitionState(a1);
if (value3 == null) {
r0 = value;
var enabled;
const value = a1 != null;
if (value) {
enabled = a2.enabled;
r1 = enabled ? !a1.hasFlag(LibraryApplicationFlags.PRIVATE) : !enabled;
r1 = r1 && !a1.isHidden();
r0 = r1;
} else {
property = a1.type;
if (property === LocalDispatchApplicationStates.UP_TO_DATE) {
r0 = value;
}
return r0;
}
function getCombinedProgress(a0) { // fn#36271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:1149, offset: 0x010874e3, size: 38 bytes, params: 2, frame: 13
return a0.reduce(function(a0, a1) {
var r0;
var property;
var object;
var value = a0;
var value3 = convertToTransitionState(a1);
if (value3 == null) {
r0 = value;
} else {
property = a1.type;
if (property === LocalDispatchApplicationStates.UP_TO_DATE) {
r0 = value;
} else {
object = {};
property = value.total;
object.total = property + global.Number(value3.total);
property = value.progress;
object.progress = property + global.Number(value3.progress);
r0 = object;
}
}
return r0;
}, {'total': 0, 'progress': 0});
function _fun36272(a0, a1) { // fn#36272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:1198, offset: 0x01087509, size: 124 bytes, params: 3, frame: 17
var r0;
var object;
var total;
var Number;
var progress;
const value = a0;
const value3 = convertToTransitionState(a1);
if (value3 == null) {
r0 = value;
} else if (a1.type === LocalDispatchApplicationStates.UP_TO_DATE) {
r0 = value;
} else {
object = {};
property = value.total;
object.total = property + global.Number(value3.total);
property = value.progress;
object.progress = property + global.Number(value3.progress);
total = value.total;
Number = global.Number;
object.total = total + Number(value3.total);
progress = value.progress;
Number = global.Number;
object.progress = progress + Number(value3.progress);
r0 = object;
}
return r0;
}
return r0;
}, {'total': 0, 'progress': 0});
}
function isUserEntitledToLibraryApplication(a0) { // fn#36273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:1413, offset: 0x01087585, size: 58 bytes, params: 2, frame: 15
const isDiscordApplication = a0.isDiscordApplication();
return isDiscordApplication ? a0.isEntitled(UserStore.getCurrentUser(), SKUStore) : !!isDiscordApplication;
}
function isUserEntitledToLibraryApplication(a0) { // fn#36273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4450:1413, offset: 0x01087585, size: 58 bytes, params: 2, frame: 15
const isDiscordApplication = a0.isDiscordApplication();
return isDiscordApplication ? a0.isEntitled(UserStore.getCurrentUser(), SKUStore) : !!isDiscordApplication;
}
}
global.__d(_fun36264, 4278, [57, 1878, 4279, 661, 3829,
2]) /* metro module 4278, dependencies: [57, 1878, 4279, 661, 3829, 2] */;