205 lines
8.0 KiB
JavaScript
205 lines
8.0 KiB
JavaScript
/* Metro module 3921; source: unknown; dependencies: [31] */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun32216(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4070:6, offset: 0x0100ed5b, size: 108 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Symbol = global.Symbol;
|
|
const env0_2 = Symbol('UNINITIALIZED');
|
|
exports.useDisposableMemo = useDisposableMemo;
|
|
function useDisposableMemo(a0, a1, a2, a3) { // fn#32217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4070:179, offset: 0x0100edc7, size: 374 bytes, params: 5, frame: 27
|
|
var r12;
|
|
var r6;
|
|
var length;
|
|
var length2;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var Object;
|
|
var is;
|
|
var property;
|
|
var value8;
|
|
var current2;
|
|
var value9;
|
|
var error;
|
|
var current3;
|
|
var value10;
|
|
var closure;
|
|
let object = {value: undefined};
|
|
const binding = env0_2;
|
|
object.deps = binding;
|
|
object.pendingDisposal = null;
|
|
const value2 = useRef(object);
|
|
const value3 = useRef(a1);
|
|
value3.current = a1;
|
|
const value4 = useRef(a3);
|
|
var env0_2 = value4;
|
|
value4.current = a3;
|
|
let current = value2.current;
|
|
let deps = current.deps;
|
|
if (deps === binding) {
|
|
current = value2.current;
|
|
if (current.deps !== env0_2) {
|
|
current = value4.current;
|
|
if (current) {
|
|
current = value4.current;
|
|
current.current = undefined;
|
|
}
|
|
try {
|
|
current = value3.current;
|
|
current2 = value2.current;
|
|
value9 = current2.value;
|
|
Reflect.apply(current, value3, [value9]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
value2.current = {value: a0(), deps: a2, pendingDisposal: null};
|
|
current = value4.current;
|
|
if (current) {
|
|
value4.current.current = value2.current.value;
|
|
}
|
|
} else {
|
|
current = value2.current;
|
|
deps = current.deps;
|
|
length = deps.length;
|
|
length2 = a2.length;
|
|
value5 = false;
|
|
if (length !== length2) {
|
|
r6 = value5;
|
|
} else {
|
|
length = deps.length;
|
|
value6 = 0;
|
|
value7 = true;
|
|
if (value6 < length) {
|
|
r12 = value6;
|
|
while (true) {
|
|
Object = global.Object;
|
|
is = Object.is;
|
|
property = deps[r12];
|
|
if (!Reflect.apply(is, Object, [property, a2[r12]])) {
|
|
r6 = value5;
|
|
break;
|
|
}
|
|
value8 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
|
|
length = deps.length;
|
|
if (value8 < length) {
|
|
r12 = value8;
|
|
continue;
|
|
}
|
|
r6 = value7;
|
|
break;
|
|
}
|
|
} else {
|
|
r6 = value7;
|
|
}
|
|
}
|
|
if (!r6) {
|
|
current = value2.current;
|
|
if (current.deps !== env0_2) {
|
|
current = value4.current;
|
|
if (current) {
|
|
current = value4.current;
|
|
current.current = undefined;
|
|
}
|
|
try {
|
|
current = value3.current;
|
|
} catch (error) {
|
|
object = {value: a0(), deps: a2, pendingDisposal: null};
|
|
value2.current = object;
|
|
current = value4.current;
|
|
if (current) {
|
|
current = value4.current;
|
|
current3 = value2.current;
|
|
value10 = current3.value;
|
|
current.current = value10;
|
|
}
|
|
closure = function() {
|
|
return _fun32219;
|
|
};
|
|
useEffect(closure, []);
|
|
current = value2.current;
|
|
return current.value;
|
|
}
|
|
try {
|
|
current2 = value2.current;
|
|
} catch (error) {
|
|
object = {value: a0(), deps: a2, pendingDisposal: null};
|
|
value2.current = object;
|
|
current = value4.current;
|
|
if (current) {
|
|
current = value4.current;
|
|
current3 = value2.current;
|
|
value10 = current3.value;
|
|
current.current = value10;
|
|
}
|
|
closure = _fun32218;
|
|
useEffect(closure, []);
|
|
current = value2.current;
|
|
return current.value;
|
|
}
|
|
try {
|
|
value9 = current2.value;
|
|
} catch (error) {
|
|
object = {value: a0(), deps: a2, pendingDisposal: null};
|
|
value2.current = object;
|
|
current = value4.current;
|
|
if (current) {
|
|
current = value4.current;
|
|
current3 = value2.current;
|
|
value10 = current3.value;
|
|
current.current = value10;
|
|
}
|
|
closure = _fun32218;
|
|
useEffect(closure, []);
|
|
current = value2.current;
|
|
return current.value;
|
|
}
|
|
try {
|
|
Reflect.apply(current, value3, [value9]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
object = {value: a0(), deps: a2, pendingDisposal: null};
|
|
value2.current = object;
|
|
current = value4.current;
|
|
if (current) {
|
|
value4.current.current = value2.current.value;
|
|
}
|
|
}
|
|
}
|
|
useEffect(function() {
|
|
return _fun32219;
|
|
}, []);
|
|
return value2.current.value;
|
|
function _fun32218() { // fn#32218, offset: 0x0100ef3d, size: 9 bytes, params: 1, frame: 1
|
|
return _fun32219;
|
|
function _fun32219() { // fn#32219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4070:707, offset: 0x0100ef46, size: 68 bytes, params: 1, frame: 11
|
|
var binding;
|
|
var binding2;
|
|
var current2;
|
|
var error;
|
|
let value = environment.__proto__;
|
|
let current = env1_2.current;
|
|
if (current) {
|
|
current = env1_2.current;
|
|
current.current = undefined;
|
|
}
|
|
try {
|
|
binding = env1_1;
|
|
current = binding.current;
|
|
binding2 = env1_0;
|
|
current2 = binding2.current;
|
|
value = current2.value;
|
|
Reflect.apply(current, binding, [value]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun32216, 3921, [31]) /* metro module 3921, dependencies: [31] */;
|