/* Metro module 13176; source: modules/settings/native/renderer/SettingHookHarness.tsx; dependencies: [57, 31, 13173, 9693, 13177, 2] */ function _fun100585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13366:6, offset: 0x021ed979, size: 275 bytes, params: 8, frame: 20 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(57) /* metro dependency 57 */; let value = importAll(31) /* metro dependency 31 */; const settingBlocklistStore = importDefault(13173) /* metro dependency 13173: SettingBlocklistStore */; const env0_5 = (require(9693) /* metro dependency 9693: SettingRendererConstants */).NodeType; const env0_6 = []; let Map = global.Map; let map = new Map(); Map = global.Map; map = new Map(); value = value.memo(SettingHookHarness); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/settings/native/renderer/SettingHookHarness.tsx'); exports.default = value; exports.getCachedSettingTitle = getCachedSettingTitle; exports.getCachedSettingSearchTerms = getCachedSettingSearchTerms; } function SettingHookHarness() { // fn#100586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13366:187, offset: 0x021eda8c, size: 356 bytes, params: 1, frame: 29 var r5; var r3; var r15; var property; var value6; var property2; var usePredicate; var value7; var value8; var has; var push; var value9; var value10; var type; var GUILD_SELECTOR; var useTitle; var value11; var binding; var set; var useSearchTerms; var value12; var binding2; var value13; const field = SettingBlocklistStore.getField('blocklist'); const items3 = []; const items2 = []; const Object = global.Object; const entries = Object.entries; const value3 = undefined; const SETTING_RENDERER_CONFIG = (require(13177) /* metro dependency 13177: SettingsRendererConfig */).SETTING_RENDERER_CONFIG; const value4 = Reflect.apply(entries, Object, [SETTING_RENDERER_CONFIG]); let length = value4.length; const value5 = 0; if (value5 < length) { r5 = value5; reducibleLoop1: while (true) { property = value4[r5]; value6 = env0_2(property, 2); property = value6[value5]; property2 = value6[1]; usePredicate = property2.usePredicate; reducibleJoin3: while (true) { if (usePredicate == null) { r3 = value3; break reducibleJoin3; } value7 = usePredicate(); r3 = value7; break reducibleJoin3; } value8 = r3 === false; reducibleJoin10: while (true) { reducibleJoin8: while (true) { if (value8) { if (field.has(property)) { if (value8) { r3 = !value8; break reducibleJoin8; } r3 = field.has(property); break reducibleJoin8; } push = items3.push; Reflect.apply(push, items3, [property]); break reducibleJoin10; } value9 = !value8; if (value8) { r3 = value9; break reducibleJoin8; } has = field.has; value10 = Reflect.apply(has, field, [property]); r3 = value10; break reducibleJoin8; } if (r3) { push = items2.push; Reflect.apply(push, items2, [property]); break reducibleJoin10; } break reducibleJoin10; } type = property2.type; GUILD_SELECTOR = NodeType.GUILD_SELECTOR; reducibleJoin16: while (true) { if (type === GUILD_SELECTOR) { break reducibleJoin16; } useTitle = property2.useTitle; value11 = Reflect.apply(useTitle, property2, []); binding = env0_7; set = binding.set; Reflect.apply(set, binding, [property, value11]); useSearchTerms = property2.useSearchTerms; reducibleJoin13: while (true) { if (useSearchTerms == null) { r3 = value3; break reducibleJoin13; } useSearchTerms = property2.useSearchTerms; value12 = Reflect.apply(useSearchTerms, property2, []); r3 = value12; break reducibleJoin13; } binding = env0_8; set = binding.set; reducibleJoin15: while (true) { if (r3 != null) { r15 = r3; break reducibleJoin15; } binding2 = env0_6; r15 = binding2; break reducibleJoin15; } Reflect.apply(set, binding, [property, r15]); break reducibleJoin16; } value13 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1; length = value4.length; if (value13 < length) { r5 = value13; continue reducibleLoop1; } break reducibleLoop1; } } env0_3.useEffect(_fun100587); return null; } function getCachedSettingTitle(a0) { // fn#100590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13366:905, offset: 0x021edc87, size: 22 bytes, params: 2, frame: 11 return env0_7.get(a0); } function getCachedSettingSearchTerms(a0) { // fn#100591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13366:986, offset: 0x021edc9d, size: 32 bytes, params: 2, frame: 12 return env0_8.get(a0) ?? env0_6; } function _fun100587() { // fn#100587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13366:614, offset: 0x021edbf0, size: 151 bytes, params: 1, frame: 15 var environment; var value2; var value3; var set; var binding; if (env0_0.length > 0) { value2 = environment.__proto__; value3 = SettingBlocklistStore.getField('blocklist'); set = new global.Set(); var env0_0 = set; binding = env0_0; binding.forEach(_fun100588); binding = env0_1; binding.forEach(_fun100589); SettingBlocklistStore.setState({blocklist: set}); } else if (env0_1.length > 0) { value2 = environment.__proto__; value3 = SettingBlocklistStore.getField('blocklist'); set = new global.Set(); var env0_0 = set; binding = env0_0; binding.forEach(_fun100588); binding = env0_1; binding.forEach(_fun100589); SettingBlocklistStore.setState({blocklist: set}); } }