decord/source/5398_updateHandlers.js
2026-08-05 07:35:12 +00:00

84 lines
3.3 KiB
JavaScript

// Module ID: 5398
// Function ID: 5399
// Name: updateHandlers
// Dependencies: [5390, 5377, 5362, 5376, 5356]
// Module 5398 (updateHandlers)
const require = arg1;
const module = arg2;
const dependencyMap = arg6;
arg5.updateHandlers = function updateHandlers(attachedGestures, closure_3, arg2) {
const _require = attachedGestures;
let closure_1 = arg2;
closure_3.prepare();
for (let num = 0; num < arg2.length; num = num + 1) {
let tmp2 = attachedGestures.attachedGestures[num];
let tmp3 = _require;
let tmp4 = attachedGestures;
let obj = _require(attachedGestures[0]);
let result = obj.checkGestureCallbacksForWorklets(tmp2);
let tmp6 = num;
if (arg2[num].handlerTag !== tmp2.handlerTag) {
({ handlerTag: arg2[num].handlerTag, handlerTag: arg2[num].handlers.handlerTag } = tmp2);
}
}
attachedGestures = attachedGestures.attachedGestures;
_require(attachedGestures[1]).ghQueueMicrotask(() => {
let arr2;
if (attachedGestures.isMounted) {
let arr = attachedGestures;
if (attachedGestures === tmp.attachedGestures) {
let tmp19 = arr.length !== lib.length;
let num = 0;
let tmp20 = tmp19;
if (0 < lib.length) {
do {
let tmp3 = attachedGestures[num];
arr2 = lib;
let tmp4 = tmp3.handlers.gestureId !== lib[num].handlers.gestureId;
let tmp5 = num;
let flag = tmp19;
let tmp2 = attachedGestures;
if (tmp4) {
let tmp6 = arr2[num].shouldUseReanimated || tmp3.shouldUseReanimated;
tmp4 = tmp6;
}
if (tmp4) {
flag = true;
}
tmp3.config = arr2[num].config;
tmp3.handlers = arr2[num].handlers;
let tmp7 = lib;
let tmp8 = attachedGestures;
let obj = lib(attachedGestures[2]);
let tmp9 = attachedGestures;
let tmp10 = attachedGestures;
let obj2 = attachedGestures(attachedGestures[3]);
let tmp11 = attachedGestures;
let tmp12 = attachedGestures;
let tmp13 = attachedGestures;
let tmp14 = attachedGestures;
let obj3 = attachedGestures(attachedGestures[0]);
let updateGestureHandlerResult = obj.updateGestureHandler(tmp3.handlerTag, obj2.filterConfig(tmp3.config, attachedGestures(attachedGestures[0]).ALLOWED_PROPS, obj3.extractGestureRelations(tmp3)));
let tmp16 = attachedGestures;
let tmp17 = attachedGestures;
let obj4 = attachedGestures(attachedGestures[4]);
let registerHandlerResult = obj4.registerHandler(tmp3.handlerTag, tmp3, tmp3.config.testId);
num = num + 1;
tmp19 = flag;
tmp20 = flag;
arr = tmp2;
} while (num < arr2.length);
}
if (attachedGestures.animatedHandlers) {
if (tmp20) {
const found = arr.filter((shouldUseReanimated) => shouldUseReanimated.shouldUseReanimated);
tmp21.animatedHandlers.value = found.map((handlers) => handlers.handlers);
}
}
const result = attachedGestures(attachedGestures[3]).scheduleFlushOperations();
const obj5 = attachedGestures(attachedGestures[3]);
}
}
});
};