Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user