/* Metro module 1767; source: unknown; dependencies: [1715, 1755, 1757] */ function _fun19497(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1894:6, offset: 0x00eabf1d, size: 82 bytes, params: 8, frame: 16 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {code: 'function pnpm_useComposedEventHandlerTs1(event){const{workletsMap}=this.__closure;if(workletsMap[event.eventName]){workletsMap[event.eventName].forEach(function(worklet){return worklet(event);});}}'}; exports.useComposedEventHandler = useComposedEventHandler; } function useComposedEventHandler(a0) { // fn#19498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1894:331, offset: 0x00eabf6f, size: 210 bytes, params: 2, frame: 21 const Set = global.Set; const set = new Set(); const object = {}; const env0_2 = object; a0.filter(function(a0) { return a0 !== null; }).forEach(function({workletEventHandler}) { var env0_0 = workletEventHandler; if (workletEventHandler instanceof require(dependencyMap[0]).WorkletEventHandler) { workletEventHandler = workletEventHandler.eventNames; workletEventHandler.forEach(_fun19501); } }); const moduleValue = require(1755) /* metro dependency 1755 */; const useHandler = moduleValue.useHandler; const doDependenciesDiffer = Reflect.apply(useHandler, moduleValue, [{}]).doDependenciesDiffer; const moduleValue2 = require(1757) /* metro dependency 1757 */; const useEvent = moduleValue2.useEvent; const closure = pnpm_useComposedEventHandlerTs1; closure.__closure = {workletsMap: object}; closure.__workletHash = 14960316830945; closure.__initData = env0_2; const Array = global.Array; return Reflect.apply(useEvent, moduleValue2, [closure, Array.from(set), doDependenciesDiffer]); } function _fun19500({workletEventHandler}) { // fn#19500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1894:441, offset: 0x00eac041, size: 75 bytes, params: 2, frame: 13 const WorkletEventHandler = (require(1715) /* metro dependency 1715 */).WorkletEventHandler; if (workletEventHandler instanceof WorkletEventHandler) { workletEventHandler.eventNames.forEach(_fun19501); } } function pnpm_useComposedEventHandlerTs1(a0) { // fn#19502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1894:734, owner: useComposedEventHandler.pnpm_useComposedEventHandlerTs1, offset: 0x00eac11f, size: 62 bytes, params: 2, frame: 13 const env0_0 = a0; if (env0_2[a0.eventName]) { env0_2[a0.eventName].forEach(_fun19503); } } function _fun19501(a0) { // fn#19501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1894:545, offset: 0x00eac08c, size: 147 bytes, params: 2, frame: 14 let binding = env1_1; binding.add(a0); let property = env1_2[a0]; binding = env1_2; if (property) { property = binding[a0]; property.push(workletEventHandler.worklet); } else { binding[a0] = [workletEventHandler.worklet]; } env1_0[a0 + ('' + env1_2[a0].length)] = workletEventHandler.worklet; }