Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

+224
View File
@@ -0,0 +1,224 @@
/* Metro module 9347; source: modules/oauth2/actions.tsx; dependencies: [5, 1379, 1934, 661, 507, 5076, 484, 2] */
function _fun72994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:6, offset: 0x01d5bf0e, size: 386 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = getLocationContextServer;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_6 = constantsModule.ChannelTypes;
const env0_7 = constantsModule.Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/oauth2/actions.tsx');
exports.getLocationContextServer = closure;
exports.acceptWhitelist = function(a0) {
var HTTP = require(dependencyMap[4]).HTTP;
return HTTP.post({url: Endpoints.OAUTH2_WHITELIST_ACCEPT, query: {token: a0}, oldFormErrors: true,
rejectWithError: false});
};
exports.authorize = function() {
return _authorize.apply(this, arguments);
};
exports.fetchAuthorization = function() {
return _fetchAuthorization.apply(this, arguments);
};
exports.startSamsungAuthorization = function() {
return _startSamsungAuthorization.apply(this, arguments);
};
exports.fetchChannels = function() {
return _fetchChannels.apply(this, arguments);
};
exports.logoutWithRedirect = logoutWithRedirect;
exports.verifyUserCode = function() {
return _verifyUserCode.apply(this, arguments);
};
exports.finishUserCode = function() {
return _finishUserCode.apply(this, arguments);
};
exports.finishUserCodeTwoWayLinkError = function() {
return _finishUserCodeTwoWayLinkError.apply(this, arguments);
};
}
function getLocationContextServer() { // fn#72995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:167, offset: 0x01d5c090, size: 136 bytes, params: 1, frame: 17
const basicChannel = ChannelStore.getBasicChannel(SelectedChannelStore.getChannelId());
const value4 = undefined;
const guild_id = basicChannel == null ? value4 : basicChannel.guild_id;
const value5 = '10000';
return {guild_id: guild_id ?? value5, channel_id: (basicChannel == null ? value4 : basicChannel.id) ?? value5,
channel_type: (basicChannel == null ? value4 : basicChannel.type) ?? ChannelTypes.UNKNOWN};
}
function _authorize() { // fn#72996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:426, offset: 0x01d5c118, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun72998).apply(this, arguments);
}
function _fetchAuthorization() { // fn#72999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:1157, offset: 0x01d5c2ca, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun73001).apply(this, arguments);
}
function _startSamsungAuthorization() { // fn#73002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:1705, offset: 0x01d5c41b, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun73004).apply(this, arguments);
}
function _fetchChannels() { // fn#73005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:1997, offset: 0x01d5c4fa, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun73007).apply(this, arguments);
}
function _verifyUserCode() { // fn#73008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2221, offset: 0x01d5c5a9, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun73010).apply(this, arguments);
}
function _finishUserCode() { // fn#73011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2412, offset: 0x01d5c64d, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun73013).apply(this, arguments);
}
function _finishUserCodeTwoWayLinkError() { // fn#73014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2614, offset: 0x01d5c6f9, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun73016).apply(this, arguments);
}
function logoutWithRedirect({pathname, search}, a1) { // fn#73022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:3568, offset: 0x01d5c814, size: 91 bytes, params: 3, frame: 16
const defaultImport = importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */;
const logout = defaultImport.logout;
let value = require(484) /* metro dependency 484: PathUtils */;
value = value.getLoginPath(pathname + search, false);
Reflect.apply(logout, defaultImport, [a1, value]);
}
async function _fun72998({authorize, clientId, scopes, responseType, redirectUri, codeChallenge, codeChallengeMethod, state, permissions, guildId, channelId, integrationType, connectedAccountProvider, nonce}) { // fn#72998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:469, offset: 0x01d5c15e, size: 364 bytes, params: 2, frame: 30
if (false) {
return undefined;
}
value = undefined;
await value;
if (false) {
return undefined;
}
const HTTP = env2_0(env2_2[4]).HTTP;
const post = HTTP.post;
const object4 = {};
const OAUTH2_AUTHORIZE = env2_7.OAUTH2_AUTHORIZE;
object4.url = OAUTH2_AUTHORIZE;
const object5 = {client_id: clientId, response_type: responseType, redirect_uri: redirectUri,
code_challenge: codeChallenge, code_challenge_method: codeChallengeMethod};
object5.scope = scopes.join(' ');
object5.state = state;
object5.nonce = nonce;
object4.query = object5;
const object6 = {guild_id: guildId};
object6.webhook_channel_id = guildId != null && channelId != null ? channelId : value;
object6.channel_id = guildId == null && channelId != null ? channelId : value;
object6.permissions = permissions;
object6.authorize = authorize;
object6.integration_type = integrationType;
object6.connected_account_provider = connectedAccountProvider;
object6.location_context = env2_8();
object4.body = object6;
object4.oldFormErrors = true;
object4.rejectWithError = false;
await Reflect.apply(post, HTTP, [object4]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
async function _fun73001({clientId, scopes, responseType, redirectUri, codeChallenge, codeChallengeMethod, state, integrationType, connectedAccountProvider, nonce, signal}) { // fn#73001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:1218, offset: 0x01d5c310, size: 267 bytes, params: 2, frame: 26
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[4]).HTTP;
const get = HTTP.get;
const object3 = {'url': null, 'query': null, 'signal': null, 'retries': 3, 'oldFormErrors': true,
'rejectWithError': false};
const OAUTH2_AUTHORIZE = env2_7.OAUTH2_AUTHORIZE;
object3.url = OAUTH2_AUTHORIZE;
const object4 = {client_id: clientId, response_type: responseType, redirect_uri: redirectUri,
code_challenge: codeChallenge, code_challenge_method: codeChallengeMethod};
object4.scope = scopes.join(' ');
object4.state = state;
object4.integration_type = integrationType;
object4.connected_account_provider = connectedAccountProvider;
object4.nonce = nonce;
object3.query = object4;
object3.signal = signal;
await Reflect.apply(get, HTTP, [object3]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
function* _fun73004(a0, a1, a2, a3, a4) { // fn#73004, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:1780, offset: 0x01d5c458, size: 162 bytes, params: 6, frame: 17
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[4]).HTTP;
var get = HTTP.get;
var object3 = {};
var OAUTH2_AUTHORIZE_SAMSUNG = env2_7.OAUTH2_AUTHORIZE_SAMSUNG;
object3.url = OAUTH2_AUTHORIZE_SAMSUNG;
var object4 = {client_id: a0, state: a4, response_type: a2, redirect_uri: a3, prompt: 'consent'};
object4.scope = a1.join(' ');
object3.query = object4;
object3.rejectWithError = false;
yield Reflect.apply(get, HTTP, [object3]);
}
}
function* _fun73007(a0) { // fn#73007, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2048, offset: 0x01d5c537, size: 114 bytes, params: 2, frame: 14
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[4]).HTTP;
const get = HTTP.get;
const OAUTH2_AUTHORIZE_WEBHOOK_CHANNELS = env2_7.OAUTH2_AUTHORIZE_WEBHOOK_CHANNELS;
yield Reflect.apply(get, HTTP, [{url: OAUTH2_AUTHORIZE_WEBHOOK_CHANNELS, query: {guild_id: a0}, oldFormErrors: true,
rejectWithError: false}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
function* _fun73010(a0) { // fn#73010, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2274, offset: 0x01d5c5e6, size: 103 bytes, params: 2, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[4]).HTTP;
var post = HTTP.post;
var OAUTH2_DEVICE_VERIFY = env2_7.OAUTH2_DEVICE_VERIFY;
yield Reflect.apply(post, HTTP, [{url: OAUTH2_DEVICE_VERIFY, body: {user_code: a0}, rejectWithError: false}]);
}
}
function* _fun73013(a0, a1) { // fn#73013, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2465, offset: 0x01d5c68a, size: 111 bytes, params: 3, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[4]).HTTP;
var post = HTTP.post;
var OAUTH2_DEVICE_FINISH = env2_7.OAUTH2_DEVICE_FINISH;
yield Reflect.apply(post, HTTP, [{url: OAUTH2_DEVICE_FINISH, body: {user_code: a0, result: a1},
rejectWithError: false}]);
}
}
function* _fun73016(a0, a1, a2) { // fn#73016, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9533:2697, offset: 0x01d5c736, size: 135 bytes, params: 4, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var HTTP = env2_0(env2_2[4]).HTTP;
var post = HTTP.post;
var OAUTH2_DEVICE_FINISH = env2_7.OAUTH2_DEVICE_FINISH;
yield Reflect.apply(post, HTTP, [{url: OAUTH2_DEVICE_FINISH, body: {user_code: a0, result: 'two_way_link_error',
error_code: a1, error_source: a2}, rejectWithError: false}]);
}
}