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

106 lines
5.8 KiB
JavaScript

/* Metro module 148; source: unknown; dependencies: [6, 7, 15, 17, 18, 140, 135, 138, 134] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import * as Module00135Module from './module-00135.js'; /* Metro dependency 135 */
import * as GetElementSiblingModule from './module-00140-getElementSibling.js'; /* Metro dependency 140 */
function _fun2356(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:6, offset: 0x00c7ed33, size: 178 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = _fun2360(importDefault(134) /* metro dependency 134 */);
function _isNativeReflectConstruct_2357() { // fn#2357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:148, offset: 0x00c7ede5, 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_2357_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun2360(a0) { // fn#2360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:373, offset: 0x00c7ee43, size: 212 bytes, params: 2, frame: 16
const ReadOnlyCharacterData2 = ReadOnlyCharacterData;
Inherits(ReadOnlyCharacterData2, a0);
return CreateClass(ReadOnlyCharacterData2, [{key: 'nextElementSibling', get: get_2362}, {key: 'previousElementSibling',
get: get_2363}, {key: 'data', get: get_2364}, {key: 'length', get: function() {
return this.data.length;
}}, {key: 'textContent', get: function() {
return this.data;
}}, {key: 'nodeValue', get: function() {
return this.data;
}}, {key: 'substringData', value: value_2368}]);
function ReadOnlyCharacterData() { // fn#2361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:385, offset: 0x00c7ef17, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, ReadOnlyCharacterData);
const value3 = env1_6(ReadOnlyCharacterData);
return env1_5(this, _isNativeReflectConstruct_2357() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function get_2362() { // fn#2362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:714, offset: 0x00c7ef88, size: 46 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (GetElementSiblingModule).getElementSibling(this, 'next');
}
function get_2363() { // fn#2363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:811, offset: 0x00c7efb6, size: 46 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (GetElementSiblingModule).getElementSibling(this, 'previous');
}
function get_2364() { // fn#2364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:894, offset: 0x00c7efe4, size: 85 bytes, params: 1, frame: 14
var r0;
let value = environment.__proto__;
const nativeTextReference = (Module00135Module).getNativeTextReference(this);
if (nativeTextReference != null) {
value = importDefault(138) /* metro dependency 138 */;
value = value.getTextContent(nativeTextReference);
r0 = value;
} else {
r0 = '';
}
return r0;
}
}
}
function value_2368(a0, a1) { // fn#2368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:173:1196, offset: 0x00c7f052, size: 194 bytes, params: 3, frame: 18
const value = a1;
const data = this.data;
if (a0 < 0) {
throw new global.TypeError("Failed to execute 'substringData' on 'CharacterData': The offset " + a0 + ' is negative.');
}
if (a0 > data.length) {
throw new global.TypeError("Failed to execute 'substringData' on 'CharacterData': The offset " + a0 + " is greater than the node's length (" + data.length + ').');
}
return data.slice(a0, a0 + (value < 0 || value > data.length ? data.length : value));
}
global.__d(_fun2356, 148, [6, 7, 15, 17, 18, 140, 135, 138,
134]) /* metro module 148, dependencies: [6, 7, 15, 17, 18, 140, 135, 138, 134] */;