79 lines
3.3 KiB
React
79 lines
3.3 KiB
React
/* Metro module 1533; source: unknown; dependencies: [31, 1534] */
|
|
function _fun17334(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1660:6, offset: 0x00e6a43f, size: 242 bytes, params: 8, frame: 20
|
|
var closure;
|
|
let value = this;
|
|
if (!(value && value.__createBinding)) {
|
|
if (!global.Object.create) {
|
|
closure = function(a0, a1, a2, a3) {
|
|
var value = a2;
|
|
var value2 = a3;
|
|
a0[value2 !== undefined ? value2 : value] = a1[value];
|
|
};
|
|
}
|
|
}
|
|
if (!(value && value.__setModuleDefault)) {
|
|
if (global.Object.create) {
|
|
closure = function(a0, a1) {
|
|
var Object = global.Object;
|
|
Object.defineProperty(a0, 'default', {enumerable: true, value: a1});
|
|
};
|
|
}
|
|
}
|
|
let r7 = value && value.__importStar;
|
|
r7 = !r7 ? _fun17340 : r7;
|
|
let r4 = value && value.__importDefault;
|
|
r4 = !r4 ? function(a0) {
|
|
var value = a0;
|
|
return value && value.__esModule ? value : {default: value};
|
|
} : r4;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = r7(require(31) /* metro dependency 31 */);
|
|
const env0_3 = r4(require(1534) /* metro dependency 1534 */);
|
|
exports.default = useLatestCallback;
|
|
}
|
|
|
|
function _fun17335(a0, a1, a2, a3) { // fn#17335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1660:93, offset: 0x00e6a531, size: 140 bytes, params: 5, frame: 19
|
|
let value = a2;
|
|
const value2 = a3;
|
|
const env0_0 = a1;
|
|
const r5 = value2 !== undefined ? value2 : value;
|
|
let Object = global.Object;
|
|
value = Object.getOwnPropertyDescriptor(a1, value);
|
|
const r4 = value && !('get' in value ? !a1.__esModule : value.writable || value.configurable) ? value : {enumerable: true,
|
|
get: function() {
|
|
return require[importDefault];
|
|
}};
|
|
Object = global.Object;
|
|
Object.defineProperty(a0, r5, r4);
|
|
}
|
|
|
|
function useLatestCallback(a0) { // fn#17342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1660:865, offset: 0x00e6a63c, size: 77 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
let binding = env0_2;
|
|
let useRef = binding.useRef;
|
|
const env0_1 = Reflect.apply(useRef, binding, [a0]);
|
|
binding = env0_2;
|
|
useRef = binding.useRef;
|
|
const current = Reflect.apply(useRef, binding, [latestCallback]).current;
|
|
env0_3.default(_fun17344);
|
|
return current;
|
|
}
|
|
|
|
function latestCallback() { // fn#17343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1660:925, owner: useLatestCallback.latestCallback, offset: 0x00e6a689, size: 64 bytes, params: 1, frame: 13
|
|
var r1;
|
|
const items2 = [];
|
|
let value = 0;
|
|
if (value < arguments.length) {
|
|
for (r1 = value; true; r1 = value) {
|
|
items2[r1] = arguments[r1];
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value < arguments.length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return env0_1.current.apply(this, items2);
|
|
}
|
|
|