Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,449 @@
|
||||
/* Metro module 10369; source: modules/user_application_identity/UserApplicationIdentityActionCreators.tsx; dependencies: [5, 10370, 661, 694, 507, 1216, 566, 2] */
|
||||
function _fun80319(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10555:6, offset: 0x01e7647e, size: 251 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = importDefault(10370) /* metro dependency 10370: UserApplicationIdentityStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.Endpoints;
|
||||
const QueryIds = constantsModule.QueryIds;
|
||||
object2 = {fetchUserApplicationIdentitiesWithProfiles: fetchUserApplicationIdentitiesWithProfiles,
|
||||
updateApplicationIdentityConfig: updateApplicationIdentityConfig};
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const createFetchStore = fluxModule.createFetchStore;
|
||||
const USER_APPLICATION_IDENTITIES = QueryIds.USER_APPLICATION_IDENTITIES;
|
||||
value = Reflect.apply(createFetchStore, fluxModule, [value, {getQueryId: USER_APPLICATION_IDENTITIES,
|
||||
get: function(a0) {
|
||||
return UserApplicationIdentityStore.getUserIdentities(a0);
|
||||
}, load: load_80327}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_application_identity/UserApplicationIdentityActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.useUserApplicationIdentities = value;
|
||||
}
|
||||
|
||||
function fetchUserApplicationIdentitiesWithProfiles(a0, a1) { // fn#80320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10555:199, offset: 0x01e76579, size: 43 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_3(_fun80322)();
|
||||
}
|
||||
|
||||
function updateApplicationIdentityConfig(a0, a1, a2) { // fn#80323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10555:700, offset: 0x01e766e8, size: 50 bytes, params: 4, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
return env0_3(_fun80325)();
|
||||
}
|
||||
|
||||
function load_80327(a0) { // fn#80327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10555:938, offset: 0x01e767b0, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_6.fetchUserApplicationIdentitiesWithProfiles(a0);
|
||||
}
|
||||
|
||||
function* _fun80322() { // fn#80322, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10555:209, offset: 0x01e765af, size: 313 bytes, params: 1, frame: 19
|
||||
var object4;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var HTTP;
|
||||
var get;
|
||||
var USER_APPLICATION_IDENTITIES;
|
||||
var value6;
|
||||
var object3;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var binding3;
|
||||
var value10;
|
||||
var body;
|
||||
var identities;
|
||||
var error;
|
||||
var binding4;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var value3 = binding(env2_2[3]);
|
||||
var dispatch = value3.dispatch;
|
||||
Reflect.apply(dispatch, value3, [{type: 'USER_APPLICATION_IDENTITY_FETCH_USER_START', userId: require}]);
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
HTTP = value5.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env2_5;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
USER_APPLICATION_IDENTITIES = binding.USER_APPLICATION_IDENTITIES;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(USER_APPLICATION_IDENTITIES, binding, [require]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.url = value6;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.with_profiles = true;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.query = object3;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.rejectWithError = true;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.signal = importDefault;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(get, HTTP, [object4]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
yield value7;
|
||||
try {
|
||||
value8 = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
if (value9) {
|
||||
return value8;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding3[3];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value10 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
dispatch = value10.dispatch;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.type = 'USER_APPLICATION_IDENTITY_FETCH_USER_SUCCESS';
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.userId = require;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
body = value8.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
identities = body.identities;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.identities = identities;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value10, [object4]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[3]);
|
||||
value.dispatch({type: 'USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE', userId: require});
|
||||
value = binding(binding4[5]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun80325() { // fn#80325, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10555:712, offset: 0x01e76725, size: 114 bytes, params: 1, frame: 19
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var HTTP = binding(env2_2[4]).HTTP;
|
||||
var patch = HTTP.patch;
|
||||
binding = env2_5;
|
||||
var SELF_APPLICATION_IDENTITY_CONFIG = binding.SELF_APPLICATION_IDENTITY_CONFIG;
|
||||
value = environment.__proto__;
|
||||
yield Reflect.apply(patch, HTTP, [{url: Reflect.apply(SELF_APPLICATION_IDENTITY_CONFIG, binding, [require,
|
||||
importDefault]), body: dependencyMap, rejectWithError: true}]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Metro module 4916; source: modules/user_application_identity/UserApplicationIdentityConstants.tsx; dependencies: [2] */
|
||||
function _fun43459(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5094:6, offset: 0x01154a6b, size: 132 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {RIOT_GAMES: '1443033465766281327'};
|
||||
let RIOT_GAMES = object2.RIOT_GAMES;
|
||||
const items3 = [RIOT_GAMES];
|
||||
RIOT_GAMES = object2.RIOT_GAMES;
|
||||
const items2 = [RIOT_GAMES];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_application_identity/UserApplicationIdentityConstants.tsx');
|
||||
exports.ApplicationIdentityConnections = object2;
|
||||
exports.APPLICATION_IDENTITY_CONNECTIONS_ALLOWED_APPLICATIONS = items3;
|
||||
exports.APPLICATION_IDENTITY_CONNECTIONS_SCREEN_APPLICATIONS = items2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 16214; source: modules/user_application_identity/UserApplicationIdentityManager.tsx; dependencies: [7, 6, 15, 17, 18, 10369, 4860, 2] */
|
||||
function _fun125294(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:6, offset: 0x025d3f03, size: 237 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const handleUserApplicationIdentityGatewayEvent = function(a0) {
|
||||
var useUserApplicationIdentities = require(dependencyMap[5]).useUserApplicationIdentities;
|
||||
useUserApplicationIdentities.refetch(a0.user_id);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun125299(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_application_identity/UserApplicationIdentityManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_125295() { // fn#125295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:148, offset: 0x025d3ff0, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_125295_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun125299(a0) { // fn#125299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:461, offset: 0x025d4087, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = UserApplicationIdentityManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_2(closure);
|
||||
}
|
||||
|
||||
function UserApplicationIdentityManager(a0) { // fn#125300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:473, offset: 0x025d40b1, size: 150 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, UserApplicationIdentityManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(UserApplicationIdentityManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_125295()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
const handleUserApplicationIdentityGatewayEventBinding = handleUserApplicationIdentityGatewayEvent;
|
||||
value.actions = {USER_APPLICATION_IDENTITY_UPDATE: handleUserApplicationIdentityGatewayEventBinding,
|
||||
USER_APPLICATION_IDENTITY_REMOVE: handleUserApplicationIdentityGatewayEventBinding};
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/* Metro module 10370; source: modules/user_application_identity/UserApplicationIdentityStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun80328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:6, offset: 0x01e767c7, size: 408 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
Map = global.Map;
|
||||
map = new Map();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
map = _fun80334(Store);
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{USER_APPLICATION_IDENTITY_FETCH_USER_START: USER_APPLICATION_IDENTITY_FETCH_USER_START,
|
||||
USER_APPLICATION_IDENTITY_FETCH_USER_SUCCESS: USER_APPLICATION_IDENTITY_FETCH_USER_SUCCESS,
|
||||
USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE: USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE,
|
||||
USER_APPLICATION_IDENTITY_REMOVE: USER_APPLICATION_IDENTITY_REMOVE});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_application_identity/UserApplicationIdentityStore.tsx');
|
||||
exports.default = map;
|
||||
exports.FetchState = {NOT_FETCHED: 'NOT_FETCHED', FETCHING: 'FETCHING', FETCHED: 'FETCHED'};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_80329() { // fn#80329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:148, offset: 0x01e7695f, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_80329_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function updateUserIdentities(a0, a1) { // fn#80332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:463, offset: 0x01e769c1, size: 112 bytes, params: 3, frame: 16
|
||||
const Map = global.Map;
|
||||
let map = a1.map;
|
||||
map = new Map(Reflect.apply(map, a1, [function(a0) {
|
||||
return [a0.application_id, a0];
|
||||
}]));
|
||||
let binding = env0_6;
|
||||
let set = binding.set;
|
||||
Reflect.apply(set, binding, [a0, {identities: a1, byApplication: map}]);
|
||||
binding = env0_7;
|
||||
set = binding.set;
|
||||
const FETCHED = env0_5.FETCHED;
|
||||
Reflect.apply(set, binding, [a0, FETCHED]);
|
||||
}
|
||||
|
||||
function _fun80334(a0) { // fn#80334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:611, offset: 0x01e76a48, size: 153 bytes, params: 2, frame: 16
|
||||
const closure = UserApplicationIdentityStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getUserIdentities', value: value_80336}, {key: 'getUserIdentityByApplication',
|
||||
value: value_80337}, {key: 'getFetchState', value: value_80338}, {key: 'isFetchingUser', value: value_80339}]);
|
||||
}
|
||||
|
||||
function USER_APPLICATION_IDENTITY_FETCH_USER_START({userId}) { // fn#80340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1463, offset: 0x01e76b9e, size: 40 bytes, params: 2, frame: 13
|
||||
const binding = env0_7;
|
||||
const set = binding.set;
|
||||
const FETCHING = env0_5.FETCHING;
|
||||
Reflect.apply(set, binding, [userId, FETCHING]);
|
||||
}
|
||||
|
||||
function USER_APPLICATION_IDENTITY_FETCH_USER_SUCCESS(a0) { // fn#80341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1569, offset: 0x01e76bc6, size: 61 bytes, params: 2, frame: 15
|
||||
const binding = env0_7;
|
||||
const set = binding.set;
|
||||
let userId = a0.userId;
|
||||
const FETCHED = env0_5.FETCHED;
|
||||
Reflect.apply(set, binding, [userId, FETCHED]);
|
||||
const updateUserIdentitiesBinding = updateUserIdentities;
|
||||
userId = a0.userId;
|
||||
updateUserIdentitiesBinding(userId, a0.identities);
|
||||
}
|
||||
|
||||
function USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE({userId}) { // fn#80342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1720, offset: 0x01e76c03, size: 40 bytes, params: 2, frame: 13
|
||||
const binding = env0_7;
|
||||
const set = binding.set;
|
||||
const FETCHED = env0_5.FETCHED;
|
||||
Reflect.apply(set, binding, [userId, FETCHED]);
|
||||
}
|
||||
|
||||
function USER_APPLICATION_IDENTITY_REMOVE(a0) { // fn#80343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1815, offset: 0x01e76c2b, size: 85 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const binding = env0_6;
|
||||
const get = binding.get;
|
||||
let user_id = a0.user_id;
|
||||
const value2 = Reflect.apply(get, binding, [user_id]);
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
const updateUserIdentitiesBinding = updateUserIdentities;
|
||||
user_id = a0.user_id;
|
||||
updateUserIdentitiesBinding(user_id, value2.identities.filter(_fun80344));
|
||||
}
|
||||
|
||||
function value_80336(a0) { // fn#80336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:988, offset: 0x01e76ae1, size: 51 bytes, params: 2, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = env1_6.get(a0);
|
||||
const value2 = null;
|
||||
const identities = value2 == value ? undefined : value.identities;
|
||||
return value2 != identities ? identities : value2;
|
||||
}
|
||||
|
||||
function value_80337(a0, a1) { // fn#80337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1115, offset: 0x01e76b14, size: 64 bytes, params: 3, frame: 13
|
||||
var r1;
|
||||
let value = environment.__proto__;
|
||||
value = env1_6.get(a0);
|
||||
const value2 = null;
|
||||
if (value2 == value) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.byApplication.get(a1);
|
||||
r1 = value;
|
||||
}
|
||||
return value2 != r1 ? r1 : value2;
|
||||
}
|
||||
|
||||
function value_80338(a0) { // fn#80338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1239, offset: 0x01e76b54, size: 38 bytes, params: 2, frame: 12
|
||||
return env1_7.get(a0) ?? env1_5.NOT_FETCHED;
|
||||
}
|
||||
|
||||
function value_80339(a0) { // fn#80339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1329, offset: 0x01e76b7a, size: 36 bytes, params: 2, frame: 11
|
||||
const fetchState = this.getFetchState(a0);
|
||||
const FETCHING = env1_5.FETCHING;
|
||||
return fetchState === FETCHING;
|
||||
}
|
||||
|
||||
function _fun80344({application_id}) { // fn#80344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10556:1943, offset: 0x01e76c80, size: 28 bytes, params: 2, frame: 2
|
||||
return application_id !== env0_0.application_id;
|
||||
}
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/* Metro module 10368; source: modules/user_application_identity/hooks/useConnectionFilteredAppIdentities.tsx; dependencies: [31, 4916, 10369, 2] */
|
||||
function _fun80315(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10554:6, offset: 0x01e762db, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(4916) /* metro dependency 4916: UserApplicationIdentityConstants */).APPLICATION_IDENTITY_CONNECTIONS_ALLOWED_APPLICATIONS;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_application_identity/hooks/useConnectionFilteredAppIdentities.tsx');
|
||||
exports.default = useConnectionFilteredAppIdentities;
|
||||
}
|
||||
|
||||
function useConnectionFilteredAppIdentities(a0) { // fn#80316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10554:292, offset: 0x01e76363, size: 141 bytes, params: 2, frame: 16
|
||||
const value = a1;
|
||||
const includeHidden = (value !== undefined ? value : {}).includeHidden;
|
||||
const r5 = includeHidden !== undefined && includeHidden;
|
||||
const {isLoading,
|
||||
data} = (require(10369) /* metro dependency 10369: UserApplicationIdentityActionCreators */).useUserApplicationIdentities(a0);
|
||||
const binding = env0_2;
|
||||
const useMemo = binding.useMemo;
|
||||
return {isLoading: isLoading, filteredAppIdentities: Reflect.apply(useMemo, binding, [function() {
|
||||
return (data ?? []).filter(_fun80318);
|
||||
}, [data, r5]])};
|
||||
}
|
||||
|
||||
function _fun80317() { // fn#80317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10554:499, offset: 0x01e763f0, size: 44 bytes, params: 1, frame: 11
|
||||
return (data ?? []).filter(_fun80318);
|
||||
}
|
||||
|
||||
function _fun80318(a0) { // fn#80318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10554:526, offset: 0x01e7641c, size: 98 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
return APPLICATION_IDENTITY_CONNECTIONS_ALLOWED_APPLICATIONS.includes(a0.application_id) && a0.profile != null && a0.profile.username != null && (a0.profile.connection_visible === true || env1_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user