Files
discord-decomp/sources/by-id/module-00141.jsx
T
2026-07-27 16:20:00 +03:00

101 lines
5.2 KiB
React

/* Metro module 141; source: unknown; dependencies: [6, 7, 15, 17, 18, 132, 134, 137, 142, 138, 136] */
function _fun2292(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:166:6, offset: 0x00c7cff8, size: 193 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(134) /* metro dependency 134 */;
value = _fun2296(value);
exports.default = value;
exports.createReactNativeDocument = createReactNativeDocument;
}
function _isNativeReflectConstruct_2293() { // fn#2293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:166:148, offset: 0x00c7d0b9, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_2293_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun2296(a0) { // fn#2296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:166:373, offset: 0x00c7d117, size: 256 bytes, params: 2, frame: 16
const closure = ReactNativeDocument;
env0_7(closure, a0);
return env0_4(closure, [{key: 'childElementCount', get: function() {
return 1;
}}, {key: 'children', get: get_2299}, {key: 'documentElement', get: function() {
return this._documentElement;
}}, {key: 'firstElementChild', get: function() {
return this.documentElement;
}}, {key: 'lastElementChild', get: function() {
return this.documentElement;
}}, {key: 'nodeName', get: function() {
return '#document';
}}, {key: 'nodeType', get: function() {
return importDefault(dependencyMap[6]).DOCUMENT_NODE;
}}, {key: 'nodeValue', get: function() {
return null;
}}, {key: 'textContent', get: function() {
return null;
}}]);
}
function createReactNativeDocument(a0) { // fn#2307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:166:1687, offset: 0x00c7d3a3, size: 68 bytes, params: 2, frame: 14
const reactNativeDocumentInstanceHandle = (require(136) /* metro dependency 136 */).createReactNativeDocumentInstanceHandle(a0);
const binding = env0_8;
const value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding(a0, reactNativeDocumentInstanceHandle);
return binding2 instanceof Object ? binding2 : value;
}
function ReactNativeDocument(a0, a1) { // fn#2297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:166:385, offset: 0x00c7d217, size: 273 bytes, params: 3, frame: 23
let value = environment.__proto__;
env1_3(this, ReactNativeDocument);
const items2 = [a1, null];
const value3 = env1_6(ReactNativeDocument);
const value6 = env1_5(this, _isNativeReflectConstruct_2293() ? global.Reflect.construct(value3, items2,
env1_6(this).constructor) : value3.apply(this, items2));
const reactNativeDocumentElementInstanceHandle = (require(137) /* metro dependency 137 */).createReactNativeDocumentElementInstanceHandle();
value = importDefault(142) /* metro dependency 142 */;
value = new value(a0, null, reactNativeDocumentElementInstanceHandle, value6);
(require(137) /* metro dependency 137 */).setNativeElementReferenceForReactNativeDocumentElementInstanceHandle(reactNativeDocumentElementInstanceHandle,
(importDefault(138) /* metro dependency 138 */).linkRootNode(a0, reactNativeDocumentElementInstanceHandle));
(require(137) /* metro dependency 137 */).setPublicInstanceForReactNativeDocumentElementInstanceHandle(reactNativeDocumentElementInstanceHandle,
value);
value6._documentElement = value;
return value6;
}
function get_2299() { // fn#2299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:166:1113, offset: 0x00c7d32d, size: 55 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(132) /* metro dependency 132 */;
return value.createHTMLCollection([this.documentElement]);
}