/* Metro module 16016; source: modules/applications/useGuildApplication.tsx; dependencies: [5, 57, 31, 4234, 566, 6772, 4131, 2] */ 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}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(57) /* metro dependency 57 */; const env0_5 = importAll(31) /* metro dependency 31 */; const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */; (require(2) /* metro dependency 2 */).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 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStore], _fun123814); const binding = env0_5; let useState = binding.useState; const value2 = Reflect.apply(useState, binding, [guildApplication == null]); const binding2 = env0_4; const value3 = binding2(value2, 2); const property = value3[0]; const env0_3 = value3[1]; useState = binding.useState; const value4 = binding2(Reflect.apply(useState, binding, []), 2); const property2 = value4[0]; var env0_4 = value4[1]; useState = binding.useState; const value5 = binding2(Reflect.apply(useState, binding, [false]), 2); const property3 = value5[0]; const env0_6 = value5[1]; const useCallback = binding.useCallback; let value = env0_3(_fun123816); value = Reflect.apply(useCallback, binding, [value, [guildApplication, a1, a0]]); binding.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 object2; 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 { object2 = {}; } catch (error) { break exceptionLanding22; } } catch (error) { break exceptionLanding39; } try { try { } catch (error) { break exceptionLanding22; } } catch (error) { break exceptionLanding39; } try { try { object2.type = importDefault; } catch (error) { break exceptionLanding22; } } catch (error) { break exceptionLanding39; } try { try { object2.includeTeam = true; } catch (error) { break exceptionLanding22; } } catch (error) { break exceptionLanding39; } try { try { value5 = Reflect.apply(getApplicationsForGuild, value4, [require, object2]); } 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 (!env0_5) { env0_7(); } }