219 lines
9.8 KiB
JavaScript
219 lines
9.8 KiB
JavaScript
/* Metro module 5370; source: unknown; dependencies: [31, 5344, 5346] */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module05344Module from './module-05344.js'; /* Metro dependency 5344 */
|
|
import * as MountRegistryModule from './module-05346-MountRegistry.js'; /* Metro dependency 5346 */
|
|
|
|
function _fun47348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5548:6, offset: 0x011bfe04, size: 96 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.useMountReactions = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
useLayoutEffect(_fun47351, [a0, a1]);
|
|
};
|
|
function shouldUpdateDetector(a0, a1) { // fn#47349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5548:122, offset: 0x011bfe64, size: 100 bytes, params: 3, frame: 14
|
|
var handlerTag;
|
|
var error;
|
|
if (a0 === undefined) {
|
|
return false;
|
|
}
|
|
let value = Module05344Module;
|
|
const iterator = value.transformIntoHandlerTags(a0)[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r1 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r1, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r1;
|
|
reducibleJoin3: while (true) {
|
|
if (item2 === undefined) {
|
|
return false;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
reducibleLoop3: while (true) {
|
|
try {
|
|
handlerTag = a1.handlerTag;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = item === handlerTag;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value) {
|
|
item2.return();
|
|
return true;
|
|
}
|
|
r1 = item2;
|
|
item2 = Reflect.apply(iterator2, r1, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r1;
|
|
if (item2 === undefined) {
|
|
return false;
|
|
}
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
|
|
function useMountReactions(a0, a1) { // fn#47350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5548:287, offset: 0x011bfec8, size: 50 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
useLayoutEffect(function() {
|
|
var MountRegistry = require(dependencyMap[2]).MountRegistry;
|
|
return MountRegistry.addMountListener(_fun47352);
|
|
}, [a0, a1]);
|
|
function _fun47351() { // fn#47351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5548:322, offset: 0x011bfefa, size: 53 bytes, params: 1, frame: 11
|
|
const MountRegistry = (MountRegistryModule).MountRegistry;
|
|
return MountRegistry.addMountListener(_fun47352);
|
|
function _fun47352(a0) { // fn#47352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5548:380, offset: 0x011bff2f, size: 174 bytes, params: 2, frame: 20
|
|
var r2;
|
|
var value;
|
|
var isMounted;
|
|
var attachedGestures;
|
|
var iterator;
|
|
var iterator2;
|
|
var value2;
|
|
var item;
|
|
var item2;
|
|
var config;
|
|
var blocksHandlers;
|
|
var requireToFail;
|
|
var simultaneousWith;
|
|
var shouldUpdateDetectorBinding;
|
|
var shouldUpdateDetector2;
|
|
var shouldUpdateDetector3;
|
|
var shouldUpdateDetector4;
|
|
var binding;
|
|
var error;
|
|
exceptionSkip24: while (true) {
|
|
exceptionLanding24: while (true) {
|
|
value = environment.__proto__;
|
|
isMounted = require.isMounted;
|
|
if (isMounted) {
|
|
attachedGestures = require.attachedGestures;
|
|
iterator = attachedGestures[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value2 = environment.__proto__.__proto__;
|
|
r2 = iterator;
|
|
loopExit2: while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
config = item.config;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
blocksHandlers = config.blocksHandlers;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
config = item.config;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
requireToFail = config.requireToFail;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
config = item.config;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
simultaneousWith = config.simultaneousWith;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
shouldUpdateDetectorBinding = shouldUpdateDetector;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
shouldUpdateDetector2 = shouldUpdateDetectorBinding(blocksHandlers, a0);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (shouldUpdateDetector2) {
|
|
break loopExit2;
|
|
}
|
|
try {
|
|
shouldUpdateDetectorBinding = shouldUpdateDetector;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
shouldUpdateDetector3 = shouldUpdateDetectorBinding(requireToFail, a0);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (shouldUpdateDetector3) {
|
|
break loopExit2;
|
|
}
|
|
try {
|
|
shouldUpdateDetectorBinding = shouldUpdateDetector;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
shouldUpdateDetector4 = shouldUpdateDetectorBinding(simultaneousWith, a0);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (shouldUpdateDetector4) {
|
|
break loopExit2;
|
|
}
|
|
r2 = item2;
|
|
continue;
|
|
}
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
binding();
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
item2.return();
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
break exceptionSkip24;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip24;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun47348, 5370, [31, 5344, 5346]) /* metro module 5370, dependencies: [31, 5344, 5346] */;
|