Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
41 lines
1.5 KiB
JavaScript
41 lines
1.5 KiB
JavaScript
// Module ID: 6811
|
|
// Function ID: 6812
|
|
// Dependencies: [19, 6790, 6801, 6812, 6813, 6814, 6815]
|
|
// Exports: useDetectorUpdater
|
|
|
|
// Module 6811
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import _modDef6801 from "module_6801" /* 6801 */;
|
|
import dropHandlers from "dropHandlers" /* 6813 */;
|
|
import attachHandlers from "attachHandlers" /* 6814 */;
|
|
import _mod6815 from "module_6815" /* 6815 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
_mod19.useCallback;
|
|
|
|
export const useDetectorUpdater = function useDetectorUpdater(current, current2, gesturesToAttach, gesture, webEventHandlers) {
|
|
_require = current;
|
|
const preparedGesture = current2;
|
|
dependencyMap = gesturesToAttach;
|
|
const forceRender = require("convertToHandlerTag").useForceRender();
|
|
const items = [forceRender, gesture, gesturesToAttach, current2, current, webEventHandlers];
|
|
return gesture((arg0) => {
|
|
const tmp3 = _modDef6801(current.viewRef);
|
|
if (tmp3 === current.previousViewTag) {
|
|
if (!obj.needsToReattach(preparedGesture, gesturesToAttach)) {
|
|
if (!arg0) {
|
|
_mod6815.updateHandlers(preparedGesture, gestureConfig, gesturesToAttach);
|
|
const tmp5Result = _mod6815;
|
|
}
|
|
}
|
|
}
|
|
dropHandlers.dropHandlers(preparedGesture);
|
|
attachHandlers.attachHandlers({ preparedGesture, gestureConfig, gesturesToAttach, webEventHandlersRef, viewTag: tmp3 });
|
|
if (tmp3 !== current.previousViewTag) {
|
|
tmp2.previousViewTag = tmp3;
|
|
tmp2.forceRebuildReanimatedEvent = true;
|
|
forceRender();
|
|
}
|
|
}, items);
|
|
};
|