/* Metro module 1709; source: unknown; dependencies: [1613, 1623, 1621, 1654, 1614] */ function _fun18630(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:6, offset: 0x00e9206e, size: 177 bytes, params: 8, frame: 21 const env0_0 = require; const closure = configureProps; const closure2 = addWhitelistedUIProps; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = (require(1613) /* metro dependency 1613 */).shouldBeUseWeb(); const Set = global.Set; const set = new Set(); closure(); exports.configureProps = closure; exports.addWhitelistedNativeProps = addWhitelistedNativeProps; exports.addWhitelistedUIProps = closure2; exports.configureReanimatedLogger = configureReanimatedLogger; exports.adaptViewConfig = adaptViewConfig; } function configureProps() { // fn#18631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:123, offset: 0x00e9211f, size: 285 bytes, params: 1, frame: 20 var propertyName; var propertyName2; var UI_THREAD_PROPS_WHITELIST; var jsiConfigureProps; var Object; var keys; var value3; let value = environment; const PropsAllowlists = (require(1623) /* metro dependency 1623 */).PropsAllowlists; const NATIVE_THREAD_PROPS_WHITELIST = PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST; const properties = Object.keys(NATIVE_THREAD_PROPS_WHITELIST); const properties2 = 0; const properties3 = properties.length; if (properties === undefined) { value = require(1654) /* metro dependency 1654 */; jsiConfigureProps = value.jsiConfigureProps; Object = global.Object; value3 = Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST); Object = global.Object; Reflect.apply(jsiConfigureProps, value, [value3, Object.keys(PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST)]); return undefined; } let r5 = properties2; loopExit1: while (true) { propertyName = properties[r5]; propertyName2 = r5 + 1; if (propertyName === undefined) { value = require(1654) /* metro dependency 1654 */; jsiConfigureProps = value.jsiConfigureProps; Object = global.Object; keys = Object.keys; value3 = Reflect.apply(keys, Object, [PropsAllowlists.UI_THREAD_PROPS_WHITELIST]); Object = global.Object; keys = Object.keys; Reflect.apply(jsiConfigureProps, value, [value3, Reflect.apply(keys, Object, [PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST])]); return undefined; } UI_THREAD_PROPS_WHITELIST = PropsAllowlists.UI_THREAD_PROPS_WHITELIST; if (propertyName in UI_THREAD_PROPS_WHITELIST) { break loopExit1; } r5 = propertyName2; continue; } const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError; value = 'Property `' + propertyName + '` was whitelisted both as UI and native prop. Please remove it from one of the lists.'; const value2 = Object.create(ReanimatedError.prototype, {constructor: {value: ReanimatedError}}); const reanimatedError = new ReanimatedError(value); throw reanimatedError instanceof Object ? reanimatedError : value2; } function addWhitelistedUIProps(a0) { // fn#18632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:609, offset: 0x00e9223c, size: 181 bytes, params: 2, frame: 23 let Object = global.Object; let keys = Object.keys; const PropsAllowlists = (require(1623) /* metro dependency 1623 */).PropsAllowlists; let UI_THREAD_PROPS_WHITELIST = PropsAllowlists.UI_THREAD_PROPS_WHITELIST; const length = Reflect.apply(keys, Object, [UI_THREAD_PROPS_WHITELIST]).length; Object = global.Object; const assign = Object.assign; const PropsAllowlists2 = (require(1623) /* metro dependency 1623 */).PropsAllowlists; UI_THREAD_PROPS_WHITELIST = PropsAllowlists2.UI_THREAD_PROPS_WHITELIST; PropsAllowlists.UI_THREAD_PROPS_WHITELIST = Reflect.apply(assign, Object, [{}, UI_THREAD_PROPS_WHITELIST, a0]); Object = global.Object; keys = Object.keys; UI_THREAD_PROPS_WHITELIST = PropsAllowlists.UI_THREAD_PROPS_WHITELIST; if (length !== Reflect.apply(keys, Object, [UI_THREAD_PROPS_WHITELIST]).length) { configureProps(); } } function addWhitelistedNativeProps(a0) { // fn#18633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:1022, offset: 0x00e922f1, size: 181 bytes, params: 2, frame: 23 let Object = global.Object; let keys = Object.keys; const PropsAllowlists = (require(1623) /* metro dependency 1623 */).PropsAllowlists; let NATIVE_THREAD_PROPS_WHITELIST = PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST; const length = Reflect.apply(keys, Object, [NATIVE_THREAD_PROPS_WHITELIST]).length; Object = global.Object; const assign = Object.assign; const PropsAllowlists2 = (require(1623) /* metro dependency 1623 */).PropsAllowlists; NATIVE_THREAD_PROPS_WHITELIST = PropsAllowlists2.NATIVE_THREAD_PROPS_WHITELIST; PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST = Reflect.apply(assign, Object, [{}, NATIVE_THREAD_PROPS_WHITELIST, a0]); Object = global.Object; keys = Object.keys; NATIVE_THREAD_PROPS_WHITELIST = PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST; if (length !== Reflect.apply(keys, Object, [NATIVE_THREAD_PROPS_WHITELIST]).length) { configureProps(); } } function configureReanimatedLogger(a0) { // fn#18634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:1439, offset: 0x00e923a6, size: 99 bytes, params: 2, frame: 15 var value; (require(1614) /* metro dependency 1614 */).updateLoggerConfig(a0); if (!env0_2) { value = require(1654) /* metro dependency 1654 */; value.executeOnUIRuntimeSync((require(1614) /* metro dependency 1614 */).updateLoggerConfig)(a0); } } function adaptViewConfig({uiViewClassName, validAttributes}) { // fn#18635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:1591, offset: 0x00e92409, size: 105 bytes, params: 2, frame: 15 const binding = env0_3; if (!binding.has(uiViewClassName)) { global.Object.keys(validAttributes).forEach(_fun18636); addWhitelistedUIProps({}); env0_3.add(uiViewClassName); } } function _fun18636(a0) { // fn#18636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1836:1710, offset: 0x00e92472, size: 98 bytes, params: 2, frame: 14 const value = environment.__proto__; const PropsAllowlists = (require(1623) /* metro dependency 1623 */).PropsAllowlists; const NATIVE_THREAD_PROPS_WHITELIST = PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST; if (!(a0 in NATIVE_THREAD_PROPS_WHITELIST || a0 in PropsAllowlists.UI_THREAD_PROPS_WHITELIST)) { env0_0[a0] = true; } }