277 lines
13 KiB
TypeScript
277 lines
13 KiB
TypeScript
/* Metro module 16016; source: modules/applications/useGuildApplication.tsx; dependencies: [5, 57, 31, 4234, 566, 6772, 4131, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import ApplicationStore from './ApplicationStore.tsx'; /* Metro dependency 4234 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
|
|
function _fun123812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16224:6, offset: 0x0259c5eb, size: 169 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/applications/useGuildApplication.tsx');
|
|
exports.default = useGuildApplication;
|
|
function useGuildApplication(a0, a1) { // fn#123813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16224:227, offset: 0x0259c694, size: 280 bytes, params: 3, frame: 24
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const guildApplication = (FluxModule).useStateFromStores([ApplicationStore],
|
|
_fun123814);
|
|
let useState = ReactModule.useState;
|
|
const value2 = Reflect.apply(useState, ReactModule, [guildApplication == null]);
|
|
const binding2 = env0_4;
|
|
const value3 = binding2(value2, 2);
|
|
const property = value3[0];
|
|
const env0_3 = value3[1];
|
|
useState = ReactModule.useState;
|
|
const value4 = binding2(Reflect.apply(useState, ReactModule, []), 2);
|
|
const property2 = value4[0];
|
|
var env0_4 = value4[1];
|
|
useState = ReactModule.useState;
|
|
const value5 = binding2(Reflect.apply(useState, ReactModule, [false]), 2);
|
|
const property3 = value5[0];
|
|
const env0_6 = value5[1];
|
|
const useCallback = ReactModule.useCallback;
|
|
let value = env0_3(_fun123816);
|
|
value = Reflect.apply(useCallback, ReactModule, [value, [guildApplication, a1, a0]]);
|
|
ReactModule.useEffect(_fun123817, [property3, value]);
|
|
return {application: guildApplication, error: property2, loading: property};
|
|
function _fun123814() { // fn#123814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16224:299, offset: 0x0259c7ac, size: 34 bytes, params: 1, frame: 13
|
|
return ApplicationStore.getGuildApplication(env0_0, require);
|
|
}
|
|
|
|
function* _fun123816() { // fn#123816, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16224:474, offset: 0x0259c7d9, size: 236 bytes, params: 1, frame: 18
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var getApplicationsForGuild;
|
|
var object;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
var binding3;
|
|
var binding4;
|
|
var value8;
|
|
var APIError;
|
|
var prototype;
|
|
var aPIError;
|
|
var value10;
|
|
exceptionLanding39: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__;
|
|
if (dependencyMap == null) {
|
|
reducibleJoin38: while (true) {
|
|
if (require == null) {
|
|
break reducibleJoin38;
|
|
}
|
|
ApplicationStore(true);
|
|
env1_3(true);
|
|
value3 = environment.__proto__.__proto__;
|
|
reducibleJoin6: while (true) {
|
|
reduciblePort37: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
try {
|
|
binding = env1_4;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
binding3 = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
property = binding4[6];
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
value8 = binding3(property);
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
APIError = value8.APIError;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
prototype = APIError.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
aPIError = new APIError();
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
value10 = aPIError instanceof Object ? aPIError : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
binding(value10);
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
break reduciblePort37;
|
|
}
|
|
env1_3(false);
|
|
break reducibleJoin38;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[5];
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
getApplicationsForGuild = value4.getApplicationsForGuild;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
object.type = importDefault;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
object.includeTeam = true;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(getApplicationsForGuild, value4, [require, object]);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
if (value7) {
|
|
env1_3(false);
|
|
return value6;
|
|
}
|
|
env1_3(false);
|
|
break reducibleJoin38;
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
env1_3(false);
|
|
throw error;
|
|
}
|
|
|
|
function _fun123817() { // fn#123817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16224:673, offset: 0x0259c8c5, size: 24 bytes, params: 1, frame: 9
|
|
if (!ReactModule) {
|
|
env0_7();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun123812, 16016, [5, 57, 31, 4234, 566, 6772, 4131,
|
|
2]) /* metro module 16016, dependencies: [5, 57, 31, 4234, 566, 6772, 4131, 2] */;
|