97 lines
4.7 KiB
JavaScript
97 lines
4.7 KiB
JavaScript
/* Metro module 42; source: unknown; dependencies: [31, 43, 45, 107, 44, 111, 46] */
|
|
import Module00044 from './module-00044.js'; /* Metro dependency 44 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module00043Module from './module-00043.js'; /* Metro dependency 43 */
|
|
|
|
function _fun1293(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:67:6, offset: 0x00c588ae, size: 135 bytes, params: 8, frame: 19
|
|
const env0_1 = require;
|
|
const get_12942 = get_1294;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
exports.setRuntimeConfigProvider = setRuntimeConfigProvider;
|
|
exports.get = get_12942;
|
|
exports.getWithFallback_DEPRECATED = getWithFallback_DEPRECATED;
|
|
exports.unstable_hasStaticViewConfig = unstable_hasStaticViewConfig;
|
|
function get_1294(a0, a1) { // fn#1294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:67:106, offset: 0x00c58935, size: 60 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
(Module00043Module).register(a0, _fun1295);
|
|
return a0;
|
|
function _fun1295() { // fn#1295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:67:151, offset: 0x00c58971, size: 482 bytes, params: 1, frame: 21
|
|
var r9;
|
|
var value12;
|
|
var console;
|
|
var error;
|
|
let value = environment.__proto__;
|
|
let r0 = env1_5?.(env0_0);
|
|
r0 = r0 ?? ({native: !env1_0.RN$Bridgeless, verify: false});
|
|
const native = r0.native;
|
|
const verify = r0.verify;
|
|
r0 = native ? (importDefault(45) /* metro dependency 45 */)(env0_0) ?? (require(107) /* metro dependency 107 */).createViewConfig(require()) : (require(107) /* metro dependency 107 */).createViewConfig(require()) ?? (importDefault(45) /* metro dependency 45 */)(env0_0);
|
|
(Module00044)(r0 != null,
|
|
'NativeComponentRegistry.get: both static and native view config are missing for native component "%s".',
|
|
env0_0);
|
|
if (verify) {
|
|
r9 = native ? r0 : (importDefault(45) /* metro dependency 45 */)(env0_0);
|
|
if (r9 == null) {
|
|
return r0;
|
|
}
|
|
value12 = (importAll(111) /* metro dependency 111 */).validate(env0_0, r9,
|
|
native ? (require(107) /* metro dependency 107 */).createViewConfig(require()) : r0);
|
|
if (value12.type === 'invalid') {
|
|
console = global.console;
|
|
error = console.error;
|
|
value = importAll(111) /* metro dependency 111 */;
|
|
Reflect.apply(error, console, [value.stringifyValidationResult(env0_0, value12)]);
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function setRuntimeConfigProvider(a0) { // fn#1296, offset: 0x00c58b53, size: 22 bytes, params: 2, frame: 3
|
|
if (env0_5 === undefined) {
|
|
env0_5 = a0;
|
|
}
|
|
}
|
|
|
|
function getWithFallback_DEPRECATED(a0, a1) { // fn#1297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:67:825, offset: 0x00c58b69, size: 173 bytes, params: 3, frame: 19
|
|
var defaultImport2;
|
|
var closure;
|
|
if (env0_5 == null) {
|
|
(importDefault(44) /* metro dependency 44 */)(env0_5 == null, 'Unexpected invocation!');
|
|
defaultImport2 = importDefault(46) /* metro dependency 46 */;
|
|
if (defaultImport2.getViewManagerConfig(a0) != null) {
|
|
get_1294(a0, a1);
|
|
return a0;
|
|
}
|
|
closure = function(a0) {
|
|
return null;
|
|
};
|
|
closure.displayName = 'Fallback(' + a0 + ')';
|
|
return closure;
|
|
}
|
|
if (env0_5(a0) == null) {
|
|
closure = function(a0) {
|
|
return null;
|
|
};
|
|
closure.displayName = 'Fallback(' + a0 + ')';
|
|
return closure;
|
|
}
|
|
get_1294(a0, a1);
|
|
return a0;
|
|
}
|
|
|
|
function unstable_hasStaticViewConfig(a0) { // fn#1299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:67:1182, offset: 0x00c58c1a, size: 59 bytes, params: 2, frame: 13
|
|
let r0 = env0_5?.(a0);
|
|
r0 = r0 ?? ({native: true});
|
|
return !r0.native;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun1293, 42, [31, 43, 45, 107, 44, 111,
|
|
46]) /* metro module 42, dependencies: [31, 43, 45, 107, 44, 111, 46] */;
|