Files
2026-07-28 01:06:53 +03:00

331 lines
14 KiB
TypeScript

/* Metro module 11738; source: hooks/useRequest.tsx; dependencies: [5, 57, 31, 1244, 4132, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun89976(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11924:6, offset: 0x02025dd5, size: 153 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('hooks/useRequest.tsx');
exports.default = useRequest;
function useRequest(a0) { // fn#89977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11924:193, offset: 0x02025e6e, size: 150 bytes, params: 2, frame: 21
const env0_0 = a0;
let useState = ReactModule.useState;
const value2 = Reflect.apply(useState, ReactModule, [false]);
const value3 = Module00057(value2, 2);
const property = value3[0];
const env0_1 = value3[1];
useState = ReactModule.useState;
const value4 = Module00057(Reflect.apply(useState, ReactModule, [null]), 2);
const property2 = value4[0];
const env0_2 = value4[1];
const useCallback = ReactModule.useCallback;
let value = Module00005(_fun89979);
value = Reflect.apply(useCallback, ReactModule, [value, [a0]]);
return [value, {loading: property, error: property2}];
async function _fun89979(a0) { // fn#89979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11924:326, offset: 0x02025f18, size: 326 bytes, params: 2, frame: 21
var r2;
var value;
var value2;
var value3;
var value4;
var value5;
var items2;
var value6;
var error;
var message;
var binding;
var binding2;
var property;
var value7;
var intl;
var string;
var value8;
var t;
var N2yb9a;
var value9;
var value10;
var binding3;
var value11;
var value12;
var binding4;
var prototype;
exceptionSkip63: while (true) {
exceptionLanding63: while (true) {
exceptionSkip22: while (true) {
exceptionLanding22: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = copyRestArgs(0, undefined);
await undefined;
value3 = undefined;
value4 = false;
if (value4) {
return value3;
}
value5 = environment.__proto__;
try {
try {
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
dependencyMap(null);
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
importDefault(true);
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
items2 = [];
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
arraySpread(items2, value, 0, undefined);
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value = apply(require, items2, undefined, undefined);
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
await value;
try {
try {
value = undefined;
value6 = false;
} catch (error) {
break exceptionLanding22;
}
} catch (error) {
break exceptionLanding63;
}
if (value6) {
importDefault(false);
return value;
}
importDefault(false);
return value;
break exceptionSkip22;
}
try {
message = error.message;
} catch (error) {
break exceptionLanding63;
}
value = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding63;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding2[3];
} catch (error) {
break exceptionLanding63;
}
try {
value7 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
intl = value7.intl;
} catch (error) {
break exceptionLanding63;
}
try {
string = intl.string;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding2[3];
} catch (error) {
break exceptionLanding63;
}
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
t = value8.t;
} catch (error) {
break exceptionLanding63;
}
try {
N2yb9a = t.N2yb9a;
} catch (error) {
break exceptionLanding63;
}
try {
value9 = Reflect.apply(string, intl, [N2yb9a]);
} catch (error) {
break exceptionLanding63;
}
try {
value10 = message === value9;
} catch (error) {
break exceptionLanding63;
}
if (value10) {
importDefault(false);
return undefined;
}
try {
} catch (error) {
break exceptionLanding63;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding63;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding3[4];
} catch (error) {
break exceptionLanding63;
}
try {
value11 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
value12 = error instanceof value11;
} catch (error) {
break exceptionLanding63;
}
if (value12) {
try {
dependencyMap(error);
} catch (error) {
break exceptionLanding63;
}
importDefault(false);
return undefined;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding63;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[4];
} catch (error) {
break exceptionLanding63;
}
try {
value = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
prototype = value.prototype;
} catch (error) {
break exceptionLanding63;
}
try {
} catch (error) {
break exceptionLanding63;
}
try {
value = new value();
} catch (error) {
break exceptionLanding63;
}
try {
value = value instanceof Object ? value : undefined;
} catch (error) {
break exceptionLanding63;
}
r2 = value;
try {
dependencyMap(r2);
} catch (error) {
break exceptionLanding63;
}
importDefault(false);
return undefined;
break exceptionSkip22;
}
break exceptionSkip63;
}
importDefault(false);
throw error;
break exceptionSkip63;
}
}
}
}
global.__d(_fun89976, 11738, [5, 57, 31, 1244, 4132,
2]) /* metro module 11738, dependencies: [5, 57, 31, 1244, 4132, 2] */;