56 lines
2.0 KiB
React
56 lines
2.0 KiB
React
/* Metro module 140; source: unknown; dependencies: [134, 139] */
|
|
function _fun2290(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:165:6, offset: 0x00c7ced8, size: 66 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.getElementSibling = getElementSibling;
|
|
}
|
|
|
|
function getElementSibling(a0, a1) { // fn#2291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:165:118, offset: 0x00c7cf1a, size: 222 bytes, params: 3, frame: 17
|
|
var r4;
|
|
var r1;
|
|
var property;
|
|
var value8;
|
|
const parentNode = a0.parentNode;
|
|
const value = null;
|
|
if (value == parentNode) {
|
|
return value;
|
|
}
|
|
const childNodes = (require(134) /* metro dependency 134 */).getChildNodes(parentNode);
|
|
const value4 = childNodes.indexOf(a0);
|
|
const value5 = -1;
|
|
if (value5 === value4) {
|
|
return value;
|
|
}
|
|
const r5 = a1 !== 'next' ? value5 : 1;
|
|
const value7 = value4 + r5;
|
|
env0_2 = value == env0_2 ? (require(139) /* metro dependency 139 */).default : env0_2;
|
|
if (value == childNodes[value7]) {
|
|
r1 = value7;
|
|
} else {
|
|
property = childNodes[value7];
|
|
if (property instanceof env0_2) {
|
|
r1 = value7;
|
|
} else {
|
|
r4 = value7;
|
|
while (true) {
|
|
value8 = r4 + r5;
|
|
if (value == childNodes[value8]) {
|
|
r1 = value8;
|
|
break;
|
|
}
|
|
property = childNodes[value8];
|
|
if (property instanceof env0_2) {
|
|
r1 = value8;
|
|
break;
|
|
}
|
|
r4 = value8;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
property = childNodes[r1];
|
|
return value != property ? property : value;
|
|
}
|
|
|