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,31 @@
/* Metro module 11935; source: modules/guild_progress/GuildProgressActionCreators.tsx; dependencies: [694, 2] */
function _fun91621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12121:6, offset: 0x0206bd2f, size: 130 bytes, params: 8, frame: 17
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {createProgress: createProgress, markCompletedProgressSeen: markCompletedProgressSeen,
dismissProgress: dismissProgress};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/GuildProgressActionCreators.tsx');
exports.default = object2;
}
function createProgress(a0) { // fn#91622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12121:99, offset: 0x0206bdb1, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROGRESS_INITIALIZE',
guildId: a0});
}
function markCompletedProgressSeen(a0) { // fn#91623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12121:181, offset: 0x0206bde8, size: 53 bytes, params: 2, frame: 12
const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun91624);
}
function dismissProgress(a0) { // fn#91625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12121:298, offset: 0x0206be58, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROGRESS_DISMISS', guildId: a0});
}
function _fun91624() { // fn#91624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12121:224, offset: 0x0206be1d, size: 59 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROGRESS_COMPLETED_SEEN',
guildId: env0_0});
}
@@ -0,0 +1,16 @@
/* Metro module 11927; source: modules/guild_progress/GuildProgressConstants.tsx; dependencies: [2] */
function _fun91523(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12113:6, offset: 0x02068baf, size: 342 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/GuildProgressConstants.tsx');
exports.Steps = {INVITE: 'member_joined', CHANNEL: 'create_channel', AVATAR: 'avatar', MESSAGE: 'send_message',
COMPLETED: 'completed', DISMISSED: 'dismissed'};
exports.AnalyticsActions = {PERSONALIZE_SERVER: 'Personalize Server', INVITE: 'Invite Friends',
CREATE_CHANNEL: 'Create Channel', SEND_MESSAGE: 'Send Message', DOWNLOAD: 'Download', ADD_APP: 'Add App',
BOOST: 'Boost Server', DISMISS_GUILD_PROGRESS: 'Dismiss Guild Progress',
DISCORD_OVERVIEW_VIDEO: 'Discord Overview Video', JOIN_GUILD: 'Join Guild', CONTACT_SYNC: 'Sync Contacts',
DISMISS: 'Dismiss'};
exports.AnalyticsSetupTypes = {CHANNEL_WELCOME: 'Channel Welcome CTA', GUILD_PROGRESS: 'Guild Progress',
HUB_PROGRESS: 'Hub Progress'};
}
@@ -0,0 +1,214 @@
/* Metro module 11930; source: modules/guild_progress/GuildProgressHooks.tsx; dependencies: [31, 1226, 1379, 1935, 4111, 1867, 11931, 4814, 3784, 661, 566, 9050, 21, 22, 5216, 2] */
function _fun91530(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:6, offset: 0x0206958a, size: 412 bytes, params: 8, frame: 24
let env0_0 = require;
const closure = function(a0) {
var env0_0 = a0;
return require(dependencyMap[10]).useStateFromStores([GuildChannelStore], _fun91532, [a0]);
};
const closure2 = useGuildPopulated;
const closure3 = useGuildPersonalized;
const closure4 = function(a0) {
var env0_0 = a0;
var env0_1 = require(dependencyMap[10]).useStateFromStores([AuthenticationStore], _fun91543);
return require(dependencyMap[10]).useStateFromStores([MessageStore], _fun91544);
};
const closure5 = useGuildMessaged;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
let value = require(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_6 = value.GUILD_SELECTABLE_CHANNELS_KEY;
const env0_7 = value.GUILD_VOCAL_CHANNELS_KEY;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const layerStore = importDefault(11931) /* metro dependency 11931: LayerStore */;
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
value = require(661) /* metro dependency 661: Constants */;
const env0_14 = value.Permissions;
const env0_15 = value.MessageTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/GuildProgressHooks.tsx');
exports.usePermissions = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return require(dependencyMap[10]).useStateFromStoresObject([PermissionStore], _fun91551, [a1, a0]);
};
exports.useGuildChannelCreated = closure;
exports.useGuildPopulated = closure2;
exports.useGuildPersonalized = closure3;
exports.useChannelsMessaged = closure4;
exports.useGuildMessaged = closure5;
exports.useCompletedStates = function(a0) {
var object = {};
object.guildPopulated = useGuildPopulated(a0);
object.guildMessaged = useGuildMessaged(a0);
object.guildPersonalized = useGuildPersonalized(a0);
object.guildChannelCreated = useGuildChannelCreated(a0);
return object;
};
}
function useGuildChannelCreated(a0) { // fn#91531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:302, offset: 0x02069726, size: 75 bytes, params: 2, frame: 16
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], _fun91532, [a0]);
}
function useGuildPopulated(a0) { // fn#91534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:610, offset: 0x02069840, size: 166 bytes, params: 2, frame: 21
const env0_0 = a0;
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun91535);
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberCountStore], _fun91537, [a0,
(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([MessageStore], _fun91536)]);
}
function useGuildPersonalized(a0) { // fn#91539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:983, offset: 0x020699ca, size: 129 bytes, params: 2, frame: 19
const env0_0 = a0;
const value2 = undefined;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LayerStore], function() {
return LayerStore.hasLayers();
});
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun91541);
return (guild == null ? value2 : guild.icon) != null && !value3;
}
function useChannelsMessaged(a0) { // fn#91542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1189, offset: 0x02069a8f, size: 109 bytes, params: 2, frame: 19
const env0_0 = a0;
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore],
function() {
return AuthenticationStore.getId();
});
return (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore], _fun91544);
}
function useGuildMessaged(a0) { // fn#91547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1441, offset: 0x02069bc3, size: 109 bytes, params: 2, frame: 16
const env0_0 = a0;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun91548);
const binding = env0_3;
const useMemo = binding.useMemo;
return useChannelsMessaged(Reflect.apply(useMemo, binding, [_fun91549, [value2]]));
}
function usePermissions(a0, a1) { // fn#91550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1749, offset: 0x02069c99, size: 87 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PermissionStore], _fun91551, [a1,
a0]);
}
function _fun91532() { // fn#91532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:377, offset: 0x02069771, size: 97 bytes, params: 1, frame: 15
var environment;
const closure = hasNewChannel;
const value = environment.__proto__;
const channels = GuildChannelStore.getChannels(env0_0?.id);
return channels[GUILD_SELECTABLE_CHANNELS_KEY].some(closure) || channels[GUILD_VOCAL_CHANNELS_KEY].some(closure);
}
function _fun91535() { // fn#91535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:679, offset: 0x020698e6, size: 47 bytes, params: 1, frame: 13
return ChannelStore.getChannel(env0_0?.systemChannelId);
}
function _fun91536() { // fn#91536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:772, offset: 0x02069915, size: 58 bytes, params: 1, frame: 12
var r0;
var value2;
var value;
if (channel != null) {
value2 = environment.__proto__;
value = MessageStore.getMessages(channel.id);
value = value.toArray();
r0 = value;
} else {
r0 = [];
}
return r0;
}
function _fun91537() { // fn#91537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:859, offset: 0x0206994f, size: 96 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
return (GuildMemberCountStore.getMemberCount(env0_0?.id) ?? 0) > 1 || env0_2.some(function({type}) {
return type === MessageTypes.USER_JOIN;
});
}
function _fun91541() { // fn#91541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1110, offset: 0x02069a60, size: 47 bytes, params: 1, frame: 13
return GuildStore.getGuild(env0_0?.id);
}
function _fun91544() { // fn#91544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1316, offset: 0x02069afc, size: 55 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = importDefault(22) /* metro dependency 22 */;
return value.some(env0_0, _fun91545);
}
function _fun91548() { // fn#91548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1509, offset: 0x02069c30, size: 45 bytes, params: 1, frame: 12
const value2 = null;
return value2 != env0_0 ? ChannelStore.getMutableBasicGuildChannelsForGuild(env0_0.id) : value2;
}
function _fun91549() { // fn#91549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1611, offset: 0x02069c5d, size: 60 bytes, params: 1, frame: 12
return env0_1 == null ? [] : (importDefault(22) /* metro dependency 22 */).values(env0_1);
}
function _fun91551() { // fn#91551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1824, offset: 0x02069cf0, size: 200 bytes, params: 1, frame: 19
const object2 = {};
const value = environment.__proto__;
object2.canInvite = (require(9050) /* metro dependency 9050: canViewInviteModal */).canViewInviteModal(PermissionStore,
require, env0_0);
object2.canManageGuild = require != null && PermissionStore.can(Permissions.MANAGE_GUILD, require);
object2.canMessage = env0_0 != null && PermissionStore.can(Permissions.SEND_MESSAGES, env0_0);
object2.canCreateChannel = require != null && PermissionStore.can(Permissions.MANAGE_CHANNELS, require);
return object2;
}
function hasNewChannel(a0) { // fn#91533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:430, offset: 0x020697d2, size: 110 bytes, params: 2, frame: 17
var r0;
var value3;
var defaultImport;
var extractTimestamp;
var id;
var value4;
var defaultImport2;
let value = environment.__proto__;
const value2 = env1_0 != null;
if (value2) {
value3 = environment.__proto__.__proto__;
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
extractTimestamp = defaultImport.extractTimestamp;
id = a0.channel.id;
value4 = Reflect.apply(extractTimestamp, defaultImport, [id]);
defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
extractTimestamp = defaultImport2.extractTimestamp;
id = env1_0.id;
value = value4 - Reflect.apply(extractTimestamp, defaultImport2, [id]);
value = value > 500;
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function _fun91545({id}) { // fn#91545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1337, offset: 0x02069b33, size: 81 bytes, params: 2, frame: 13
var environment;
const value = environment.__proto__.__proto__;
return (importDefault(22) /* metro dependency 22 */).some(MessageStore.getMessages(id).toArray(), _fun91546);
}
function _fun91546(a0) { // fn#91546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12116:1401, offset: 0x02069b84, size: 63 bytes, params: 2, frame: 13
var r0;
const id2 = a0.author.id;
let value = environment.__proto__.__proto__;
value = id2 === id;
if (value) {
value = environment.__proto__.__proto__.__proto__;
value = !(importDefault(5216) /* metro dependency 5216: isSystemMessage */)(a0);
r0 = value;
} else {
r0 = value;
}
return r0;
}
@@ -0,0 +1,399 @@
/* Metro module 11933; source: modules/guild_progress/GuildProgressStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 1379, 1867, 11927, 21, 566, 694, 2] */
function _fun91578(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:6, offset: 0x0206a7bf, size: 502 bytes, params: 8, frame: 19
const _arrayLikeToArray_91584 = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_10 = (require(11927) /* metro dependency 11927: GuildProgressConstants */).Steps;
const env0_11 = {};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
let value = _fun91586(PersistedStore);
value.displayName = 'GuildProgressStore';
value.persistKey = 'GuildProgressStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{CONNECTION_OPEN: CONNECTION_OPEN_91593, GUILD_PROGRESS_INITIALIZE: GUILD_PROGRESS_INITIALIZE,
GUILD_PROGRESS_COMPLETED_SEEN: GUILD_PROGRESS_COMPLETED_SEEN, GUILD_PROGRESS_DISMISS: function({guildId}) {
return completeStep(guildId, Steps.DISMISSED);
}, GUILD_CREATE: GUILD_CREATE_91599, CHANNEL_CREATE: CHANNEL_CREATE_91600, CHANNEL_UPDATES: CHANNEL_UPDATES_91601,
GUILD_SETTINGS_SUBMIT_SUCCESS: GUILD_SETTINGS_SUBMIT_SUCCESS_91602, MESSAGE_CREATE: MESSAGE_CREATE_91603,
GUILD_MEMBER_LIST_UPDATE: GUILD_MEMBER_LIST_UPDATE_91604});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/GuildProgressStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_91579() { // fn#91579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:197, offset: 0x0206a9b5, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_91579_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _createForOfIteratorHelperLoose_91582(a0, a1) { // fn#91582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:390, offset: 0x0206aa17, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun91583;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_91584(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_91584(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_91584(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun91583;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function completeStep(a0, a1) { // fn#91585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:1309, offset: 0x0206ab8b, size: 95 bytes, params: 3, frame: 16
var r1;
var r0;
var value3;
var binding;
var Set;
var set;
var value;
const property = env0_11[a0];
const value2 = property != null;
if (value2) {
value3 = property.has(a1);
if (value3) {
r1 = !value3;
} else {
binding = env0_11;
Set = global.Set;
value = property.add(a1);
set = new Set();
binding[a0] = set;
set = true;
r1 = set;
}
r0 = r1;
} else {
r0 = value2;
}
return r0;
}
function _fun91586(a0) { // fn#91586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:1410, offset: 0x0206abea, size: 149 bytes, params: 2, frame: 16
const closure = GuildProgressStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_91588}, {key: 'getProgress', value: value_91590},
{key: 'hasProgress', value: value_91591}, {key: 'getState', value: value_91592}]);
}
function CONNECTION_OPEN_91593() { // fn#91593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:2203, offset: 0x0206ad7d, size: 85 bytes, params: 1, frame: 14
(importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys(env0_11).forEach(_fun91594);
[].forEach(function(a0) {
return completeStep(a0, Steps.DISMISSED);
});
}
function GUILD_PROGRESS_INITIALIZE({guildId}) { // fn#91596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:2380, offset: 0x0206ae2a, size: 124 bytes, params: 2, frame: 13
var binding;
var Set;
var value2;
var set;
if (env0_11[guildId] == null) {
binding = env0_11;
Set = global.Set;
value2 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
binding[guildId] = set instanceof Object ? set : value2;
}
const property = env0_11[guildId];
const has = property.has;
const COMPLETED = Steps.COMPLETED;
if (!Reflect.apply(has, property, [COMPLETED])) {
env0_11[guildId].delete(Steps.DISMISSED);
}
}
function GUILD_PROGRESS_COMPLETED_SEEN({guildId}) { // fn#91597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:2525, offset: 0x0206aea6, size: 97 bytes, params: 2, frame: 14
if (env0_11[guildId] == null) {
return false;
}
const binding = env0_11;
const Set = global.Set;
const property = env0_11[guildId];
const add = property.add;
const COMPLETED = Steps.COMPLETED;
const value = Reflect.apply(add, property, [COMPLETED]);
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(value);
binding[guildId] = set instanceof Object ? set : value2;
}
function GUILD_CREATE_91599({guild}) { // fn#91599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:2748, offset: 0x0206af2a, size: 183 bytes, params: 2, frame: 15
var property;
const id = guild.id;
const member_count = guild.member_count;
const guild2 = GuildStore.getGuild(id);
if (guild2 == null) {
return false;
}
const ownerId = guild2.ownerId;
const getId = AuthenticationStore.getId;
if (ownerId === Reflect.apply(getId, AuthenticationStore, []) && env0_11[guild2.id] != null) {
if (guild2.icon != null) {
property = env0_11[guild2.id];
property.add(Steps.AVATAR);
}
if (member_count > 1) {
property = env0_11[guild2.id];
property.add(Steps.INVITE);
}
}
}
function CHANNEL_CREATE_91600({channel}) { // fn#91600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:2965, offset: 0x0206afe1, size: 84 bytes, params: 2, frame: 14
return channel != null && channel.guild_id != null && env0_11[channel.guild_id] != null && completeStep(channel.guild_id,
Steps.CHANNEL);
}
function CHANNEL_UPDATES_91601({channels}) { // fn#91601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:3114, offset: 0x0206b035, size: 144 bytes, params: 2, frame: 22
var r2;
var r3;
var r1;
var r0;
var value5;
var value6;
var guild_id;
var value7;
var binding;
var value8;
var completeStepBinding;
var CHANNEL;
var value9;
var value10;
var value11;
const value2 = _createForOfIteratorHelperLoose_91582(channels);
const value3 = value2();
let done = value3.done;
if (done) {
r0 = false;
} else {
r2 = false;
r3 = value3;
while (true) {
value5 = r3.value;
value6 = value5 != null;
if (value6) {
value7 = value5.guild_id != null;
r1 = value7;
} else {
r1 = value6;
}
if (!r1) {
continue;
}
binding = env0_11;
guild_id = value5.guild_id;
value8 = binding[guild_id] != null;
r1 = value8;
if (!r1) {
continue;
}
completeStepBinding = completeStep;
guild_id = value5.guild_id;
CHANNEL = Steps.CHANNEL;
value9 = completeStepBinding(guild_id, CHANNEL) !== false;
r1 = value9;
if (!r1) {
continue;
}
value10 = true;
r2 = value10;
value11 = value2();
done = value11.done;
if (done) {
r0 = r2;
break;
}
r3 = value11;
continue;
}
}
return r0;
}
function GUILD_SETTINGS_SUBMIT_SUCCESS_91602({guild}) { // fn#91602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:3376, offset: 0x0206b0c5, size: 99 bytes, params: 2, frame: 15
var r1;
var r0;
const value = guild != null;
if (value) {
r1 = guild.id != null && env0_11[guild.id] != null;
r1 = r1 && guild.icon != null;
r1 = r1 && completeStep(guild.id, Steps.AVATAR);
r0 = r1;
} else {
r0 = value;
}
return r0;
}
function MESSAGE_CREATE_91603({channelId, message}) { // fn#91603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:3519, offset: 0x0206b128, size: 129 bytes, params: 2, frame: 16
const channel = ChannelStore.getChannel(channelId);
const id = message.author?.id;
const getId = AuthenticationStore.getId;
return id === Reflect.apply(getId, AuthenticationStore,
[]) && channel != null && env0_11[channel.guild_id] != null && completeStep(channel.guild_id, Steps.MESSAGE);
}
function GUILD_MEMBER_LIST_UPDATE_91604({guildId, memberCount}) { // fn#91604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:3734, offset: 0x0206b1a9, size: 68 bytes, params: 2, frame: 14
return env0_11[guildId] != null && memberCount > 1 && completeStep(guildId, Steps.INVITE);
}
function value_91588(a0) { // fn#91588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:1730, offset: 0x0206ac7f, size: 105 bytes, params: 2, frame: 18
var environment;
const env0_0 = a0;
const waitFor = this.waitFor;
let value = environment.__proto__;
Reflect.apply(waitFor, this, [AuthenticationStore, ChannelStore, GuildStore]);
env1_11 = {};
if (a0 != null) {
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value = value.keys(a0);
value.forEach(_fun91589);
}
}
function value_91591(a0) { // fn#91591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:1963, offset: 0x0206ad4d, size: 48 bytes, params: 2, frame: 12
const value = environment.__proto__;
const property = env1_11[a0];
return property != null && !property.has(Steps.DISMISSED);
}
function _fun91594(a0) { // fn#91594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:2269, offset: 0x0206add2, size: 58 bytes, params: 2, frame: 12
const property = env1_11[a0];
const has = property.has;
const COMPLETED = Steps.COMPLETED;
if (Reflect.apply(has, property, [COMPLETED])) {
env0_0.push(a0);
}
}
function _fun91589(a0) { // fn#91589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12119:1801, offset: 0x0206ace8, size: 101 bytes, params: 2, frame: 13
var value;
const property = env0_0[a0];
if (property != null && typeof property[global.Symbol.iterator] === 'function') {
value = environment.__proto__.__proto__;
env2_11[a0] = new global.Set(property);
}
}
@@ -0,0 +1,154 @@
/* Metro module 11932; source: modules/guild_progress/native/GuildProgressUtils.tsx; dependencies: [1935, 1867, 3784, 11933, 11927, 661, 4080, 11934, 1962, 11935, 566, 11930, 1244, 21, 2] */
function _fun91564(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:6, offset: 0x0206a08d, size: 307 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = useIOSCompletionStates;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const guildProgressStore = importDefault(11933) /* metro dependency 11933: GuildProgressStore */;
const env0_7 = (require(11927) /* metro dependency 11927: GuildProgressConstants */).Steps;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_8 = constantsModule.WELCOME_OLD_GUILD_AGE_THRESHOLD;
const env0_9 = constantsModule.Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/GuildProgressUtils.tsx');
exports.MIN_PROGRESS_PERCENT = 3;
exports.PROGRESS_BACKGROUND_COLOR = 'rgba(78, 93, 148, 0.3)';
exports.openActionSheet = openActionSheet;
exports.hideActionSheet = hideActionSheet_91572;
exports.createGuildProgress = createGuildProgress;
exports.useIOSCompletionStates = closure;
exports.useGuildProgressStep = useGuildProgressStep;
exports.useIsEligibleForGuildProgress = useIsEligibleForGuildProgress;
}
function useIOSCompletionStates(a0) { // fn#91565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:214, offset: 0x0206a1c0, size: 459 bytes, params: 2, frame: 23
var r3;
var length;
var length2;
const env0_0 = a0;
const value2 = undefined;
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
let items = [PermissionStore];
const value3 = Reflect.apply(useStateFromStores, fluxModule, [items, _fun91566]);
const value4 = (require(11930) /* metro dependency 11930: GuildProgressHooks */).useGuildPersonalized(a0);
const value5 = (require(11930) /* metro dependency 11930: GuildProgressHooks */).useGuildPopulated(a0);
const defaultChannel = fluxModule.useStateFromStores([GuildChannelStore], _fun91567);
const value6 = (require(11930) /* metro dependency 11930: GuildProgressHooks */).useChannelsMessaged(defaultChannel != null ? [defaultChannel] : []);
const moduleValue6 = fluxModule;
useStateFromStores = moduleValue6.useStateFromStores;
const r6 = value6 || Reflect.apply(useStateFromStores, moduleValue6, [[GuildProgressStore], _fun91568]);
const progress = fluxModule.useStateFromStores([GuildProgressStore], _fun91569);
if (value3) {
items = [value5, value4, r6];
length = items.filter(function(a0) {
return a0;
}).length;
length2 = items.length;
r3 = progress == null ? value2 : progress.has(Steps.COMPLETED);
r3 = !r3 ? length === length2 : r3;
return {guildPopulated: value5, guildPersonalized: value4, guildMessaged: r6, completed: r3,
dismissed: progress == null || progress.has(Steps.DISMISSED), numFinished: r3 ? length2 : length,
totalSteps: length2};
}
return {'guildPopulated': false, 'guildPersonalized': false, 'guildMessaged': false, 'guildChannelCreated': false,
'completed': true, 'dismissed': true, 'numFinished': 0, 'totalSteps': 0};
}
function openActionSheet(a0) { // fn#91571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:1260, offset: 0x0206a43a, size: 112 bytes, params: 2, frame: 18
const defaultImport = importDefault(dependencyMap[6]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[8]);
value = value(dependencyMap[7], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'guild-progress-' + a0.id, {guild: a0}]);
}
function hideActionSheet_91572(a0) { // fn#91572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:1382, offset: 0x0206a4aa, size: 65 bytes, params: 2, frame: 14
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('guild-progress-' + a0);
}
function createGuildProgress(a0) { // fn#91573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:1480, offset: 0x0206a4eb, size: 64 bytes, params: 2, frame: 12
if (GuildStore.getGuild(a0) != null) {
(importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */).createProgress(a0);
}
}
function useGuildProgressStep(a0) { // fn#91574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:1631, offset: 0x0206a52b, size: 527 bytes, params: 2, frame: 23
var r5;
var r0;
var r10;
var value6;
var value7;
const {guildPopulated, guildPersonalized, guildMessaged, completed, totalSteps} = useIOSCompletionStates(a0);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
let object = [Reflect.apply(string, intl, [t.q9n0Ta])];
string = intl.string;
const DWB2YZ = t.DWB2YZ;
object[1] = Reflect.apply(string, intl, [DWB2YZ]);
object[2] = intl.string(t.dNktpr);
const value4 = 0;
if (guildPopulated) {
object[value4] = null;
r5 = 1;
} else {
r5 = value4;
}
if (guildPersonalized) {
value6 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
object[1] = null;
r0 = value6;
} else {
r0 = r5;
}
if (guildMessaged) {
value7 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
object[3] = null;
r10 = value7;
} else {
r10 = r0;
}
const r7 = object.find(function(a0) {
return a0 != null;
}) ?? intl.string(t['+Gyklt']);
object = {};
const Math = global.Math;
object.percentComplete = Math.max(3, 100 * r10 / totalSteps);
object.subtitle = r10 < totalSteps ? intl.formatToPlainString(t.zhHW5c, {currStep: r10 + 1, total: totalSteps,
step: r7}) : intl.string(t['+Gyklt']);
object.completed = completed;
return object;
}
function useIsEligibleForGuildProgress(a0) { // fn#91576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:2281, offset: 0x0206a73a, size: 133 bytes, params: 2, frame: 18
const env0_0 = a0;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun91577);
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
const value3 = defaultImport.extractTimestamp(a0.id);
const Date = global.Date;
return value2 && !(value3 < Date.now() - WELCOME_OLD_GUILD_AGE_THRESHOLD);
}
function _fun91566() { // fn#91566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:288, offset: 0x0206a38b, size: 38 bytes, params: 1, frame: 13
const can = PermissionStore.can;
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
return Reflect.apply(can, PermissionStore, [ADMINISTRATOR, env0_0]);
}
function _fun91567() { // fn#91567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:421, offset: 0x0206a3b1, size: 32 bytes, params: 1, frame: 11
return GuildChannelStore.getDefaultChannel(env0_0.id);
}
function _fun91568() { // fn#91568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:535, offset: 0x0206a3d1, size: 73 bytes, params: 1, frame: 13
const value = environment.__proto__;
const r1 = GuildProgressStore.getProgress(env0_0.id)?.has(Steps.MESSAGE);
return r1 != null && r1;
}
function _fun91569() { // fn#91569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12118:667, offset: 0x0206a41a, size: 32 bytes, params: 1, frame: 11
return GuildProgressStore.getProgress(env0_0.id);
}
@@ -0,0 +1,230 @@
/* Metro module 11934; source: modules/guild_progress/native/action_sheet/GuildProgressActionSheet.tsx; dependencies: [5, 31, 27, 9113, 1935, 11927, 661, 33, 4501, 697, 566, 11932, 3856, 683, 11935, 11936, 9151, 5930, 1244, 9112, 4660, 5586, 4601, 4080, 1239, 6018, 4573, 4578, 5278, 6805, 1305, 2] */
function _fun91605(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:6, offset: 0x0206b1ed, size: 471 bytes, params: 8, frame: 24
const env0_0 = require;
const closure = GuildProgressHeader;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
let value = require(11927) /* metro dependency 11927: GuildProgressConstants */;
const env0_8 = value.AnalyticsSetupTypes;
const env0_9 = value.AnalyticsActions;
value = require(661) /* metro dependency 661: Constants */;
const env0_10 = value.UPLOAD_MEDIUM_SIZE;
const env0_11 = value.AnalyticEvents;
const env0_12 = value.ComponentActions;
const env0_13 = value.InstantInviteSources;
value = require(33) /* metro dependency 33 */;
const env0_14 = value.jsx;
const env0_15 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
const env0_16 = Reflect.apply(createStyles, value, [{container: {padding: 16}, header: {'alignItems': 'center',
'paddingTop': 8, 'paddingBottom': 16}, headerTitle: {'marginBottom': 8, 'textAlign': 'center'},
headerSubtitle: {'fontSize': 14, 'fontWeight': '500', color: TEXT_SUBTLE}, footer: {marginTop: 4},
center: {alignItems: 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/action_sheet/GuildProgressActionSheet.tsx');
exports.default = GuildProgressActionSheet;
exports.GuildProgressHeader = closure;
}
function GuildProgressHeader({title, subtitle}) { // fn#91606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:616, offset: 0x0206b3c4, size: 179 bytes, params: 2, frame: 23
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text style={styles.headerTitle} variant="heading-xl/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{title}</Text>;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
return (
<View style={styles.header}>
{text}
<LegacyText style={styles.headerSubtitle}>
{subtitle}
</LegacyText>
</View>
);
}
function GuildProgressActionSheet({guild}) { // fn#91607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:1036, offset: 0x0206b477, size: 1253 bytes, params: 2, frame: 32
var r9;
var Button;
const styles = useStyles();
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], function() {
return GuildChannelStore.getDefaultChannel(guild.id);
});
const {guildPopulated, guildPersonalized, guildMessaged, numFinished,
totalSteps} = (require(11932) /* metro dependency 11932: GuildProgressUtils */).useIOSCompletionStates(guild);
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
function() {
return GuildSettingsStore.getErrors();
});
const env0_4 = value3;
const id = guild.id;
const binding = env0_4;
binding.useLayoutEffect(_fun91610, [value3.message]);
binding.useEffect(function() {
var defaultImport = importDefault(dependencyMap[13]);
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
defaultImport.track(OPEN_POPOUT, {type: 'Guild Progress Sheet', guild_id: id});
}, [id]);
binding.useEffect(_fun91612, [id, totalSteps, numFinished]);
const ProgressItem = importDefault(11936) /* metro dependency 11936: ProgressItem */;
const defaultImportProps = {onPress: onPress_91613,
source: {uri: importDefault(5930) /* metro dependency 5930: MailboxIllocon2xPng */}};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
defaultImportProps.title = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.q9n0Ta]);
defaultImportProps.isCompleted = guildPopulated;
let GUILD_PROGRESS = AnalyticsSetupTypes.GUILD_PROGRESS;
defaultImportProps.analyticsSetupType = GUILD_PROGRESS;
const INVITE = AnalyticsActions.INVITE;
defaultImportProps.analyticsAction = INVITE;
const progressItem = <ProgressItem {...defaultImportProps} />;
const value5 = _fun91614();
const defaultImport2 = ProgressItem;
const object = {uri: importDefault(5586) /* metro dependency 5586: BrushIllocon2xPng */};
string = intl.string;
const DWB2YZ = (require(1244) /* metro dependency 1244: indexNative */).t.DWB2YZ;
GUILD_PROGRESS = AnalyticsSetupTypes.GUILD_PROGRESS;
const PERSONALIZE_SERVER = AnalyticsActions.PERSONALIZE_SERVER;
const defaultImport22 = ((Component) => <Component onPress={value5} source={object} title={Reflect.apply(string,
intl,
[DWB2YZ])} isCompleted={guildPersonalized} analyticsSetupType={GUILD_PROGRESS} analyticsAction={PERSONALIZE_SERVER} />)(defaultImport2);
const defaultImport3 = ProgressItem;
const defaultImport3Props2 = {onPress: onPress_91618,
source: {uri: importDefault(6018) /* metro dependency 6018: PlaneIllocon2xPng */},
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dNktpr),
isCompleted: guildMessaged};
GUILD_PROGRESS = AnalyticsSetupTypes.GUILD_PROGRESS;
defaultImport3Props2.analyticsSetupType = GUILD_PROGRESS;
const SEND_MESSAGE = AnalyticsActions.SEND_MESSAGE;
defaultImport3Props2.analyticsAction = SEND_MESSAGE;
const defaultImport32 = ((Component) => <Component {...defaultImport3Props2} />)(defaultImport3);
const value8 = numFinished === totalSteps;
const closure = onPress_91619;
const guildProgressHeader = <GuildProgressHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['tu/tr8'])} subtitle={intl.format((require(1244) /* metro dependency 1244: indexNative */).t.l6iRLs,
{numFinished: numFinished, total: totalSteps, stepsHook: stepsHook})} />;
const items2 = [styles.footer];
items2[1] = value8 ? null : styles.center;
if (value8) {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r9 = <Button variant="primary" grow onPress={closure} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0/5zhg'])} />;
} else {
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
r9 = <PressableOpacity accessibilityRole="button" onPress={closure}>{((Text) => <Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9E36wf'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</PressableOpacity>;
}
const view = <View style={styles.container}>{guildProgressHeader}{progressItem}{defaultImport22}{defaultImport32}<View style={items2}>{r9}</View></View>;
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
return (
<ActionSheet showGradient startExpanded>
{view}
</ActionSheet>
);
}
function _fun91610() { // fn#91610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:1372, offset: 0x0206b98f, size: 67 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (env0_4.message != null) {
value2 = environment.__proto__;
moduleValue = require(3856) /* metro dependency 3856: ToastUtils */;
moduleValue.presentError(env0_4.message);
}
}
function _fun91612() { // fn#91612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:1551, offset: 0x0206ba19, size: 59 bytes, params: 1, frame: 12
var value2;
var defaultImport;
if (numFinished === totalSteps) {
value2 = environment.__proto__;
defaultImport = importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */;
defaultImport.markCompletedProgressSeen(id);
}
}
function GuildProgressActionSheetOnPress() { // fn#91613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:1638, owner: GuildProgressActionSheet.onPress, offset: 0x0206ba54, size: 74 bytes, params: 1, frame: 14
var value2;
var moduleValue;
if (defaultChannel != null) {
value2 = environment.__proto__;
moduleValue = require(9151) /* metro dependency 9151: InstantInviteUtils */;
moduleValue.showInstantInviteActionSheet(defaultChannel, {source: InstantInviteSources.GUILD_PROGRESS});
}
}
function _fun91614() { // fn#91614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:1867, offset: 0x0206ba9e, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun91616);
return _fun91617;
}
function GuildProgressActionSheetOnPress_91618() { // fn#91618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:2296, owner: GuildProgressActionSheet.onPress, offset: 0x0206bb87, size: 173 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (defaultChannel != null) {
value2 = environment.__proto__;
moduleValue = require(4601) /* metro dependency 4601: transitionToChannel */;
moduleValue.transitionToChannel(defaultChannel.id);
}
const value4 = undefined;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const r4 = defaultChannel != null ? {channelId: defaultChannel.id} : value4;
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
const dispatch = ComponentDispatch.dispatch;
const TEXTAREA_FOCUS = ComponentActions.TEXTAREA_FOCUS;
Reflect.apply(dispatch, ComponentDispatch, [TEXTAREA_FOCUS, r4]);
return value4;
}
function GuildProgressActionSheetOnPress_91619() { // fn#91619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:2653, owner: GuildProgressActionSheet.onPress, offset: 0x0206bc34, size: 184 bytes, params: 1, frame: 19
const defaultImport = importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */;
const dismissProgress = defaultImport.dismissProgress;
const guildBinding = guild;
Reflect.apply(dismissProgress, defaultImport, [guildBinding.id]);
const defaultImport2 = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
defaultImport2.hideActionSheet('guild-progress-' + guildBinding.id);
const defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport3.track;
const SERVER_SETUP_CTA_CLICKED = AnalyticEvents.SERVER_SETUP_CTA_CLICKED;
const DISMISS_GUILD_PROGRESS = AnalyticsActions.DISMISS_GUILD_PROGRESS;
const GUILD_PROGRESS = AnalyticsSetupTypes.GUILD_PROGRESS;
Reflect.apply(track, defaultImport3, [SERVER_SETUP_CTA_CLICKED, {action: DISMISS_GUILD_PROGRESS,
setup_type: GUILD_PROGRESS, num_total_actions: totalSteps, num_actions_completed: numFinished}]);
}
function GuildProgressActionSheetStepsHook(a0, a1) { // fn#91620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:3078, owner: GuildProgressActionSheet.stepsHook, offset: 0x0206bcec, size: 67 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/medium"
color="mobile-text-heading-primary"
key={a1}
>
{a0}
</Text>
);
}
function* _fun91616() { // fn#91616, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12120:1887, offset: 0x0206bacd, size: 186 bytes, params: 1, frame: 19
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_1;
var binding2 = env3_2;
binding(binding2[19]).init(View);
var value5 = env3_0(binding2[11]);
value5.hideActionSheet(require.id);
var value6 = binding(binding2[20]);
yield value6.openImagePicker({size: env3_10});
var value7 = undefined;
if (false) {
return value7;
}
var base64 = value7.base64;
if (base64 != null) {
env3_1(env3_2[19]).updateIcon(View, base64);
}
}
}
@@ -0,0 +1,63 @@
/* Metro module 12702; source: modules/guild_progress/native/components/GuildProgressBar.tsx; dependencies: [31, 27, 33, 4501, 11932, 697, 4017, 4504, 4507, 2] */
function _fun97333(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12892:6, offset: 0x0217bc43, size: 345 bytes, params: 8, frame: 22
var object4;
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(27) /* metro dependency 27 */).View;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object5 = {position: 'relative'};
const PROGRESS_BACKGROUND_COLOR = (require(11932) /* metro dependency 11932: GuildProgressUtils */).PROGRESS_BACKGROUND_COLOR;
object5.backgroundColor = PROGRESS_BACKGROUND_COLOR;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object5.height = 8;
object4.wrapper = object5;
const object6 = {'position': 'absolute', 'height': 8};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object6.backgroundColor = BACKGROUND_BRAND;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object4.progress = object6;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object4]);
object4 = {code: 'function GuildProgressBarTsx1(){const{percentWidth}=this.__closure;return{width:percentWidth.get()+"%"};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/components/GuildProgressBar.tsx');
exports.default = GuildProgressBar;
}
function GuildProgressBar({percent, style}) { // fn#97334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12892:620, offset: 0x0217bd9c, size: 264 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
env0_3.useEffect(_fun97335, [percent, value2]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = GuildProgressBarH;
closure.__closure = {percentWidth: value2};
closure.__workletHash = 14122394499539;
closure.__initData = env0_7;
const value3 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const items2 = [styles.wrapper, style];
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View style={items2}>
<View2 style={[styles.progress, value3]} />
</View>
);
}
function _fun97335() { // fn#97335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12892:718, offset: 0x0217bea4, size: 77 bytes, params: 1, frame: 18
const binding = env0_1;
const set = binding.set;
const timingModule = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [timingModule.withTiming(percent,
(require(4507) /* metro dependency 4507: timingPresets */).timingSlow)]);
}
function GuildProgressBarH() { // fn#97336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12892:817, owner: GuildProgressBar.h, offset: 0x0217bef1, size: 51 bytes, params: 1, frame: 14
const object2 = {};
object2.width = '' + env0_1.get() + '%';
return object2;
}
@@ -0,0 +1,47 @@
/* Metro module 11938; source: modules/guild_progress/native/components/GuildProgressCircle.tsx; dependencies: [31, 27, 33, 4501, 697, 11939, 11932, 2] */
function _fun91633(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12124:6, offset: 0x0206c3a2, size: 260 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
const env0_6 = Reflect.apply(createStyles, value, [{wrapper: {position: 'relative'}, circle: {position: 'absolute'},
progressCircle: {color: BACKGROUND_BRAND}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/components/GuildProgressCircle.tsx');
exports.default = GuildProgressCircle;
}
function GuildProgressCircle({percent, style, size}) { // fn#91634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12124:394, offset: 0x0206c4a6, size: 288 bytes, params: 2, frame: 26
size = size === undefined ? 32 : size;
const styles = useStyles();
const object2 = {width: size, height: size, borderRadius: size / 2};
const items3 = [styles.wrapper, style, object2];
const ProgressCircle = importDefault(11939) /* metro dependency 11939: ProgressCircle */;
const items2 = [styles.circle, object2];
const PROGRESS_BACKGROUND_COLOR = (require(11932) /* metro dependency 11932: GuildProgressUtils */).PROGRESS_BACKGROUND_COLOR;
return (
<View style={items3}>
<ProgressCircle
style={items2}
size={size}
strokeWidth={4}
percent={100}
color={PROGRESS_BACKGROUND_COLOR}
/>
<ProgressCircle
style={[styles.circle, object2]}
size={size}
strokeWidth={4}
color={styles.progressCircle.color}
percent={percent}
/>
</View>
);
}
@@ -0,0 +1,45 @@
/* Metro module 11937; source: modules/guild_progress/native/components/GuildProgressItem.tsx; dependencies: [31, 33, 4501, 11932, 11936, 11935, 6014, 1244, 11938, 2] */
function _fun91629(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12123:6, offset: 0x0206c143, size: 184 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {'width': 32,
'height': 32}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/components/GuildProgressItem.tsx');
exports.default = GuildProgressItem;
}
function GuildProgressItem({guild}) { // fn#91630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12123:276, offset: 0x0206c1fb, size: 254 bytes, params: 2, frame: 23
const styles = useStyles();
const {numFinished, completed,
totalSteps} = (require(11932) /* metro dependency 11932: GuildProgressUtils */).useIOSCompletionStates(guild);
const progressItem = importDefault(11936) /* metro dependency 11936: ProgressItem */;
const valueProps = {onPress: onPress_91631,
source: {uri: importDefault(6014) /* metro dependency 6014: PencilIllocon2xPng */}, iconStyle: styles.icon};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
valueProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['J2+r16']);
valueProps.isCompleted = completed;
valueProps.renderEndComponent = numFinished > 0 && numFinished < totalSteps ? _fun91632 : undefined;
valueProps.fullWidth = true;
return ((Component) => <Component {...valueProps} />)(progressItem);
}
function GuildProgressItemOnPress() { // fn#91631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12123:431, owner: GuildProgressItem.onPress, offset: 0x0206c2f9, size: 97 bytes, params: 1, frame: 12
var value2;
var defaultImport;
if (!completed) {
value2 = environment.__proto__;
defaultImport = importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */;
defaultImport.createProgress(guild.id);
}
const guildProgressUtilsModule = require(11932) /* metro dependency 11932: GuildProgressUtils */;
guildProgressUtilsModule.openActionSheet(guild);
}
function _fun91632() { // fn#91632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12123:623, offset: 0x0206c35a, size: 72 bytes, params: 1, frame: 15
const value = environment.__proto__;
return ((Component) => <Component percent={100 * numFinished / 3} size={32} />)(importDefault(11938) /* metro dependency 11938: GuildProgressCircle */);
}
@@ -0,0 +1,117 @@
/* Metro module 12701; source: modules/guild_progress/native/components/GuildProgressOverview.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 11932, 11935, 6802, 1244, 5278, 1305, 4573, 10787, 12702, 2] */
function _fun97326(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:6, offset: 0x0217b6cf, size: 352 bytes, params: 8, frame: 24
const env0_0 = require;
const closure = GuildProgressOverviewView;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
let value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'fontSize': 16, 'lineHeight': 20, 'fontFamily': null, 'color': null, 'marginBottom': 2};
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object.fontFamily = PRIMARY_SEMIBOLD;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object.color = MOBILE_TEXT_HEADING_PRIMARY;
const env0_7 = Reflect.apply(createStyles, value, [{container: {padding: 16}, horizontal: {'flexDirection': 'row',
'justifyContent': 'space-between', 'alignItems': 'center'}, title: object, step: {lineHeight: 16},
progressBar: {marginTop: 8}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/components/GuildProgressOverview.tsx');
exports.default = GuildProgressOverview;
exports.GuildProgressOverviewView = closure;
}
function GuildProgressOverviewView({titleStyle, onPress, onLongPress, title, subtitle, percentComplete}) { // fn#97327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:472, offset: 0x0217b82f, size: 407 bytes, params: 2, frame: 33
const styles = useStyles();
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const legacyText = <LegacyText style={[styles.title, titleStyle]}>{title}</LegacyText>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const view = <View>{legacyText}<Text style={styles.step} variant="text-xs/medium" color="text-default">{subtitle}</Text></View>;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
return (
<PressableOpacity
accessibilityRole="button"
activeOpacity={0.4}
style={styles.container}
onPress={onPress}
onLongPress={onLongPress}
>
<View style={styles.horizontal}>
{view}
<Icon source={importDefault(10787) /* metro dependency 10787 */} />
</View>
{((Component) => <Component style={styles.progressBar} percent={percentComplete} />)(importDefault(12702) /* metro dependency 12702: GuildProgressBar */)}
</PressableOpacity>
);
}
function GuildProgressOverview({guild, titleStyle, longPressDisabled, resume}) { // fn#97328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:1117, offset: 0x0217b9c6, size: 282 bytes, params: 2, frame: 21
var object2;
if (longPressDisabled !== undefined) {
}
resume = !(resume === undefined) && resume;
const {percentComplete, subtitle,
completed} = (require(11932) /* metro dependency 11932: GuildProgressUtils */).useGuildProgressStep(guild);
env0_3.useEffect(_fun97329, [completed, guild.id]);
object2 = {titleStyle: titleStyle, onPress: onPress_97330, onLongPress: onLongPress_97331};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.title = resume ? Reflect.apply(string, intl, [t.NzxWjb]) : Reflect.apply(string, intl, [t.o3HK3d]);
object2.subtitle = subtitle;
object2.percentComplete = percentComplete;
return <GuildProgressOverviewView {...object2} />;
}
function _fun97329() { // fn#97329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:1312, offset: 0x0217bae0, size: 59 bytes, params: 1, frame: 12
var value2;
var defaultImport;
if (completed) {
value2 = environment.__proto__;
defaultImport = importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */;
defaultImport.markCompletedProgressSeen(guild.id);
}
}
function GuildProgressOverviewOnPress() { // fn#97330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:1422, owner: GuildProgressOverview.onPress, offset: 0x0217bb1b, size: 97 bytes, params: 1, frame: 12
var value2;
var defaultImport;
if (!completed) {
value2 = environment.__proto__;
defaultImport = importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */;
defaultImport.createProgress(guild.id);
}
const guildProgressUtilsModule = require(11932) /* metro dependency 11932: GuildProgressUtils */;
guildProgressUtilsModule.openActionSheet(guild);
}
function GuildProgressOverviewOnLongPress() { // fn#97331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:1499, owner: GuildProgressOverview.onLongPress, offset: 0x0217bb7c, size: 149 bytes, params: 1, frame: 18
var environment;
var showSimpleActionSheet;
var object;
var intl;
var value;
if (!longPressDisabled) {
value = environment.__proto__;
value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
showSimpleActionSheet = value.showSimpleActionSheet;
object = {};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PbNxaW);
object.onPress = onPress_97332;
Reflect.apply(showSimpleActionSheet, value, [{'key': 'GuildProgressOverviewLongPress', 'options': null,
'hasIcons': false, options: [object]}]);
}
}
function onLongPressOnPress_97332() { // fn#97332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12891:1629, owner: GuildProgressOverview.onLongPress.onPress, offset: 0x0217bc11, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = importDefault(11935) /* metro dependency 11935: GuildProgressActionCreators */;
value.dismissProgress(guild.id);
}
@@ -0,0 +1,52 @@
/* Metro module 11936; source: modules/guild_progress/native/components/ProgressItem.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4863, 7972, 2] */
function _fun91626(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12122:6, offset: 0x0206be8f, size: 275 bytes, params: 8, frame: 22
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(27) /* metro dependency 27 */).View;
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
const env0_7 = Reflect.apply(createStyles, createStylesModule, [{formCTAContainer: {marginBottom: 8},
formCTA: {backgroundColor: CARD_BACKGROUND_DEFAULT}, formCTAFullWidth: {width: '100%'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_progress/native/components/ProgressItem.tsx');
exports.default = ProgressItem;
}
function ProgressItem({title, source, onPress, isCompleted, description, analyticsSetupType, analyticsAction, renderEndComponent, fullWidth, iconStyle}) { // fn#91627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12122:418, offset: 0x0206bfa2, size: 301 bytes, params: 2, frame: 26
const env0_3 = analyticsAction;
const styles = useStyles();
const value3 = env0_3.useCallback(_fun91628, [analyticsAction, analyticsSetupType, onPress, isCompleted]);
const FormCTA = (require(7972) /* metro dependency 7972: native */).FormCTA;
return (
<View style={styles.formCTAContainer}>
<FormCTA
variant="row-button"
style={[styles.formCTA, fullWidth ? styles.formCTAFullWidth : undefined]}
onPress={value3}
iconSource={source}
iconStyle={iconStyle}
title={title}
subtitle={description}
completed={isCompleted}
trailing={renderEndComponent?.() ?? null}
/>
</View>
);
}
function _fun91628() { // fn#91628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12122:611, offset: 0x0206c0cf, size: 116 bytes, params: 1, frame: 15
var value4;
var defaultImport;
if (analyticsAction != null && analyticsSetupType != null) {
value4 = environment.__proto__;
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
defaultImport.trackWithMetadata(AnalyticEvents.SERVER_SETUP_CTA_CLICKED, {setup_type: analyticsSetupType,
action: analyticsAction, action_completed: isCompleted});
}
onPress();
}