367 lines
16 KiB
TypeScript
367 lines
16 KiB
TypeScript
/* Metro module 4121; source: modules/oauth2/scopes.tsx; dependencies: [1244, 4122, 2] */
|
|
function _fun34205(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4286:6, offset: 0x0104d16c, size: 1447 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const OAuth2Scopes = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
|
let BOT = OAuth2Scopes.BOT;
|
|
const items2 = [BOT];
|
|
const OPENID = OAuth2Scopes.OPENID;
|
|
items2[1] = OPENID;
|
|
const IDENTIFY = OAuth2Scopes.IDENTIFY;
|
|
items2[2] = IDENTIFY;
|
|
const IDENTIFY_PREMIUM = OAuth2Scopes.IDENTIFY_PREMIUM;
|
|
items2[3] = IDENTIFY_PREMIUM;
|
|
const EMAIL = OAuth2Scopes.EMAIL;
|
|
items2[4] = EMAIL;
|
|
const CONNECTIONS = OAuth2Scopes.CONNECTIONS;
|
|
items2[5] = CONNECTIONS;
|
|
const MESSAGES_READ = OAuth2Scopes.MESSAGES_READ;
|
|
items2[6] = MESSAGES_READ;
|
|
const GUILDS = OAuth2Scopes.GUILDS;
|
|
items2[7] = GUILDS;
|
|
const GUILDS_JOIN = OAuth2Scopes.GUILDS_JOIN;
|
|
items2[8] = GUILDS_JOIN;
|
|
const GUILDS_MEMBERS_READ = OAuth2Scopes.GUILDS_MEMBERS_READ;
|
|
items2[9] = GUILDS_MEMBERS_READ;
|
|
const GUILDS_CHANNELS_READ = OAuth2Scopes.GUILDS_CHANNELS_READ;
|
|
items2[10] = GUILDS_CHANNELS_READ;
|
|
const GDM_JOIN = OAuth2Scopes.GDM_JOIN;
|
|
items2[11] = GDM_JOIN;
|
|
const RPC = OAuth2Scopes.RPC;
|
|
items2[12] = RPC;
|
|
const RPC_NOTIFICATIONS_READ = OAuth2Scopes.RPC_NOTIFICATIONS_READ;
|
|
items2[13] = RPC_NOTIFICATIONS_READ;
|
|
const RPC_VOICE_READ = OAuth2Scopes.RPC_VOICE_READ;
|
|
items2[14] = RPC_VOICE_READ;
|
|
const RPC_VOICE_WRITE = OAuth2Scopes.RPC_VOICE_WRITE;
|
|
items2[15] = RPC_VOICE_WRITE;
|
|
const RPC_VIDEO_READ = OAuth2Scopes.RPC_VIDEO_READ;
|
|
items2[16] = RPC_VIDEO_READ;
|
|
const RPC_VIDEO_WRITE = OAuth2Scopes.RPC_VIDEO_WRITE;
|
|
items2[17] = RPC_VIDEO_WRITE;
|
|
const RPC_SCREENSHARE_READ = OAuth2Scopes.RPC_SCREENSHARE_READ;
|
|
items2[18] = RPC_SCREENSHARE_READ;
|
|
const RPC_SCREENSHARE_WRITE = OAuth2Scopes.RPC_SCREENSHARE_WRITE;
|
|
items2[19] = RPC_SCREENSHARE_WRITE;
|
|
const RPC_ACTIVITIES_WRITE = OAuth2Scopes.RPC_ACTIVITIES_WRITE;
|
|
items2[20] = RPC_ACTIVITIES_WRITE;
|
|
const APPLICATION_IDENTITIES_WRITE = OAuth2Scopes.APPLICATION_IDENTITIES_WRITE;
|
|
items2[21] = APPLICATION_IDENTITIES_WRITE;
|
|
const MANAGED_PLATFORM_APPLICATION_IDENTITIES_WRITE = OAuth2Scopes.MANAGED_PLATFORM_APPLICATION_IDENTITIES_WRITE;
|
|
items2[22] = MANAGED_PLATFORM_APPLICATION_IDENTITIES_WRITE;
|
|
const APPLICATIONS_BUILDS_UPLOAD = OAuth2Scopes.APPLICATIONS_BUILDS_UPLOAD;
|
|
items2[23] = APPLICATIONS_BUILDS_UPLOAD;
|
|
const APPLICATIONS_BUILDS_READ = OAuth2Scopes.APPLICATIONS_BUILDS_READ;
|
|
items2[24] = APPLICATIONS_BUILDS_READ;
|
|
const APPLICATIONS_COMMANDS = OAuth2Scopes.APPLICATIONS_COMMANDS;
|
|
items2[25] = APPLICATIONS_COMMANDS;
|
|
const APPLICATIONS_COMMANDS_UPDATE = OAuth2Scopes.APPLICATIONS_COMMANDS_UPDATE;
|
|
items2[26] = APPLICATIONS_COMMANDS_UPDATE;
|
|
const APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE = OAuth2Scopes.APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE;
|
|
items2[27] = APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE;
|
|
const APPLICATIONS_STORE_UPDATE = OAuth2Scopes.APPLICATIONS_STORE_UPDATE;
|
|
items2[28] = APPLICATIONS_STORE_UPDATE;
|
|
const APPLICATIONS_ENTITLEMENTS = OAuth2Scopes.APPLICATIONS_ENTITLEMENTS;
|
|
items2[29] = APPLICATIONS_ENTITLEMENTS;
|
|
const ACTIVITIES_INVITES_WRITE = OAuth2Scopes.ACTIVITIES_INVITES_WRITE;
|
|
items2[30] = ACTIVITIES_INVITES_WRITE;
|
|
const ACTIVITIES_READ = OAuth2Scopes.ACTIVITIES_READ;
|
|
items2[31] = ACTIVITIES_READ;
|
|
const ACTIVITIES_WRITE = OAuth2Scopes.ACTIVITIES_WRITE;
|
|
items2[32] = ACTIVITIES_WRITE;
|
|
const RELATIONSHIPS_READ = OAuth2Scopes.RELATIONSHIPS_READ;
|
|
items2[33] = RELATIONSHIPS_READ;
|
|
const RELATIONSHIPS_WRITE = OAuth2Scopes.RELATIONSHIPS_WRITE;
|
|
items2[34] = RELATIONSHIPS_WRITE;
|
|
const VOICE = OAuth2Scopes.VOICE;
|
|
items2[35] = VOICE;
|
|
const DM_CHANNELS_READ = OAuth2Scopes.DM_CHANNELS_READ;
|
|
items2[36] = DM_CHANNELS_READ;
|
|
const DM_CHANNELS_MESSAGES_READ = OAuth2Scopes.DM_CHANNELS_MESSAGES_READ;
|
|
items2[37] = DM_CHANNELS_MESSAGES_READ;
|
|
const DM_CHANNELS_MESSAGES_WRITE = OAuth2Scopes.DM_CHANNELS_MESSAGES_WRITE;
|
|
items2[38] = DM_CHANNELS_MESSAGES_WRITE;
|
|
const ROLE_CONNECTIONS_WRITE = OAuth2Scopes.ROLE_CONNECTIONS_WRITE;
|
|
items2[39] = ROLE_CONNECTIONS_WRITE;
|
|
const PRESENCES_READ = OAuth2Scopes.PRESENCES_READ;
|
|
items2[40] = PRESENCES_READ;
|
|
const PRESENCES_WRITE = OAuth2Scopes.PRESENCES_WRITE;
|
|
items2[41] = PRESENCES_WRITE;
|
|
const GATEWAY_CONNECT = OAuth2Scopes.GATEWAY_CONNECT;
|
|
items2[42] = GATEWAY_CONNECT;
|
|
const PAYMENT_SOURCES_COUNTRY_CODE = OAuth2Scopes.PAYMENT_SOURCES_COUNTRY_CODE;
|
|
items2[43] = PAYMENT_SOURCES_COUNTRY_CODE;
|
|
const SDK_SOCIAL_LAYER_PRESENCE = OAuth2Scopes.SDK_SOCIAL_LAYER_PRESENCE;
|
|
items2[44] = SDK_SOCIAL_LAYER_PRESENCE;
|
|
const SDK_SOCIAL_LAYER = OAuth2Scopes.SDK_SOCIAL_LAYER;
|
|
items2[45] = SDK_SOCIAL_LAYER;
|
|
const concat = items2.concat;
|
|
const WEBHOOK_INCOMING = OAuth2Scopes.WEBHOOK_INCOMING;
|
|
BOT = OAuth2Scopes.BOT;
|
|
const value = Reflect.apply(concat, items2, [[WEBHOOK_INCOMING, BOT]]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/oauth2/scopes.tsx');
|
|
exports.FAKE_SCOPES = [function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t['6xfSCq']);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.ymSk0r);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.EnN7c5);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t['4wMpBs']);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.CncpnK);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.X9pGvJ);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.sGOSG4);
|
|
}, function() {
|
|
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.JfibUq);
|
|
}];
|
|
exports.OrderedAccountScopes = items2;
|
|
exports.ValidScopes = value;
|
|
exports.RemovedScopes = ['rpc.api'];
|
|
exports.getScopeNames = getScopeNames;
|
|
exports.isSocialLayerUmbrellaScope = isSocialLayerUmbrellaScope;
|
|
exports.getSecurityMessage = getSecurityMessage;
|
|
}
|
|
|
|
function getScopeNames(a0, a1) { // fn#34214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4286:2526, offset: 0x0104d90b, size: 5309 bytes, params: 3, frame: 19
|
|
var items2;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
var value4;
|
|
const OAuth2Scopes = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
|
const IDENTIFY = OAuth2Scopes.IDENTIFY;
|
|
if (IDENTIFY === a0) {
|
|
return [intl.string(t.DD9KQh)];
|
|
}
|
|
const IDENTIFY_PREMIUM = OAuth2Scopes.IDENTIFY_PREMIUM;
|
|
if (IDENTIFY_PREMIUM === a0) {
|
|
return [intl.string(t.xhQsxx)];
|
|
}
|
|
const OPENID = OAuth2Scopes.OPENID;
|
|
if (OPENID === a0) {
|
|
return [intl.string(t.R5IKv1)];
|
|
}
|
|
const EMAIL = OAuth2Scopes.EMAIL;
|
|
if (EMAIL === a0) {
|
|
return [intl.string(t.rvFS2t)];
|
|
}
|
|
const BOT = OAuth2Scopes.BOT;
|
|
if (BOT === a0) {
|
|
return [intl.string(t.pRpdox)];
|
|
}
|
|
const CONNECTIONS = OAuth2Scopes.CONNECTIONS;
|
|
if (CONNECTIONS === a0) {
|
|
return [intl.string(t['1AwaU1'])];
|
|
}
|
|
const MESSAGES_READ = OAuth2Scopes.MESSAGES_READ;
|
|
if (MESSAGES_READ === a0) {
|
|
return [intl.string(t.jVXrHb)];
|
|
}
|
|
const GUILDS = OAuth2Scopes.GUILDS;
|
|
if (GUILDS === a0) {
|
|
return [intl.string(t.QKGJkC)];
|
|
}
|
|
const GUILDS_JOIN = OAuth2Scopes.GUILDS_JOIN;
|
|
if (GUILDS_JOIN === a0) {
|
|
return [intl.string(t.ETGDR9)];
|
|
}
|
|
const GUILDS_MEMBERS_READ = OAuth2Scopes.GUILDS_MEMBERS_READ;
|
|
if (GUILDS_MEMBERS_READ === a0) {
|
|
value4 = a1.includes(OAuth2Scopes.VOICE);
|
|
string = intl.string;
|
|
return value4 ? [Reflect.apply(string, intl, [t.OSvmfH])] : [Reflect.apply(string, intl, [t.o6M1aS])];
|
|
}
|
|
const GUILDS_CHANNELS_READ = OAuth2Scopes.GUILDS_CHANNELS_READ;
|
|
if (GUILDS_CHANNELS_READ === a0) {
|
|
return [intl.string(t.BWGAgt)];
|
|
}
|
|
const GDM_JOIN = OAuth2Scopes.GDM_JOIN;
|
|
if (GDM_JOIN === a0) {
|
|
return [intl.string(t['55B4wA'])];
|
|
}
|
|
const RPC = OAuth2Scopes.RPC;
|
|
if (RPC === a0) {
|
|
return [intl.string(t.EDBEeK)];
|
|
}
|
|
const RPC_NOTIFICATIONS_READ = OAuth2Scopes.RPC_NOTIFICATIONS_READ;
|
|
if (RPC_NOTIFICATIONS_READ === a0) {
|
|
return [intl.string(t['6kDHWV'])];
|
|
}
|
|
const RPC_VOICE_WRITE = OAuth2Scopes.RPC_VOICE_WRITE;
|
|
if (RPC_VOICE_WRITE === a0) {
|
|
return [intl.string(t['531s7c'])];
|
|
}
|
|
const RPC_VIDEO_READ = OAuth2Scopes.RPC_VIDEO_READ;
|
|
if (RPC_VIDEO_READ === a0) {
|
|
return [intl.string(t.zbUSWO)];
|
|
}
|
|
const RPC_VIDEO_WRITE = OAuth2Scopes.RPC_VIDEO_WRITE;
|
|
if (RPC_VIDEO_WRITE === a0) {
|
|
return [intl.string(t['y+MdAM'])];
|
|
}
|
|
const RPC_SCREENSHARE_READ = OAuth2Scopes.RPC_SCREENSHARE_READ;
|
|
if (RPC_SCREENSHARE_READ === a0) {
|
|
return [intl.string(t.b0i0CO)];
|
|
}
|
|
const RPC_SCREENSHARE_WRITE = OAuth2Scopes.RPC_SCREENSHARE_WRITE;
|
|
if (RPC_SCREENSHARE_WRITE === a0) {
|
|
return [intl.string(t['9Rmxux'])];
|
|
}
|
|
const RPC_VOICE_READ = OAuth2Scopes.RPC_VOICE_READ;
|
|
if (RPC_VOICE_READ === a0) {
|
|
return [intl.string(t.rznmpz)];
|
|
}
|
|
const RPC_ACTIVITIES_WRITE = OAuth2Scopes.RPC_ACTIVITIES_WRITE;
|
|
if (RPC_ACTIVITIES_WRITE === a0) {
|
|
return [intl.string(t.KQwJDf)];
|
|
}
|
|
const APPLICATIONS_BUILDS_UPLOAD = OAuth2Scopes.APPLICATIONS_BUILDS_UPLOAD;
|
|
if (APPLICATIONS_BUILDS_UPLOAD === a0) {
|
|
return [intl.string(t.Iwbtgk)];
|
|
}
|
|
const APPLICATIONS_BUILDS_READ = OAuth2Scopes.APPLICATIONS_BUILDS_READ;
|
|
if (APPLICATIONS_BUILDS_READ === a0) {
|
|
return [intl.string(t.ZkZCCW)];
|
|
}
|
|
const APPLICATIONS_COMMANDS = OAuth2Scopes.APPLICATIONS_COMMANDS;
|
|
if (APPLICATIONS_COMMANDS === a0) {
|
|
return [intl.string(t.H4q49X)];
|
|
}
|
|
const APPLICATIONS_COMMANDS_UPDATE = OAuth2Scopes.APPLICATIONS_COMMANDS_UPDATE;
|
|
if (APPLICATIONS_COMMANDS_UPDATE === a0) {
|
|
return [intl.string(t.mxeq6u)];
|
|
}
|
|
const APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE = OAuth2Scopes.APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE;
|
|
if (APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE === a0) {
|
|
return [intl.string(t['7SIoW7'])];
|
|
}
|
|
const APPLICATIONS_STORE_UPDATE = OAuth2Scopes.APPLICATIONS_STORE_UPDATE;
|
|
if (APPLICATIONS_STORE_UPDATE === a0) {
|
|
return [intl.string(t['Rba/Xn'])];
|
|
}
|
|
const APPLICATIONS_ENTITLEMENTS = OAuth2Scopes.APPLICATIONS_ENTITLEMENTS;
|
|
if (APPLICATIONS_ENTITLEMENTS === a0) {
|
|
return [intl.string(t.xeNgGI)];
|
|
}
|
|
const ACTIVITIES_READ = OAuth2Scopes.ACTIVITIES_READ;
|
|
if (ACTIVITIES_READ === a0) {
|
|
return [intl.string(t['4+tSce'])];
|
|
}
|
|
const ACTIVITIES_WRITE = OAuth2Scopes.ACTIVITIES_WRITE;
|
|
if (ACTIVITIES_WRITE === a0) {
|
|
return [intl.string(t['6OsWXX'])];
|
|
}
|
|
const RELATIONSHIPS_READ = OAuth2Scopes.RELATIONSHIPS_READ;
|
|
if (RELATIONSHIPS_READ === a0) {
|
|
return [intl.string(t['521/7W'])];
|
|
}
|
|
const RELATIONSHIPS_WRITE = OAuth2Scopes.RELATIONSHIPS_WRITE;
|
|
if (RELATIONSHIPS_WRITE === a0) {
|
|
return [intl.string(t['qR/txQ'])];
|
|
}
|
|
const VOICE = OAuth2Scopes.VOICE;
|
|
if (VOICE === a0) {
|
|
return [intl.string(t.XK5zdO)];
|
|
}
|
|
const DM_CHANNELS_READ = OAuth2Scopes.DM_CHANNELS_READ;
|
|
if (DM_CHANNELS_READ === a0) {
|
|
return [intl.string(t.w8emlT)];
|
|
}
|
|
const ROLE_CONNECTIONS_WRITE = OAuth2Scopes.ROLE_CONNECTIONS_WRITE;
|
|
if (ROLE_CONNECTIONS_WRITE === a0) {
|
|
return [intl.string(t.Bv0wZj)];
|
|
}
|
|
const PRESENCES_READ = OAuth2Scopes.PRESENCES_READ;
|
|
if (PRESENCES_READ === a0) {
|
|
return [intl.string(t.JUWeyf)];
|
|
}
|
|
const PRESENCES_WRITE = OAuth2Scopes.PRESENCES_WRITE;
|
|
if (PRESENCES_WRITE === a0) {
|
|
return [intl.string(t.apHLwv)];
|
|
}
|
|
const DM_CHANNELS_MESSAGES_READ = OAuth2Scopes.DM_CHANNELS_MESSAGES_READ;
|
|
if (DM_CHANNELS_MESSAGES_READ === a0) {
|
|
return [intl.string(t.FHeB8p)];
|
|
}
|
|
const DM_CHANNELS_MESSAGES_WRITE = OAuth2Scopes.DM_CHANNELS_MESSAGES_WRITE;
|
|
if (DM_CHANNELS_MESSAGES_WRITE === a0) {
|
|
return [intl.string(t['mdh+xY'])];
|
|
}
|
|
const GATEWAY_CONNECT = OAuth2Scopes.GATEWAY_CONNECT;
|
|
if (GATEWAY_CONNECT === a0) {
|
|
return [intl.string(t['uJd+85'])];
|
|
}
|
|
const PAYMENT_SOURCES_COUNTRY_CODE = OAuth2Scopes.PAYMENT_SOURCES_COUNTRY_CODE;
|
|
if (PAYMENT_SOURCES_COUNTRY_CODE === a0) {
|
|
return [intl.string(t.hycwLK)];
|
|
}
|
|
const ACTIVITIES_INVITES_WRITE = OAuth2Scopes.ACTIVITIES_INVITES_WRITE;
|
|
if (ACTIVITIES_INVITES_WRITE === a0) {
|
|
return [intl.string(t.IM4Cje)];
|
|
}
|
|
const APPLICATION_IDENTITIES_WRITE = OAuth2Scopes.APPLICATION_IDENTITIES_WRITE;
|
|
if (APPLICATION_IDENTITIES_WRITE === a0) {
|
|
return [intl.string(t['1zioRF'])];
|
|
}
|
|
const MANAGED_PLATFORM_APPLICATION_IDENTITIES_WRITE = OAuth2Scopes.MANAGED_PLATFORM_APPLICATION_IDENTITIES_WRITE;
|
|
if (MANAGED_PLATFORM_APPLICATION_IDENTITIES_WRITE === a0) {
|
|
return [intl.string(t['4l1DWw'])];
|
|
}
|
|
const SDK_SOCIAL_LAYER_PRESENCE = OAuth2Scopes.SDK_SOCIAL_LAYER_PRESENCE;
|
|
if (SDK_SOCIAL_LAYER_PRESENCE === a0) {
|
|
string = intl.string;
|
|
items2 = [Reflect.apply(string, intl, [t.Pl1dTW])];
|
|
string = intl.string;
|
|
items2[1] = Reflect.apply(string, intl, [t.mPRcyT]);
|
|
string = intl.string;
|
|
items2[2] = Reflect.apply(string, intl, [t.F7J4NE]);
|
|
string = intl.string;
|
|
items2[3] = Reflect.apply(string, intl, [t.syJLx9]);
|
|
if (!a1.includes(OAuth2Scopes.APPLICATION_IDENTITIES_WRITE)) {
|
|
items2.push(intl.string(t['1zioRF']));
|
|
}
|
|
return items2;
|
|
}
|
|
const SDK_SOCIAL_LAYER = OAuth2Scopes.SDK_SOCIAL_LAYER;
|
|
if (SDK_SOCIAL_LAYER === a0) {
|
|
string = intl.string;
|
|
items2 = [Reflect.apply(string, intl, [t.Pl1dTW])];
|
|
string = intl.string;
|
|
items2[1] = Reflect.apply(string, intl, [t['hc/+yg']]);
|
|
string = intl.string;
|
|
items2[2] = Reflect.apply(string, intl, [t.mPRcyT]);
|
|
string = intl.string;
|
|
items2[3] = Reflect.apply(string, intl, [t.F7J4NE]);
|
|
string = intl.string;
|
|
items2[4] = Reflect.apply(string, intl, [t['2wxXX9']]);
|
|
if (!a1.includes(OAuth2Scopes.APPLICATION_IDENTITIES_WRITE)) {
|
|
items2.push(intl.string(t['1zioRF']));
|
|
}
|
|
return items2;
|
|
}
|
|
return [a0];
|
|
}
|
|
|
|
function isSocialLayerUmbrellaScope(a0) { // fn#34215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4286:7444, offset: 0x0104edc8, size: 82 bytes, params: 2, frame: 14
|
|
const OAuth2Scopes = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
|
const SDK_SOCIAL_LAYER_PRESENCE = OAuth2Scopes.SDK_SOCIAL_LAYER_PRESENCE;
|
|
return a0 === SDK_SOCIAL_LAYER_PRESENCE || a0 === OAuth2Scopes.SDK_SOCIAL_LAYER;
|
|
}
|
|
|
|
function getSecurityMessage(a0) { // fn#34216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4286:7606, offset: 0x0104ee1a, size: 368 bytes, params: 2, frame: 17
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const includes = a0.includes;
|
|
const OAuth2Scopes = (require(4122) /* metro dependency 4122: OAuth2Scopes */).OAuth2Scopes;
|
|
const DM_CHANNELS_MESSAGES_WRITE = OAuth2Scopes.DM_CHANNELS_MESSAGES_WRITE;
|
|
return Reflect.apply(includes, a0,
|
|
[DM_CHANNELS_MESSAGES_WRITE]) || a0.includes(OAuth2Scopes.SDK_SOCIAL_LAYER) ? intl.format(t.o0GMBD,
|
|
{}) : a0.includes(OAuth2Scopes.MESSAGES_READ) || a0.includes(OAuth2Scopes.DM_CHANNELS_MESSAGES_READ) ? intl.format(t.Soy7jJ,
|
|
{}) : intl.format(t['TeL+Ct'], {});
|
|
}
|
|
|