84 lines
3.3 KiB
React
84 lines
3.3 KiB
React
/* Metro module 689; source: unknown; dependencies: [31] */
|
|
function _fun8393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:806:6, offset: 0x00d3f9ef, size: 150 bytes, params: 8, frame: 14
|
|
let value = require(31) /* metro dependency 31 */;
|
|
const Object = global.Object;
|
|
const env0_0 = typeof Object.is === 'function' ? global.Object.is : function(a0, a1) {
|
|
var r3;
|
|
var r0;
|
|
var value = a0 === a1;
|
|
if (value) {
|
|
value = a0 !== 0;
|
|
if (value) {
|
|
r3 = value;
|
|
} else {
|
|
value = 1 / a0;
|
|
value = value === 1 / a1;
|
|
r3 = value;
|
|
}
|
|
r0 = r3;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
r0 = !r0 ? a0 != a0 && a1 != a1 : r0;
|
|
return r0;
|
|
};
|
|
const env0_1 = value.useState;
|
|
const env0_2 = value.useEffect;
|
|
const env0_3 = value.useLayoutEffect;
|
|
const env0_4 = value.useDebugValue;
|
|
const useSyncExternalStore = value.useSyncExternalStore;
|
|
exports.useSyncExternalStore = useSyncExternalStore !== undefined ? value.useSyncExternalStore : useSyncExternalStore$1;
|
|
}
|
|
|
|
function checkIfSnapshotChanged_8394({getSnapshot, value}) { // fn#8394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:816:200, offset: 0x00d3fa85, size: 49 bytes, params: 2, frame: 14
|
|
var snapshot;
|
|
var value3;
|
|
var binding;
|
|
var error;
|
|
try {
|
|
snapshot = getSnapshot();
|
|
value3 = environment;
|
|
binding = env0_0;
|
|
value = binding(value, snapshot);
|
|
} catch (error) {
|
|
return true;
|
|
}
|
|
return !value;
|
|
}
|
|
|
|
function useSyncExternalStore$1(a0, a1) { // fn#8396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:816:390, offset: 0x00d3fab6, size: 148 bytes, params: 3, frame: 19
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = a1();
|
|
const value3 = useState({inst: {value: value, getSnapshot: a1}});
|
|
const env0_3 = value3[0].inst;
|
|
const env0_4 = value3[1];
|
|
useLayoutEffect(_fun8397, [a0, value, a1]);
|
|
useEffect(_fun8398, [a0]);
|
|
useDebugValue(value);
|
|
return value;
|
|
}
|
|
|
|
function _fun8397() { // fn#8397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:816:502, offset: 0x00d3fb4a, size: 66 bytes, params: 1, frame: 12
|
|
const instBinding = inst;
|
|
instBinding.value = env0_2;
|
|
instBinding.getSnapshot = require;
|
|
if (checkIfSnapshotChanged_8394(instBinding)) {
|
|
env0_4({inst: inst});
|
|
}
|
|
}
|
|
|
|
function _fun8398() { // fn#8398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:816:592, offset: 0x00d3fb8c, size: 62 bytes, params: 1, frame: 13
|
|
if (checkIfSnapshotChanged_8394(inst)) {
|
|
env0_4({inst: inst});
|
|
}
|
|
return env0_0(_fun8399);
|
|
}
|
|
|
|
function _fun8399() { // fn#8399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:816:652, offset: 0x00d3fbca, size: 46 bytes, params: 1, frame: 12
|
|
if (checkIfSnapshotChanged_8394(inst)) {
|
|
env1_4({inst: inst});
|
|
}
|
|
}
|
|
|