/* Metro module 1767; source: unknown; dependencies: [1715, 1755, 1757] */ import * as WorkletEventHandlerModule from './module-01715-WorkletEventHandler.js'; /* Metro dependency 1715 */ import * as UseHandlerModule from './module-01755-useHandler.js'; /* Metro dependency 1755 */ import * as moduleValue2 from './module-01757-useEvent.js'; /* Metro dependency 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 object2 = {}; const object3 = object2; 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 useHandler = UseHandlerModule.useHandler; const doDependenciesDiffer = Reflect.apply(useHandler, UseHandlerModule, [{}]).doDependenciesDiffer; const useEvent = moduleValue2.useEvent; const pnpm_useComposedEventHandlerTs12 = pnpm_useComposedEventHandlerTs1; pnpm_useComposedEventHandlerTs12.__closure = {workletsMap: object2}; pnpm_useComposedEventHandlerTs12.__workletHash = 14960316830945; pnpm_useComposedEventHandlerTs12.__initData = object3; const Array = global.Array; return Reflect.apply(useEvent, moduleValue2, [pnpm_useComposedEventHandlerTs12, 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 = (WorkletEventHandlerModule).WorkletEventHandler; if (workletEventHandler instanceof WorkletEventHandler) { workletEventHandler.eventNames.forEach(_fun19501); } 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; } } 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 _fun19503(a0) { // fn#19503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1894:818, offset: 0x00c44018, size: 19 bytes, params: 2, frame: 11 return a0(env0_0); } } } } global.__d(_fun19497, 1767, [1715, 1755, 1757]) /* metro module 1767, dependencies: [1715, 1755, 1757] */;