// Module ID: 6453 // Function ID: 6454 // Name: useDetectorUpdater // Dependencies: [19, 6432, 6443, 6454, 6455, 6456, 6457] // Exports: useDetectorUpdater // Module 6453 (useDetectorUpdater) import noop from "noop" /* 19 */; noop.useCallback; export const useDetectorUpdater = function useDetectorUpdater(current, current2, arg2, gesture, webEventHandlers) { const _require = current; closure_1 = current2; dependencyMap = arg2; closure_4 = webEventHandlers; const forceRender = _require(6432).useForceRender(); const items = [forceRender, gesture, arg2, current2, current, webEventHandlers]; return gesture((arg0) => { const tmp3 = current2(table[2])(current.viewRef); if (tmp3 === current.previousViewTag) { let obj = current(tmp[3]); if (!obj.needsToReattach(current2, table)) { if (!arg0) { current(tmp[6]).updateHandlers(current2, closure_3, table); const tmp5Result = current(tmp[6]); } } } current(table[4]).dropHandlers(current2); const obj3 = current(table[4]); obj = { preparedGesture: current2, gestureConfig: closure_3, gesturesToAttach: table, webEventHandlersRef: closure_4, viewTag: tmp3 }; current(table[5]).attachHandlers(obj); if (tmp3 !== current.previousViewTag) { tmp2.previousViewTag = tmp3; tmp2.forceRebuildReanimatedEvent = true; forceRender(); } }, items); };