91 lines
4.1 KiB
React
91 lines
4.1 KiB
React
/* Metro module 42; source: unknown; dependencies: [31, 43, 45, 107, 44, 111, 46] */
|
|
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 closure = get_1294;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
exports.setRuntimeConfigProvider = setRuntimeConfigProvider;
|
|
exports.get = closure;
|
|
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;
|
|
(importAll(43) /* metro dependency 43 */).register(a0, _fun1295);
|
|
return a0;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
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);
|
|
(importDefault(44) /* metro dependency 44 */)(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;
|
|
}
|
|
|