175 lines
6.6 KiB
React
175 lines
6.6 KiB
React
/* Metro module 199; source: unknown; dependencies: [] */
|
|
function _fun2837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:224:6, offset: 0x00c8a47b, size: 102 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Symbol = global.Symbol;
|
|
const env0_0 = Symbol('eventHandlerAttributeMap');
|
|
exports.getEventHandlerAttribute = getEventHandlerAttribute;
|
|
exports.setEventHandlerAttribute = setEventHandlerAttribute;
|
|
}
|
|
|
|
function getEventHandlerAttribute(a0, a1) { // fn#2840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:224:264, offset: 0x00c8a506, size: 56 bytes, params: 3, frame: 13
|
|
const getEventHandlerAttributeMapBinding = getEventHandlerAttributeMap;
|
|
const value = undefined;
|
|
const eventHandlerAttributeMapBinding = getEventHandlerAttributeMapBinding(a0);
|
|
const value3 = null;
|
|
const r1 = value3 == eventHandlerAttributeMapBinding ? value : eventHandlerAttributeMapBinding.get(a1);
|
|
return value3 != r1 ? r1.handleEvent : value3;
|
|
}
|
|
|
|
function setEventHandlerAttribute(a0, a1, a2) { // fn#2841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:224:431, offset: 0x00c8a53e, size: 263 bytes, params: 4, frame: 21
|
|
var r5;
|
|
var r4;
|
|
var get;
|
|
var value3;
|
|
var removeEventListener;
|
|
var value4;
|
|
var object2;
|
|
var addEventListener;
|
|
var value5;
|
|
var setEventHandlerAttributeMapBinding;
|
|
var Map;
|
|
var prototype;
|
|
var map;
|
|
var value7;
|
|
var set;
|
|
var error;
|
|
var value8;
|
|
const eventHandlerAttributeMap = getEventHandlerAttributeMap(a0);
|
|
reducibleJoin3: while (true) {
|
|
if (eventHandlerAttributeMap == null) {
|
|
break reducibleJoin3;
|
|
}
|
|
get = eventHandlerAttributeMap.get;
|
|
value3 = Reflect.apply(get, eventHandlerAttributeMap, [a1]);
|
|
if (value3) {
|
|
removeEventListener = a0.removeEventListener;
|
|
Reflect.apply(removeEventListener, a0, [a1, value3]);
|
|
eventHandlerAttributeMap.delete(a1);
|
|
break reducibleJoin3;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
reduciblePort27: while (true) {
|
|
exceptionLanding26: while (true) {
|
|
if (a2 == null) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break reduciblePort27;
|
|
}
|
|
value4 = typeof a2;
|
|
if (value4 !== 'function') {
|
|
if (value4 !== 'object') {
|
|
r5 = eventHandlerAttributeMap;
|
|
break reduciblePort27;
|
|
}
|
|
}
|
|
object2 = {handleEvent: a2};
|
|
try {
|
|
addEventListener = a0.addEventListener;
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
Reflect.apply(addEventListener, a0, [a1, object2]);
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
value5 = eventHandlerAttributeMap != null;
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
reducibleJoin23: while (true) {
|
|
if (value5) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break reducibleJoin23;
|
|
}
|
|
try {
|
|
setEventHandlerAttributeMapBinding = setEventHandlerAttributeMap;
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
Map = global.Map;
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
prototype = Map.prototype;
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
map = new Map();
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
value7 = map instanceof Object ? map : undefined;
|
|
} catch (error) {
|
|
r5 = eventHandlerAttributeMap;
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
setEventHandlerAttributeMapBinding(a0, value7);
|
|
} catch (error) {
|
|
r5 = value7;
|
|
break exceptionLanding26;
|
|
}
|
|
r5 = value7;
|
|
break reducibleJoin23;
|
|
}
|
|
try {
|
|
set = r5.set;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
Reflect.apply(set, r5, [a1, object2]);
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
break reduciblePort27;
|
|
}
|
|
break reduciblePort27;
|
|
}
|
|
value8 = r5 != null;
|
|
reducibleJoin29: while (true) {
|
|
if (value8) {
|
|
break reducibleJoin28;
|
|
}
|
|
r4 = value8;
|
|
break reducibleJoin29;
|
|
}
|
|
reducibleJoin31: while (true) {
|
|
if (r4) {
|
|
setEventHandlerAttributeMap(a0, null);
|
|
break reducibleJoin31;
|
|
}
|
|
break reducibleJoin31;
|
|
}
|
|
return undefined;
|
|
}
|
|
reducibleJoin31: while (true) {
|
|
if (r5.size === 0) {
|
|
setEventHandlerAttributeMap(a0, null);
|
|
break reducibleJoin31;
|
|
}
|
|
break reducibleJoin31;
|
|
}
|
|
}
|
|
|