Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
41 lines
1.5 KiB
JavaScript
41 lines
1.5 KiB
JavaScript
// Module ID: 6772
|
|
// Function ID: 6773
|
|
// Dependencies: [19, 6751, 6762, 6773, 6774, 6775, 6776]
|
|
// Exports: useDetectorUpdater
|
|
|
|
// Module 6772
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import _modDef6762 from "module_6762" /* 6762 */;
|
|
import dropHandlers from "dropHandlers" /* 6774 */;
|
|
import attachHandlers from "attachHandlers" /* 6775 */;
|
|
import _mod6776 from "module_6776" /* 6776 */;
|
|
|
|
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 = _modDef6762(current.viewRef);
|
|
if (tmp3 === current.previousViewTag) {
|
|
if (!obj.needsToReattach(preparedGesture, gesturesToAttach)) {
|
|
if (!arg0) {
|
|
_mod6776.updateHandlers(preparedGesture, gestureConfig, gesturesToAttach);
|
|
const tmp5Result = _mod6776;
|
|
}
|
|
}
|
|
}
|
|
dropHandlers.dropHandlers(preparedGesture);
|
|
attachHandlers.attachHandlers({ preparedGesture, gestureConfig, gesturesToAttach, webEventHandlersRef, viewTag: tmp3 });
|
|
if (tmp3 !== current.previousViewTag) {
|
|
tmp2.previousViewTag = tmp3;
|
|
tmp2.forceRebuildReanimatedEvent = true;
|
|
forceRender();
|
|
}
|
|
}, items);
|
|
};
|