decord/source/6461_shouldUpdateDetector.js

59 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6461
// Function ID: 6462
2026-08-08 06:10:11 +00:00
// Name: shouldUpdateDetector
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 6439, 6442]
2026-08-08 06:10:11 +00:00
// Exports: useMountReactions
2026-08-24 06:08:38 +00:00
// Module 6461 (shouldUpdateDetector)
import noop from "noop" /* 19 */;
import transformIntoHandlerTags from "transformIntoHandlerTags" /* 6439 */;
2026-08-08 06:10:11 +00:00
function shouldUpdateDetector(arg0, handlerTag) {
if (undefined === arg0) {
return false;
} else {
2026-08-24 06:08:38 +00:00
const result = transformIntoHandlerTags.transformIntoHandlerTags(arg0);
2026-08-08 06:10:11 +00:00
for (const item10012 of result) {
if (item10012 === arg1.handlerTag) {
let tmp6 = obj2;
obj2.return();
let flag = true;
return true;
}
}
return false;
}
}
2026-08-24 06:08:38 +00:00
const useEffect = noop.useEffect;
2026-08-08 06:10:11 +00:00
export const useMountReactions = function useMountReactions(detectorUpdater, current2) {
2026-08-24 06:08:38 +00:00
closure_0 = detectorUpdater;
closure_1 = current2;
2026-08-08 06:10:11 +00:00
const items = [detectorUpdater, current2];
useEffect(() => {
const MountRegistry = detectorUpdater(table[2]).MountRegistry;
return MountRegistry.addMountListener((arg0) => {
if (closure_1.isMounted) {
const attachedGestures = closure_1.attachedGestures;
const iter = attachedGestures[Symbol.iterator]();
const nextResult = iter.next();
while (iter !== undefined) {
let requireToFail = nextResult.config.requireToFail;
let simultaneousWith = nextResult.config.simultaneousWith;
2026-08-24 06:08:38 +00:00
let tmp5 = closure_1_3;
if (!closure_1_3(nextResult.config.blocksHandlers, arg0)) {
2026-08-08 06:10:11 +00:00
let tmp6 = requireToFail;
if (!tmp5(requireToFail, arg0)) {
let tmp7 = simultaneousWith;
}
}
let tmp8 = callback;
let tmp9 = callback();
let tmp10 = iter;
iter.return();
}
}
});
}, items);
};