540 lines
24 KiB
JavaScript
540 lines
24 KiB
JavaScript
/* Metro module 5365; source: unknown; dependencies: [27, 5345, 5358, 5330, 5344, 5324, 5343, 5346] */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
|
|
function _fun47320(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5543:6, offset: 0x011be9a3, size: 90 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(ReactNativeModule).Platform;
|
|
exports.attachHandlers = attachHandlers;
|
|
function attachHandlers(a0) { // fn#47321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5543:127, offset: 0x011be9fd, size: 547 bytes, params: 2, frame: 35
|
|
var environment;
|
|
var r4;
|
|
var r18;
|
|
var preparedGesture;
|
|
var gestureConfig;
|
|
var gesturesToAttach;
|
|
var viewTag;
|
|
var initialize;
|
|
var value;
|
|
var moduleValue;
|
|
var ghQueueMicrotask;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var moduleValue2;
|
|
var checkGestureCallbacksForWorklets;
|
|
var defaultImport;
|
|
var createGestureHandler;
|
|
var handlerName;
|
|
var handlerTag;
|
|
var moduleValue3;
|
|
var filterConfig;
|
|
var config;
|
|
var moduleValue4;
|
|
var ALLOWED_PROPS;
|
|
var value2;
|
|
var moduleValue5;
|
|
var registerHandler;
|
|
var testId;
|
|
var error;
|
|
var moduleValue6;
|
|
var iterator3;
|
|
var item3;
|
|
var shouldUseReanimated;
|
|
var moduleValue7;
|
|
var ActionType;
|
|
var JS_FUNCTION_NEW_API;
|
|
var REANIMATED_WORKLET;
|
|
var defaultImport2;
|
|
var attachGestureHandler;
|
|
var moduleValue8;
|
|
var MountRegistry;
|
|
var gestureWillMount;
|
|
var animatedHandlers;
|
|
var filter;
|
|
var map;
|
|
exceptionSkip59: while (true) {
|
|
exceptionLanding59: while (true) {
|
|
exceptionSkip30: while (true) {
|
|
exceptionLanding30: while (true) {
|
|
preparedGesture = a0.preparedGesture;
|
|
var env0_0 = preparedGesture;
|
|
gestureConfig = a0.gestureConfig;
|
|
var env0_1 = gestureConfig;
|
|
gesturesToAttach = a0.gesturesToAttach;
|
|
var env0_2 = gesturesToAttach;
|
|
viewTag = a0.viewTag;
|
|
a0.webEventHandlersRef;
|
|
initialize = gestureConfig.initialize;
|
|
Reflect.apply(initialize, gestureConfig, []);
|
|
value = environment;
|
|
moduleValue = require(dependencyMap[1]);
|
|
ghQueueMicrotask = moduleValue.ghQueueMicrotask;
|
|
Reflect.apply(ghQueueMicrotask, moduleValue, [function() {
|
|
if (preparedGesture.isMounted) {
|
|
gestureConfig.prepare();
|
|
}
|
|
}]);
|
|
iterator = gesturesToAttach[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
for (r4 = iterator; true; r4 = item2) {
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
moduleValue2 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
checkGestureCallbacksForWorklets = moduleValue2.checkGestureCallbacksForWorklets;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
Reflect.apply(checkGestureCallbacksForWorklets, moduleValue2, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
defaultImport = importDefault(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
createGestureHandler = defaultImport.createGestureHandler;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
handlerName = item.handlerName;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
handlerTag = item.handlerTag;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
property = dependencyMap[4];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
filterConfig = moduleValue3.filterConfig;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
config = item.config;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
moduleValue4 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
ALLOWED_PROPS = moduleValue4.ALLOWED_PROPS;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(filterConfig, moduleValue3, [config, ALLOWED_PROPS]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
Reflect.apply(createGestureHandler, defaultImport, [handlerName, handlerTag, value2]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
property = dependencyMap[5];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
moduleValue5 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
registerHandler = moduleValue5.registerHandler;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
handlerTag = item.handlerTag;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
config = item.config;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
testId = config.testId;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
try {
|
|
Reflect.apply(registerHandler, moduleValue5, [handlerTag, item, testId]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
}
|
|
moduleValue6 = require(dependencyMap[1]);
|
|
ghQueueMicrotask = moduleValue6.ghQueueMicrotask;
|
|
Reflect.apply(ghQueueMicrotask, moduleValue6, [_fun47323]);
|
|
iterator = gesturesToAttach[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
for (r4 = iterator; true; r4 = item3) {
|
|
item3 = Reflect.apply(iterator3, r4, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r4;
|
|
if (item3 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
shouldUseReanimated = item.shouldUseReanimated;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
property = dependencyMap[6];
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
moduleValue7 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
ActionType = moduleValue7.ActionType;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
if (shouldUseReanimated) {
|
|
try {
|
|
REANIMATED_WORKLET = ActionType.REANIMATED_WORKLET;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
r18 = REANIMATED_WORKLET;
|
|
} else {
|
|
try {
|
|
JS_FUNCTION_NEW_API = ActionType.JS_FUNCTION_NEW_API;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
r18 = JS_FUNCTION_NEW_API;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
defaultImport2 = importDefault(property);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
attachGestureHandler = defaultImport2.attachGestureHandler;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
handlerTag = item.handlerTag;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
Reflect.apply(attachGestureHandler, defaultImport2, [handlerTag, viewTag, r18]);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
property = dependencyMap[7];
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
moduleValue8 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
MountRegistry = moduleValue8.MountRegistry;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
gestureWillMount = MountRegistry.gestureWillMount;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
Reflect.apply(gestureWillMount, MountRegistry, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
}
|
|
preparedGesture.attachedGestures = gesturesToAttach;
|
|
animatedHandlers = preparedGesture.animatedHandlers;
|
|
if (animatedHandlers) {
|
|
animatedHandlers = preparedGesture.animatedHandlers;
|
|
filter = gesturesToAttach.filter;
|
|
value = Reflect.apply(filter, gesturesToAttach, [isAnimatedGesture]);
|
|
map = value.map;
|
|
animatedHandlers.value = Reflect.apply(map, value, [_fun47325]);
|
|
}
|
|
return undefined;
|
|
break exceptionSkip30;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip30;
|
|
}
|
|
break exceptionSkip59;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip59;
|
|
}
|
|
function _fun47323() { // fn#47323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5543:596, offset: 0x011bec42, size: 196 bytes, params: 1, frame: 27
|
|
var r4;
|
|
var value;
|
|
var isMounted;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var defaultImport;
|
|
var updateGestureHandler;
|
|
var handlerTag;
|
|
var moduleValue;
|
|
var filterConfig;
|
|
var config;
|
|
var moduleValue2;
|
|
var ALLOWED_PROPS;
|
|
var moduleValue3;
|
|
var extractGestureRelations;
|
|
var value2;
|
|
var value3;
|
|
var error;
|
|
var scheduleFlushOperations;
|
|
exceptionSkip23: while (true) {
|
|
exceptionLanding23: while (true) {
|
|
value = environment;
|
|
isMounted = preparedGesture.isMounted;
|
|
if (isMounted) {
|
|
iterator = gesturesToAttach[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = environment.__proto__;
|
|
for (r4 = iterator; true; r4 = item2) {
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
property = dependencyMap[3];
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
defaultImport = importDefault(property);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
updateGestureHandler = defaultImport.updateGestureHandler;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
handlerTag = item.handlerTag;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
property = dependencyMap[4];
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
filterConfig = moduleValue.filterConfig;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
config = item.config;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
moduleValue2 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
ALLOWED_PROPS = moduleValue2.ALLOWED_PROPS;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
property = dependencyMap[2];
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
extractGestureRelations = moduleValue3.extractGestureRelations;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(extractGestureRelations, moduleValue3, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(filterConfig, moduleValue, [config, ALLOWED_PROPS, value2]);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
Reflect.apply(updateGestureHandler, defaultImport, [handlerTag, value3]);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
}
|
|
value = require(dependencyMap[4]);
|
|
scheduleFlushOperations = value.scheduleFlushOperations;
|
|
Reflect.apply(scheduleFlushOperations, value, []);
|
|
}
|
|
return undefined;
|
|
break exceptionSkip23;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip23;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function isAnimatedGesture(a0) { // fn#47324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5543:1084, owner: attachHandlers.isAnimatedGesture, offset: 0x011bd0cf, size: 11 bytes, params: 2, frame: 1
|
|
return a0.shouldUseReanimated;
|
|
}
|
|
|
|
function _fun47325(a0) { // fn#47325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5543:1151, offset: 0x011bed06, size: 11 bytes, params: 2, frame: 1
|
|
return a0.handlers;
|
|
}
|
|
|
|
global.__d(_fun47320, 5365, [27, 5345, 5358, 5330, 5344, 5324, 5343,
|
|
5346]) /* metro module 5365, dependencies: [27, 5345, 5358, 5330, 5344, 5324, 5343, 5346] */;
|