42 lines
3.2 KiB
React
42 lines
3.2 KiB
React
/* Metro module 1749; source: unknown; dependencies: [29, 31, 1613] */
|
|
function _fun19366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1876:6, offset: 0x00ea78fa, size: 186 bytes, params: 8, frame: 19
|
|
const env0_0 = ['ref'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_1 = importDefault(29) /* metro dependency 29 */;
|
|
const env0_2 = importDefault(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(31) /* metro dependency 31 */).forwardRef;
|
|
const env0_4 = (require(1613) /* metro dependency 1613 */).isReact19();
|
|
exports.isReactRendering = function() {
|
|
return !!getCurrentReactOwner();
|
|
};
|
|
exports.isFirstReactRender = isFirstReactRender;
|
|
exports.componentWithRef = componentWithRef;
|
|
}
|
|
|
|
function getCurrentReactOwner() { // fn#19367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1876:173, offset: 0x00ea79b4, size: 160 bytes, params: 1, frame: 14
|
|
const __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = env0_2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
const value2 = undefined;
|
|
let r0 = __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE == null || __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.A == null || __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.A.getOwner == null ? value2 : __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.A.getOwner();
|
|
r0 = !r0 ? env0_2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED == null || env0_2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner == null ? value2 : env0_2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current : r0;
|
|
r0 = !r0 ? env0_2.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE == null || env0_2.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.ReactCurrentOwner == null ? value2 : env0_2.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.ReactCurrentOwner.current : r0;
|
|
return r0;
|
|
}
|
|
|
|
function isFirstReactRender() { // fn#19369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1876:693, offset: 0x00ea7a69, size: 39 bytes, params: 1, frame: 11
|
|
const currentReactOwner = getCurrentReactOwner();
|
|
return currentReactOwner && !(currentReactOwner != null && currentReactOwner.alternate);
|
|
}
|
|
|
|
function componentWithRef(a0) { // fn#19370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1876:806, offset: 0x00ea7a90, size: 39 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
return env0_4 ? _fun19371 : forwardRef(a0);
|
|
}
|
|
|
|
function _fun19371(a0) { // fn#19371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1876:844, offset: 0x00ea7ab7, size: 42 bytes, params: 2, frame: 14
|
|
const ref = a0.ref;
|
|
const value = environment.__proto__;
|
|
return env0_0(env1_1(a0, env1_0), ref);
|
|
}
|
|
|