Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,123 @@
|
||||
/* Metro module 1578; source: unknown; dependencies: [31, 1487] */
|
||||
function _fun17585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:6, offset: 0x00e70790, size: 84 bytes, params: 8, frame: 17
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
exports.default = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var value2 = require(dependencyMap[1]).useNavigation();
|
||||
var env0_1 = value2;
|
||||
var value3 = require(dependencyMap[1]).useRoute();
|
||||
value3.useEffect(_fun17587, [value2, a0, value3.key]);
|
||||
};
|
||||
}
|
||||
|
||||
function useScrollToTop(a0) { // fn#17586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:119, offset: 0x00e707e4, size: 114 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(1487) /* metro dependency 1487 */).useNavigation();
|
||||
const value3 = (require(1487) /* metro dependency 1487 */).useRoute();
|
||||
value3.useEffect(_fun17587, [value2, a0, value3.key]);
|
||||
}
|
||||
|
||||
function _fun17587() { // fn#17587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:210, offset: 0x00e70856, size: 110 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
var r2;
|
||||
var getState;
|
||||
var type;
|
||||
const items2 = [];
|
||||
let value = environment;
|
||||
const binding = env0_1;
|
||||
if (binding) {
|
||||
r2 = binding;
|
||||
while (true) {
|
||||
getState = r2.getState;
|
||||
type = Reflect.apply(getState, r2, []).type;
|
||||
if (type === 'tab') {
|
||||
items2.push(r2);
|
||||
}
|
||||
value = r2.getParent();
|
||||
if (value) {
|
||||
r2 = value;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (items2.length !== 0) {
|
||||
var env0_1 = items2.map(function(a0) {
|
||||
return a0.addListener('tabPress', _fun17589);
|
||||
});
|
||||
return _fun17591;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun17588(a0) { // fn#17588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:324, offset: 0x00e708c4, size: 28 bytes, params: 2, frame: 13
|
||||
return a0.addListener('tabPress', _fun17589);
|
||||
}
|
||||
|
||||
function _fun17591() { // fn#17591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:1065, offset: 0x00e70ab5, size: 28 bytes, params: 1, frame: 11
|
||||
env0_1.forEach(function(a0) {
|
||||
return a0();
|
||||
});
|
||||
}
|
||||
|
||||
function _fun17589(a0) { // fn#17589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:369, offset: 0x00e708e0, size: 120 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const binding = env2_1;
|
||||
const env0_1 = binding.isFocused();
|
||||
const env0_2 = env1_0.includes(binding) || env2_1.getState().routes[0].key === env2_2.key;
|
||||
global.requestAnimationFrame(_fun17590);
|
||||
}
|
||||
|
||||
function _fun17590() { // fn#17590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1705:476, offset: 0x00e70958, size: 349 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var r1;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_0;
|
||||
let current = binding.current;
|
||||
value = null;
|
||||
if (value == current) {
|
||||
r1 = value;
|
||||
} else {
|
||||
current = binding.current;
|
||||
if ('scrollToTop' in current) {
|
||||
r0 = binding.current;
|
||||
} else {
|
||||
current = binding.current;
|
||||
if ('scrollTo' in current) {
|
||||
r0 = binding.current;
|
||||
} else {
|
||||
current = binding.current;
|
||||
if ('scrollToOffset' in current) {
|
||||
r0 = binding.current;
|
||||
} else {
|
||||
current = binding.current;
|
||||
if ('scrollResponderScrollTo' in current) {
|
||||
r0 = binding.current;
|
||||
} else {
|
||||
current = binding.current;
|
||||
value = 'getScrollResponder' in current;
|
||||
current = binding.current;
|
||||
r0 = value ? current.getScrollResponder() : 'getNode' in current ? binding.current.getNode() : binding.current;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
r1 = r0;
|
||||
}
|
||||
if (env0_1 && env0_2 && r1 && !env0_0.defaultPrevented) {
|
||||
if ('scrollToTop' in r1) {
|
||||
r1.scrollToTop();
|
||||
} else if ('scrollTo' in r1) {
|
||||
r1.scrollTo({'y': 0, 'animated': true});
|
||||
} else if ('scrollToOffset' in r1) {
|
||||
r1.scrollToOffset({'offset': 0, 'animated': true});
|
||||
} else if ('scrollResponderScrollTo' in r1) {
|
||||
r1.scrollResponderScrollTo({'y': 0, 'animated': true});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user