41 lines
2.3 KiB
TypeScript
41 lines
2.3 KiB
TypeScript
/* Metro module 11068; source: modules/messages/getStickerDiscoverableGuild.tsx; dependencies: [661, 507, 6946, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun84748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11254:6, offset: 0x01f56137, size: 117 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/messages/getStickerDiscoverableGuild.tsx');
|
|
exports.default = _default_84749;
|
|
function _default_84749(a0) { // fn#84749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11254:125, offset: 0x01f561ac, size: 113 bytes, params: 2, frame: 15
|
|
const HTTP = (HTTPUtilsModule).HTTP;
|
|
const get = HTTP.get;
|
|
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object.url = Endpoints.STICKER_GUILD_DATA(a0);
|
|
let value = Reflect.apply(get, HTTP, [object]);
|
|
value = value.then(_fun84750);
|
|
return value.catch(function() {
|
|
return null;
|
|
});
|
|
function _fun84750(a0) { // fn#84750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11254:218, offset: 0x01f5621d, size: 71 bytes, params: 2, frame: 14
|
|
var r0;
|
|
let value = null;
|
|
if (value != (value == a0 ? undefined : a0.body)) {
|
|
value = environment.__proto__;
|
|
value = require(6946) /* metro dependency 6946: GuildDiscoveryUtils */;
|
|
value = value.makeDiscoverableGuild(a0.body);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun84748, 11068, [661, 507, 6946, 2]) /* metro module 11068, dependencies: [661, 507, 6946, 2] */;
|