Files
discord-decomp/sources/by-id/module-01749.js
T
2026-07-28 01:06:53 +03:00

45 lines
3.5 KiB
JavaScript

/* Metro module 1749; source: unknown; dependencies: [29, 31, 1613] */
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import React from './module-00031-React.js'; /* Metro dependency 31 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as Module01613Module from './module-01613.js'; /* Metro dependency 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_4 = (Module01613Module).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 = React.__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 ? React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED == null || React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner == null ? value2 : React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current : r0;
r0 = !r0 ? React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE == null || React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.ReactCurrentOwner == null ? value2 : React.__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);
}
}
}
global.__d(_fun19366, 1749, [29, 31, 1613]) /* metro module 1749, dependencies: [29, 31, 1613] */;