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

@@ -0,0 +1,289 @@
/* Metro module 2358; source: modules/activity_privacy/ActivityPrivacy.messages.js; dependencies: [1247, 2359, 2360, 2361, 2362, 2363, 2364, 2365, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 1282, 2] */
function _fun23082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#23082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:6, offset: 0x00f098a2, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_23083, cs: cs_23085, da: da_23087, de: de_23089, el: el_23091};
object2['en-GB'] = _fun23093;
object2['es-419'] = _fun23095;
object2['es-ES'] = _fun23097;
object2.fi = fi_23099;
object2.fr = fr_23101;
object2.hi = hi_23103;
object2.hr = hr_23105;
object2.hu = hu_23107;
object2.it = it_23109;
object2.ja = ja_23111;
object2.ko = ko_23113;
object2.lt = lt_23115;
object2.nl = nl_23117;
object2.no = no_23119;
object2.pl = pl_23121;
object2['pt-BR'] = _fun23123;
object2.ro = ro_23125;
object2.ru = ru_23127;
object2['sv-SE'] = _fun23129;
object2.th = th_23131;
object2.tr = tr_23133;
object2.uk = uk_23135;
object2.vi = vi_23137;
object2['zh-CN'] = _fun23139;
object2['zh-TW'] = _fun23141;
object2['en-US'] = _fun23143;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_privacy/ActivityPrivacy.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
}
function bg_23083() { // fn#23083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:102, offset: 0x00f09a67, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2359) /* metro dependency 2359 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23085() { // fn#23085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:165, offset: 0x00f09aa8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2360) /* metro dependency 2360 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23087() { // fn#23087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:228, offset: 0x00f09ae9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2361) /* metro dependency 2361 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23089() { // fn#23089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:291, offset: 0x00f09b2a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2362) /* metro dependency 2362 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23091() { // fn#23091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:354, offset: 0x00f09b6b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2363) /* metro dependency 2363 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23093() { // fn#23093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:422, offset: 0x00f09bac, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2364) /* metro dependency 2364 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23095() { // fn#23095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:491, offset: 0x00f09bed, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2365) /* metro dependency 2365 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23097() { // fn#23097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:559, offset: 0x00f09c2e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2366) /* metro dependency 2366 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23099() { // fn#23099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:622, offset: 0x00f09c6f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2367) /* metro dependency 2367 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23101() { // fn#23101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:685, offset: 0x00f09cb0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2368) /* metro dependency 2368 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23103() { // fn#23103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:749, offset: 0x00f09cf1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2369) /* metro dependency 2369 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23105() { // fn#23105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:813, offset: 0x00f09d32, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2370) /* metro dependency 2370 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23107() { // fn#23107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:877, offset: 0x00f09d73, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2371) /* metro dependency 2371 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23109() { // fn#23109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:941, offset: 0x00f09db4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2372) /* metro dependency 2372 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23111() { // fn#23111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1005, offset: 0x00f09df5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2373) /* metro dependency 2373 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23113() { // fn#23113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1069, offset: 0x00f09e36, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2374) /* metro dependency 2374 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23115() { // fn#23115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1133, offset: 0x00f09e77, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2375) /* metro dependency 2375 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23117() { // fn#23117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1197, offset: 0x00f09eb8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2376) /* metro dependency 2376 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23119() { // fn#23119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1261, offset: 0x00f09ef9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2377) /* metro dependency 2377 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23121() { // fn#23121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1325, offset: 0x00f09f3a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2378) /* metro dependency 2378 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23123() { // fn#23123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1394, offset: 0x00f09f7b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2379) /* metro dependency 2379 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23125() { // fn#23125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1458, offset: 0x00f09fbc, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2380) /* metro dependency 2380 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23127() { // fn#23127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1522, offset: 0x00f09ffd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2381) /* metro dependency 2381 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23129() { // fn#23129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1591, offset: 0x00f0a03e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2382) /* metro dependency 2382 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23131() { // fn#23131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1655, offset: 0x00f0a07f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2383) /* metro dependency 2383 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23133() { // fn#23133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1719, offset: 0x00f0a0c0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2384) /* metro dependency 2384 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23135() { // fn#23135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1783, offset: 0x00f0a101, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2385) /* metro dependency 2385 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23137() { // fn#23137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1847, offset: 0x00f0a142, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2386) /* metro dependency 2386 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23139() { // fn#23139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1916, offset: 0x00f0a183, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2387) /* metro dependency 2387 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23141() { // fn#23141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:1985, offset: 0x00f0a1c4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2388) /* metro dependency 2388 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23143() { // fn#23143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2485:2054, offset: 0x00f0a205, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2389) /* metro dependency 2389 */);
return value.then(function(a0) {
return {default: a0};
});
}
@@ -0,0 +1,21 @@
/* Metro module 14140; source: modules/activity_privacy/ActivityPrivacyMatchingExperiment.tsx; dependencies: [1854, 10354, 2] */
function _fun107020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14337:6, offset: 0x022f116c, size: 213 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-02-activity-privacy-matching',
'kind': 'user', defaultConfig: {'copyChanges': false, 'upsell': false}, variations: {[0]: {'copyChanges': false,
'upsell': false}, [1]: {'copyChanges': true, 'upsell': false}, [2]: {'copyChanges': true, 'upsell': true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_privacy/ActivityPrivacyMatchingExperiment.tsx');
exports.useIsInActivityPrivacyCopyExperiment = useIsInActivityPrivacyCopyExperiment;
exports.getIsInActivityPrivacyUpsellExperiment = getIsInActivityPrivacyUpsellExperiment;
}
function useIsInActivityPrivacyCopyExperiment(a0) { // fn#107021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14337:459, offset: 0x022f1241, size: 71 bytes, params: 2, frame: 13
return (require(10354) /* metro dependency 10354: PrivateProfilesExperiment */).useIsInPrivateProfilesExperiment(a0) || env0_2.useConfig({location: a0}).copyChanges;
}
function getIsInActivityPrivacyUpsellExperiment(a0) { // fn#107022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14337:607, offset: 0x022f1288, size: 71 bytes, params: 2, frame: 13
return (require(10354) /* metro dependency 10354: PrivateProfilesExperiment */).getIsInPrivateProfilesExperiment(a0) || env0_2.getConfig({location: a0}).upsell;
}
@@ -0,0 +1,350 @@
/* Metro module 13374; source: modules/activity_privacy/ActivityPrivacyUpsellUtils.tsx; dependencies: [6586, 4111, 1867, 4896, 1314, 7004, 1244, 3829, 2] */
function _fun101829(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:6, offset: 0x022205c1, size: 551 bytes, params: 8, frame: 25
const env0_0 = require;
const closure = getPermissiveness;
const closure2 = profileVisibilityToActivityRestriction;
const closure3 = computeAffectedGuilds;
const closure4 = getProfileVisibilitySettingName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const frecencyStore = importDefault(6586) /* metro dependency 6586: FrecencyStore */;
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
const Map = global.Map;
const ProfileVisibility = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ProfileVisibility;
const FRIENDS_AND_ALL_GUILDS = ProfileVisibility.FRIENDS_AND_ALL_GUILDS;
const items2 = [FRIENDS_AND_ALL_GUILDS];
const GuildActivityStatusRestrictionDefaultV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefaultV2;
const ACTIVITY_STATUS_OFF = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF;
items2[1] = ACTIVITY_STATUS_OFF;
const FRIENDS_AND_SMALL_GUILDS = ProfileVisibility.FRIENDS_AND_SMALL_GUILDS;
const ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS;
const FRIENDS_ONLY = ProfileVisibility.FRIENDS_ONLY;
const ACTIVITY_STATUS_ON = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON;
const map = new Map([items2, [FRIENDS_AND_SMALL_GUILDS, ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS], [FRIENDS_ONLY,
ACTIVITY_STATUS_ON]]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_privacy/ActivityPrivacyUpsellUtils.tsx');
exports.ChangeDirection = {RESTRICTING: 'restricting', EXPANDING: 'expanding'};
exports.getPermissiveness = closure;
exports.profileVisibilityToActivityRestriction = closure2;
exports.computeAffectedGuilds = closure3;
exports.getActivityRestrictionSettingName = getActivityRestrictionSettingName;
exports.getProfileVisibilitySettingName = closure4;
exports.getProfileToActivityUpsellStrings = getProfileToActivityUpsellStrings;
exports.getUpsellStrings = getUpsellStrings;
exports.computeProfileToActivityUpsell = computeProfileToActivityUpsell;
exports.sortGuildIdsByFrecency = function(a0) {
var items = [];
arraySpread(items, a0, 0, items);
return items.sort(_fun101841);
};
exports.applyBulkGuildRestrictionChange = applyBulkGuildRestrictionChange;
}
function getPermissiveness(a0) { // fn#101830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:217, offset: 0x022207e8, size: 132 bytes, params: 2, frame: 14
const GuildActivityStatusRestrictionDefaultV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefaultV2;
const ACTIVITY_STATUS_OFF = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF;
if (ACTIVITY_STATUS_OFF === a0) {
return 2;
}
const ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS;
if (ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS === a0) {
return 1;
}
const ACTIVITY_STATUS_ON = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON;
if (ACTIVITY_STATUS_ON === a0) {
return 0;
}
return -1;
}
function profileVisibilityToActivityRestriction(a0) { // fn#101831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:917, offset: 0x0222086c, size: 62 bytes, params: 2, frame: 12
return env0_7.get(a0) ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF;
}
function computeAffectedGuilds(a0, a1) { // fn#101832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:1070, offset: 0x022208aa, size: 499 bytes, params: 3, frame: 21
var r0;
if (a0 === a1) {
return null;
}
const getPermissivenessBinding = getPermissiveness;
const permissivenessBinding = getPermissivenessBinding(a0);
const permissivenessBinding2 = getPermissivenessBinding(a1);
if (permissivenessBinding < 0) {
return null;
}
if (permissivenessBinding2 < 0) {
return null;
}
const r2 = permissivenessBinding2 < permissivenessBinding ? env0_6.RESTRICTING : env0_6.EXPANDING;
const env0_1 = (require(7004) /* metro dependency 7004: UserSettingsUtils */).getSanitizedActivityRestrictedGuilds();
const flattenedGuildIds = SortedGuildStore.getFlattenedGuildIds();
const GuildActivityStatusRestrictionDefaultV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefaultV2;
const ACTIVITY_STATUS_OFF = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF;
if (a0 !== ACTIVITY_STATUS_OFF) {
if (a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS) {
r0 = a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only' : a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS ? 'small_only' : a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only';
} else if (a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF) {
r0 = 'large_only';
} else {
r0 = a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only' : a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS ? 'small_only' : a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only';
}
} else if (a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS) {
r0 = 'large_only';
} else if (a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS) {
r0 = a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only' : a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS ? 'small_only' : a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only';
} else if (a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF) {
r0 = 'large_only';
} else {
r0 = a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only' : a1 === GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS ? 'small_only' : a0 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS || a1 !== GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON ? 'all' : 'small_only';
}
const value = flattenedGuildIds.filter(_fun101833);
if (value.length === 0) {
r0 = null;
} else {
value.sort(_fun101834);
r0 = {affectedGuildIds: value, direction: r2};
}
return r0;
}
function getProfileVisibilitySettingName(a0) { // fn#101835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:2607, offset: 0x02220c47, size: 320 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const ProfileVisibility = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ProfileVisibility;
const FRIENDS_AND_ALL_GUILDS = ProfileVisibility.FRIENDS_AND_ALL_GUILDS;
if (FRIENDS_AND_ALL_GUILDS === a0) {
return intl.string(t.Boxc8R).toLowerCase();
}
const FRIENDS_AND_SMALL_GUILDS = ProfileVisibility.FRIENDS_AND_SMALL_GUILDS;
if (FRIENDS_AND_SMALL_GUILDS === a0) {
return intl.string(t.YOIKBt).toLowerCase();
}
const FRIENDS_ONLY = ProfileVisibility.FRIENDS_ONLY;
if (FRIENDS_ONLY === a0) {
return intl.string(t.u0nlJv).toLowerCase();
}
return '';
}
function getActivityRestrictionSettingName(a0) { // fn#101836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:3319, offset: 0x02220d87, size: 320 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const GuildActivityStatusRestrictionDefaultV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefaultV2;
const ACTIVITY_STATUS_OFF = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF;
if (ACTIVITY_STATUS_OFF === a0) {
return intl.string(t.FzgQna).toLowerCase();
}
const ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS;
if (ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS === a0) {
return intl.string(t['1hvuGH']).toLowerCase();
}
const ACTIVITY_STATUS_ON = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_ON;
if (ACTIVITY_STATUS_ON === a0) {
return intl.string(t.fQc5la).toLowerCase();
}
return '';
}
function getProfileToActivityUpsellStrings(a0, a1) { // fn#101837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:3910, offset: 0x02220ec7, size: 341 bytes, params: 3, frame: 19
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return {title: Reflect.apply(string, intl, [a0 ? t.eYDA7D : t['9jYwjo']]),
subtitle: intl.format(a0 ? t['c5/jDc'] : t.ajzh8S, {settingName: a1}),
confirmText: intl.string(a0 ? t['6uPZV1'] : t.a9PIyD), toastContent: intl.string(a0 ? t.AdpgML : t['Q7E+QF'])};
}
function getUpsellStrings(a0, a1) { // fn#101838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:4282, offset: 0x0222101c, size: 341 bytes, params: 3, frame: 19
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return {title: Reflect.apply(string, intl, [a0 ? t.jRx1Aa : t.S0Y0bh]),
subtitle: intl.format(a0 ? t.Fs96LO : t.GcoYX8, {settingName: a1}),
confirmText: intl.string(a0 ? t['4DM5HJ'] : t.WRrDtI), toastContent: intl.string(a0 ? t.AdpgML : t['Q7E+QF'])};
}
function computeProfileToActivityUpsell(a0, a1) { // fn#101839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:4645, offset: 0x02221171, size: 176 bytes, params: 3, frame: 17
const value2 = profileVisibilityToActivityRestriction(a1);
const DefaultGuildsActivityRestrictedV2 = (require(3829) /* metro dependency 3829: UserSettings */).DefaultGuildsActivityRestrictedV2;
const setting = DefaultGuildsActivityRestrictedV2.getSetting();
if (setting === value2) {
return null;
}
const getPermissivenessBinding = getPermissiveness;
if (getPermissivenessBinding(profileVisibilityToActivityRestriction(a0)) > getPermissivenessBinding(value2) !== getPermissivenessBinding(setting) > getPermissivenessBinding(value2)) {
return null;
}
const affectedGuilds = computeAffectedGuilds(setting, value2);
if (affectedGuilds == null) {
return null;
}
return {affectedGuildIds: affectedGuilds.affectedGuildIds, direction: affectedGuilds.direction,
settingName: getProfileVisibilitySettingName(a1), mappedActivityValue: value2};
}
function sortGuildIdsByFrecency(a0) { // fn#101840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:5182, offset: 0x02221221, size: 38 bytes, params: 2, frame: 13
const items2 = [];
arraySpread(items2, a0, 0, items2);
return items2.sort(_fun101841);
}
function applyBulkGuildRestrictionChange(a0, a1) { // fn#101842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:5350, offset: 0x02221270, size: 268 bytes, params: 3, frame: 19
var items2;
const ActivityRestrictedGuilds = (require(3829) /* metro dependency 3829: UserSettings */).ActivityRestrictedGuilds;
var updateSetting;
const sanitizedActivityRestrictedGuilds = (require(7004) /* metro dependency 7004: UserSettingsUtils */).getSanitizedActivityRestrictedGuilds();
let Set = global.Set;
let set = new Set(a1);
const RESTRICTING = env0_6.RESTRICTING;
if (a0 === RESTRICTING) {
Set = global.Set;
items2 = [];
arraySpread(items2, set, arraySpread(items2, sanitizedActivityRestrictedGuilds, 0, undefined), undefined);
set = new Set();
updateSetting = ActivityRestrictedGuilds.updateSetting;
items2 = [];
arraySpread(items2, set, 0, undefined);
Reflect.apply(updateSetting, ActivityRestrictedGuilds, [items2]);
} else {
items2 = [];
arraySpread(items2, sanitizedActivityRestrictedGuilds, 0, undefined);
ActivityRestrictedGuilds.updateSetting(items2.filter(_fun101843));
}
}
function _fun101833(a0) { // fn#101833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:2049, offset: 0x02220a9d, size: 188 bytes, params: 2, frame: 15
var memberCount;
const value = environment.__proto__;
if (GuildStore.getGuild(a0) != null) {
var binding = env0_1;
var value4 = binding.has(a0);
binding = env0_0;
var RESTRICTING = env1_6.RESTRICTING;
if (binding !== RESTRICTING) {
if (env0_0 !== env1_6.EXPANDING) {
if (env0_2 === 'all') {
return true;
}
memberCount = GuildMemberCountStore.getMemberCount(a0);
return memberCount == null ? env0_0 === env1_6.RESTRICTING : env0_2 === 'large_only' ? memberCount > 200 : memberCount <= 200;
}
if (value4) {
if (env0_2 === 'all') {
return true;
}
memberCount = GuildMemberCountStore.getMemberCount(a0);
return memberCount == null ? env0_0 === env1_6.RESTRICTING : env0_2 === 'large_only' ? memberCount > 200 : memberCount <= 200;
}
return false;
}
if (value4) {
return false;
}
binding = env0_0;
if (binding !== env1_6.EXPANDING) {
if (env0_2 === 'all') {
return true;
}
memberCount = GuildMemberCountStore.getMemberCount(a0);
return memberCount == null ? env0_0 === env1_6.RESTRICTING : env0_2 === 'large_only' ? memberCount > 200 : memberCount <= 200;
}
if (value4) {
if (env0_2 === 'all') {
return true;
}
memberCount = GuildMemberCountStore.getMemberCount(a0);
return memberCount == null ? env0_0 === env1_6.RESTRICTING : env0_2 === 'large_only' ? memberCount > 200 : memberCount <= 200;
}
}
return false;
}
function _fun101834(a0, a1) { // fn#101834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:2313, offset: 0x02220b59, size: 238 bytes, params: 3, frame: 16
var r2;
var r1;
var r0;
var Date;
var prototype;
var date;
var value7;
var value8;
let value = environment.__proto__;
const guild = GuildStore.getGuild(a0);
value = GuildStore.getGuild(a1);
const value3 = undefined;
let joinedAt = guild == null ? value3 : guild.joinedAt;
if (joinedAt != null) {
joinedAt = guild == null ? value3 : guild.joinedAt;
if (joinedAt == null) {
r1 = 1;
} else {
joinedAt = value == null ? value3 : value.joinedAt;
if (joinedAt == null) {
r2 = -1;
} else {
Date = global.Date;
joinedAt = value.joinedAt;
prototype = Date.prototype;
value = Object.create(prototype, {constructor: {value: Date}});
date = new Date(joinedAt);
value = date instanceof Object ? date : value;
value = value.getTime();
Date = global.Date;
joinedAt = guild.joinedAt;
prototype = Date.prototype;
value7 = Object.create(prototype, {constructor: {value: Date}});
date = new Date(joinedAt);
value8 = date instanceof Object ? date : value7;
value -= value8.getTime();
r2 = value;
}
r1 = r2;
}
r0 = r1;
} else {
joinedAt = value == null ? value3 : value.joinedAt;
if (joinedAt == null) {
r0 = 0;
} else {
joinedAt = guild == null ? value3 : guild.joinedAt;
if (joinedAt == null) {
r1 = 1;
} else {
joinedAt = value == null ? value3 : value.joinedAt;
if (joinedAt == null) {
r2 = -1;
} else {
Date = global.Date;
joinedAt = value.joinedAt;
prototype = Date.prototype;
value = Object.create(prototype, {constructor: {value: Date}});
date = new Date(joinedAt);
value = date instanceof Object ? date : value;
value = value.getTime();
Date = global.Date;
joinedAt = guild.joinedAt;
prototype = Date.prototype;
value7 = Object.create(prototype, {constructor: {value: Date}});
date = new Date(joinedAt);
value8 = date instanceof Object ? date : value7;
value -= value8.getTime();
r2 = value;
}
r1 = r2;
}
r0 = r1;
}
}
return r0;
}
function _fun101841(a0, a1) { // fn#101841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13564:5236, offset: 0x02221247, size: 41 bytes, params: 3, frame: 12
let value = environment.__proto__;
let getScoreWithoutFetchingLatest = FrecencyStore.getScoreWithoutFetchingLatest;
value = Reflect.apply(getScoreWithoutFetchingLatest, FrecencyStore, [a1]);
getScoreWithoutFetchingLatest = FrecencyStore.getScoreWithoutFetchingLatest;
return value - Reflect.apply(getScoreWithoutFetchingLatest, FrecencyStore, [a0]);
}
@@ -0,0 +1,27 @@
/* Metro module 14141; source: modules/activity_privacy/native/ActivityPrivacyUpsellActionSheet.tsx; dependencies: [31, 33, 13374, 13376, 2] */
function _fun107023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14338:6, offset: 0x022f12cf, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_privacy/native/ActivityPrivacyUpsellActionSheet.tsx');
exports.default = ActivityPrivacyUpsellActionSheet;
}
function ActivityPrivacyUpsellActionSheet({direction, affectedGuildIds, settingName}) { // fn#107024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14338:232, offset: 0x022f135d, size: 214 bytes, params: 2, frame: 23
const ChangeDirection = (require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */).ChangeDirection;
const RESTRICTING = ChangeDirection.RESTRICTING;
const {title, subtitle, confirmText,
toastContent} = (require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */).getUpsellStrings(direction === RESTRICTING,
settingName);
return ((Component) => <Component direction={direction} affectedGuildIds={affectedGuildIds} title={title} subtitle={subtitle} confirmText={confirmText} toastContent={toastContent} onConfirm={env0_3.useCallback(_fun107025,
[direction, affectedGuildIds])} />)(importDefault(13376) /* metro dependency 13376: BaseUpsellActionSheet */);
}
function _fun107025() { // fn#107025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14338:473, offset: 0x022f1433, size: 50 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */;
value.applyBulkGuildRestrictionChange(direction, affectedGuildIds);
}
@@ -0,0 +1,168 @@
/* Metro module 13376; source: modules/activity_privacy/native/BaseUpsellActionSheet.tsx; dependencies: [31, 27, 1867, 33, 4073, 697, 4501, 566, 6819, 13374, 1244, 4573, 8863, 11835, 4080, 3857, 6275, 4578, 2] */
function _fun101848(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:6, offset: 0x0222155c, size: 658 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.Pressable;
const env0_5 = value.View;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.paddingVertical = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.paddingHorizontal = PX_24;
object3.container = object4;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.title = {marginBottom: PX_8};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.description = {marginBottom: PX_24};
const object6 = {};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object6.backgroundColor = BACKGROUND_MOD_SUBTLE;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.padding = PX_16;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.marginBottom = PX_24;
object6.flexDirection = 'row';
object6.alignItems = 'center';
object6.justifyContent = 'space-between';
object3.card = object6;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.cardInfo = {flex: 1, marginRight: PX_12};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.statusRow = {'flexDirection': 'row', 'alignItems': 'center', 'marginTop': null, 'paddingBottom': 2,
marginTop: PX_4};
object3.guildSummary = {flexShrink: 1};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.chevron = {marginLeft: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.buttonsContainer = {gap: PX_8};
const env0_10 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_privacy/native/BaseUpsellActionSheet.tsx');
exports.default = BaseUpsellActionSheet;
}
function StoreGuildIcon({guildId}) { // fn#101849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:988, offset: 0x022217ee, size: 128 bytes, params: 2, frame: 18
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const guildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XSMALL = GuildIconSizes.XSMALL;
return ((Component) => <Component guild={guild} size={XSMALL} />)(guildIcon);
}
function GuildCard({guildIds, direction, onPress}) { // fn#101851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:1146, offset: 0x0222186e, size: 1103 bytes, params: 2, frame: 42
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const value3 = env0_3.useMemo(_fun101852, [guildIds]);
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun101853);
const ChangeDirection = (require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */).ChangeDirection;
let RESTRICTING = ChangeDirection.RESTRICTING;
const r23 = direction === RESTRICTING ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.e6Kpa7) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cy4G4y);
const r27 = guild?.name ?? '';
let r24 = guild != null && value3.length > 1;
const r14 = value3.length === 4 ? value3 : value3.slice(0, 3);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildStore], _fun101854,
[r14]);
const r1 = onPress != null ? Pressable : View;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let format = intl.format;
const text = <Text variant="text-md/semibold" color="text-strong">{Reflect.apply(format, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['0fkj8J'], {count: guildIds.length}])}</Text>;
RESTRICTING = ChangeDirection.RESTRICTING;
const text2 = <Text variant="text-sm/medium" color={direction !== RESTRICTING ? 'text-muted' : 'text-feedback-positive'}>{r23}</Text>;
format = intl.format;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
r24 = r24 ? t['8ZLbvR'] : t['+NoTYm'];
const items4 = [<View style={styles.cardInfo}>{text}<View style={styles.statusRow}>{text2}<Text variant="text-sm/medium" color="text-muted" lineClamp={1} style={styles.guildSummary}>{Reflect.apply(format,
intl, [r24, {guildName: r27}])}</Text></View></View>];
const GuildIconPile = (require(8863) /* metro dependency 8863: GuildIconPileNative */).GuildIconPile;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XSMALL = GuildIconSizes.XSMALL;
items4[1] = <GuildIconPile size={XSMALL} names={value10} totalCount={value3.length}>{r14.map(_fun101856)}</GuildIconPile>;
items4[2] = onPress != null && <View style={styles.chevron}>{((ChevronLargeRightIcon) => <ChevronLargeRightIcon color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE} size="xs" />)((require(11835) /* metro dependency 11835: ChevronLargeRightIcon */).ChevronLargeRightIcon)}</View>;
return ((Component) => <Component style={styles.card} onPress={onPress}>{items4}</Component>)(r1);
}
function renderSuccessIcon() { // fn#101857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:194, offset: 0x02221d7b, size: 109 bytes, params: 1, frame: 17
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
const STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
return (
<CircleCheckIcon
size="sm"
color={STATUS_POSITIVE}
secondaryColor={WHITE}
/>
);
}
function BaseUpsellActionSheet({direction, affectedGuildIds, title, subtitle, confirmText, toastContent, onConfirm, onCardPress}) { // fn#101858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:2625, offset: 0x02221de8, size: 558 bytes, params: 2, frame: 33
const styles = useStyles();
const value2 = env0_3.useCallback(function() {
onConfirm();
importDefault(dependencyMap[14]).hideActionSheet();
importDefault(dependencyMap[15]).open({key: 'ACTIVITY_PRIVACY_UPSELL_TOAST', content: toastContent,
icon: renderSuccessIcon});
}, [onConfirm, toastContent]);
const value3 = env0_3.useCallback(_fun101860, []);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<Text style={styles.title} accessibilityRole="header" variant="heading-xl/bold" color="text-strong">{title}</Text>];
items2[1] = <Text style={styles.description} variant="text-md/medium" color="text-default">{subtitle}</Text>;
items2[2] = <GuildCard guildIds={affectedGuildIds} direction={direction} onPress={onCardPress} />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const button = <Button variant="primary" size="md" text={confirmText} onPress={value2} />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const X1rGEm = (require(1244) /* metro dependency 1244: indexNative */).t.X1rGEm;
items2[3] = <View style={styles.buttonsContainer}>{button}<Button variant="secondary" size="md" text={Reflect.apply(string,
intl, [X1rGEm])} onPress={value3} /></View>;
return (
<BottomSheet startExpanded>
<View style={styles.container}>
{items2}
</View>
</BottomSheet>
);
}
function _fun101852() { // fn#101852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:1226, offset: 0x02221cbd, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */;
return value.sortGuildIdsByFrecency(guildIds);
}
function _fun101853() { // fn#101853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:1304, offset: 0x02221cea, size: 33 bytes, params: 1, frame: 12
return GuildStore.getGuild(env0_1[0]);
}
function _fun101854() { // fn#101854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:1579, offset: 0x02221d0b, size: 28 bytes, params: 1, frame: 11
return env0_2.map(_fun101855);
}
function _fun101856(a0) { // fn#101856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:2361, offset: 0x02221d5c, size: 31 bytes, params: 2, frame: 15
return <StoreGuildIcon guildId={a0} key={a0} />;
}
function _fun101860() { // fn#101860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:2939, offset: 0x02222079, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function _fun101855(a0) { // fn#101855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13566:1590, offset: 0x02221d27, size: 53 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
return GuildStore.getGuild(a0)?.name ?? '';
}
@@ -0,0 +1,26 @@
/* Metro module 13375; source: modules/activity_privacy/native/ProfileToActivityUpsellActionSheet.tsx; dependencies: [31, 33, 13374, 3829, 4080, 13376, 2] */
function _fun101844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13565:6, offset: 0x0222137c, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activity_privacy/native/ProfileToActivityUpsellActionSheet.tsx');
exports.default = ProfileToActivityUpsellActionSheet;
}
function ProfileToActivityUpsellActionSheet({direction, affectedGuildIds, settingName, mappedActivityValue}) { // fn#101845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13565:234, offset: 0x0222140a, size: 255 bytes, params: 2, frame: 23
const ChangeDirection = (require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */).ChangeDirection;
const RESTRICTING = ChangeDirection.RESTRICTING;
const {title, subtitle, confirmText,
toastContent} = (require(13374) /* metro dependency 13374: ActivityPrivacyUpsellUtils */).getProfileToActivityUpsellStrings(direction === RESTRICTING,
settingName);
const binding = env0_3;
return ((Component) => <Component direction={direction} affectedGuildIds={affectedGuildIds} title={title} subtitle={subtitle} confirmText={confirmText} toastContent={toastContent} onConfirm={binding.useCallback(function() {
var DefaultGuildsActivityRestrictedV2 = require(dependencyMap[3]).DefaultGuildsActivityRestrictedV2;
DefaultGuildsActivityRestrictedV2.updateSetting(mappedActivityValue);
require(dependencyMap[2]).applyBulkGuildRestrictionChange(direction, affectedGuildIds);
}, [mappedActivityValue, direction, affectedGuildIds])} onCardPress={binding.useCallback(_fun101847,
[])} />)(importDefault(13376) /* metro dependency 13376: BaseUpsellActionSheet */);
}