/* Metro module 11164; source: modules/channel_following/useChannelFollowerStats.tsx; dependencies: [57, 31, 11165, 672, 566, 11166, 2] */ function _fun85241(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11350:6, offset: 0x01f68b15, size: 185 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importAll(31) /* metro dependency 31 */; const channelFollowerStatsStore = importDefault(11165) /* metro dependency 11165: ChannelFollowerStatsStore */; const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis; const HOUR = Millis.HOUR; const env0_6 = 1 * HOUR; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_following/useChannelFollowerStats.tsx'); exports.default = useChannelFollowerStats; } function useChannelFollowerStats(a0) { // fn#85242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11350:247, offset: 0x01f68bce, size: 175 bytes, params: 2, frame: 19 const env0_0 = a0; const binding = env0_4; const [property, env0_2] = env0_3(binding.useState(false), 2); const value = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelFollowerStatsStore], _fun85243, [a0]); binding.useEffect(_fun85244, [a0, value, property]); return [value, property]; } function _fun85243() { // fn#85243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11350:361, offset: 0x01f68c7d, size: 29 bytes, params: 1, frame: 11 return ChannelFollowerStatsStore.getFollowerStatsForChannel(env0_0); } function _fun85244() { // fn#85244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11350:423, offset: 0x01f68c9a, size: 150 bytes, params: 1, frame: 14 var value3; var value4; var value5; if (env0_3 == null) { if (env0_1) { if (env0_3 != null && env0_1) { env0_2(false); } } else { env0_2(true); value5 = environment.__proto__; (importDefault(11166) /* metro dependency 11166: ChannelFollowerActionCreators */).fetchChannelFollowerStats(env0_0); } } else { value3 = global.Date.now() - env0_3.lastFetched; value4 = environment.__proto__; if (value3 > env1_6) { if (env0_1) { if (env0_3 != null && env0_1) { env0_2(false); } } else { env0_2(true); value5 = environment.__proto__; (importDefault(11166) /* metro dependency 11166: ChannelFollowerActionCreators */).fetchChannelFollowerStats(env0_0); } } else if (env0_3 != null && env0_1) { env0_2(false); } } }