Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,48 @@
|
||||
/* Metro module 6776; source: modules/application_account_linking/hooks/useAuthorizationApp.tsx; dependencies: [31, 4234, 4235, 4238, 1909, 6777, 2] */
|
||||
function _fun53385(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6954:6, offset: 0x01347650, size: 184 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getAuthorizationApp;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
const env0_5 = (require(4238) /* metro dependency 4238: ApplicationConstants */).ApplicationTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_account_linking/hooks/useAuthorizationApp.tsx');
|
||||
exports.getAuthorizationApp = closure;
|
||||
exports.useAuthorizationApp = useAuthorizationApp;
|
||||
}
|
||||
|
||||
function getAuthorizationApp(a0) { // fn#53386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6954:153, offset: 0x01347708, size: 129 bytes, params: 2, frame: 16
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
const type = a0.type;
|
||||
const GAME = ApplicationTypes.GAME;
|
||||
if (type !== GAME) {
|
||||
return a0;
|
||||
}
|
||||
const linkedGames = a0.linkedGames;
|
||||
const value3 = undefined;
|
||||
const r6 = value == linkedGames ? value3 : linkedGames.find(function({type}) {
|
||||
return type === require(dependencyMap[4]).GameLinkTypes.OFFICIAL;
|
||||
});
|
||||
const application = value == r6 ? value3 : r6.application;
|
||||
const r3 = value != application ? application : ApplicationStore.getApplication(value == r6 ? value3 : r6.id);
|
||||
return value != r3 ? r3 : value;
|
||||
}
|
||||
|
||||
function useAuthorizationApp(a0) { // fn#53388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6954:602, offset: 0x013477bc, size: 120 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const r4 = a0 == null || a0 instanceof ApplicationRecord ? undefined : a0.getOfficialApplicationId();
|
||||
value = require(6777) /* metro dependency 6777: useGetOrFetchApplications */;
|
||||
value = value.useGetOrFetchApplication(r4);
|
||||
return env0_2.useMemo(_fun53389, [a0, value]);
|
||||
}
|
||||
|
||||
function _fun53389() { // fn#53389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6954:756, offset: 0x01347834, size: 75 bytes, params: 1, frame: 14
|
||||
const value2 = null;
|
||||
return value2 == env0_0 ? value2 : env0_0 instanceof ApplicationRecord ? getAuthorizationApp(env0_0) : value2 != env0_1 ? env0_1 : value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 6778; source: modules/application_account_linking/hooks/useAuthorizedAppsToken.tsx; dependencies: [31, 5109, 566, 1360, 6779, 2] */
|
||||
function _fun53396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:6, offset: 0x01347ad2, size: 171 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useAuthorizedAppsTokens;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const authorizedAppsStore = importDefault(5109) /* metro dependency 5109: AuthorizedAppsStore */;
|
||||
const env0_5 = (require(5109) /* metro dependency 5109: AuthorizedAppsStore */).FetchState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_account_linking/hooks/useAuthorizedAppsToken.tsx');
|
||||
exports.useAuthorizedAppsTokens = closure;
|
||||
exports.useAuthorizedAppsToken = useAuthorizedAppsToken;
|
||||
}
|
||||
|
||||
function useAuthorizedAppsTokens(a0, a1) { // fn#53397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:137, offset: 0x01347b7d, size: 246 bytes, params: 3, frame: 24
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const disableFetch = (value ?? ({})).disableFetch;
|
||||
const r7 = disableFetch !== undefined && disableFetch;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([AuthorizedAppsStore],
|
||||
_fun53398, [a0]);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthorizedAppsStore], _fun53400,
|
||||
[a0]);
|
||||
env0_3.useEffect(_fun53404, [r7,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([AuthorizedAppsStore], _fun53402,
|
||||
[a0])]);
|
||||
return {tokens: value2, fetched: value3};
|
||||
}
|
||||
|
||||
function useAuthorizedAppsToken(a0, a1) { // fn#53405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:964, offset: 0x01347ddb, size: 101 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
let value = env0_3.useMemo(_fun53406, [a0]);
|
||||
value = useAuthorizedAppsTokens(value, a1);
|
||||
const tokens = value.tokens;
|
||||
return {token: tokens.length > 0 ? tokens[0] : null, fetched: value.fetched};
|
||||
}
|
||||
|
||||
function _fun53398() { // fn#53398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:264, offset: 0x01347c73, size: 90 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var r0;
|
||||
var filter;
|
||||
var value3;
|
||||
var value;
|
||||
if (env0_0 == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
value = env0_0.map(function(a0) {
|
||||
return AuthorizedAppsStore.getNewestTokenForApplication(a0);
|
||||
});
|
||||
filter = value.filter;
|
||||
value3 = environment.__proto__;
|
||||
value = Reflect.apply(filter, value, [(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
|
||||
r0 = value;
|
||||
}
|
||||
r0 = r0 ?? [];
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun53400() { // fn#53400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:428, offset: 0x01347ce4, size: 52 bytes, params: 1, frame: 13
|
||||
const r1 = env0_0?.every(function(a0) {
|
||||
return AuthorizedAppsStore.getFetchStateForApplication(a0) === FetchState.FETCHED;
|
||||
});
|
||||
return r1 != null && r1;
|
||||
}
|
||||
|
||||
function _fun53402() { // fn#53402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:579, offset: 0x01347d3d, size: 49 bytes, params: 1, frame: 13
|
||||
let r0 = env0_0?.filter(function(a0) {
|
||||
return AuthorizedAppsStore.getFetchStateForApplication(a0) === FetchState.NOT_FETCHED;
|
||||
});
|
||||
r0 = r0 ?? [];
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun53404() { // fn#53404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:718, offset: 0x01347d93, size: 72 bytes, params: 1, frame: 12
|
||||
var value3;
|
||||
if (!(env0_1 || env0_2.length === 0)) {
|
||||
value3 = environment.__proto__;
|
||||
(importDefault(6779) /* metro dependency 6779: AuthorizedAppsActionCreators */).fetch(env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun53406() { // fn#53406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6956:1042, offset: 0x01347e40, size: 33 bytes, params: 1, frame: 3
|
||||
const value2 = null;
|
||||
return value2 != env0_0 ? [env0_0] : value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
/* Metro module 6788; source: modules/application_account_linking/hooks/useProviderConnection.tsx; dependencies: [5, 31, 5040, 566, 5042, 2] */
|
||||
function _fun53442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6966:6, offset: 0x01349462, size: 151 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_account_linking/hooks/useProviderConnection.tsx');
|
||||
exports.useProviderConnection = useProviderConnection;
|
||||
}
|
||||
|
||||
function useProviderConnection(a0) { // fn#53443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6966:251, offset: 0x013494f9, size: 178 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ConnectedAccountsStore],
|
||||
_fun53444);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ConnectedAccountsStore],
|
||||
function() {
|
||||
return ConnectedAccountsStore.isFetching();
|
||||
});
|
||||
const r5 = value2 != null && !value2.revoked;
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
let value = _fun53446();
|
||||
value = Reflect.apply(useCallback, binding, [value, [a0]]);
|
||||
return {loading: value3, hasConnection: r5, canConnect: a0 != null, startConnection: value, account: value2};
|
||||
}
|
||||
|
||||
function _fun53444() { // fn#53444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6966:323, offset: 0x013495ab, size: 43 bytes, params: 1, frame: 14
|
||||
const value2 = null;
|
||||
return value2 != env0_0 ? ConnectedAccountsStore.getAccount(value2, env0_0) : value2;
|
||||
}
|
||||
|
||||
function _fun53446() { // fn#53446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6966:456, offset: 0x013495e9, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun53448);
|
||||
return _fun53449;
|
||||
}
|
||||
|
||||
function* _fun53448(a0) { // fn#53448, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6966:476, offset: 0x01349612, size: 222 bytes, params: 2, frame: 21
|
||||
var url;
|
||||
var r2;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var authorize;
|
||||
var object2;
|
||||
var value7;
|
||||
var value9;
|
||||
var ok;
|
||||
var body;
|
||||
var value10;
|
||||
var value11;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = a0;
|
||||
const value3 = undefined;
|
||||
if (require == null) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
authorize = value6.authorize;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
value7 = value != null;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
object2.location = value7 ? value : 'Account Linking';
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(authorize, value6, [require, object2]);
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
if (value9) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
ok = value.ok;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
if (ok) {
|
||||
try {
|
||||
body = value.body;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
value10 = body == null;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
if (value10) {
|
||||
url = value3;
|
||||
} else {
|
||||
try {
|
||||
url = body.url;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
}
|
||||
try {
|
||||
value11 = url != null;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
if (value11) {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
object2.success = true;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
body = value.body;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
url = body.url;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
object2.url = url;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
r2 = object2;
|
||||
} else {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
object2.success = false;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
r2 = object2;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
try {
|
||||
object2.success = false;
|
||||
} catch (error) {
|
||||
return {success: false};
|
||||
}
|
||||
r2 = object2;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user