163 lines
6.4 KiB
React
163 lines
6.4 KiB
React
/* Metro module 5366; source: unknown; dependencies: [5358, 5345, 5330, 5344, 5324] */
|
|
function _fun47326(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5544:6, offset: 0x011bed11, size: 73 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.updateHandlers = updateHandlers;
|
|
}
|
|
|
|
function updateHandlers(a0, a1, a2) { // fn#47327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5544:112, offset: 0x011bed5a, size: 206 bytes, params: 4, frame: 18
|
|
var r5;
|
|
var attachedGestures;
|
|
var property;
|
|
var moduleValue;
|
|
var handlerTag;
|
|
var handlerTag2;
|
|
var property2;
|
|
var handlers;
|
|
var value3;
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
a1.prepare();
|
|
let length = a2.length;
|
|
const value = 0;
|
|
if (value < length) {
|
|
r5 = value;
|
|
while (true) {
|
|
attachedGestures = a0.attachedGestures;
|
|
property = attachedGestures[r5];
|
|
moduleValue = require(dependencyMap[value]);
|
|
moduleValue.checkGestureCallbacksForWorklets(property);
|
|
handlerTag = a2[r5].handlerTag;
|
|
handlerTag2 = property.handlerTag;
|
|
if (handlerTag !== handlerTag2) {
|
|
property2 = a2[r5];
|
|
handlerTag = property.handlerTag;
|
|
property2.handlerTag = handlerTag;
|
|
handlers = a2[r5].handlers;
|
|
handlerTag = property.handlerTag;
|
|
handlers.handlerTag = handlerTag;
|
|
}
|
|
value3 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
length = a2.length;
|
|
if (value3 < length) {
|
|
r5 = value3;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
attachedGestures = a0.attachedGestures;
|
|
(require(5345) /* metro dependency 5345 */).ghQueueMicrotask(_fun47328);
|
|
}
|
|
|
|
function _fun47328() { // fn#47328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5544:407, offset: 0x011bee28, size: 471 bytes, params: 1, frame: 35
|
|
var environment;
|
|
var r7;
|
|
var r8;
|
|
var shouldUseReanimated;
|
|
var r6;
|
|
var r5;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var property;
|
|
var handlers;
|
|
var gestureId;
|
|
var gestureId2;
|
|
var value5;
|
|
var value6;
|
|
var config;
|
|
var defaultImport;
|
|
var updateGestureHandler;
|
|
var handlerTag;
|
|
var moduleValue;
|
|
var filterConfig;
|
|
var ALLOWED_PROPS;
|
|
var moduleValue2;
|
|
var extractGestureRelations;
|
|
var moduleValue3;
|
|
var registerHandler;
|
|
var testId;
|
|
var value7;
|
|
if (env0_0.isMounted) {
|
|
if (attachedGestures === env0_0.attachedGestures) {
|
|
length = attachedGestures.length;
|
|
value2 = length !== importDefault.length;
|
|
length = importDefault.length;
|
|
value3 = 0;
|
|
value4 = environment.__proto__;
|
|
if (value3 < length) {
|
|
r7 = value3;
|
|
r8 = value2;
|
|
while (true) {
|
|
property = attachedGestures[r7];
|
|
handlers = property.handlers;
|
|
gestureId = handlers.gestureId;
|
|
handlers = importDefault[r7].handlers;
|
|
gestureId2 = handlers.gestureId;
|
|
value5 = gestureId !== gestureId2;
|
|
if (value5) {
|
|
shouldUseReanimated = importDefault[r7].shouldUseReanimated;
|
|
if (shouldUseReanimated) {
|
|
continue;
|
|
}
|
|
shouldUseReanimated = property.shouldUseReanimated;
|
|
r6 = shouldUseReanimated;
|
|
} else {
|
|
r6 = value5;
|
|
}
|
|
if (!r6) {
|
|
continue;
|
|
}
|
|
value6 = true;
|
|
r8 = value6;
|
|
config = importDefault[r7].config;
|
|
property.config = config;
|
|
handlers = importDefault[r7].handlers;
|
|
property.handlers = handlers;
|
|
defaultImport = importDefault(5330) /* metro dependency 5330 */;
|
|
updateGestureHandler = defaultImport.updateGestureHandler;
|
|
handlerTag = property.handlerTag;
|
|
moduleValue = require(5344) /* metro dependency 5344 */;
|
|
filterConfig = moduleValue.filterConfig;
|
|
config = property.config;
|
|
ALLOWED_PROPS = require(dependencyMap[value3]).ALLOWED_PROPS;
|
|
moduleValue2 = require(dependencyMap[value3]);
|
|
extractGestureRelations = moduleValue2.extractGestureRelations;
|
|
Reflect.apply(updateGestureHandler, defaultImport, [handlerTag, Reflect.apply(filterConfig,
|
|
moduleValue,
|
|
[config,
|
|
ALLOWED_PROPS, Reflect.apply(extractGestureRelations, moduleValue2, [property])])]);
|
|
moduleValue3 = require(5324) /* metro dependency 5324 */;
|
|
registerHandler = moduleValue3.registerHandler;
|
|
handlerTag = property.handlerTag;
|
|
config = property.config;
|
|
testId = config.testId;
|
|
Reflect.apply(registerHandler, moduleValue3, [handlerTag, property, testId]);
|
|
value7 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
|
length = importDefault.length;
|
|
if (value7 < length) {
|
|
r7 = value7;
|
|
continue;
|
|
}
|
|
r5 = r8;
|
|
break;
|
|
}
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
if (env0_0.animatedHandlers) {
|
|
if (r5) {
|
|
env0_0.animatedHandlers.value = attachedGestures.filter(function(a0) {
|
|
return a0.shouldUseReanimated;
|
|
}).map(_fun47330);
|
|
}
|
|
}
|
|
(require(5344) /* metro dependency 5344 */).scheduleFlushOperations();
|
|
}
|
|
}
|
|
}
|
|
|