decord/source/282_dispatchNativeEvent.js
2026-07-29 08:29:29 +00:00

41 lines
1.3 KiB
JavaScript

// Module ID: 282
// Function ID: 283
// Name: dispatchNativeEvent
// Dependencies: [283, 66, 149, 134, 286, 135]
// Module 282 (dispatchNativeEvent)
const require = arg1;
const module = arg2;
const dependencyMap = arg6;
arg5.default = function dispatchNativeEvent(self, arg1, timeStamp) {
let obj = require(283) /* getHandler */;
const result = obj.processResponderEvent(arg1, self, timeStamp);
let tmp4 = require(66) /* map */.customBubblingEventTypes[arg1];
const tmp5 = require(66) /* map */.customDirectEventTypes[arg1];
if (null != tmp4) {
let tmp6 = null != tmp4;
if (tmp6) {
tmp6 = true !== tmp4.phasedRegistrationNames.skipBubbling;
}
let tmpResult = tmp(149);
const result1 = tmpResult.topLevelTypeToEventType(arg1);
obj = { bubbles: null, cancelable: true };
obj[0] = tmp6;
let timestamp = timeStamp.timeStamp;
if (timestamp == null) {
timestamp = timeStamp.timestamp;
}
if (typeof timestamp !== "os") {
tmpResult = tmp(134);
const result2 = tmpResult.setEventInitTimeStamp(obj, timestamp);
}
let tmp9 = module(286);
if (tmp4 == null) {
tmp4 = tmp5;
}
tmp9 = new tmp9(result1, obj, timeStamp, tmp4);
tmp(135).dispatchTrustedEvent(self, tmp9);
const tmpResult1 = tmp(135);
}
require(283) /* getHandler */.rethrowCaughtError();
};