890 lines
55 KiB
TypeScript
890 lines
55 KiB
TypeScript
/* Metro module 5043; source: modules/connections/ConnectionsUtils.tsx; dependencies: [1938, 1867, 3784, 5044, 661, 1471, 44, 1244, 22, 5045, 566, 3968, 1365, 2] */
|
|
import Module00022 from '../../by-id/module-00022.js'; /* Metro dependency 22 */
|
|
import URLUtils from '../../utils/URLUtils.tsx'; /* Metro dependency 1471 */
|
|
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import GuildRoleStore from '../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
|
|
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
|
|
import GetConnectionsRoles from '../channel/getConnectionsRoles.tsx'; /* Metro dependency 5045 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
|
|
import * as DismissibleContentUnsafeUtilsModule from '../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
|
|
import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 5044 */
|
|
|
|
function _fun43671(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:6, offset: 0x01158b2d, size: 321 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ConstantsModule;
|
|
const env0_6 = value.MetadataFields;
|
|
const env0_7 = value.OperatorTypes;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_8 = value.Permissions;
|
|
const env0_9 = value.PlatformTypes;
|
|
object = {AND: 0};
|
|
object[0] = 'AND';
|
|
object.OR = 1;
|
|
object[1] = 'OR';
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/connections/ConnectionsUtils.tsx');
|
|
exports.officialApplicationIds = ['426537812993638400', '1042836142560645130', '296023718839451649',
|
|
'979802510766268446', '1031611223235637258', '512333785338216465'];
|
|
exports.ConnectionConfigurationRuleOperator = object;
|
|
exports.getCallbackParamsFromURL = getCallbackParamsFromURL;
|
|
exports.getConnectionsCheckText = getConnectionsCheckText;
|
|
exports.isVerifiedRolesChannelVisible = function(a0) {
|
|
return a0.some(_fun43701);
|
|
};
|
|
exports.getVisibleConnectionsRole = getVisibleConnectionsRole;
|
|
exports.getCreatedAtDate = function(a0, a1) {
|
|
var value = null;
|
|
if (value == a0) {
|
|
return value;
|
|
}
|
|
if (a0 === '') {
|
|
return value;
|
|
}
|
|
var value3 = new global.Date(a0);
|
|
return value3 instanceof global.Date ? global.isNaN(value3.getTime()) ? value : value3.toLocaleDateString(a1,
|
|
{'month': 'short', 'day': 'numeric', 'year': 'numeric'}) : value;
|
|
};
|
|
exports.useShowLinkedRolesAdminNux = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[10]).useStateFromStores([GuildRoleStore, PermissionStore], _fun43706);
|
|
};
|
|
function getCallbackParamsFromURL(a0) { // fn#43672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:574, offset: 0x01158c6e, size: 321 bytes, params: 2, frame: 21
|
|
var r0;
|
|
var URLSearchParams;
|
|
var value3;
|
|
var uRLSearchParams;
|
|
const value2 = (URLUtils).toURLSafe(a0);
|
|
if (value2 != null) {
|
|
r0 = value2;
|
|
} else {
|
|
URLSearchParams = global.URLSearchParams;
|
|
value3 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
|
|
uRLSearchParams = new URLSearchParams();
|
|
r0 = {searchParams: uRLSearchParams instanceof Object ? uRLSearchParams : value3};
|
|
}
|
|
const searchParams = r0.searchParams;
|
|
const Object = global.Object;
|
|
const {code, state, error, error_description} = Object.fromEntries(searchParams);
|
|
let value = importDefault(44) /* metro dependency 44 */;
|
|
let Array = global.Array;
|
|
value(!Array.isArray(code), 'Received multiple query param values for code');
|
|
value = importDefault(44) /* metro dependency 44 */;
|
|
Array = global.Array;
|
|
value(!Array.isArray(state), 'Received multiple query param values for state');
|
|
value = importDefault(44) /* metro dependency 44 */;
|
|
Array = global.Array;
|
|
value(!Array.isArray(error), 'Received multiple query param values for error');
|
|
value = importDefault(44) /* metro dependency 44 */;
|
|
Array = global.Array;
|
|
value(!Array.isArray(error_description), 'Received multiple query param values for error_description');
|
|
return {code: code, state: state, error: error, errorDescription: error_description};
|
|
}
|
|
|
|
function getConnectionsCheckText({connectionType, connectionMetadataField, operator, operatorText, value}) { // fn#43673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:1170, offset: 0x01158daf, size: 2352 bytes, params: 2, frame: 24
|
|
var r4;
|
|
const t = (IndexNativeModule).t;
|
|
var wCVDHn;
|
|
var property;
|
|
var H97H4S;
|
|
var PAYPAL;
|
|
const intl = (IndexNativeModule).intl;
|
|
const Math = global.Math;
|
|
const round = Math.round;
|
|
const Number = global.Number;
|
|
value = Reflect.apply(round, Math, [Number(value)]);
|
|
var env0_0;
|
|
const EQUAL = OperatorTypes.EQUAL;
|
|
if (EQUAL === operator) {
|
|
H97H4S = t.H97H4S;
|
|
PAYPAL = PlatformTypes.PAYPAL;
|
|
r4 = connectionType === PAYPAL && connectionMetadataField === MetadataFields.PAYPAL_VERIFIED ? t['N95b+f'] : H97H4S;
|
|
r4 = operatorText ?? r4;
|
|
if (r4 == null) {
|
|
return r4;
|
|
}
|
|
if (operator == null) {
|
|
return r4;
|
|
}
|
|
if (PlatformTypes.REDDIT === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43674});
|
|
}
|
|
if (MetadataFields.REDDIT_TOTAL_KARMA === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43675});
|
|
}
|
|
if (MetadataFields.REDDIT_GOLD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: function() {
|
|
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t['+/5TCx']);
|
|
}});
|
|
}
|
|
if (MetadataFields.REDDIT_MOD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43677});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.STEAM === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43678});
|
|
}
|
|
if (MetadataFields.STEAM_GAME_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43679});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_TF2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43680});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_DOTA2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43681});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.BLUESKY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43682});
|
|
}
|
|
if (MetadataFields.BLUESKY_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43683});
|
|
}
|
|
if (MetadataFields.BLUESKY_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43684});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TWITTER === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43685});
|
|
}
|
|
if (MetadataFields.TWITTER_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43686});
|
|
}
|
|
if (MetadataFields.TWITTER_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43687});
|
|
}
|
|
if (MetadataFields.TWITTER_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43688});
|
|
}
|
|
return null;
|
|
}
|
|
PAYPAL = PlatformTypes.PAYPAL;
|
|
if (PAYPAL === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43689});
|
|
}
|
|
if (MetadataFields.PAYPAL_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43690});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.EBAY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43691});
|
|
}
|
|
if (MetadataFields.EBAY_TOP_RATED_SELLER === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43692});
|
|
}
|
|
if (MetadataFields.EBAY_POSITIVE_FEEDBACK_PERCENTAGE === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43693});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_POSITIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43694});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_NEGATIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43695});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TIKTOK === connectionType) {
|
|
if (MetadataFields.TIKTOK_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43696});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWER_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43697});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWING_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43698});
|
|
}
|
|
if (MetadataFields.TIKTOK_LIKES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook});
|
|
}
|
|
return null;
|
|
}
|
|
} else {
|
|
var NOT_EQUAL = OperatorTypes.NOT_EQUAL;
|
|
if (NOT_EQUAL === operator) {
|
|
r4 = t['D9B/q2'];
|
|
r4 = operatorText ?? r4;
|
|
if (r4 == null) {
|
|
return r4;
|
|
}
|
|
if (operator == null) {
|
|
return r4;
|
|
}
|
|
if (PlatformTypes.REDDIT === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43674});
|
|
}
|
|
if (MetadataFields.REDDIT_TOTAL_KARMA === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43675});
|
|
}
|
|
if (MetadataFields.REDDIT_GOLD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: function() {
|
|
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t['+/5TCx']);
|
|
}});
|
|
}
|
|
if (MetadataFields.REDDIT_MOD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43677});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.STEAM === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43678});
|
|
}
|
|
if (MetadataFields.STEAM_GAME_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43679});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_TF2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43680});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_DOTA2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43681});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.BLUESKY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43682});
|
|
}
|
|
if (MetadataFields.BLUESKY_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43683});
|
|
}
|
|
if (MetadataFields.BLUESKY_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43684});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TWITTER === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43685});
|
|
}
|
|
if (MetadataFields.TWITTER_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43686});
|
|
}
|
|
if (MetadataFields.TWITTER_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43687});
|
|
}
|
|
if (MetadataFields.TWITTER_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43688});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.PAYPAL === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43689});
|
|
}
|
|
if (MetadataFields.PAYPAL_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43690});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.EBAY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43691});
|
|
}
|
|
if (MetadataFields.EBAY_TOP_RATED_SELLER === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43692});
|
|
}
|
|
if (MetadataFields.EBAY_POSITIVE_FEEDBACK_PERCENTAGE === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43693});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_POSITIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43694});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_NEGATIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43695});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TIKTOK === connectionType) {
|
|
if (MetadataFields.TIKTOK_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43696});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWER_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43697});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWING_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43698});
|
|
}
|
|
if (MetadataFields.TIKTOK_LIKES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook});
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
var LESS_THAN = OperatorTypes.LESS_THAN;
|
|
if (LESS_THAN === operator) {
|
|
property = t['3ru8/N'];
|
|
env0_0 = global.Math.max(0, value - 1);
|
|
r4 = property;
|
|
r4 = operatorText ?? r4;
|
|
if (r4 == null) {
|
|
return r4;
|
|
}
|
|
if (operator == null) {
|
|
return r4;
|
|
}
|
|
if (PlatformTypes.REDDIT === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43674});
|
|
}
|
|
if (MetadataFields.REDDIT_TOTAL_KARMA === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43675});
|
|
}
|
|
if (MetadataFields.REDDIT_GOLD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: function() {
|
|
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t['+/5TCx']);
|
|
}});
|
|
}
|
|
if (MetadataFields.REDDIT_MOD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43677});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.STEAM === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43678});
|
|
}
|
|
if (MetadataFields.STEAM_GAME_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43679});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_TF2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43680});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_DOTA2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43681});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.BLUESKY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43682});
|
|
}
|
|
if (MetadataFields.BLUESKY_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43683});
|
|
}
|
|
if (MetadataFields.BLUESKY_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43684});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TWITTER === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43685});
|
|
}
|
|
if (MetadataFields.TWITTER_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43686});
|
|
}
|
|
if (MetadataFields.TWITTER_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43687});
|
|
}
|
|
if (MetadataFields.TWITTER_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43688});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.PAYPAL === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43689});
|
|
}
|
|
if (MetadataFields.PAYPAL_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43690});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.EBAY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43691});
|
|
}
|
|
if (MetadataFields.EBAY_TOP_RATED_SELLER === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43692});
|
|
}
|
|
if (MetadataFields.EBAY_POSITIVE_FEEDBACK_PERCENTAGE === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43693});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_POSITIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43694});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_NEGATIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43695});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TIKTOK === connectionType) {
|
|
if (MetadataFields.TIKTOK_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43696});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWER_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43697});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWING_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43698});
|
|
}
|
|
if (MetadataFields.TIKTOK_LIKES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook});
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
var GREATER_THAN = OperatorTypes.GREATER_THAN;
|
|
if (GREATER_THAN === operator) {
|
|
wCVDHn = t.wCVDHn;
|
|
env0_0 = global.Math.max(0, value + 1);
|
|
r4 = wCVDHn;
|
|
r4 = operatorText ?? r4;
|
|
if (r4 == null) {
|
|
return r4;
|
|
}
|
|
if (operator == null) {
|
|
return r4;
|
|
}
|
|
if (PlatformTypes.REDDIT === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43674});
|
|
}
|
|
if (MetadataFields.REDDIT_TOTAL_KARMA === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43675});
|
|
}
|
|
if (MetadataFields.REDDIT_GOLD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: function() {
|
|
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t['+/5TCx']);
|
|
}});
|
|
}
|
|
if (MetadataFields.REDDIT_MOD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43677});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.STEAM === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43678});
|
|
}
|
|
if (MetadataFields.STEAM_GAME_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43679});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_TF2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43680});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_DOTA2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43681});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.BLUESKY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43682});
|
|
}
|
|
if (MetadataFields.BLUESKY_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43683});
|
|
}
|
|
if (MetadataFields.BLUESKY_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43684});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TWITTER === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43685});
|
|
}
|
|
if (MetadataFields.TWITTER_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43686});
|
|
}
|
|
if (MetadataFields.TWITTER_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43687});
|
|
}
|
|
if (MetadataFields.TWITTER_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43688});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.PAYPAL === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43689});
|
|
}
|
|
if (MetadataFields.PAYPAL_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43690});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.EBAY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43691});
|
|
}
|
|
if (MetadataFields.EBAY_TOP_RATED_SELLER === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43692});
|
|
}
|
|
if (MetadataFields.EBAY_POSITIVE_FEEDBACK_PERCENTAGE === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43693});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_POSITIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43694});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_NEGATIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43695});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TIKTOK === connectionType) {
|
|
if (MetadataFields.TIKTOK_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43696});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWER_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43697});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWING_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43698});
|
|
}
|
|
if (MetadataFields.TIKTOK_LIKES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook});
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
if (operator === undefined) {
|
|
return null;
|
|
}
|
|
value = null;
|
|
if (value !== operator) {
|
|
r4 = value;
|
|
r4 = operatorText ?? r4;
|
|
if (r4 == null) {
|
|
return r4;
|
|
}
|
|
if (operator == null) {
|
|
return r4;
|
|
}
|
|
if (PlatformTypes.REDDIT === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43674});
|
|
}
|
|
if (MetadataFields.REDDIT_TOTAL_KARMA === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43675});
|
|
}
|
|
if (MetadataFields.REDDIT_GOLD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: function() {
|
|
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t['+/5TCx']);
|
|
}});
|
|
}
|
|
if (MetadataFields.REDDIT_MOD === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43677});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.STEAM === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43678});
|
|
}
|
|
if (MetadataFields.STEAM_GAME_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43679});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_TF2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43680});
|
|
}
|
|
if (MetadataFields.STEAM_ITEM_COUNT_DOTA2 === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43681});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.BLUESKY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43682});
|
|
}
|
|
if (MetadataFields.BLUESKY_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43683});
|
|
}
|
|
if (MetadataFields.BLUESKY_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43684});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TWITTER === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43685});
|
|
}
|
|
if (MetadataFields.TWITTER_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43686});
|
|
}
|
|
if (MetadataFields.TWITTER_FOLLOWERS_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43687});
|
|
}
|
|
if (MetadataFields.TWITTER_STATUSES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43688});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.PAYPAL === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43689});
|
|
}
|
|
if (MetadataFields.PAYPAL_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43690});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.EBAY === connectionType) {
|
|
if (MetadataFields.CREATED_AT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43691});
|
|
}
|
|
if (MetadataFields.EBAY_TOP_RATED_SELLER === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43692});
|
|
}
|
|
if (MetadataFields.EBAY_POSITIVE_FEEDBACK_PERCENTAGE === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43693});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_POSITIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43694});
|
|
}
|
|
if (MetadataFields.EBAY_UNIQUE_NEGATIVE_FEEDBACK_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43695});
|
|
}
|
|
return null;
|
|
}
|
|
if (PlatformTypes.TIKTOK === connectionType) {
|
|
if (MetadataFields.TIKTOK_VERIFIED === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43696});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWER_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43697});
|
|
}
|
|
if (MetadataFields.TIKTOK_FOLLOWING_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook_43698});
|
|
}
|
|
if (MetadataFields.TIKTOK_LIKES_COUNT === connectionMetadataField) {
|
|
return intl.format(r4, {platformQuantityHook: platformQuantityHook});
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
return null;
|
|
function getConnectionsCheckTextPlatformQuantityHook() { // fn#43674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:1765, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011596df, size: 77 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const TPbtEu = (IndexNativeModule).t.TPbtEu;
|
|
return Reflect.apply(formatToPlainString, intl, [TPbtEu, {days: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43675() { // fn#43675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:1909, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x0115972c, size: 81 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const P2JAEc = (IndexNativeModule).t.P2JAEc;
|
|
return Reflect.apply(formatToPlainString, intl, [P2JAEc, {karma: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43677() { // fn#43677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:2164, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011597bd, size: 64 bytes, params: 1, frame: 14
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.string((IndexNativeModule).t['9rPbEs']);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43678() { // fn#43678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:2330, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011596df, size: 77 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const TPbtEu = (IndexNativeModule).t.TPbtEu;
|
|
return Reflect.apply(formatToPlainString, intl, [TPbtEu, {days: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43679() { // fn#43679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:2472, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011597fd, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const H9eLoe = (IndexNativeModule).t.H9eLoe;
|
|
return Reflect.apply(formatToPlainString, intl, [H9eLoe, {count: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43680() { // fn#43680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:2619, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x0115984b, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const MceZJ6 = (IndexNativeModule).t.MceZJ6;
|
|
return Reflect.apply(formatToPlainString, intl, [MceZJ6, {count: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43681() { // fn#43681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:2768, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159899, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t.dMnRar, {count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43682() { // fn#43682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:2956, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011596df, size: 77 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const TPbtEu = (IndexNativeModule).t.TPbtEu;
|
|
return Reflect.apply(formatToPlainString, intl, [TPbtEu, {days: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43683() { // fn#43683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:3105, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011598e7, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t.xIdKU8, {count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43684() { // fn#43684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:3254, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159935, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t['dy3+NR'],
|
|
{count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43685() { // fn#43685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:3445, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011596df, size: 77 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const TPbtEu = (IndexNativeModule).t.TPbtEu;
|
|
return Reflect.apply(formatToPlainString, intl, [TPbtEu, {days: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43686() { // fn#43686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:3587, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159983, size: 64 bytes, params: 1, frame: 14
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.string((IndexNativeModule).t.xRygZL);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43687() { // fn#43687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:3714, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011599c3, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t.bkajar, {count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43688() { // fn#43688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:3863, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159a11, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const MI7NKi = (IndexNativeModule).t.MI7NKi;
|
|
return Reflect.apply(formatToPlainString, intl, [MI7NKi, {count: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43689() { // fn#43689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4050, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011596df, size: 77 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const TPbtEu = (IndexNativeModule).t.TPbtEu;
|
|
return Reflect.apply(formatToPlainString, intl, [TPbtEu, {days: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43690() { // fn#43690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4191, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159a5f, size: 64 bytes, params: 1, frame: 14
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.string((IndexNativeModule).t.slSQuB);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43691() { // fn#43691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4353, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x011596df, size: 77 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const TPbtEu = (IndexNativeModule).t.TPbtEu;
|
|
return Reflect.apply(formatToPlainString, intl, [TPbtEu, {days: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43692() { // fn#43692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4500, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159a9f, size: 62 bytes, params: 1, frame: 14
|
|
const intl = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const TEEYwa = (IndexNativeModule).t.TEEYwa;
|
|
return Reflect.apply(string, intl, [TEEYwa]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43693() { // fn#43693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4637, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159add, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t.rl9Vgy, {value: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43694() { // fn#43694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4799, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159b2b, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const QP5W1R = (IndexNativeModule).t.QP5W1R;
|
|
return Reflect.apply(formatToPlainString, intl, [QP5W1R, {count: env0_0}]);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43695() { // fn#43695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:4961, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159b79, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t['6ZFYdK'],
|
|
{count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43696() { // fn#43696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5156, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159bc7, size: 64 bytes, params: 1, frame: 14
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.string((IndexNativeModule).t.uv7ety);
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43697() { // fn#43697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5281, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159c07, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t.qIPDRy, {count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43698() { // fn#43698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5430, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159c55, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t.zRta4X, {count: env0_0});
|
|
}
|
|
|
|
function getConnectionsCheckTextPlatformQuantityHook_43699() { // fn#43699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5575, owner: getConnectionsCheckText.platformQuantityHook, offset: 0x01159ca3, size: 78 bytes, params: 1, frame: 15
|
|
const intl = (IndexNativeModule).intl;
|
|
return intl.formatToPlainString((IndexNativeModule).t['ar0WW+'],
|
|
{count: env0_0});
|
|
}
|
|
|
|
}
|
|
|
|
function isVerifiedRolesChannelVisible(a0) { // fn#43700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5739, offset: 0x01159cf1, size: 23 bytes, params: 2, frame: 11
|
|
return a0.some(function(a0) {
|
|
return a0.tags.guild_connections === null;
|
|
});
|
|
}
|
|
|
|
function getVisibleConnectionsRole({guildMember, guild, sortedGuildRoles, channel, onlyChannelConnectionRoles}) { // fn#43702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5862, offset: 0x01159d1f, size: 259 bytes, params: 2, frame: 19
|
|
onlyChannelConnectionRoles = !(onlyChannelConnectionRoles === undefined) && onlyChannelConnectionRoles;
|
|
const value = null;
|
|
if (value == guildMember) {
|
|
return value;
|
|
}
|
|
const r2 = value == guild && value != channel ? GuildStore.getGuild(channel.getGuildId()) : guild;
|
|
if (value == r2) {
|
|
return value;
|
|
}
|
|
const value8 = (value != sortedGuildRoles ? sortedGuildRoles : GuildRoleStore.getSortedRoles(r2.id)).filter(_fun43703);
|
|
const value10 = (Module00022).intersection(value8,
|
|
(GetConnectionsRoles)(channel));
|
|
return value10.length > 0 ? value != value10[0] ? value10[0] : value : onlyChannelConnectionRoles ? value : value != value8[0] ? value8[0] : value;
|
|
function _fun43703(a0) { // fn#43703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:6146, offset: 0x01159e22, size: 54 bytes, params: 2, frame: 12
|
|
return a0.tags.guild_connections === null && guildMember.roles.includes(a0.id);
|
|
}
|
|
|
|
}
|
|
|
|
function useShowLinkedRolesAdminNux(a0) { // fn#43705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:6563, offset: 0x01159ed0, size: 72 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return (FluxModule).useStateFromStores([GuildRoleStore, PermissionStore],
|
|
_fun43706);
|
|
function _fun43706() { // fn#43706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:6644, offset: 0x01159f18, size: 148 bytes, params: 1, frame: 18
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
const guildRoleStoreBinding = GuildRoleStore;
|
|
const getSortedRoles = guildRoleStoreBinding.getSortedRoles;
|
|
const binding = env0_0;
|
|
const value4 = Reflect.apply(getSortedRoles, guildRoleStoreBinding, [binding.id]).some(function(a0) {
|
|
return a0.tags.guild_connections === null;
|
|
});
|
|
const UNSAFE_isDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
|
|
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
|
|
const CONNECTIONS_NUX = DismissibleContent.CONNECTIONS_NUX;
|
|
const value5 = Reflect.apply(UNSAFE_isDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
|
|
[CONNECTIONS_NUX]);
|
|
const permissionStoreBinding = PermissionStore;
|
|
const can = permissionStoreBinding.can;
|
|
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
|
|
return !value4 && value5 && Reflect.apply(can, permissionStoreBinding, [MANAGE_ROLES, binding]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun43701({tags}) { // fn#43701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5221:5796, offset: 0x01159d08, size: 23 bytes, params: 2, frame: 2
|
|
return tags.guild_connections === null;
|
|
}
|
|
|
|
global.__d(_fun43671, 5043, [1938, 1867, 3784, 5044, 661, 1471, 44, 1244, 22, 5045, 566, 3968, 1365,
|
|
2]) /* metro module 5043, dependencies: [1938, 1867, 3784, 5044, 661, 1471, 44, 1244, 22, 5045, 566, 3968, 1365, 2] */;
|