/* Metro module 1709; source: unknown; dependencies: [1613, 1623, 1621, 1654, 1614] */ import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */ import * as Module01621Module from './module-01621.js'; /* Metro dependency 1621 */ import * as PropsAllowlistsModule from './module-01623-PropsAllowlists.js'; /* Metro dependency 1623 */ 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 configureProps2 = configureProps; const addWhitelistedUIProps2 = addWhitelistedUIProps; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = (Module01613Module).shouldBeUseWeb(); const Set = global.Set; const set = new Set(); configureProps2(); exports.configureProps = configureProps2; exports.addWhitelistedNativeProps = addWhitelistedNativeProps; exports.addWhitelistedUIProps = addWhitelistedUIProps2; 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 = (PropsAllowlistsModule).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 = (Module01621Module).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 = (PropsAllowlistsModule).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 = (PropsAllowlistsModule).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 = (PropsAllowlistsModule).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 = (PropsAllowlistsModule).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 = (PropsAllowlistsModule).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; } } } } global.__d(_fun18630, 1709, [1613, 1623, 1621, 1654, 1614]) /* metro module 1709, dependencies: [1613, 1623, 1621, 1654, 1614] */;