Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+241
@@ -0,0 +1,241 @@
|
||||
/* Metro module 11731; source: modules/app_launcher/native/screens/app_list_view/AppLauncherViewAllScreen.tsx; dependencies: [31, 27, 1483, 33, 4501, 697, 11673, 3860, 1585, 8774, 11592, 5068, 5278, 1244, 5284, 4573, 1305, 11634, 11597, 11671, 11639, 11642, 11643, 11593, 8048, 2] */
|
||||
function _fun89888(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:6, offset: 0x020225f5, size: 435 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
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;
|
||||
let value = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
|
||||
const DEFAULT_CONTENT_PADDING = value.DEFAULT_CONTENT_PADDING;
|
||||
const env0_6 = value.FLASH_LIST_ITEM_IMPRESSION_VIEWABILITY_CONFIG;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
object2 = {bottom: 4};
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
|
||||
object2.container = {'height': '100%', 'backgroundColor': null, 'flex': 1, 'flexDirection': 'column',
|
||||
'paddingBottom': 12, backgroundColor: MOBILE_KEYBOARD_PANEL_BACKGROUND};
|
||||
MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
|
||||
object2.header = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between', 'height': 24,
|
||||
'backgroundColor': null, 'paddingHorizontal': null, 'marginBottom': 12,
|
||||
backgroundColor: MOBILE_KEYBOARD_PANEL_BACKGROUND, paddingHorizontal: DEFAULT_CONTENT_PADDING};
|
||||
const object3 = {paddingHorizontal: DEFAULT_CONTENT_PADDING};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.paddingBottom = PX_4;
|
||||
object2.list = object3;
|
||||
const BACK_BUTTON_SIZE = (require(11673) /* metro dependency 11673: AppLauncherBackButton */).BACK_BUTTON_SIZE;
|
||||
object2.backButton = {width: BACK_BUTTON_SIZE, height: BACK_BUTTON_SIZE, alignItems: 'center',
|
||||
justifyContent: 'center'};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/app_list_view/AppLauncherViewAllScreen.tsx');
|
||||
exports.default = AppLauncherViewAllScreen;
|
||||
}
|
||||
|
||||
function AppLauncherViewAllScreen(a0) { // fn#89889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:905, offset: 0x020227a8, size: 1366 bytes, params: 2, frame: 36
|
||||
const params = a0.route.params;
|
||||
const context = params.context;
|
||||
const analyticsLocation = params.analyticsLocation;
|
||||
const sectionItemType = params.sectionItemType;
|
||||
const sectionName = params.sectionName;
|
||||
const sectionOverallPosition = params.sectionOverallPosition;
|
||||
const applications = params.applications;
|
||||
const env0_3 = applications;
|
||||
const commands = params.commands;
|
||||
const sectionDescriptors = params.sectionDescriptors;
|
||||
const title = params.title;
|
||||
const promotedApplicationIds = params.promotedApplicationIds;
|
||||
const navigation = a0.navigation;
|
||||
const r24 = sectionName ?? 'frecency_view_all';
|
||||
const env0_9 = r24;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_HEIGHT;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_HEIGHT]);
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom + DEFAULT_CONTENT_PADDING;
|
||||
const {chatInputRef, keyboardCloseReasonRef,
|
||||
entrypoint} = (require(8774) /* metro dependency 8774: AppLauncherContext */).useRequiredAppLauncherContext();
|
||||
const binding = env0_3;
|
||||
const value5 = binding.useCallback(_fun89890, [chatInputRef, keyboardCloseReasonRef, navigation]);
|
||||
const value6 = binding.useCallback(_fun89891, [analyticsLocation, context, entrypoint, navigation]);
|
||||
const value7 = binding.useCallback(_fun89892, [analyticsLocation, context, entrypoint, navigation,
|
||||
sectionDescriptors]);
|
||||
const value8 = binding.useMemo(_fun89893, [value5, styles.backButton, styles.header, title]);
|
||||
const value9 = binding.useCallback(_fun89894, [applications, promotedApplicationIds, value6, r24]);
|
||||
const value11 = binding.useCallback(_fun89897, [sectionDescriptors, context, commands.length,
|
||||
binding.useCallback(function() {
|
||||
var current = chatInputRef.current;
|
||||
if (current != null) {
|
||||
current.closeCustomKeyboard();
|
||||
}
|
||||
keyboardCloseReasonRef.current = require(dependencyMap[9]).AppLauncherKeyboardCloseReason.COMMAND;
|
||||
}, [chatInputRef, keyboardCloseReasonRef]), r24, value7]);
|
||||
const {flashListRef,
|
||||
bottomVisibilityInsetRef} = (require(11639) /* metro dependency 11639: useBottomSheetFlashListBottomViewabilityInset */).useBottomSheetFlashListBottomViewabilityInset();
|
||||
const useTrackAppLauncherItemImpressionOnFirstViewModule = require(11642) /* metro dependency 11642: useTrackAppLauncherItemImpressionOnFirstView */;
|
||||
const useTrackAppLauncherItemImpressionOnFirstView = useTrackAppLauncherItemImpressionOnFirstViewModule.useTrackAppLauncherItemImpressionOnFirstView;
|
||||
const trackAppLauncherItemImpressionOnFirstView = Reflect.apply(useTrackAppLauncherItemImpressionOnFirstView,
|
||||
useTrackAppLauncherItemImpressionOnFirstViewModule, []).trackAppLauncherItemImpressionOnFirstView;
|
||||
const value13 = (require(11643) /* metro dependency 11643: AppLauncherFlashList */).useAppLauncherFlashListProps();
|
||||
const value14 = binding.useMemo(_fun89900, [value3, styles.list]);
|
||||
const value15 = binding.useMemo(function() {
|
||||
return [{viewabilityConfig: FLASH_LIST_ITEM_IMPRESSION_VIEWABILITY_CONFIG, onViewableItemsChanged: _fun89902}];
|
||||
}, [r24, sectionOverallPosition, trackAppLauncherItemImpressionOnFirstView]);
|
||||
const value16 = binding.useMemo(function() {
|
||||
return [{viewabilityConfig: FLASH_LIST_ITEM_IMPRESSION_VIEWABILITY_CONFIG, onViewableItemsChanged: _fun89905}];
|
||||
}, [r24, sectionOverallPosition, trackAppLauncherItemImpressionOnFirstView]);
|
||||
const value17 = binding.useMemo(_fun89907, [value2, applications.length]);
|
||||
const value18 = binding.useMemo(_fun89908, [value2, commands.length]);
|
||||
const SectionItemType = (require(11593) /* metro dependency 11593: FrecencySection */).SectionItemType;
|
||||
const APPS = SectionItemType.APPS;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{value8}
|
||||
{sectionItemType === APPS ? ((Component) => <Component preserveScrollMomentum estimatedFirstItemOffset={10} contentContainerStyle={value14} scrollIndicatorInsets={env0_9} keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}} data={applications} renderItem={value9} accessibilityRole="radiogroup" estimatedItemSize={value2} estimatedListSize={value17} ref={entrypoint !== (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.VOICE ? flashListRef : value13.scrollerRef} bottomViewabilityInsetRef={bottomVisibilityInsetRef} viewabilityConfigCallbackPairs={value15} animatedOnScroll={value13.onScroll} simultaneousHandlers={value13.gestureRef} animatedProps={value13.animatedProps} />)(importDefault(11643) /* metro dependency 11643: AppLauncherFlashList */) : ((Component) => <Component preserveScrollMomentum estimatedFirstItemOffset={10} contentContainerStyle={value14} scrollIndicatorInsets={env0_9} keyExtractor={keyExtractor_89910} data={commands} renderItem={value11} accessibilityRole="radiogroup" estimatedItemSize={value2} estimatedListSize={value18} ref={entrypoint !== (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.VOICE ? flashListRef : value13.scrollerRef} bottomViewabilityInsetRef={bottomVisibilityInsetRef} viewabilityConfigCallbackPairs={value16} animatedOnScroll={value13.onScroll} simultaneousHandlers={value13.gestureRef} animatedProps={value13.animatedProps} />)(importDefault(11643) /* metro dependency 11643: AppLauncherFlashList */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89890() { // fn#89890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:1380, offset: 0x02022cfe, size: 112 bytes, params: 1, frame: 13
|
||||
var keyboardCloseReasonRefBinding;
|
||||
var value2;
|
||||
var current;
|
||||
const navigationBinding = navigation;
|
||||
if (navigationBinding.canGoBack()) {
|
||||
navigation.pop();
|
||||
} else {
|
||||
keyboardCloseReasonRefBinding = keyboardCloseReasonRef;
|
||||
value2 = environment.__proto__;
|
||||
keyboardCloseReasonRefBinding.current = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherKeyboardCloseReason.BACK;
|
||||
current = chatInputRef.current;
|
||||
if (current != null) {
|
||||
current.closeCustomKeyboard();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89891({application, sectionName}) { // fn#89891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:1542, offset: 0x02022d6e, size: 144 bytes, params: 2, frame: 18
|
||||
const appLauncherNativeUtilsModule = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
appLauncherNativeUtilsModule.handleApplicationSelected({location: analyticsLocation ?? (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW_FRECENCT,
|
||||
application: application, navigation: navigation, context: context, sectionName: sectionName,
|
||||
entrypoint: entrypoint});
|
||||
}
|
||||
|
||||
function _fun89892(a0, a1, a2) { // fn#89892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:1810, offset: 0x02022dfe, size: 163 bytes, params: 4, frame: 16
|
||||
const appLauncherNativeUtilsModule = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
appLauncherNativeUtilsModule.handleApplicationCommandSelected({location: analyticsLocation ?? (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW_FRECENCT,
|
||||
context: context, command: a0, section: a1, sectionDescriptors: sectionDescriptors, query: '',
|
||||
navigation: navigation, sectionName: a2, entrypoint: entrypoint});
|
||||
}
|
||||
|
||||
function _fun89893() { // fn#89893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:2095, offset: 0x02022ea1, size: 332 bytes, params: 1, frame: 23
|
||||
const value = environment.__proto__;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps = {style: styles.backButton};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
pressableOpacityProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
|
||||
pressableOpacityProps.accessibilityRole = 'button';
|
||||
pressableOpacityProps.onPress = env0_16;
|
||||
const ArrowLargeLeftIcon = (require(5284) /* metro dependency 5284: ArrowLargeLeftIcon */).ArrowLargeLeftIcon;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
const items2 = [<PressableOpacity {...pressableOpacityProps}><ArrowLargeLeftIcon color={INTERACTIVE_TEXT_DEFAULT} /></PressableOpacity>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text lineClamp={1} variant="heading-lg/bold" color="mobile-text-heading-primary">{title}</Text>;
|
||||
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
|
||||
const BACK_BUTTON_SIZE = (require(11673) /* metro dependency 11673: AppLauncherBackButton */).BACK_BUTTON_SIZE;
|
||||
items2[2] = <Spacer size={BACK_BUTTON_SIZE} />;
|
||||
return (
|
||||
<View style={styles.header}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89894({item, index}) { // fn#89894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:2571, offset: 0x02022fed, size: 168 bytes, params: 2, frame: 21
|
||||
return ((Component) => <Component application={item} onPress={onPress_89895} isFirstRow={index === 0} isLastRow={applications != null && index === applications.length - 1} showsPromoted={promotedApplicationIds?.has(item.id)} key={item.id} />)(importDefault(11634) /* metro dependency 11634: RecommendationAppRow */);
|
||||
}
|
||||
|
||||
function _fun89897({item, index}) { // fn#89897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:2946, offset: 0x02023108, size: 334 bytes, params: 2, frame: 24
|
||||
const r7 = sectionDescriptors?.find(function({id}) {
|
||||
return id === item.applicationId;
|
||||
});
|
||||
const appLauncherIconSource = (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(r7?.application);
|
||||
const value6 = commands.length - 1;
|
||||
if (r7 == null) {
|
||||
return null;
|
||||
}
|
||||
const r5 = appLauncherIconSource != null && ((Component) => <Component iconSource={appLauncherIconSource} iconSize={36} />)(importDefault(11597) /* metro dependency 11597: EntityBorderAppIcon */);
|
||||
const CommandRow = (require(11671) /* metro dependency 11671: AppDetailContent */).CommandRow;
|
||||
const commandRowProps = {command: item, onPressCommand: onPressCommand, onExecuteCommand: env0_19,
|
||||
isFirstRow: index === 0, isLastRow: index === value6, context: context, section: r7};
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_FRECENTS_VIEW_ALL = ApplicationCommandTriggerLocations.APP_LAUNCHER_FRECENTS_VIEW_ALL;
|
||||
commandRowProps.location = APP_LAUNCHER_FRECENTS_VIEW_ALL;
|
||||
commandRowProps.sectionName = env0_9;
|
||||
commandRowProps.icon = r5;
|
||||
return <CommandRow {...commandRowProps} />;
|
||||
}
|
||||
|
||||
function _fun89900() { // fn#89900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:3711, offset: 0x02023277, size: 37 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
const stylesBinding = styles;
|
||||
copyDataProperties(object2, stylesBinding.list, stylesBinding);
|
||||
object2['paddingBottom'] = env0_12;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89901() { // fn#89901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:3771, offset: 0x0202329c, size: 38 bytes, params: 1, frame: 2
|
||||
return [{viewabilityConfig: FLASH_LIST_ITEM_IMPRESSION_VIEWABILITY_CONFIG,
|
||||
onViewableItemsChanged: function({viewableItems}) {
|
||||
viewableItems.forEach(_fun89903);
|
||||
}}];
|
||||
}
|
||||
|
||||
function _fun89904() { // fn#89904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:4016, offset: 0x02023343, size: 38 bytes, params: 1, frame: 2
|
||||
return [{viewabilityConfig: FLASH_LIST_ITEM_IMPRESSION_VIEWABILITY_CONFIG,
|
||||
onViewableItemsChanged: function({viewableItems}) {
|
||||
viewableItems.forEach(_fun89906);
|
||||
}}];
|
||||
}
|
||||
|
||||
function _fun89907() { // fn#89907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:4283, offset: 0x020233f4, size: 38 bytes, params: 1, frame: 3
|
||||
return {height: env0_10 * applications.length, width: 500};
|
||||
}
|
||||
|
||||
function _fun89908() { // fn#89908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:4347, offset: 0x0202341a, size: 38 bytes, params: 1, frame: 3
|
||||
return {height: env0_10 * commands.length, width: 500};
|
||||
}
|
||||
|
||||
function onPress_89895() { // fn#89895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:2663, offset: 0x02023095, size: 38 bytes, params: 1, frame: 12
|
||||
return env1_17({application: item, sectionName: env1_9});
|
||||
}
|
||||
|
||||
function onPressCommand() { // fn#89899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:3239, offset: 0x02023256, size: 33 bytes, params: 1, frame: 15
|
||||
return env1_18(item, env0_1, env1_9);
|
||||
}
|
||||
|
||||
function onViewableItemsChanged({viewableItems}) { // fn#89902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:3820, offset: 0x020232c2, size: 32 bytes, params: 2, frame: 11
|
||||
viewableItems.forEach(_fun89903);
|
||||
}
|
||||
|
||||
function onViewableItemsChanged_89905({viewableItems}) { // fn#89905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:4065, offset: 0x02023369, size: 32 bytes, params: 2, frame: 11
|
||||
viewableItems.forEach(_fun89906);
|
||||
}
|
||||
|
||||
function _fun89903({item, index}) { // fn#89903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:3853, offset: 0x020232e2, size: 97 bytes, params: 2, frame: 16
|
||||
trackAppLauncherItemImpressionOnFirstView({itemKey: 'applicationId:' + item.id, sectionName: env2_9,
|
||||
sectionPosition: index, sectionOverallPosition: sectionOverallPosition, applicationId: item.id});
|
||||
}
|
||||
|
||||
function _fun89906({item, index}) { // fn#89906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:4098, offset: 0x02023389, size: 107 bytes, params: 2, frame: 16
|
||||
trackAppLauncherItemImpressionOnFirstView({itemKey: 'commandId:' + item.id, sectionName: env2_9,
|
||||
sectionPosition: index, sectionOverallPosition: sectionOverallPosition, applicationId: item.applicationId,
|
||||
commandId: item.id});
|
||||
}
|
||||
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
/* Metro module 11669; source: modules/app_launcher/native/screens/application_view/AppLauncherApplicationViewScreen.tsx; dependencies: [31, 27, 7861, 1483, 5066, 33, 4501, 8774, 11670, 8046, 1583, 11671, 6777, 4017, 11672, 2] */
|
||||
function _fun89445(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11855:6, offset: 0x0200da9c, size: 292 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.ActivityIndicator;
|
||||
const env0_5 = value.View;
|
||||
const applicationCommandIndexStore = importDefault(7861) /* metro dependency 7861: ApplicationCommandIndexStore */;
|
||||
value = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
|
||||
const env0_7 = value.AppLauncherRouteName;
|
||||
const SCREEN_BACKGROUND_COLOR = value.SCREEN_BACKGROUND_COLOR;
|
||||
const env0_8 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {backgroundColor: SCREEN_BACKGROUND_COLOR,
|
||||
flex: 1}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/AppLauncherApplicationViewScreen.tsx');
|
||||
exports.default = AppLauncherApplicationViewScreen;
|
||||
}
|
||||
|
||||
function AppLauncherApplicationViewScreenInner({context, application, lockableScrollableContentOffsetY, initiallyExpanded, installOnDemand, sectionName, onPressBack, onActivityItemSelected, entrypoint, expandBottomSheet, onCommandExecuted}) { // fn#89446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11855:324, offset: 0x0200dbc0, size: 359 bytes, params: 2, frame: 30
|
||||
const {bottomSheetExpandReasonRef,
|
||||
chatInputRef} = (require(8774) /* metro dependency 8774: AppLauncherContext */).useRequiredAppLauncherContext();
|
||||
const env0_3 = chatInputRef;
|
||||
const value3 = (importDefault(11670) /* metro dependency 11670: useNavigationTransitionEnded */)();
|
||||
const r18 = initiallyExpanded ?? (require(8046) /* metro dependency 8046: AppLauncherUtils */).isEmbeddedApp(application);
|
||||
const value4 = env0_3.useCallback(function() {
|
||||
var current = chatInputRef.current;
|
||||
var object = {};
|
||||
object.type = require(dependencyMap[10]).KeyboardTypes.APP_LAUNCHER;
|
||||
object.context = {initialRouteName: AppLauncherRouteName.APPLICATION_VIEW, application: application};
|
||||
current.openCustomKeyboard(object);
|
||||
}, [application, chatInputRef]);
|
||||
env0_3.useEffect(_fun89448, [value3, r18, expandBottomSheet, bottomSheetExpandReasonRef]);
|
||||
return ((Component) => <Component application={application} context={context} lockableScrollableContentOffsetY={lockableScrollableContentOffsetY} installOnDemand={installOnDemand} sectionName={sectionName} onPressBack={onPressBack} onActivityItemSelected={onActivityItemSelected} entrypoint={entrypoint} onCommandExecuted={onCommandExecuted} onAauth2Cancel={value4} />)(importDefault(11671) /* metro dependency 11671: AppDetailContent */);
|
||||
}
|
||||
|
||||
function AppLauncherApplicationViewScreen(a0) { // fn#89449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11855:1333, offset: 0x0200ddde, size: 552 bytes, params: 2, frame: 32
|
||||
var r4;
|
||||
var object;
|
||||
const params = a0.route.params;
|
||||
const application = params.application;
|
||||
const applicationId = params.applicationId;
|
||||
const env0_0 = params.onPressBack;
|
||||
const context = params.context;
|
||||
const initiallyExpanded = params.initiallyExpanded;
|
||||
const installOnDemand = params.installOnDemand;
|
||||
const sectionName = params.sectionName;
|
||||
const expandBottomSheet = params.expandBottomSheet;
|
||||
const onCommandExecuted = params.onCommandExecuted;
|
||||
const env0_3 = a0.navigation;
|
||||
const value = undefined;
|
||||
const value3 = (require(8774) /* metro dependency 8774: AppLauncherContext */).useRequiredAppLauncherContext();
|
||||
const env0_4 = value3.chatInputRef;
|
||||
const entrypoint = value3.entrypoint;
|
||||
const onActivityItemSelected = value3.onActivityItemSelected;
|
||||
const env0_5 = value3.keyboardCloseReasonRef;
|
||||
const styles = useStyles();
|
||||
const value4 = null;
|
||||
const id = value4 == application ? value : application.id;
|
||||
const r0 = value4 == id ? applicationId : id;
|
||||
const useGetOrFetchApplicationsModule = require(6777) /* metro dependency 6777: useGetOrFetchApplications */;
|
||||
const useGetOrFetchApplication = useGetOrFetchApplicationsModule.useGetOrFetchApplication;
|
||||
let BUILT_IN = BuiltInSectionId.BUILT_IN;
|
||||
const value5 = Reflect.apply(useGetOrFetchApplication, useGetOrFetchApplicationsModule,
|
||||
[r0 === BUILT_IN ? value4 : r0]);
|
||||
BUILT_IN = BuiltInSectionId.BUILT_IN;
|
||||
const r17 = r0 === BUILT_IN ? (require(8046) /* metro dependency 8046: AppLauncherUtils */).FAKE_BUILT_IN_APP : value4 == value5 ? application : value5;
|
||||
const value6 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
env0_3.useEffect(_fun89450, [r0, context, installOnDemand]);
|
||||
if (value4 != r17) {
|
||||
r4 = <AppLauncherApplicationViewScreenInner context={context} application={r17} lockableScrollableContentOffsetY={value6} initiallyExpanded={initiallyExpanded} installOnDemand={installOnDemand} sectionName={sectionName} onPressBack={onPressBack} onActivityItemSelected={onActivityItemSelected} entrypoint={entrypoint} expandBottomSheet={expandBottomSheet} onCommandExecuted={onCommandExecuted} />;
|
||||
} else {
|
||||
object = {};
|
||||
object.paddingTop = (require(11672) /* metro dependency 11672: Header */).EXPANDED_HEADER_HEIGHT;
|
||||
r4 = <View style={object}><ActivityIndicator /></View>;
|
||||
}
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{r4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89448() { // fn#89448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11855:904, offset: 0x0200dd88, size: 86 bytes, params: 1, frame: 13
|
||||
var bottomSheetExpandReasonRefBinding;
|
||||
var value2;
|
||||
if (env0_5 && env0_4) {
|
||||
bottomSheetExpandReasonRefBinding = bottomSheetExpandReasonRef;
|
||||
value2 = environment.__proto__;
|
||||
bottomSheetExpandReasonRefBinding.current = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherBottomSheetExpandReason.APP_VIEW;
|
||||
if (expandBottomSheet != null) {
|
||||
expandBottomSheet();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89450() { // fn#89450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11855:1893, offset: 0x0200e006, size: 86 bytes, params: 1, frame: 13
|
||||
var value4;
|
||||
if (env0_6 != null && context.type === 'channel' && installOnDemand) {
|
||||
value4 = environment.__proto__;
|
||||
ApplicationCommandIndexStore.queryInstallOnDemandApp(env0_6, context.channel.id);
|
||||
}
|
||||
}
|
||||
|
||||
function onPressBack() { // fn#89451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11855:2187, owner: AppLauncherApplicationViewScreen.onPressBack, offset: 0x0200e05c, size: 130 bytes, params: 1, frame: 14
|
||||
var keyboardCloseReasonRefBinding;
|
||||
var value2;
|
||||
var current;
|
||||
if (onPressBack != null) {
|
||||
onPressBack();
|
||||
}
|
||||
const navigationBinding = navigation;
|
||||
if (navigationBinding.canGoBack()) {
|
||||
navigation.pop();
|
||||
} else {
|
||||
keyboardCloseReasonRefBinding = keyboardCloseReasonRef;
|
||||
value2 = environment.__proto__;
|
||||
keyboardCloseReasonRefBinding.current = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherKeyboardCloseReason.BACK;
|
||||
current = chatInputRef.current;
|
||||
if (current != null) {
|
||||
current.closeCustomKeyboard();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,255 @@
|
||||
/* Metro module 11672; source: modules/app_launcher/native/screens/application_view/Header.tsx; dependencies: [31, 27, 1878, 8047, 1483, 661, 33, 697, 4501, 4017, 566, 11592, 3860, 8372, 11597, 8046, 7504, 11673, 4573, 1305, 8341, 4057, 683, 6797, 8809, 3856, 1244, 11674, 2] */
|
||||
function _fun89480(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:6, offset: 0x0200f96c, size: 689 bytes, params: 8, frame: 27
|
||||
var object2;
|
||||
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;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const appLauncherStore = importDefault(8047) /* metro dependency 8047: AppLauncherStore */;
|
||||
let value = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
|
||||
const DEFAULT_CONTENT_PADDING = value.DEFAULT_CONTENT_PADDING;
|
||||
const SCREEN_BACKGROUND_COLOR = value.SCREEN_BACKGROUND_COLOR;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = value.AnalyticEvents;
|
||||
const env0_7 = value.ApplicationFlags;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const xl = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {headerContainer: {'position': 'absolute', 'top': -16, 'left': 0, 'right': 0, 'minHeight': 161}};
|
||||
object2.expandedHeaderBanner = {height: 105};
|
||||
const object7 = {'position': 'absolute', 'padding': 4, 'bottom': -40, 'left': 16};
|
||||
object7.backgroundColor = SCREEN_BACKGROUND_COLOR;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl + 4;
|
||||
object2.appIconMask = object7;
|
||||
const object8 = {'height': 56, 'justifyContent': 'space-between', 'alignItems': 'center', 'position': 'absolute',
|
||||
'top': 0, 'left': 0, 'right': 0, 'flexDirection': 'row', 'paddingHorizontal': null, 'paddingTop': 16};
|
||||
object8.paddingHorizontal = DEFAULT_CONTENT_PADDING;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object8.paddingBottom = PX_12;
|
||||
object2.collapsedHeaderBanner = object8;
|
||||
object2.collapsedHeaderBannerOverlay = {'backgroundColor': 'black', 'position': 'absolute', 'top': 0, 'left': 0,
|
||||
'right': 0, 'bottom': 0};
|
||||
const object9 = {'height': 72, 'width': 72};
|
||||
object9.borderRadius = xl;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object9.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
object2.loadingIcon = object9;
|
||||
const object10 = {'flexDirection': 'row', 'display': 'flex', 'gap': null, 'position': 'absolute', 'right': null,
|
||||
'top': null, 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object10.gap = PX_16;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.right = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.top = PX_12;
|
||||
object2.actionsWrapper = object10;
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {code: "function HeaderTsx1(){const{interpolate,scrollOffsetY,HEADER_SCROLL_RANGE}=this.__closure;return{transform:[{translateY:interpolate(scrollOffsetY.get(),[0,HEADER_SCROLL_RANGE],[0,-HEADER_SCROLL_RANGE],'clamp')}]};}"};
|
||||
object2 = {code: "function HeaderTsx2(){const{interpolate,scrollOffsetY,HEADER_SCROLL_RANGE}=this.__closure;return{transform:[{translateY:interpolate(scrollOffsetY.get(),[0,HEADER_SCROLL_RANGE],[0,HEADER_SCROLL_RANGE],'clamp')}]};}"};
|
||||
object2 = {code: "function HeaderTsx3(){const{interpolate,scrollOffsetY,HEADER_SCROLL_RANGE}=this.__closure;return{transform:[{translateY:interpolate(scrollOffsetY.get(),[HEADER_SCROLL_RANGE*0.5,HEADER_SCROLL_RANGE],[16,0],'clamp')}],opacity:interpolate(scrollOffsetY.get(),[HEADER_SCROLL_RANGE*0.5,HEADER_SCROLL_RANGE],[0,1],'clamp')};}"};
|
||||
object2 = {code: "function HeaderTsx4(){const{interpolate,scrollOffsetY,HEADER_SCROLL_RANGE}=this.__closure;return{opacity:interpolate(scrollOffsetY.get(),[HEADER_SCROLL_RANGE*0.5,HEADER_SCROLL_RANGE],[0,0.5],'clamp')};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/Header.tsx');
|
||||
exports.default = Header_89481;
|
||||
exports.SHEET_HANDLE_CONTAINER_HEIGHT = 16;
|
||||
exports.EXPANDED_HEADER_HEIGHT = 161;
|
||||
}
|
||||
|
||||
function Header_89481({application, onPressBack, scrollOffsetY, onAddAppMenuClick}) { // fn#89481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:2268, offset: 0x0200fc1d, size: 1272 bytes, params: 2, frame: 35
|
||||
var moduleValue5;
|
||||
var moduleValue6;
|
||||
var IconButton;
|
||||
var object12;
|
||||
var intl;
|
||||
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherStore], function() {
|
||||
return AppLauncherStore.entrypoint();
|
||||
});
|
||||
const styles = useStyles();
|
||||
let r5 = application != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(application) : null;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const value5 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOW]);
|
||||
const defaultImport = importDefault(8372) /* metro dependency 8372: useAvatarColor */;
|
||||
const r2 = typeof r5 === 'number' ? r5 : r5?.uri;
|
||||
const value6 = '';
|
||||
const value7 = defaultImport(r2, value5 ?? value6);
|
||||
const r20 = r5 != null ? ((Component) => <Component iconSource={r5} iconBorderRadius={xl} iconSize={72} />)(importDefault(11597) /* metro dependency 11597: EntityBorderAppIcon */) : <View style={styles.loadingIcon} />;
|
||||
const value10 = _fun89483({scrollOffsetY: scrollOffsetY});
|
||||
const value11 = _fun89485({scrollOffsetY: scrollOffsetY});
|
||||
const value12 = _fun89488({scrollOffsetY: scrollOffsetY});
|
||||
const r21 = application != null ? (require(8046) /* metro dependency 8046: AppLauncherUtils */).getSectionName(application) : value6;
|
||||
let r0 = application != null && 'flags' in application;
|
||||
if (r0) {
|
||||
moduleValue5 = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
|
||||
r0 = moduleValue5.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
|
||||
}
|
||||
const env0_3 = UserStore.getCurrentUser();
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items2 = [styles.headerContainer];
|
||||
items2[1] = value10.style;
|
||||
const items3 = [<View style={[styles.expandedHeaderBanner,
|
||||
{backgroundColor: value7}]} pointerEvents="none"><View style={styles.appIconMask}>{r20}</View></View>];
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items4 = [styles.collapsedHeaderBanner];
|
||||
items4[1] = {backgroundColor: value7};
|
||||
items4[2] = value11.headerStyle;
|
||||
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items6 = [<View4 style={[styles.collapsedHeaderBannerOverlay, value12.style]} pointerEvents="none" />];
|
||||
items6[1] = ((Component) => <Component onPress={onPressBack} />)(importDefault(11673) /* metro dependency 11673: AppLauncherBackButton */);
|
||||
const View5 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const nameStyle = value11.nameStyle;
|
||||
const Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
|
||||
items6[2] = <View5 style={nameStyle} pointerEvents="none"><Heading variant="heading-lg/bold" color="white">{r21}</Heading></View5>;
|
||||
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
|
||||
items6[3] = <Spacer size={32} pointerEvents="none" />;
|
||||
items3[1] = <View3 style={items4} pointerEvents="box-none">{items6}</View3>;
|
||||
if (application != null) {
|
||||
moduleValue6 = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
if (moduleValue6.isRealApplication(application)) {
|
||||
var viewBindingProps = {style: styles.actionsWrapper};
|
||||
IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
var iconButtonProps = {'size': 'sm', 'variant': 'secondary-overlay',
|
||||
icon: importDefault(4057) /* metro dependency 4057 */, onPress: onPress_89490};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
iconButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XWDihq);
|
||||
iconButtonProps.maxFontSizeMultiplier = 1.5;
|
||||
r5 = <View {...viewBindingProps}><IconButton {...iconButtonProps} />{((Component) => <Component application={application} onAddAppMenuClick={onAddAppMenuClick} />)(importDefault(11674) /* metro dependency 11674: AppDetailsOverflowMenu */)}</View>;
|
||||
} else {
|
||||
r5 = null;
|
||||
}
|
||||
} else {
|
||||
r5 = null;
|
||||
}
|
||||
items3[2] = r5;
|
||||
return (
|
||||
<View2 style={items2} pointerEvents="box-none">
|
||||
{items3}
|
||||
</View2>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89483({scrollOffsetY}) { // fn#89483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:2690, offset: 0x02010128, size: 133 bytes, params: 2, frame: 19
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = n_89484;
|
||||
const object = {};
|
||||
object.interpolate = reanimatedRexportModule.interpolate;
|
||||
object.scrollOffsetY = scrollOffsetY;
|
||||
object.HEADER_SCROLL_RANGE = 105;
|
||||
closure.__closure = object;
|
||||
closure.__workletHash = 2572905048492;
|
||||
closure.__initData = env1_12;
|
||||
return {style: Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure])};
|
||||
}
|
||||
|
||||
function _fun89485({scrollOffsetY}) { // fn#89485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:3002, offset: 0x02010229, size: 230 bytes, params: 2, frame: 22
|
||||
const object2 = {};
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = n_89486;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
closure.__closure = {interpolate: interpolate, scrollOffsetY: scrollOffsetY, HEADER_SCROLL_RANGE: 105};
|
||||
closure.__workletHash = 8190094903650;
|
||||
closure.__initData = env1_13;
|
||||
object2.headerStyle = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue2.useAnimatedStyle;
|
||||
closure = l_89487;
|
||||
closure.__closure = {interpolate: interpolate, scrollOffsetY: scrollOffsetY, HEADER_SCROLL_RANGE: 105};
|
||||
closure.__workletHash = 14190901941859;
|
||||
closure.__initData = env1_14;
|
||||
object2.nameStyle = Reflect.apply(useAnimatedStyle, moduleValue2, [closure]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89488({scrollOffsetY}) { // fn#89488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:3636, offset: 0x02010435, size: 133 bytes, params: 2, frame: 19
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = n_89489;
|
||||
const object = {};
|
||||
object.interpolate = reanimatedRexportModule.interpolate;
|
||||
object.scrollOffsetY = scrollOffsetY;
|
||||
object.HEADER_SCROLL_RANGE = 105;
|
||||
closure.__closure = object;
|
||||
closure.__workletHash = 9589752719246;
|
||||
closure.__initData = env1_15;
|
||||
return {style: Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure])};
|
||||
}
|
||||
|
||||
function Header_89481OnPress() { // fn#89490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:4853, owner: Header_89481.onPress, offset: 0x0201051a, size: 272 bytes, params: 1, frame: 21
|
||||
var r2;
|
||||
var getApplicationInstallURL;
|
||||
var moduleValue3;
|
||||
var getActivityLaunchURL;
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(dependencyMap[22]);
|
||||
const track = defaultImport.track;
|
||||
const APP_LAUNCHER_APPLICATION_LINK_COPIED = AnalyticEvents.APP_LAUNCHER_APPLICATION_LINK_COPIED;
|
||||
let object2 = {};
|
||||
let id = application.id;
|
||||
object2.application_id = id;
|
||||
object2.source = env0_1;
|
||||
Reflect.apply(track, defaultImport, [APP_LAUNCHER_APPLICATION_LINK_COPIED, object2]);
|
||||
const moduleValue = require(dependencyMap[23]);
|
||||
const copy = moduleValue.copy;
|
||||
const binding = env0_2;
|
||||
const moduleValue2 = require(dependencyMap[24]);
|
||||
if (binding) {
|
||||
getActivityLaunchURL = moduleValue2.getActivityLaunchURL;
|
||||
object2 = {};
|
||||
id = application.id;
|
||||
object2.applicationId = id;
|
||||
id = env0_3 == null ? value2 : env0_3.id;
|
||||
object2.referrerId = id;
|
||||
r2 = Reflect.apply(getActivityLaunchURL, moduleValue2, [object2]);
|
||||
} else {
|
||||
getApplicationInstallURL = moduleValue2.getApplicationInstallURL;
|
||||
object2 = {};
|
||||
applicationBinding = application;
|
||||
object2.id = applicationBinding.id;
|
||||
moduleValue3 = require(dependencyMap[15]);
|
||||
copyDataProperties(object2, moduleValue3.getInstallAppProps(applicationBinding), dependencyMap);
|
||||
r2 = Reflect.apply(getApplicationInstallURL, moduleValue2, [object2]);
|
||||
}
|
||||
Reflect.apply(copy, moduleValue, [r2]);
|
||||
require(dependencyMap[25]).presentLinkCopied();
|
||||
return value2;
|
||||
}
|
||||
|
||||
function n_89484() { // fn#89484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:2760, offset: 0x020101ad, size: 124 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
return {transform: [{translateY: value.interpolate(scrollOffsetY.get(), [0, 105], [0, -105], 'clamp')}]};
|
||||
}
|
||||
|
||||
function n_89486() { // fn#89486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:3080, offset: 0x0201030f, size: 118 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
return {transform: [{translateY: value.interpolate(scrollOffsetY.get(), [0, 105], [0, 105], 'clamp')}]};
|
||||
}
|
||||
|
||||
function l_89487() { // fn#89487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:3333, offset: 0x02010385, size: 176 bytes, params: 1, frame: 25
|
||||
const object2 = {};
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = value.interpolate;
|
||||
const scrollOffsetYBinding = scrollOffsetY;
|
||||
object2.transform = [{translateY: Reflect.apply(interpolate, value, [scrollOffsetYBinding.get(), [52.5, 105], [16,
|
||||
0], 'clamp'])}];
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
object2.opacity = value.interpolate(scrollOffsetYBinding.get(), [52.5, 105], [0, 1], 'clamp');
|
||||
return object2;
|
||||
}
|
||||
|
||||
function n_89489() { // fn#89489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11858:3706, offset: 0x020104ba, size: 96 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
return {opacity: value.interpolate(scrollOffsetY.get(), [52.5, 105], [0, 0.5], 'clamp')};
|
||||
}
|
||||
|
||||
+574
@@ -0,0 +1,574 @@
|
||||
/* Metro module 11679; source: modules/app_launcher/native/screens/application_view/activity/ActivityDetailContent.tsx; dependencies: [5, 57, 31, 27, 7503, 4235, 661, 33, 697, 4501, 4573, 8774, 11680, 11598, 11592, 5068, 8046, 1244, 683, 8048, 4578, 4603, 9472, 10657, 6771, 6789, 8750, 566, 6232, 6808, 9475, 7981, 6777, 11681, 11682, 11683, 1305, 11625, 9392, 6699, 11684, 2] */
|
||||
function _fun89513(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:6, offset: 0x02011083, size: 803 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_6 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_7 = (require(27) /* metro dependency 27 */).View;
|
||||
const developerActivityShelfStore = importDefault(7503) /* metro dependency 7503: DeveloperActivityShelfStore */;
|
||||
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
const env0_13 = value.Fragment;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {flex: 1};
|
||||
const object4 = {};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.overflow = 'hidden';
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.gap = PX_16;
|
||||
object4.paddingBottom = PX_12;
|
||||
object2.cardContainer = object4;
|
||||
object2.activityHeroDetailsLandscape = {flexDirection: 'row'};
|
||||
object2.heroMediaContainerLandscape = {width: '65%'};
|
||||
object2.detailsContainerLandscape = {width: '35%'};
|
||||
object2.details = {'marginTop': 16, 'paddingHorizontal': null, 'rowGap': 4, paddingHorizontal: PX_12};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.tagList = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', 'marginTop': null, 'columnGap': 4,
|
||||
'rowGap': 6, marginTop: PX_8};
|
||||
const object5 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'backgroundColor': null,
|
||||
'borderRadius': null, 'paddingHorizontal': 12, 'paddingVertical': 4};
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object5.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.tag = object5;
|
||||
object2.tagText = {top: -1};
|
||||
object2.tagIcon = {marginRight: 4};
|
||||
object2.buttonContainer = {paddingTop: 16};
|
||||
object2.activityUrlOverrideInputContainer = {marginTop: -4};
|
||||
object2.expandDescriptionCTAStyle = {'right': 0, 'bottom': 0};
|
||||
const object6 = {};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.marginTop = PX_12;
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object6.color = TEXT_MUTED;
|
||||
object6.textAlign = 'center';
|
||||
object2.primaryEntryPointButtonDisabledCTA = object6;
|
||||
object2.tryItOutButtonContainerStyle = {marginTop: 8};
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/activity/ActivityDetailContent.tsx');
|
||||
exports.default = ActivityDetailContent;
|
||||
}
|
||||
|
||||
function Tag({tagName, icon, accessibilityLabel}) { // fn#89514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:1262, offset: 0x020113a6, size: 146 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View
|
||||
style={styles.tag}
|
||||
accessible
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
>
|
||||
{icon}
|
||||
<Text variant="text-sm/normal" style={styles.tagText}>
|
||||
{tagName}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function PrimaryEntryPointButton({applicationId, context, sectionName, primaryEntryPointCommand, disabled, onActivityItemSelected, entrypoint, activityAction}) { // fn#89515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:1471, offset: 0x02011438, size: 772 bytes, params: 2, frame: 30
|
||||
var object2;
|
||||
var r7;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
let env0_6 = undefined;
|
||||
let binding = env0_6;
|
||||
const value3 = binding.useId();
|
||||
const {chatInputRef,
|
||||
keyboardCloseReasonRef} = (require(8774) /* metro dependency 8774: AppLauncherContext */).useRequiredAppLauncherContext();
|
||||
binding = env0_6;
|
||||
let useCallback = binding.useCallback;
|
||||
const value5 = Reflect.apply(useCallback, binding, [function() {
|
||||
keyboardCloseReasonRef.current = require(dependencyMap[11]).AppLauncherKeyboardCloseReason.ACTIVITY;
|
||||
var current = chatInputRef.current;
|
||||
if (current != null) {
|
||||
current.closeCustomKeyboard();
|
||||
}
|
||||
}, [chatInputRef, keyboardCloseReasonRef]]);
|
||||
const defaultImport = importDefault(11680) /* metro dependency 11680: useLaunchingActivityButtonState */;
|
||||
object2 = {applicationId: applicationId, context: context, launchingComponentId: value3};
|
||||
const ActivityAction = (require(11598) /* metro dependency 11598: useActivityShelfItem */).ActivityAction;
|
||||
const LEAVE = ActivityAction.LEAVE;
|
||||
let r8 = activityAction === LEAVE ? undefined : value5;
|
||||
object2.onSubmissionComplete = r8;
|
||||
const submitting = defaultImport(object2).submitting;
|
||||
const appLauncherNativeUtilsModule = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
const useHandleActivityItemSelected = appLauncherNativeUtilsModule.useHandleActivityItemSelected;
|
||||
object2 = {applicationId: applicationId, context: context, sectionName: sectionName,
|
||||
onActivityItemSelected: onActivityItemSelected};
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_APPLICATION_VIEW = ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW;
|
||||
object2.location = APP_LAUNCHER_APPLICATION_VIEW;
|
||||
object2.entrypoint = entrypoint;
|
||||
object2.launchingComponentId = value3;
|
||||
const handleActivityItemSelected = Reflect.apply(useHandleActivityItemSelected, appLauncherNativeUtilsModule,
|
||||
[object2]).handleActivityItemSelected;
|
||||
env0_6 = handleActivityItemSelected;
|
||||
const value6 = env0_6.useMemo(_fun89517, [primaryEntryPointCommand.displayName]);
|
||||
if (value6 != null) {
|
||||
r7 = value6;
|
||||
} else {
|
||||
r7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zKX8Nu);
|
||||
}
|
||||
const JOIN = ActivityAction.JOIN;
|
||||
if (activityAction === JOIN) {
|
||||
value12 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.d9PsMj);
|
||||
value13 = 'active';
|
||||
r7 = value12;
|
||||
r8 = value13;
|
||||
} else if (activityAction !== (require(11598) /* metro dependency 11598: useActivityShelfItem */).ActivityAction.LEAVE) {
|
||||
r8 = 'primary';
|
||||
} else {
|
||||
value10 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Hi1/aQ']);
|
||||
value11 = 'destructive';
|
||||
r7 = value10;
|
||||
r8 = value11;
|
||||
}
|
||||
binding = env0_6;
|
||||
useCallback = binding.useCallback;
|
||||
if (context.type !== 'channel') {
|
||||
return null;
|
||||
} else {
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<Button
|
||||
size="lg"
|
||||
loading={submitting}
|
||||
variant={r8}
|
||||
text={r7}
|
||||
disabled={disabled}
|
||||
onPress={Reflect.apply(useCallback, binding, [_fun89518, [handleActivityItemSelected, activityAction,
|
||||
value5, applicationId]])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function TryItOutButton({botUserId, applicationId, analyticsLocations, context}) { // fn#89519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:2970, offset: 0x0201184a, size: 291 bytes, params: 2, frame: 20
|
||||
const [property, env0_3] = env0_5(env0_6.useState(false), 2);
|
||||
const value5 = env0_6.useCallback(env0_6.useRef(null)(_fun89521), [botUserId, applicationId, analyticsLocations]);
|
||||
const r5 = context.type !== 'channel' ? 'primary' : 'secondary';
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const AUM8hY = (require(1244) /* metro dependency 1244: indexNative */).t.AUM8hY;
|
||||
return (
|
||||
<Button
|
||||
size="lg"
|
||||
loading={property}
|
||||
variant={r5}
|
||||
text={Reflect.apply(string, intl, [AUM8hY])}
|
||||
onPress={value5}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ActivityDetailContent({application, context, sectionName, onActivityItemSelected, entrypoint, hasCommands}) { // fn#89523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:3817, offset: 0x02011ab3, size: 2090 bytes, params: 2, frame: 48
|
||||
var r2;
|
||||
var r32;
|
||||
var r10;
|
||||
var r18;
|
||||
var bot;
|
||||
var r0;
|
||||
var r7;
|
||||
var r19;
|
||||
var r20;
|
||||
var value7;
|
||||
var value8;
|
||||
var items4;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var moduleValue6;
|
||||
var useGetOrFetchApplication;
|
||||
var value13;
|
||||
var moduleValue7;
|
||||
var useActivityAction;
|
||||
var value15;
|
||||
var value16;
|
||||
var disabled;
|
||||
var reason;
|
||||
var defaultImport3;
|
||||
var jsxRuntimeEnv0_13Binding;
|
||||
var items2;
|
||||
var object2;
|
||||
var fragment;
|
||||
var items3;
|
||||
var view;
|
||||
var AnalyticsLocationProvider;
|
||||
var HeroMedia;
|
||||
var items5;
|
||||
var object3;
|
||||
var items7;
|
||||
var object19;
|
||||
var moduleValue10;
|
||||
var items8;
|
||||
var tags;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
|
||||
const useRequiredAppLauncherContext = appLauncherContextModule.useRequiredAppLauncherContext;
|
||||
const width = Reflect.apply(useRequiredAppLauncherContext, appLauncherContextModule, []).width;
|
||||
const getPrimaryAppCommandModule = require(10657) /* metro dependency 10657: getPrimaryAppCommand */;
|
||||
const useGetPrimaryAppCommand = getPrimaryAppCommandModule.useGetPrimaryAppCommand;
|
||||
let id = application.id;
|
||||
const value3 = Reflect.apply(useGetPrimaryAppCommand, getPrimaryAppCommandModule, [context, id]);
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const APP_DETAIL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).APP_DETAIL;
|
||||
const analyticsLocations = defaultImport(APP_DETAIL).analyticsLocations;
|
||||
const value4 = (require(8750) /* metro dependency 8750: useIsScreenLandscapeNative */).useIsScreenLandscape();
|
||||
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
|
||||
const VOICE = AppLauncherEntrypoint.VOICE;
|
||||
let r21 = entrypoint !== VOICE && value4;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
let object = [DeveloperActivityShelfStore];
|
||||
const {isDeveloperOfThisApp, activityUrlOverride, useActivityUrlOverride} = Reflect.apply(useStateFromStoresObject,
|
||||
fluxModule, [object, function() {
|
||||
var object = {};
|
||||
object.isDeveloperOfThisApp = DeveloperActivityShelfStore.inDevModeForApplication(application.id);
|
||||
object.activityUrlOverride = DeveloperActivityShelfStore.getActivityUrlOverride();
|
||||
object.useActivityUrlOverride = DeveloperActivityShelfStore.getUseActivityUrlOverride();
|
||||
return object;
|
||||
}]);
|
||||
const appLauncherUtilsModule = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
if (appLauncherUtilsModule.isRealApplication(application)) {
|
||||
r2 = application instanceof ApplicationRecord ? application.maxParticipants : application.max_participants;
|
||||
value7 = null;
|
||||
value8 = 0;
|
||||
r32 = value7 != r2 ? r2 : value8;
|
||||
if (isDeveloperOfThisApp) {
|
||||
object = {};
|
||||
r10 = useActivityUrlOverride ? value8 : -PX_12;
|
||||
object.style = {marginTop: PX_12, marginBottom: r10};
|
||||
items4 = [((TableRowDivider) => <TableRowDivider />)((require(6232) /* metro dependency 6232: TableRowDividerNative */).TableRowDivider)];
|
||||
items4[1] = ((TableSwitchRow) => <TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3TSGuD'])} value={useActivityUrlOverride} onValueChange={(importAll(9475) /* metro dependency 9475: DeveloperActivityShelfActionCreators */).toggleUseActivityUrlOverride} end />)((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow);
|
||||
r10 = useActivityUrlOverride ? <View style={styles.activityUrlOverrideInputContainer}>{((TextInput) => <TextInput placeholder="e.g. http://192.168.1.1:3000" value={value7 != activityUrlOverride ? activityUrlOverride : undefined} onChange={(importAll(9475) /* metro dependency 9475: DeveloperActivityShelfActionCreators */).setActivityUrlOverride} />)((require(7981) /* metro dependency 7981: TextInputNative */).TextInput)}</View> : value7;
|
||||
items4[2] = r10;
|
||||
r18 = <View {...object}>{items4}</View>;
|
||||
} else {
|
||||
r18 = value7;
|
||||
}
|
||||
moduleValue6 = require(6777) /* metro dependency 6777: useGetOrFetchApplications */;
|
||||
useGetOrFetchApplication = moduleValue6.useGetOrFetchApplication;
|
||||
id = application.id;
|
||||
value13 = Reflect.apply(useGetOrFetchApplication, moduleValue6, [id]);
|
||||
bot = value7 == value13 ? undefined : value13.bot;
|
||||
moduleValue7 = require(11598) /* metro dependency 11598: useActivityShelfItem */;
|
||||
useActivityAction = moduleValue7.useActivityAction;
|
||||
id = application.id;
|
||||
value15 = (require(11681) /* metro dependency 11681: useDelayedSwapToActivityActionLeave */).useDelayedSwapToActivityActionLeave(Reflect.apply(useActivityAction,
|
||||
|
||||
moduleValue7, [{context: context, applicationId: id}]));
|
||||
value16 = (importDefault(11682) /* metro dependency 11682: useIsPrimaryEntryPointDisabled */)({context: context,
|
||||
application: application, activityAction: value15});
|
||||
disabled = value16.disabled;
|
||||
reason = value16.reason;
|
||||
defaultImport3 = importDefault(11683) /* metro dependency 11683: useShowTryItOutButtonInAppLauncher */;
|
||||
object = {context: context, application: application};
|
||||
id = value7 == bot ? undefined : bot.id;
|
||||
object.botUserId = id;
|
||||
if (value7 != value3) {
|
||||
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
|
||||
id = application.id;
|
||||
items2 = [<PrimaryEntryPointButton applicationId={id} context={context} sectionName={sectionName} primaryEntryPointCommand={value3} disabled={disabled} onActivityItemSelected={onActivityItemSelected} entrypoint={entrypoint} activityAction={value15} />];
|
||||
if (defaultImport3(object)) {
|
||||
id = value7 == bot ? undefined : bot.id;
|
||||
if (value7 != id) {
|
||||
var viewBindingProps = {style: styles.tryItOutButtonContainerStyle};
|
||||
object2 = {};
|
||||
id = bot.id;
|
||||
object2.botUserId = id;
|
||||
id = application.id;
|
||||
object2.applicationId = id;
|
||||
object2.analyticsLocations = analyticsLocations;
|
||||
object2.context = context;
|
||||
r7 = <View {...viewBindingProps}><TryItOutButton {...object2} /></View>;
|
||||
} else {
|
||||
r7 = value7;
|
||||
}
|
||||
} else {
|
||||
r7 = value7;
|
||||
}
|
||||
items2[1] = r7;
|
||||
fragment = <>{items2}</>;
|
||||
var viewBindingProps2 = {style: styles.buttonContainer};
|
||||
items3 = [fragment];
|
||||
r7 = value7 != reason && ((Text) => <Text variant="text-sm/normal" style={styles.primaryEntryPointButtonDisabledCTA}>{reason}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items3[1] = r7;
|
||||
view = <View {...viewBindingProps2}>{items3}</View>;
|
||||
r19 = undefined;
|
||||
r20 = view;
|
||||
} else {
|
||||
r0 = isDeveloperOfThisApp && !hasCommands;
|
||||
r0 = r0 && appLauncherUtilsModule.isEmbeddedApp(application);
|
||||
if (r0) {
|
||||
r19 = <View style={styles.buttonContainer}>{((HelpMessage) => <HelpMessage messageType={(require(1305) /* metro dependency 1305: native */).HelpMessageTypes.WARNING}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['s/3hjE'],
|
||||
|
||||
|
||||
|
||||
{})}</HelpMessage>)((require(1305) /* metro dependency 1305: native */).HelpMessage)}</View>;
|
||||
r20 = undefined;
|
||||
} else {
|
||||
r19 = undefined;
|
||||
r20 = undefined;
|
||||
}
|
||||
}
|
||||
AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
|
||||
object = {value: analyticsLocations};
|
||||
var viewBindingProps3 = {style: [styles.container]};
|
||||
var viewBinding3Props = {style: styles.cardContainer};
|
||||
var viewBinding4Props = {style: r21 && styles.activityHeroDetailsLandscape};
|
||||
var viewBinding5Props = {style: r21 && styles.heroMediaContainerLandscape};
|
||||
HeroMedia = importDefault(11625) /* metro dependency 11625: HeroMedia */;
|
||||
id = application.id;
|
||||
items5 = [<View {...viewBinding5Props}><HeroMedia applicationId={id} width={r21 ? 65 * width / 100 : width} /></View>];
|
||||
object3 = {};
|
||||
r21 = r21 && styles.detailsContainerLandscape;
|
||||
object3.style = [styles.details, r21];
|
||||
items7 = [((Component) => <Component application={application} expandDescriptionCTAStyle={styles.expandDescriptionCTAStyle} />)(importDefault(9392) /* metro dependency 9392: DetailsHeader */)];
|
||||
var viewBinding7Props = {style: styles.tagList};
|
||||
var tagProps = {icon: ((GroupIcon) => <GroupIcon style={styles.tagIcon} size="xs" />)((require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon)};
|
||||
moduleValue10 = require(11684) /* metro dependency 11684: getItemSubtitleForMaxPlayers */;
|
||||
tagProps.tagName = moduleValue10.getItemSubtitleForMaxPlayersShort(value7 != r32 ? r32 : value8);
|
||||
value = importDefault(11684) /* metro dependency 11684: getItemSubtitleForMaxPlayers */;
|
||||
tagProps.accessibilityLabel = value(value7 != r32 ? r32 : value8);
|
||||
value = <Tag {...tagProps} key="participants" />;
|
||||
items8 = [value];
|
||||
tags = application.tags;
|
||||
items8[1] = value7 == tags ? undefined : tags.map(_fun89525);
|
||||
items7[1] = <View {...viewBinding7Props}>{items8}</View>;
|
||||
items7[2] = r20;
|
||||
items7[3] = r19;
|
||||
items7[4] = r18;
|
||||
items5[1] = <View {...object3}>{items7}</View>;
|
||||
return (
|
||||
<AnalyticsLocationProvider {...object}>
|
||||
<View {...viewBindingProps3}>
|
||||
<View {...viewBinding3Props}>
|
||||
<View {...viewBinding4Props}>
|
||||
{items5}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</AnalyticsLocationProvider>
|
||||
);
|
||||
}
|
||||
const Error = global.Error;
|
||||
throw new Error('ActivityDetailContent was passed the Built-in App, which is not supported.');
|
||||
}
|
||||
|
||||
function _fun89517() { // fn#89517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:2290, offset: 0x02011789, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
return value.formatPrimaryEntryPointCommandName(primaryEntryPointCommand.displayName);
|
||||
}
|
||||
|
||||
function _fun89518() { // fn#89518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:2642, offset: 0x020117bb, size: 143 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const APP_DETAIL_PAGE_ENTRY_POINT_COMMAND_BUTTON_CLICKED = AnalyticEvents.APP_DETAIL_PAGE_ENTRY_POINT_COMMAND_BUTTON_CLICKED;
|
||||
const object2 = {};
|
||||
object2.application_id = applicationId;
|
||||
const EntryPointCommandButtonActions = (require(8048) /* metro dependency 8048: AppLauncherTypes */).EntryPointCommandButtonActions;
|
||||
const USE_APP_COMMAND = EntryPointCommandButtonActions.USE_APP_COMMAND;
|
||||
object2.button_action = USE_APP_COMMAND;
|
||||
Reflect.apply(track, defaultImport, [APP_DETAIL_PAGE_ENTRY_POINT_COMMAND_BUTTON_CLICKED, object2]);
|
||||
handleActivityItemSelected();
|
||||
const activityActionBinding = activityAction;
|
||||
const ActivityAction = (require(11598) /* metro dependency 11598: useActivityShelfItem */).ActivityAction;
|
||||
const LEAVE = ActivityAction.LEAVE;
|
||||
if (activityActionBinding === LEAVE) {
|
||||
env0_5();
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun89521() { // fn#89521, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:3136, offset: 0x02011978, size: 297 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
var binding3;
|
||||
var property;
|
||||
var value5;
|
||||
var openPrivateChannel;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding4;
|
||||
var value9;
|
||||
var error;
|
||||
var clearTimeout;
|
||||
var current;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_3;
|
||||
var value3 = binding(binding2[18]);
|
||||
var track = value3.track;
|
||||
var APP_DETAIL_PAGE_ENTRY_POINT_COMMAND_BUTTON_CLICKED = env2_10.APP_DETAIL_PAGE_ENTRY_POINT_COMMAND_BUTTON_CLICKED;
|
||||
var object2 = {};
|
||||
object2.application_id = importDefault;
|
||||
var EntryPointCommandButtonActions = env2_0(binding2[19]).EntryPointCommandButtonActions;
|
||||
var OPEN_APP_DM = EntryPointCommandButtonActions.OPEN_APP_DM;
|
||||
object2.button_action = OPEN_APP_DM;
|
||||
Reflect.apply(track, value3, [APP_DETAIL_PAGE_ENTRY_POINT_COMMAND_BUTTON_CLICKED, object2]);
|
||||
env1_4.current = global.setTimeout(function() {
|
||||
dependencyMap(true);
|
||||
}, 250);
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort33: while (true) {
|
||||
exceptionLanding32: while (true) {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
break reduciblePort33;
|
||||
}
|
||||
clearTimeout = global.clearTimeout;
|
||||
current = env1_4.current;
|
||||
clearTimeout(current);
|
||||
dependencyMap(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
property = binding3[21];
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
openPrivateChannel = value5.openPrivateChannel;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
object2.recipientIds = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(openPrivateChannel, value5, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
property = binding4[22];
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
object2.targetApplicationId = importDefault;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
object2.channelId = value7;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
object2.analyticsLocations = importAll;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
try {
|
||||
value = value(object2);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
if (value9) {
|
||||
return value;
|
||||
}
|
||||
global.clearTimeout(env1_4.current);
|
||||
dependencyMap(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89525(a0) { // fn#89525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11865:6848, offset: 0x02012322, size: 99 bytes, params: 2, frame: 20
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Tag
|
||||
tagName={a0}
|
||||
accessibilityLabel={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.tXXD6v,
|
||||
{tagName: a0})}
|
||||
key={a0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 11625; source: modules/app_launcher/native/screens/application_view/activity/HeroMedia.tsx; dependencies: [31, 4502, 1483, 6276, 33, 4501, 8775, 10718, 566, 6777, 11599, 9543, 1244, 2] */
|
||||
function _fun89187(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11811:6, offset: 0x02003315, size: 258 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = useHeroMediaDimensions;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).DEFAULT_CONTENT_PADDING;
|
||||
const env0_5 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({mediaBackground: {backgroundColor: 'black'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/activity/HeroMedia.tsx');
|
||||
exports.default = HeroMedia_89189;
|
||||
exports.useHeroMediaDimensions = closure;
|
||||
}
|
||||
|
||||
function useHeroMediaDimensions() { // fn#89188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11811:263, offset: 0x02003417, size: 145 bytes, params: 1, frame: 15
|
||||
let value = a0;
|
||||
const width = (value !== undefined ? value : {}).width;
|
||||
value = (width ?? global.Math.min(width ?? (require(8775) /* metro dependency 8775: useDefaultAppLauncherWidth */).useDefaultAppLauncherWidth(),
|
||||
ACTION_SHEET_MAX_WIDTH)) - 2 * DEFAULT_CONTENT_PADDING;
|
||||
const object2 = {width: value};
|
||||
const Math = global.Math;
|
||||
object2.height = Math.floor(9 * value / 16);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function HeroMedia_89189({applicationId, containerHeight, width}) { // fn#89189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11811:560, offset: 0x020034a8, size: 602 bytes, params: 2, frame: 28
|
||||
var object2;
|
||||
var r0;
|
||||
var value9;
|
||||
var Video;
|
||||
var height;
|
||||
var intl;
|
||||
var mediaBackground;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value3 = useHeroMediaDimensions({width: width});
|
||||
const defaultImport = importDefault(10718) /* metro dependency 10718: useEmbeddedActivityBackground */;
|
||||
object2 = {applicationId: applicationId};
|
||||
object2.size = value3.width;
|
||||
object2.names = ['embedded_cover'];
|
||||
const value4 = defaultImport(object2);
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
}, []);
|
||||
const value6 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(applicationId);
|
||||
const embeddedActivityConfig = value6?.embeddedActivityConfig;
|
||||
const r14 = embeddedActivityConfig?.activity_preview_video_asset_id != null ? (importDefault(11599) /* metro dependency 11599: getPreviewVideoAssetUrl */)(applicationId,
|
||||
embeddedActivityConfig.activity_preview_video_asset_id) : null;
|
||||
if (r14 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value9 = '';
|
||||
if (value9 === r14) {
|
||||
r0 = null;
|
||||
} else {
|
||||
Video = importDefault(9543) /* metro dependency 9543: Video */;
|
||||
var videoProps = {muted: true, paused: value5,
|
||||
src: r14 == null ? {uri: value4.url ?? value9} : value9 !== r14 ? {videoURI: r14} : {uri: value4.url ?? value9}};
|
||||
height = value3.height;
|
||||
videoProps.height = height;
|
||||
videoProps.width = value3.width;
|
||||
videoProps.poster = value4.url;
|
||||
videoProps.resizeMode = 'cover';
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
videoProps.accessibilityLabel = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['Af+EQD'],
|
||||
|
||||
|
||||
{applicationName: value6?.name ?? value9});
|
||||
mediaBackground = styles.mediaBackground;
|
||||
height = value3.height;
|
||||
value = containerHeight != null;
|
||||
videoProps.style = [mediaBackground, {maxHeight: height},
|
||||
value && ({transform: [{translateY: (containerHeight - value3.height) / 2}]})];
|
||||
mediaBackground = styles.mediaBackground;
|
||||
videoProps.videoStyle = mediaBackground;
|
||||
videoProps.postponeRender = false;
|
||||
value = <Video {...videoProps} />;
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
+429
@@ -0,0 +1,429 @@
|
||||
/* Metro module 11671; source: modules/app_launcher/native/screens/application_view/app/AppDetailContent.tsx; dependencies: [5, 31, 27, 7861, 1483, 661, 5066, 33, 4501, 11672, 697, 11595, 6238, 8774, 11646, 5065, 10658, 4584, 1585, 8060, 1909, 11675, 8046, 5068, 11592, 1478, 11577, 477, 11677, 4573, 1244, 10358, 11643, 11679, 9392, 1305, 11685, 11687, 4080, 4863, 8870, 2] */
|
||||
function _fun89456(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:6, offset: 0x0200e265, size: 936 bytes, params: 8, frame: 30
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = CommandRow_89458;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(7861) /* metro dependency 7861: ApplicationCommandIndexStore */;
|
||||
const env0_7 = value.useContextIndexState;
|
||||
const env0_8 = value.useUserIndexState;
|
||||
value = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
|
||||
const DEFAULT_CONTENT_PADDING = value.DEFAULT_CONTENT_PADDING;
|
||||
const env0_10 = value.useAppLauncherNavigation;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_12 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).DISCOVERY_COMMANDS_QUERY_LIMIT;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
const env0_15 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const EXPANDED_HEADER_HEIGHT = (require(11672) /* metro dependency 11672: Header */).EXPANDED_HEADER_HEIGHT;
|
||||
const SHEET_HANDLE_CONTAINER_HEIGHT = (require(11672) /* metro dependency 11672: Header */).SHEET_HANDLE_CONTAINER_HEIGHT;
|
||||
object2.headerSpacer = {height: EXPANDED_HEADER_HEIGHT - SHEET_HANDLE_CONTAINER_HEIGHT};
|
||||
object2.list = {paddingHorizontal: DEFAULT_CONTENT_PADDING};
|
||||
object2.commandsHeaderContainer = {'flexDirection': 'row', 'justifyContent': 'space-between',
|
||||
'alignItems': 'center', 'marginBottom': 8};
|
||||
object2.commandsHeaderTextContainer = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 8};
|
||||
const object3 = {};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.viewContainerStyle = object3;
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object2.mainContainerStyle = {'backgroundColor': null, 'paddingHorizontal': 12, 'paddingVertical': 16,
|
||||
backgroundColor: CARD_BACKGROUND_DEFAULT};
|
||||
object2.expandDescriptionCTAStyle = {'right': 16, 'bottom': 16};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.monetizationDisclosureTextStyle = {marginLeft: PX_4};
|
||||
const object5 = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.marginBottom = PX_24;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.gap = PX_16;
|
||||
object2.monetizationDisclosureContainerStyle = object5;
|
||||
object2.monetizationDisclosureStyle = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const object6 = {'backgroundColor': null, 'height': 16, 'marginBottom': 4, 'borderRadius': null,
|
||||
'alignSelf': 'flex-start'};
|
||||
let BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object6.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.loadingTextPlaceholder = object6;
|
||||
const object10 = {};
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object10.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object10.height = 16;
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object10.alignSelf = 'flex-start';
|
||||
object2.loadingTextPlaceholderSmall = object10;
|
||||
object2.noCommandsTextContainer = {alignItems: 'center'};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {PLACEHOLDER: 0};
|
||||
object2[0] = 'PLACEHOLDER';
|
||||
object2.COMMAND = 1;
|
||||
object2[1] = 'COMMAND';
|
||||
const Array = global.Array;
|
||||
const array = new Array(6);
|
||||
const fill = array.fill;
|
||||
const PLACEHOLDER = object2.PLACEHOLDER;
|
||||
const env0_18 = Reflect.apply(fill, array, [{type: PLACEHOLDER}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/app/AppDetailContent.tsx');
|
||||
exports.default = AppDetailContent;
|
||||
exports.BETWEEN_SECTIONS_MARGIN = 24;
|
||||
exports.CommandRow = closure;
|
||||
}
|
||||
|
||||
function PlaceholderCommandRow_89457({isFirstRow, isLastRow}) { // fn#89457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:1665, offset: 0x0200e60d, size: 294 bytes, params: 2, frame: 28
|
||||
isFirstRow = !(isFirstRow === undefined) && isFirstRow;
|
||||
isLastRow = !(isLastRow === undefined) && isLastRow;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11595) /* metro dependency 11595: usePlaceholderSize */).usePlaceholderWidth(10, 50);
|
||||
const value3 = (require(11595) /* metro dependency 11595: usePlaceholderSize */).usePlaceholderWidth(30, 90);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
label={<View style={[styles.loadingTextPlaceholder, {width: '' + value2 + '%'}]} />}
|
||||
subLabel={<View style={[styles.loadingTextPlaceholderSmall, {width: '' + value3 + '%'}]} />}
|
||||
subLabelLineClamp={1}
|
||||
start={isFirstRow}
|
||||
end={isLastRow}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function CommandRow_89458({command, onPressCommand, isFirstRow, isLastRow, context, onExecuteCommand, section, location, installOnDemand, sectionName, icon}) { // fn#89458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:2012, offset: 0x0200e733, size: 333 bytes, params: 2, frame: 25
|
||||
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
|
||||
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
|
||||
const env0_6 = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
|
||||
useUserIndexState(true, true);
|
||||
useContextIndexState(context, true, true);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
start={isFirstRow}
|
||||
end={isLastRow}
|
||||
label={command.displayName}
|
||||
labelLineClamp={1}
|
||||
subLabel={command.displayDescription}
|
||||
subLabelLineClamp={1}
|
||||
icon={icon}
|
||||
onPress={function() {
|
||||
return onPressCommand(command, section, location);
|
||||
}}
|
||||
trailing={((Component) => <Component command={command} context={context} beforeExecuteCommand={beforeExecuteCommand} onExecuteCommand={onExecuteCommand} tryExecuteCommand={installOnDemand ? _fun89461() : undefined} sectionName={sectionName} />)(importDefault(11646) /* metro dependency 11646: CommandRowButton */)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function AppDetailContent({context, application, lockableScrollableContentOffsetY, onPressBack, installOnDemand, sectionName, onActivityItemSelected, entrypoint, onCommandExecuted, onAauth2Cancel}) { // fn#89465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:3114, offset: 0x0200e9e2, size: 2184 bytes, params: 2, frame: 58
|
||||
var moduleValue4;
|
||||
var moduleValue7;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items3;
|
||||
const env0_5 = onCommandExecuted;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const {chatInputRef,
|
||||
keyboardCloseReasonRef} = (require(8774) /* metro dependency 8774: AppLauncherContext */).useRequiredAppLauncherContext();
|
||||
const value4 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
|
||||
const Math = global.Math;
|
||||
const value6 = 60 + Math.max(36 * value4 - 36, 0);
|
||||
const applicationCommandQueryApiModule = importAll(8060) /* metro dependency 8060: ApplicationCommandQueryApi */;
|
||||
const useDiscovery = applicationCommandQueryApiModule.useDiscovery;
|
||||
const object2 = {context: context};
|
||||
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
||||
const CHAT = ApplicationCommandType.CHAT;
|
||||
object2.filters = {commandTypes: [CHAT]};
|
||||
object2.options = {'placeholderCount': 0, 'limit': null, 'includeFrecency': true,
|
||||
limit: DISCOVERY_COMMANDS_QUERY_LIMIT, allowApplicationState: installOnDemand, installOnDemand: installOnDemand,
|
||||
applicationId: application.id};
|
||||
object2.allowFetch = true;
|
||||
const {filterSection, commandsByActiveSection, sectionDescriptors, loading} = Reflect.apply(useDiscovery,
|
||||
applicationCommandQueryApiModule, [object2]);
|
||||
const value8 = (importDefault(11675) /* metro dependency 11675: useSortedSectionCommands */)({sectionId: application.id,
|
||||
commandsByActiveSection: commandsByActiveSection});
|
||||
const sortOrder = value8.sortOrder;
|
||||
const env0_13 = value8.setSortOrder;
|
||||
const commands = value8.commands;
|
||||
const canSort = value8.canSort;
|
||||
const result = useUserIndexState(true, true).result;
|
||||
const value10 = (result == null ? undefined : result.sections[application.id]) == null;
|
||||
const value11 = !loading;
|
||||
const r26 = loading ? value11 : commands.length === 0;
|
||||
let r9 = r26 && value10;
|
||||
if (r9) {
|
||||
moduleValue4 = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
r9 = !moduleValue4.isEmbeddedApp(application);
|
||||
}
|
||||
const binding = env0_5;
|
||||
const value14 = binding.useMemo(_fun89466, [loading, commands, context.type]);
|
||||
binding.useEffect(function() {
|
||||
filterSection(application.id);
|
||||
}, [application.id, filterSection]);
|
||||
const value16 = binding.useCallback(_fun89469, [context, entrypoint, installOnDemand, useAppLauncherNavigation(),
|
||||
onCommandExecuted, sectionDescriptors, sectionName]);
|
||||
const value17 = binding.useCallback(function() {
|
||||
var current = chatInputRef.current;
|
||||
if (current != null) {
|
||||
current.closeCustomKeyboard();
|
||||
}
|
||||
keyboardCloseReasonRef.current = require(dependencyMap[13]).AppLauncherKeyboardCloseReason.COMMAND;
|
||||
if (onCommandExecuted != null) {
|
||||
onCommandExecuted();
|
||||
}
|
||||
}, [chatInputRef, keyboardCloseReasonRef, onCommandExecuted]);
|
||||
const value18 = sectionDescriptors.find(function({id}) {
|
||||
return id === application.id;
|
||||
});
|
||||
const value19 = binding.useCallback(_fun89472, [value16, commands.length, context, value17, value18,
|
||||
installOnDemand, sectionName]);
|
||||
const value20 = bottom + DEFAULT_CONTENT_PADDING;
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const maximum = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)().maximum;
|
||||
const value21 = binding.useMemo(_fun89473, [application, styles.monetizationDisclosureContainerStyle,
|
||||
styles.monetizationDisclosureStyle, styles.monetizationDisclosureTextStyle]);
|
||||
const value22 = binding.useMemo(_fun89474, [value20, styles.list]);
|
||||
const value23 = binding.useMemo(_fun89475, [value20]);
|
||||
const value24 = binding.useMemo(function() {
|
||||
return {width: width, height: maximum};
|
||||
}, [width, maximum]);
|
||||
const value25 = (require(11643) /* metro dependency 11643: AppLauncherFlashList */).useAppLauncherFlashListProps();
|
||||
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
|
||||
const AppLauncherFlashList = importDefault(11643) /* metro dependency 11643: AppLauncherFlashList */;
|
||||
const items2 = [<View style={styles.headerSpacer} />];
|
||||
items2[1] = (require(8046) /* metro dependency 8046: AppLauncherUtils */).isEmbeddedApp(application) ? ((Component) => <Component application={application} context={context} sectionName={sectionName} onActivityItemSelected={onActivityItemSelected} entrypoint={entrypoint} hasCommands={commands.length > 0} />)(importDefault(11679) /* metro dependency 11679: ActivityDetailContent */) : ((Component) => <Component application={application} viewContainerStyle={styles.viewContainerStyle} mainContainerStyle={styles.mainContainerStyle} expandDescriptionCTAStyle={styles.expandDescriptionCTAStyle} />)(importDefault(9392) /* metro dependency 9392: DetailsHeader */);
|
||||
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
|
||||
const PX_16 = value21 == null ? 24 : (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items2[2] = <Spacer size={PX_16} />;
|
||||
items2[3] = value21;
|
||||
let r24 = commands.length > 1 && value11 && context.type === 'channel' && ((Component) => <Component context={context} allCommands={commands} onPressCommand={value16} section={value18} onExecuteCommand={value17} installOnDemand={installOnDemand} sectionName={sectionName} />)(importDefault(11685) /* metro dependency 11685: FrecencyCommandsSection */);
|
||||
items2[4] = r24;
|
||||
if (r26) {
|
||||
moduleValue7 = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
r24 = moduleValue7.isEmbeddedApp(application) ? null : <View style={styles.noCommandsTextContainer}>{((Text) => <Text variant="text-sm/normal" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['w8+YDM'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
|
||||
} else {
|
||||
r24 = null;
|
||||
}
|
||||
items2[5] = r24;
|
||||
if (r26) {
|
||||
r24 = null;
|
||||
} else if (context.type !== 'channel') {
|
||||
r24 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.commandsHeaderContainer};
|
||||
items3 = [<View style={styles.commandsHeaderTextContainer}>{((Heading) => <Heading variant="text-md/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GOXqks)}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)}</View>];
|
||||
items3[1] = canSort && ((Component) => <Component sortOrder={sortOrder} onSortOptionPress={function(a0) {
|
||||
setSortOrder(a0);
|
||||
}} />)(importDefault(11687) /* metro dependency 11687: CommandListSortButton */);
|
||||
r24 = <View {...viewBindingProps}>{items3}</View>;
|
||||
}
|
||||
items2[6] = r24;
|
||||
return (
|
||||
<>
|
||||
<AppLauncherFlashList
|
||||
ListHeaderComponent={<>{items2}</>}
|
||||
contentContainerStyle={value22}
|
||||
scrollIndicatorInsets={value23}
|
||||
renderItem={value19}
|
||||
data={value14}
|
||||
estimatedItemSize={value6}
|
||||
estimatedListSize={value24}
|
||||
preserveScrollMomentum
|
||||
lockableScrollableContentOffsetY={lockableScrollableContentOffsetY}
|
||||
automaticallyAdjustsScrollIndicatorInsets={false}
|
||||
keyboardDismissMode="none"
|
||||
animatedOnScroll={value25.onScroll}
|
||||
ref={value25.scrollerRef}
|
||||
simultaneousHandlers={value25.gestureRef}
|
||||
animatedProps={value25.animatedProps}
|
||||
key={loading ? 'loading' : undefined}
|
||||
/>
|
||||
{((Component) => <Component application={application} onPressBack={onPressBack} scrollOffsetY={lockableScrollableContentOffsetY} showsAddCTA={r9} onAddAppMenuClick={onAddAppMenuClick} />)(importDefault(11672) /* metro dependency 11672: Header */)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function beforeExecuteCommand() { // fn#89460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:2465, owner: CommandRow_89458.beforeExecuteCommand, offset: 0x0200e89e, size: 98 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = require(5065) /* metro dependency 5065: ApplicationCommandUtils */;
|
||||
const trackCommandSelected = value.trackCommandSelected;
|
||||
const object2 = {};
|
||||
object2.command = command;
|
||||
object2.location = location;
|
||||
object2.triggerSection = (require(5065) /* metro dependency 5065: ApplicationCommandUtils */).getCommandTriggerSection(section);
|
||||
object2.sectionName = sectionName;
|
||||
return Reflect.apply(trackCommandSelected, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun89461() { // fn#89461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:2628, offset: 0x0200e900, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_4(_fun89463);
|
||||
return _fun89464;
|
||||
}
|
||||
|
||||
function _fun89466() { // fn#89466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:4086, offset: 0x0200f26a, size: 67 bytes, params: 1, frame: 11
|
||||
return context.type !== 'channel' ? [] : loading ? env1_18 : commands.map(_fun89467);
|
||||
}
|
||||
|
||||
function _fun89469(a0, a1) { // fn#89469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:4237, offset: 0x0200f2e3, size: 176 bytes, params: 3, frame: 14
|
||||
let value = a2;
|
||||
const r4 = value !== undefined ? value : (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW;
|
||||
value = environment.__proto__;
|
||||
(require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).handleApplicationCommandSelected({location: r4,
|
||||
context: context, command: a0, section: a1, sectionDescriptors: sectionDescriptors, query: '',
|
||||
navigation: env0_15, installOnDemand: installOnDemand, sectionName: sectionName, entrypoint: entrypoint,
|
||||
onCommandExecuted: onCommandExecuted});
|
||||
}
|
||||
|
||||
function _fun89472({item, index}) { // fn#89472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:4735, offset: 0x0200f40a, size: 271 bytes, params: 2, frame: 18
|
||||
const type = item.type;
|
||||
const PLACEHOLDER = env1_17.PLACEHOLDER;
|
||||
if (PLACEHOLDER === type) {
|
||||
return <PlaceholderCommandRow_89457 isFirstRow={index === 0} isLastRow={index === env1_18.length - 1} />;
|
||||
}
|
||||
const COMMAND = env1_17.COMMAND;
|
||||
if (COMMAND === type) {
|
||||
return (
|
||||
<CommandRow_89458
|
||||
command={item.command}
|
||||
onPressCommand={env0_16}
|
||||
isFirstRow={index === 0}
|
||||
isLastRow={index === commands.length - 1}
|
||||
context={context}
|
||||
onExecuteCommand={env0_17}
|
||||
section={env0_18}
|
||||
location={(require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW}
|
||||
installOnDemand={installOnDemand}
|
||||
sectionName={sectionName}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun89473() { // fn#89473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:5247, offset: 0x0200f519, size: 590 bytes, params: 1, frame: 29
|
||||
var r6;
|
||||
var r7;
|
||||
var object2;
|
||||
var stylesBinding;
|
||||
var items3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
const value = environment.__proto__;
|
||||
const r3 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && (require(8046) /* metro dependency 8046: AppLauncherUtils */).isApplicationMonetizedWithIAP(application);
|
||||
const appLauncherUtilsModule = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
const isApplicationAdSupported2 = appLauncherUtilsModule.isApplicationAdSupported(application);
|
||||
const value4 = null;
|
||||
if (isApplicationAdSupported2) {
|
||||
object2 = {};
|
||||
stylesBinding = styles;
|
||||
object2.style = stylesBinding.monetizationDisclosureStyle;
|
||||
items3 = [((BillIcon) => <BillIcon size="sm" color="icon-muted" />)((require(11677) /* metro dependency 11677: BillIcon */).BillIcon)];
|
||||
items3[1] = <Text style={stylesBinding.monetizationDisclosureTextStyle} variant="text-xs/normal" color="text-subtle" lineClamp={1}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5khEk8'])}</Text>;
|
||||
r6 = <View {...object2}>{items3}</View>;
|
||||
} else {
|
||||
r6 = value4;
|
||||
}
|
||||
if (r3) {
|
||||
object2 = {};
|
||||
stylesBinding = styles;
|
||||
object2.style = stylesBinding.monetizationDisclosureStyle;
|
||||
items2 = [((ShopIcon) => <ShopIcon size="sm" color="icon-muted" />)((require(10358) /* metro dependency 10358: ShopIcon */).ShopIcon)];
|
||||
items2[1] = <Text style={stylesBinding.monetizationDisclosureTextStyle} variant="text-xs/normal" color="text-subtle" lineClamp={1}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8z5B2U'])}</Text>;
|
||||
r7 = <View {...object2}>{items2}</View>;
|
||||
} else {
|
||||
r7 = value4;
|
||||
}
|
||||
return r3 || isApplicationAdSupported2 ? <View style={styles.monetizationDisclosureContainerStyle}>{r7}{r6}</View> : value4;
|
||||
}
|
||||
|
||||
function _fun89474() { // fn#89474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:6135, offset: 0x0200f767, size: 37 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
const stylesBinding = styles;
|
||||
copyDataProperties(object2, stylesBinding.list, stylesBinding);
|
||||
object2['paddingBottom'] = env0_19;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89475() { // fn#89475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:6198, offset: 0x0200f78c, size: 15 bytes, params: 1, frame: 2
|
||||
return {bottom: env0_19};
|
||||
}
|
||||
|
||||
function onAddAppMenuClick({installAppProps}) { // fn#89478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:7903, owner: AppDetailContent.onAddAppMenuClick, offset: 0x0200f7c5, size: 319 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var moduleValue;
|
||||
let value = environment.__proto__;
|
||||
importDefault(dependencyMap[38]).hideActionSheet();
|
||||
const keyboardCloseReasonRefBinding = keyboardCloseReasonRef;
|
||||
const AppLauncherKeyboardCloseReason = require(dependencyMap[13]).AppLauncherKeyboardCloseReason;
|
||||
const OAUTH_MODAL = AppLauncherKeyboardCloseReason.OAUTH_MODAL;
|
||||
keyboardCloseReasonRefBinding.current = OAUTH_MODAL;
|
||||
const current = chatInputRef.current;
|
||||
if (current != null) {
|
||||
current.closeCustomKeyboard();
|
||||
}
|
||||
let object2 = {};
|
||||
const ApplicationCommandTriggerLocations = require(dependencyMap[23]).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_APPLICATION_VIEW_MORE_MENU = ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW_MORE_MENU;
|
||||
object2.location = APP_LAUNCHER_APPLICATION_VIEW_MORE_MENU;
|
||||
object2.application_id = application.id;
|
||||
object2.section_name = sectionName;
|
||||
object2.source = entrypoint;
|
||||
if (installAppProps.customInstallUrl == null) {
|
||||
moduleValue = require(dependencyMap[39]);
|
||||
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_OAUTH2_AUTHORIZE_OPENED, object2);
|
||||
}
|
||||
value = require(dependencyMap[40]);
|
||||
const installApplication = value.installApplication;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, installAppProps, dependencyMap);
|
||||
object2['source'] = 'app_launcher_app_details';
|
||||
object2['oauth2Callback'] = oauth2Callback;
|
||||
Reflect.apply(installApplication, value, [object2]);
|
||||
}
|
||||
|
||||
function* _fun89463(a0) { // fn#89463, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:2648, offset: 0x0200e92f, size: 179 bytes, params: 2, frame: 17
|
||||
let value = undefined;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_0;
|
||||
value = undefined;
|
||||
var value3 = binding(env3_3[16]);
|
||||
yield value3.installApplicationOnDemandIfNeeded({applicationId: require.applicationId,
|
||||
channel: importAll.type !== 'channel' ? value : importAll.channel,
|
||||
commandIntegrationTypes: require.integration_types, appLauncherContext: {entrypoint: View, location: env2_4,
|
||||
sectionName: env2_5}});
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (value5.isAuthorized) {
|
||||
a0();
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun89467(a0) { // fn#89467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:4123, offset: 0x0200f2ad, size: 29 bytes, params: 2, frame: 2
|
||||
const COMMAND = env2_17.COMMAND;
|
||||
return {type: COMMAND, command: a0};
|
||||
}
|
||||
|
||||
function oauth2Callback({canceled, location}) { // fn#89479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:8390, owner: AppDetailContent.onAddAppMenuClick.oauth2Callback, offset: 0x0200f904, size: 104 bytes, params: 2, frame: 14
|
||||
var value;
|
||||
var moduleValue;
|
||||
if (canceled) {
|
||||
value = environment.__proto__;
|
||||
if (onAauth2Cancel != null) {
|
||||
onAauth2Cancel();
|
||||
}
|
||||
} else if (location != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_OAUTH2_AUTHORIZE_SUCCEEDED, env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
/* Metro module 11674; source: modules/app_launcher/native/screens/application_view/app/AppDetailsOverflowMenu.tsx; dependencies: [31, 33, 8046, 8063, 1244, 10504, 3829, 6797, 3856, 8772, 8811, 8341, 8639, 2] */
|
||||
function _fun89493(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11860:6, offset: 0x020107a3, size: 138 bytes, params: 8, frame: 18
|
||||
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;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/app/AppDetailsOverflowMenu.tsx');
|
||||
exports.default = AppDetailsOverflowMenu;
|
||||
}
|
||||
|
||||
function AppDetailsOverflowMenu({application, onAddAppMenuClick}) { // fn#89494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11860:246, offset: 0x0201082d, size: 421 bytes, params: 2, frame: 20
|
||||
var push;
|
||||
var object3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var object4;
|
||||
const installAppProps = (require(8046) /* metro dependency 8046: AppLauncherUtils */).getInstallAppProps(application);
|
||||
const items2 = [];
|
||||
if ((require(8063) /* metro dependency 8063: ApplicationInstallUtils */).canInstallApplication(installAppProps) && onAddAppMenuClick != null) {
|
||||
push = items2.push;
|
||||
object3 = {};
|
||||
object3.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.NgXl3C);
|
||||
object3.action = action_89495;
|
||||
object3.IconComponent = (require(10504) /* metro dependency 10504: CirclePlusIcon */).CirclePlusIcon;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
const getSetting = DeveloperMode.getSetting;
|
||||
if (Reflect.apply(getSetting, DeveloperMode, [])) {
|
||||
push = items2.push;
|
||||
object4 = {};
|
||||
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+NP/b2']);
|
||||
object4.action = action_89496;
|
||||
object4.IconComponent = (require(8772) /* metro dependency 8772: IdIcon */).IdIcon;
|
||||
Reflect.apply(push, items2, [object4]);
|
||||
}
|
||||
if (items2.length === 0) {
|
||||
return null;
|
||||
} else {
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
return (
|
||||
<ContextMenu items={items2}>
|
||||
{children_89497}
|
||||
</ContextMenu>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function AppDetailsOverflowMenuAction() { // fn#89495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11860:465, owner: AppDetailsOverflowMenu.action, offset: 0x020109d2, size: 27 bytes, params: 1, frame: 11
|
||||
return onAddAppMenuClick({installAppProps: env0_2});
|
||||
}
|
||||
|
||||
function AppDetailsOverflowMenuAction_89496() { // fn#89496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11860:629, owner: AppDetailsOverflowMenu.action, offset: 0x020109ed, size: 72 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
value.copy(application.id);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentIdCopied();
|
||||
}
|
||||
|
||||
function AppDetailsOverflowMenuChildren(a0) { // fn#89497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11860:770, owner: AppDetailsOverflowMenu.children, offset: 0x02010a35, size: 196 bytes, params: 2, frame: 19
|
||||
const ref = a0.ref;
|
||||
const value = Object.create(null);
|
||||
value.ref = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const iconButtonProps2 = {'ref': null, 'size': 'sm', 'variant': 'secondary-overlay', ref: ref,
|
||||
icon: importDefault(8639) /* metro dependency 8639 */, ...value2};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const PdRCRg = (require(1244) /* metro dependency 1244: indexNative */).t.PdRCRg;
|
||||
iconButtonProps2['accessibilityLabel'] = Reflect.apply(string, intl, [PdRCRg]);
|
||||
iconButtonProps2['maxFontSizeMultiplier'] = 1.5;
|
||||
return <IconButton {...iconButtonProps2} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,284 @@
|
||||
/* Metro module 9392; source: modules/app_launcher/native/screens/application_view/app/DetailsHeader.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 4017, 8046, 4000, 8764, 8750, 6266, 4504, 4507, 6619, 4573, 1244, 4589, 676, 2] */
|
||||
function _fun73247(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:6, offset: 0x01d6468a, size: 570 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.View;
|
||||
const env0_6 = value2.Pressable;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value3.jsx;
|
||||
const env0_8 = value3.jsxs;
|
||||
const env0_9 = value3.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
object2.animatedViewContainer = {overflow: 'hidden'};
|
||||
object2.container = {'position': 'relative', 'width': '100%'};
|
||||
object2.measuringContainer = {'width': '100%', 'position': 'absolute'};
|
||||
object2.descriptionContainer = {marginTop: 8};
|
||||
object2.expandDescriptionCTAGradient = {'position': 'absolute', 'top': 0, 'height': '100%', 'width': 50,
|
||||
'pointerEvents': 'none'};
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object2.expandDescriptionCTA = {'backgroundColor': null, 'position': 'absolute', 'right': 16, 'bottom': 16,
|
||||
'flexDirection': 'row', backgroundColor: CARD_BACKGROUND_DEFAULT};
|
||||
object2.collapseDescriptionCTA = {marginTop: 4};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.nameContainer = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'overflow': 'hidden', gap: PX_4};
|
||||
object2.nameText = {flexShrink: 1};
|
||||
const object3 = {'justifyContent': 'center', 'paddingVertical': 2};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.paddingHorizontal = PX_8;
|
||||
const INTERACTIVE_BACKGROUND_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_BACKGROUND_ACTIVE;
|
||||
object3.backgroundColor = INTERACTIVE_BACKGROUND_ACTIVE;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.partnerLabelWrapper = object3;
|
||||
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
object2 = {code: 'function DetailsHeaderTsx1(){const{height}=this.__closure;return{height:height.get()};}'};
|
||||
object2 = {code: 'function DetailsHeaderTsx2(){const{runOnJS,setShouldLineClamp}=this.__closure;runOnJS(setShouldLineClamp)(true);}'};
|
||||
value = value.memo(DetailsHeader);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/app/DetailsHeader.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function DetailsHeader({application, viewContainerStyle, mainContainerStyle, expandDescriptionCTAStyle, hideName}) { // fn#73248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:1216, offset: 0x01d648c4, size: 2114 bytes, params: 2, frame: 50
|
||||
var r17;
|
||||
var r9;
|
||||
var r8;
|
||||
var r5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items8;
|
||||
const HorizontalGradient = (require(676) /* metro dependency 676: ConstantsIOS */).HorizontalGradient;
|
||||
var object15;
|
||||
var items13;
|
||||
var items14;
|
||||
const styles = useStyles();
|
||||
const isPartnerApplication2 = (require(8046) /* metro dependency 8046: AppLauncherUtils */).isPartnerApplication(application);
|
||||
let binding = env0_4;
|
||||
const value4 = binding.useRef(null);
|
||||
let useState = binding.useState;
|
||||
const value5 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value6 = binding2(value5, 2);
|
||||
const property = value6[0];
|
||||
const env0_2 = value6[1];
|
||||
useState = binding.useState;
|
||||
const value8 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value8[0];
|
||||
var env0_3 = property2;
|
||||
var env0_4 = value8[1];
|
||||
const env0_5 = binding.useRef(true);
|
||||
const value9 = useContainerAnimation();
|
||||
const containerStyle = value9.containerStyle;
|
||||
const env0_6 = value9.containerHeight;
|
||||
const sectionName = (require(8046) /* metro dependency 8046: AppLauncherUtils */).getSectionName(application);
|
||||
const sectionDescription = (require(8046) /* metro dependency 8046: AppLauncherUtils */).getSectionDescription(application);
|
||||
let r10 = sectionDescription != null && sectionDescription.trim().length > 0;
|
||||
const [property3, env0_9] = env0_3(env0_4.useState(null), 2);
|
||||
let backgroundColor = styles.expandDescriptionCTA.backgroundColor;
|
||||
let r2 = expandDescriptionCTAStyle != null && expandDescriptionCTAStyle !== false && typeof expandDescriptionCTAStyle === 'object';
|
||||
r2 = r2 && 'backgroundColor' in expandDescriptionCTAStyle && typeof expandDescriptionCTAStyle.backgroundColor === 'string';
|
||||
backgroundColor = r2 ? expandDescriptionCTAStyle.backgroundColor : backgroundColor;
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
let items2 = [colorUtilsModule.hexOpacityToRgba(backgroundColor, 0)];
|
||||
const moduleValue5 = colorUtilsModule;
|
||||
items2[1] = moduleValue5.hexOpacityToRgba(backgroundColor, 1);
|
||||
binding = env0_4;
|
||||
const env0_10 = binding.useRef(0);
|
||||
const env0_11 = binding.useRef(0);
|
||||
const value22 = binding.useState(false);
|
||||
const binding3 = env0_3;
|
||||
const value23 = binding3(value22, 2);
|
||||
const property4 = value23[0];
|
||||
const env0_12 = value23[1];
|
||||
useState = binding.useState;
|
||||
const value24 = binding3(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property5 = value24[0];
|
||||
const env0_14 = value24[1];
|
||||
const value25 = binding.useMemo(_fun73251, [sectionDescription]);
|
||||
const value26 = (require(8750) /* metro dependency 8750: useIsScreenLandscapeNative */).useIsScreenLandscape();
|
||||
binding.useEffect(_fun73252, [value26, (importDefault(6266) /* metro dependency 6266: usePrevious */)(value26)]);
|
||||
const closure = onPress_73253;
|
||||
const value28 = (importDefault(6619) /* metro dependency 6619: useRefValue */)(value4);
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items4 = [styles.animatedViewContainer, containerStyle, viewContainerStyle];
|
||||
const viewBindingProps = {style: [styles.container, mainContainerStyle], onLayout: onLayout_73255};
|
||||
const value29 = !hideName;
|
||||
const items6 = [hideName ? value29 : ((Heading) => <Heading style={styles.nameText} variant="heading-lg/bold" color="text-default" lineClamp={1}>{sectionName}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)];
|
||||
items6[1] = isPartnerApplication2 ? <View style={styles.partnerLabelWrapper}><Text variant="text-xs/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.LO4f0P)}</Text></View> : null;
|
||||
const view = <View style={styles.nameContainer}>{items6}</View>;
|
||||
if (r10) {
|
||||
var pressableBindingProps = {style: hideName ? value29 : styles.descriptionContainer, onPress: closure,
|
||||
accessibilityRole: 'button'};
|
||||
items8 = [<Text variant="text-sm/medium" color="text-default" lineClamp={property4 || value28 == null ? 3 : undefined}>{value25}</Text>];
|
||||
items8[1] = property && (property2 ? <Text variant="text-sm/medium" color="text-brand" style={styles.collapseDescriptionCTA}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.D5xGUK)}</Text> : null);
|
||||
r17 = <Pressable {...pressableBindingProps}>{items8}</Pressable>;
|
||||
} else {
|
||||
r17 = r10;
|
||||
}
|
||||
const view2 = <View {...viewBindingProps}>{view}{r17}</View>;
|
||||
if (property) {
|
||||
if (property2) {
|
||||
r9 = null;
|
||||
} else {
|
||||
var pressableBindingProps = {style: [styles.expandDescriptionCTA, expandDescriptionCTAStyle],
|
||||
onPress: closure,
|
||||
accessibilityRole: 'button'};
|
||||
items2 = [((Component) => <Component start={HorizontalGradient.START} end={HorizontalGradient.END} colors={items2} style={[styles.expandDescriptionCTAGradient,
|
||||
|
||||
|
||||
{right: property3 == null ? 0 : property3 - 5}]} />)(importDefault(4589) /* metro dependency 4589 */)];
|
||||
items2[1] = <Text onLayout={onLayout_73256} variant="text-sm/medium" color="text-brand">{'… '}{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['OBCR+p'])}</Text>;
|
||||
r9 = <Pressable {...pressableBindingProps}>{items2}</Pressable>;
|
||||
}
|
||||
r8 = r9;
|
||||
} else {
|
||||
r8 = property;
|
||||
}
|
||||
const view3 = <View2 style={items4}>{view2}{r8}</View2>;
|
||||
if (property5) {
|
||||
r5 = !property5;
|
||||
} else {
|
||||
var viewProps = {style: [mainContainerStyle, styles.measuringContainer, {'opacity': 0,
|
||||
'pointerEvents': 'none'}],
|
||||
onLayout: onLayout_73257};
|
||||
items13 = [hideName ? value29 : ((Heading) => <Heading variant="heading-lg/bold" color="text-default">{sectionName}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)];
|
||||
if (r10) {
|
||||
var viewBinding3Props = {style: hideName ? value29 : styles.descriptionContainer};
|
||||
items14 = [<Text variant="text-sm/medium" color="text-default" onTextLayout={onTextLayout}>{value25}</Text>];
|
||||
items14[1] = <Text variant="text-sm/medium" color="text-brand" style={styles.collapseDescriptionCTA}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.D5xGUK)}</Text>;
|
||||
r10 = <View {...viewBinding3Props}>{items14}</View>;
|
||||
}
|
||||
items13[1] = r10;
|
||||
r5 = <View {...viewProps}>{items13}</View>;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{view3}
|
||||
{r5}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function useContainerAnimation() { // fn#73249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:1495, owner: DetailsHeader.useContainerAnimation, offset: 0x01d65106, size: 123 bytes, params: 1, frame: 17
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(null);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = useContainerAnimationT;
|
||||
closure.__closure = {height: value2};
|
||||
closure.__workletHash = 23826674246;
|
||||
closure.__initData = env1_11;
|
||||
return {containerStyle: Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]),
|
||||
containerHeight: value2};
|
||||
}
|
||||
|
||||
function _fun73251() { // fn#73251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:2266, offset: 0x01d65199, size: 58 bytes, params: 1, frame: 13
|
||||
const value2 = null;
|
||||
return value2 == env0_7 ? value2 : (require(8764) /* metro dependency 8764: BioMarkupUtils */).parseBioReactWithCachedAST(env0_7);
|
||||
}
|
||||
|
||||
function _fun73252() { // fn#73252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:2391, offset: 0x01d651d3, size: 54 bytes, params: 1, frame: 12
|
||||
if (env0_15 !== env0_16) {
|
||||
env0_14(false);
|
||||
env0_11.current = 0;
|
||||
env0_10.current = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DetailsHeaderOnPress() { // fn#73253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:2487, owner: DetailsHeader.onPress, offset: 0x01d65209, size: 310 bytes, params: 1, frame: 25
|
||||
var environment;
|
||||
var containerHeightBinding;
|
||||
var set;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var withTiming;
|
||||
var current;
|
||||
const timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
var value3;
|
||||
var moduleValue2;
|
||||
var closure;
|
||||
var object2;
|
||||
if (env0_1) {
|
||||
env0_5.current = false;
|
||||
if (env0_3) {
|
||||
containerHeightBinding = containerHeight;
|
||||
set = containerHeightBinding.set;
|
||||
value3 = environment.__proto__;
|
||||
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
|
||||
withTiming = moduleValue2.withTiming;
|
||||
current = env0_10.current;
|
||||
closure = onPressT;
|
||||
object2 = {};
|
||||
object2.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
||||
object2.setShouldLineClamp = env0_12;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 6050776164847;
|
||||
closure.__initData = env1_12;
|
||||
Reflect.apply(set, containerHeightBinding, [Reflect.apply(withTiming, moduleValue2, [current,
|
||||
timingStandard,
|
||||
'respect-motion-settings', closure])]);
|
||||
} else {
|
||||
env0_12(false);
|
||||
containerHeightBinding = containerHeight;
|
||||
set = containerHeightBinding.set;
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4504) /* metro dependency 4504: timing */;
|
||||
Reflect.apply(set, containerHeightBinding, [moduleValue.withTiming(env0_11.current, timingStandard)]);
|
||||
}
|
||||
env0_4(!env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function DetailsHeaderOnLayout(a0) { // fn#73255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:2963, owner: DetailsHeader.onLayout, offset: 0x01d65372, size: 114 bytes, params: 2, frame: 12
|
||||
var containerHeightBinding;
|
||||
var set;
|
||||
var current;
|
||||
if (!env0_13) {
|
||||
env0_10.current = a0.nativeEvent.layout.height;
|
||||
containerHeightBinding = containerHeight;
|
||||
set = containerHeightBinding.set;
|
||||
current = env0_10.current;
|
||||
Reflect.apply(set, containerHeightBinding, [current]);
|
||||
current = env0_11.current;
|
||||
if (current > 0 && env0_10.current > 0) {
|
||||
env0_14(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function DetailsHeaderOnLayout_73256(a0) { // fn#73256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:4104, owner: DetailsHeader.onLayout, offset: 0x01d653e4, size: 48 bytes, params: 2, frame: 11
|
||||
if (env0_8 == null) {
|
||||
env0_9(a0.nativeEvent.layout.width);
|
||||
}
|
||||
}
|
||||
|
||||
function DetailsHeaderOnLayout_73257({nativeEvent}) { // fn#73257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:4345, owner: DetailsHeader.onLayout, offset: 0x01d65414, size: 84 bytes, params: 2, frame: 12
|
||||
env0_11.current = nativeEvent.layout.height;
|
||||
if (env0_11.current > 0 && env0_10.current > 0) {
|
||||
env0_14(true);
|
||||
}
|
||||
}
|
||||
|
||||
function DetailsHeaderOnTextLayout({nativeEvent}) { // fn#73258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:4650, owner: DetailsHeader.onTextLayout, offset: 0x01d65468, size: 81 bytes, params: 2, frame: 12
|
||||
const length = nativeEvent.lines.length;
|
||||
if (env0_0.current == null) {
|
||||
env0_0.current = length;
|
||||
}
|
||||
if (length > 3) {
|
||||
env0_12(true);
|
||||
env0_2(true);
|
||||
}
|
||||
}
|
||||
|
||||
function onPressT() { // fn#73254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:2607, owner: DetailsHeader.onPress.t, offset: 0x01d6533f, size: 51 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value = value.runOnJS(env1_12);
|
||||
value(true);
|
||||
}
|
||||
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
/* Metro module 11685; source: modules/app_launcher/native/screens/application_view/app/FrecencyCommandsSection.tsx; dependencies: [31, 27, 661, 33, 4501, 11671, 11686, 4863, 8048, 4573, 1244, 5068, 2] */
|
||||
function _fun89545(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11871:6, offset: 0x02012def, size: 268 bytes, params: 8, frame: 20
|
||||
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;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BETWEEN_SECTIONS_MARGIN = (require(11671) /* metro dependency 11671: AppDetailContent */).BETWEEN_SECTIONS_MARGIN;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{container: {marginBottom: BETWEEN_SECTIONS_MARGIN},
|
||||
header: {'flexDirection': 'row', 'alignItems': 'center', 'gap': 4, 'marginBottom': 8}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/app/FrecencyCommandsSection.tsx');
|
||||
exports.default = FrecencyCommandsSection;
|
||||
}
|
||||
|
||||
function FrecencyCommandsSection({context, allCommands, onPressCommand, section, onExecuteCommand, installOnDemand, sectionName}) { // fn#89546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11871:455, offset: 0x02012efb, size: 367 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
var Heading;
|
||||
var intl;
|
||||
var view;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(11686) /* metro dependency 11686: useFilterAndSortToOnlyFrecentCommands */)({context: context,
|
||||
commands: allCommands, limit: 5});
|
||||
onExecuteCommand.useEffect(_fun89547, [value2.length, sectionName]);
|
||||
if (value2.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
var viewBindingProps2 = {style: styles.header};
|
||||
Heading = (require(4573) /* metro dependency 4573: Text */).Heading;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
view = <View {...viewBindingProps2}><Heading variant="text-md/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.acSE0h)}</Heading></View>;
|
||||
view = <View {...viewBindingProps}>{[view, value2.map(_fun89548)]}</View>;
|
||||
r0 = view;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun89547() { // fn#89547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11871:665, offset: 0x0201306a, size: 122 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var trackWithMetadata;
|
||||
var APP_LAUNCHER_FRECENTS_SEEN;
|
||||
var object2;
|
||||
if (env0_6.length !== 0) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
trackWithMetadata = moduleValue.trackWithMetadata;
|
||||
APP_LAUNCHER_FRECENTS_SEEN = AnalyticEvents.APP_LAUNCHER_FRECENTS_SEEN;
|
||||
object2 = {};
|
||||
object2.num = env0_6.length;
|
||||
object2.section_name = sectionName;
|
||||
object2.location = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherLocations.APP_DETAIL;
|
||||
Reflect.apply(trackWithMetadata, moduleValue, [APP_LAUNCHER_FRECENTS_SEEN, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89548(a0, a1) { // fn#89548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11871:1040, offset: 0x020130e4, size: 182 bytes, params: 3, frame: 21
|
||||
const CommandRow = (require(11671) /* metro dependency 11671: AppDetailContent */).CommandRow;
|
||||
const onPressCommandBinding = onPressCommand;
|
||||
const length = env0_6.length;
|
||||
const contextBinding = context;
|
||||
const onExecuteCommandBinding = onExecuteCommand;
|
||||
const installOnDemandBinding = installOnDemand;
|
||||
const sectionBinding = section;
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_APPLICATION_VIEW_FRECENCT = ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW_FRECENCT;
|
||||
return (
|
||||
<CommandRow
|
||||
command={a0}
|
||||
onPressCommand={onPressCommandBinding}
|
||||
isFirstRow={a1 === 0}
|
||||
isLastRow={a1 === length - 1}
|
||||
context={contextBinding}
|
||||
onExecuteCommand={onExecuteCommandBinding}
|
||||
installOnDemand={installOnDemandBinding}
|
||||
section={sectionBinding}
|
||||
location={APP_LAUNCHER_APPLICATION_VIEW_FRECENCT}
|
||||
sectionName={sectionName}
|
||||
key={a0.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
/* Metro module 11688; source: modules/app_launcher/native/screens/application_view/app/sort/CommandListSortActionSheet.tsx; dependencies: [31, 11676, 33, 1244, 6275, 6758, 11689, 697, 7988, 7987, 2] */
|
||||
function _fun89561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11874:6, offset: 0x02013708, size: 160 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(11676) /* metro dependency 11676: AppLauncherConstants */).CommandListSortOrder;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/app/sort/CommandListSortActionSheet.tsx');
|
||||
exports.default = CommandListSortActionSheet;
|
||||
}
|
||||
|
||||
function CommandListSortActionSheet({onClose, sortOrder, onSortOptionPress}) { // fn#89562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11874:286, offset: 0x020137a8, size: 446 bytes, params: 2, frame: 24
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object3 = {startExpanded: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const object4 = {};
|
||||
const ArrowsUpDownIcon = (require(11689) /* metro dependency 11689: ArrowsUpDownIcon */).ArrowsUpDownIcon;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
object4.leading = <ArrowsUpDownIcon size="sm" color={TEXT_DEFAULT} />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object4.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.yeYaHf]);
|
||||
object3.header = <BottomSheetTitleHeader {...object4} />;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
string = intl.string;
|
||||
const SzxiqK = (require(1244) /* metro dependency 1244: indexNative */).t.SzxiqK;
|
||||
const POPULAR = CommandListSortOrder.POPULAR;
|
||||
const items2 = [{label: Reflect.apply(string, intl, [SzxiqK]), value: POPULAR}];
|
||||
const object5 = {};
|
||||
object5.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m8xsti);
|
||||
const ALPHABETICAL = CommandListSortOrder.ALPHABETICAL;
|
||||
object5.value = ALPHABETICAL;
|
||||
items2[1] = object5;
|
||||
return (
|
||||
<BottomSheet {...object3}>
|
||||
<TableRadioGroup
|
||||
hasIcons={false}
|
||||
value={sortOrder}
|
||||
onChange={function(a0) {
|
||||
onSortOptionPress(a0);
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
{items2.map(_fun89564)}
|
||||
</TableRadioGroup>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89564({label, value}) { // fn#89564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11874:807, offset: 0x02013981, size: 67 bytes, params: 2, frame: 16
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
return (
|
||||
<TableRadioRow
|
||||
label={label}
|
||||
value={value}
|
||||
key={value}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/* Metro module 11687; source: modules/app_launcher/native/screens/application_view/app/sort/CommandListSortButton.tsx; dependencies: [31, 27, 11676, 1309, 33, 4501, 697, 1244, 5278, 4080, 11688, 1962, 4573, 8708, 2] */
|
||||
function _fun89557(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11873:6, offset: 0x02013384, size: 325 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
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;
|
||||
const env0_4 = (require(11676) /* metro dependency 11676: AppLauncherConstants */).CommandListSortOrder;
|
||||
const env0_5 = (require(1309) /* metro dependency 1309: FormConstants */).ANDROID_FOREGROUND_RIPPLE;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {overflow: 'hidden'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object3.container = object4;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object3.button = {'gap': 4, 'flexDirection': 'row', 'alignItems': 'center', 'paddingHorizontal': 12,
|
||||
'paddingVertical': 4, backgroundColor: BACKGROUND_MOD_NORMAL};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/app/sort/CommandListSortButton.tsx');
|
||||
exports.default = CommandListSortButton;
|
||||
}
|
||||
|
||||
function CommandListSortButton({sortOrder, onSortOptionPress}) { // fn#89558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11873:579, offset: 0x020134c9, size: 414 bytes, params: 2, frame: 22
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const POPULAR = CommandListSortOrder.POPULAR;
|
||||
const r11 = POPULAR === sortOrder ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.SzxiqK) : CommandListSortOrder.ALPHABETICAL !== sortOrder ? undefined : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m8xsti);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps = {'accessibilityRole': 'button', 'androidRippleConfig': null, 'activeOpacity': 0.8,
|
||||
androidRippleConfig: ANDROID_FOREGROUND_RIPPLE, style: styles.container, onPress: onPress_89559};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="text-sm/medium" color="text-default">{r11}</Text>;
|
||||
const ChevronSmallDownIcon = (require(8708) /* metro dependency 8708: ChevronSmallDownIcon */).ChevronSmallDownIcon;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
return (
|
||||
<PressableOpacity {...pressableOpacityProps}>
|
||||
<View style={styles.button}>
|
||||
{text}
|
||||
<ChevronSmallDownIcon size="xs" color={TEXT_DEFAULT} />
|
||||
</View>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function CommandListSortButtonOnPress() { // fn#89559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11873:915, owner: CommandListSortButton.onPress, offset: 0x02013667, size: 117 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[9]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[11]);
|
||||
value = value(dependencyMap[10], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'CommandListSortActionSheet', {sortOrder: sortOrder,
|
||||
onSortOptionPress: onSortOptionPress, onClose: onClose_89560}]);
|
||||
}
|
||||
|
||||
function onPressOnClose_89560() { // fn#89560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11873:1031, owner: CommandListSortButton.onPress.onClose, offset: 0x020136dc, size: 44 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('CommandListSortActionSheet');
|
||||
}
|
||||
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
/* Metro module 11692; source: modules/app_launcher/native/screens/command_view/AppLauncherCommandViewHeader.tsx; dependencies: [31, 27, 1483, 33, 11673, 4501, 697, 11592, 4017, 3860, 8372, 5475, 4573, 1305, 2] */
|
||||
function _fun89631(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11878:6, offset: 0x02017651, size: 603 bytes, params: 8, frame: 27
|
||||
var object2;
|
||||
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;
|
||||
let value = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
|
||||
const DEFAULT_CONTENT_PADDING = value.DEFAULT_CONTENT_PADDING;
|
||||
const SCREEN_BACKGROUND_COLOR = value.SCREEN_BACKGROUND_COLOR;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const BACK_BUTTON_SIZE = (require(11673) /* metro dependency 11673: AppLauncherBackButton */).BACK_BUTTON_SIZE;
|
||||
value = BACK_BUTTON_SIZE + 2 * DEFAULT_CONTENT_PADDING + 36 + 4;
|
||||
const env0_8 = value - 56;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
object2.headerContainer = {'alignItems': 'center', 'flexDirection': 'row', 'justifyContent': 'space-between',
|
||||
'position': 'absolute', 'top': -16, 'left': 0, 'right': 0, padding: DEFAULT_CONTENT_PADDING};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object2.loadingHeaderContainer = {backgroundColor: BACKGROUND_BASE_LOWEST};
|
||||
const object3 = {'position': 'absolute', 'padding': 4, 'bottom': -36, 'left': '50%'};
|
||||
object3.backgroundColor = SCREEN_BACKGROUND_COLOR;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl + 4;
|
||||
object2.appIconMask = object3;
|
||||
const object6 = {'width': 72, 'height': 72};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object2.appIcon = object6;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object2.loadingIcon = {backgroundColor: BACKGROUND_MOD_MUTED};
|
||||
object2.appSmallName = {'textAlign': 'center', 'pointerEvents': 'none', 'flexGrow': 1, 'marginHorizontal': 8};
|
||||
object2.icon = {transform: [{rotate: '180deg'}]};
|
||||
object2.headerBannerOverlay = {'backgroundColor': 'black', 'position': 'absolute', 'top': 0, 'left': 0, 'right': 0,
|
||||
'bottom': 0};
|
||||
const styles = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
object2 = {code: "function AppLauncherCommandViewHeaderTsx1(){const{interpolate,scrollOffsetY,TOTAL_SCROLL_RANGE}=this.__closure;return{opacity:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[0,1],'clamp'),transform:[{translateY:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[12,0],'clamp')}]};}"};
|
||||
object2 = {code: "function AppLauncherCommandViewHeaderTsx2(){const{APP_ICON_SIZE,APP_ICON_BORDER_WIDTH,DEFAULT_CONTENT_PADDING,interpolate,scrollOffsetY,TOTAL_SCROLL_RANGE}=this.__closure;return{transform:[{translateX:-APP_ICON_SIZE/2-APP_ICON_BORDER_WIDTH+DEFAULT_CONTENT_PADDING},{translateY:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[0,-APP_ICON_SIZE/2],'clamp')},{scale:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[1,0],'clamp')}],opacity:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[1,0],'clamp')};}"};
|
||||
object2 = {code: "function AppLauncherCommandViewHeaderTsx3(){const{interpolate,scrollOffsetY,TOTAL_SCROLL_RANGE}=this.__closure;return{opacity:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[0,0.5],'clamp')};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/command_view/AppLauncherCommandViewHeader.tsx');
|
||||
exports.COLLAPSED_HEADER_HEIGHT = 56;
|
||||
exports.EXPANDED_HEADER_TOTAL_CONSUMED_SPACE_IN_PARENT = value + -16;
|
||||
exports.useStyles = styles;
|
||||
exports.AppLauncherCommandViewHeader = AppLauncherCommandViewHeader;
|
||||
}
|
||||
|
||||
function AppLauncherCommandViewHeader({command, onPressBack, scrollOffsetY, section}) { // fn#89632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11878:2264, offset: 0x020178ac, size: 948 bytes, params: 2, frame: 31
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
let binding = env0_3;
|
||||
const value3 = binding.useMemo(_fun89633, [section]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = AppLauncherCommandViewHeaderA;
|
||||
object2 = {interpolate: reanimatedRexportModule.interpolate, scrollOffsetY: scrollOffsetY};
|
||||
binding = env0_8;
|
||||
object2.TOTAL_SCROLL_RANGE = binding;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 15596175827193;
|
||||
closure.__initData = env0_10;
|
||||
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue2.useAnimatedStyle;
|
||||
closure = AppLauncherCommandViewHeaderE;
|
||||
object2 = {'APP_ICON_SIZE': 72, 'APP_ICON_BORDER_WIDTH': 4};
|
||||
object2.DEFAULT_CONTENT_PADDING = DEFAULT_CONTENT_PADDING;
|
||||
object2.interpolate = reanimatedRexportModule.interpolate;
|
||||
object2.scrollOffsetY = scrollOffsetY;
|
||||
object2.TOTAL_SCROLL_RANGE = binding;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 13563524587234;
|
||||
closure.__initData = env0_11;
|
||||
const value5 = Reflect.apply(useAnimatedStyle, moduleValue2, [closure]);
|
||||
const moduleValue3 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue3.useAnimatedStyle;
|
||||
closure = AppLauncherCommandViewHeaderN;
|
||||
closure.__closure = {interpolate: reanimatedRexportModule.interpolate, scrollOffsetY: scrollOffsetY,
|
||||
TOTAL_SCROLL_RANGE: binding};
|
||||
closure.__workletHash = 2637023147700;
|
||||
closure.__initData = env0_12;
|
||||
const value6 = Reflect.apply(useAnimatedStyle, moduleValue3, [closure]);
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const value9 = (importDefault(8372) /* metro dependency 8372: useAvatarColor */)(typeof value3 === 'number' ? value3 : value3?.uri,
|
||||
Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOW]) ?? '');
|
||||
const r8 = value3 != null ? ((Component) => <Component style={styles.appIcon} source={value3} />)(importDefault(5475) /* metro dependency 5475: FastImage */) : <View style={[styles.appIcon,
|
||||
styles.loadingIcon]} />;
|
||||
const items2 = [styles.headerContainer];
|
||||
items2[1] = command == null ? styles.loadingHeaderContainer : {backgroundColor: value9};
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items4 = [<View2 style={[styles.headerBannerOverlay, value6]} />];
|
||||
items4[1] = ((Component) => <Component onPress={onPressBack} />)(importDefault(11673) /* metro dependency 11673: AppLauncherBackButton */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items4[2] = <Text lineClamp={1} animated style={[styles.appSmallName,
|
||||
value4]} variant="heading-lg/bold" color="white">{command?.displayName}</Text>;
|
||||
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
|
||||
items4[3] = <Spacer size={32} />;
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items4[4] = <View3 style={[styles.appIconMask, value5]}>{r8}</View3>;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{items4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89633() { // fn#89633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11878:2384, offset: 0x02017c60, size: 63 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(section?.application);
|
||||
}
|
||||
|
||||
function AppLauncherCommandViewHeaderA() { // fn#89634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11878:2488, owner: AppLauncherCommandViewHeader.A, offset: 0x02017c9f, size: 177 bytes, params: 1, frame: 24
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const scrollOffsetYBinding = scrollOffsetY;
|
||||
const value3 = scrollOffsetYBinding.get();
|
||||
const binding = env1_8;
|
||||
object2.opacity = Reflect.apply(interpolate, reanimatedRexportModule, [value3, [0, binding], [0, 1], 'clamp']);
|
||||
value = reanimatedRexportModule;
|
||||
object2.transform = [{translateY: value.interpolate(scrollOffsetYBinding.get(), [0, binding], [12, 0], 'clamp')}];
|
||||
return object2;
|
||||
}
|
||||
|
||||
function AppLauncherCommandViewHeaderE() { // fn#89635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11878:2790, owner: AppLauncherCommandViewHeader.E, offset: 0x02017d50, size: 284 bytes, params: 1, frame: 26
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const items2 = [{translateX: -40 + DEFAULT_CONTENT_PADDING}];
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const scrollOffsetYBinding = scrollOffsetY;
|
||||
const value3 = scrollOffsetYBinding.get();
|
||||
const binding = env1_8;
|
||||
items2[1] = {translateY: Reflect.apply(interpolate, reanimatedRexportModule, [value3, [0, binding], [0, -36],
|
||||
'clamp'])};
|
||||
value = reanimatedRexportModule;
|
||||
items2[2] = {scale: value.interpolate(scrollOffsetYBinding.get(), [0, binding], [1, 0], 'clamp')};
|
||||
object2.transform = items2;
|
||||
value = reanimatedRexportModule;
|
||||
object2.opacity = value.interpolate(scrollOffsetYBinding.get(), [0, binding], [1, 0], 'clamp');
|
||||
return object2;
|
||||
}
|
||||
|
||||
function AppLauncherCommandViewHeaderN() { // fn#89636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11878:3236, owner: AppLauncherCommandViewHeader.N, offset: 0x02017e6c, size: 97 bytes, params: 1, frame: 18
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
return {opacity: reanimatedRexportModule.interpolate(scrollOffsetY.get(), [0, env1_8], [0, 0.5], 'clamp')};
|
||||
}
|
||||
|
||||
+1306
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,121 @@
|
||||
/* Metro module 11697; source: modules/app_launcher/native/screens/command_view/CommandOptionView.tsx; dependencies: [31, 27, 4502, 33, 1909, 4501, 697, 566, 4017, 11698, 11699, 4573, 11700, 1305, 11077, 2] */
|
||||
function _fun89667(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11883:6, offset: 0x020195ea, size: 652 bytes, params: 8, frame: 22
|
||||
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;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const Set = global.Set;
|
||||
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
|
||||
let STRING = ApplicationCommandOptionType.STRING;
|
||||
let INTEGER = ApplicationCommandOptionType.INTEGER;
|
||||
const ATTACHMENT = ApplicationCommandOptionType.ATTACHMENT;
|
||||
const BOOLEAN = ApplicationCommandOptionType.BOOLEAN;
|
||||
const MENTIONABLE = ApplicationCommandOptionType.MENTIONABLE;
|
||||
const USER = ApplicationCommandOptionType.USER;
|
||||
const ROLE = ApplicationCommandOptionType.ROLE;
|
||||
const CHANNEL = ApplicationCommandOptionType.CHANNEL;
|
||||
let NUMBER = ApplicationCommandOptionType.NUMBER;
|
||||
let set = new Set([STRING, INTEGER, ATTACHMENT, BOOLEAN, MENTIONABLE, USER, ROLE, CHANNEL, NUMBER]);
|
||||
set = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = set.createStyles;
|
||||
const ICON_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_CRITICAL;
|
||||
const env0_8 = Reflect.apply(createStyles, set, [{optionDescription: {marginTop: 4},
|
||||
optionErrorContainer: {'flexDirection': 'row', 'alignItems': 'center', 'marginTop': 4},
|
||||
optionErrorIcon: {'marginRight': 4, 'tintColor': null, 'alignItems': 'center',
|
||||
tintColor: ICON_FEEDBACK_CRITICAL}, labelText: {marginBottom: 8}}]);
|
||||
STRING = ApplicationCommandOptionType.STRING;
|
||||
items = [STRING];
|
||||
INTEGER = ApplicationCommandOptionType.INTEGER;
|
||||
items[1] = INTEGER;
|
||||
NUMBER = ApplicationCommandOptionType.NUMBER;
|
||||
items[2] = NUMBER;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/command_view/CommandOptionView.tsx');
|
||||
exports.default = CommandOptionView;
|
||||
}
|
||||
|
||||
function CommandOptionView({style, option, autoFocusType, onDismiss, editedOptions, onOptionViewLayout, onStartEditing, onEndEditing, onOptionValueChange, onPressOption, onPressAttachmentOption, channel, optionValidationResults, setFocusedOption, command, optionValues, isPreSelectedOption}) { // fn#89668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11883:1085, offset: 0x02019876, size: 1181 bytes, params: 2, frame: 44
|
||||
var r4;
|
||||
var r6;
|
||||
var r12;
|
||||
var value4;
|
||||
var FadeInUp;
|
||||
var value6;
|
||||
var value9;
|
||||
var LayoutAnimationConfig;
|
||||
var AwaitAnimationContext;
|
||||
var object2;
|
||||
var View2;
|
||||
var object4;
|
||||
var items2;
|
||||
var View3;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let object = [AccessibilityStore];
|
||||
const useReducedMotion = Reflect.apply(useStateFromStores, fluxModule, [object, function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
}]);
|
||||
const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion;
|
||||
const r5 = useReducedMotion ? ReduceMotion.Always : ReduceMotion.Never;
|
||||
const {EnteringAnimation,
|
||||
registerAnimationCompleteCallback} = (require(11698) /* metro dependency 11698: useOptionAnimations */).useOptionEnteringAnimation();
|
||||
let binding = env0_7;
|
||||
if (binding.has(option.type)) {
|
||||
r4 = option.required || isPreSelectedOption;
|
||||
r6 = r4 ? function(a0) {
|
||||
return a0();
|
||||
} : registerAnimationCompleteCallback;
|
||||
value4 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).FadeOut.reduceMotion(r5);
|
||||
FadeInUp = (require(4017) /* metro dependency 4017: ReanimatedRexport */).FadeInUp;
|
||||
value6 = FadeInUp.withInitialValues({transform: [{translateY: -10}]}).reduceMotion(r5);
|
||||
r12 = editedOptions.has(option.name) && optionValidationResults[option.name]?.error != null;
|
||||
binding = env0_9;
|
||||
value9 = binding.includes(option.type);
|
||||
LayoutAnimationConfig = (require(4017) /* metro dependency 4017: ReanimatedRexport */).LayoutAnimationConfig;
|
||||
object = {skipEntering: r4};
|
||||
AwaitAnimationContext = (require(11699) /* metro dependency 11699: useAwaitAnimationComplete */).AwaitAnimationContext;
|
||||
object2 = {handleQueuedCallback: r6};
|
||||
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view2Props = {collapsable: false, entering: EnteringAnimation,
|
||||
exiting: (require(11698) /* metro dependency 11698: useOptionAnimations */).ExitingAnimation,
|
||||
layout: (require(11698) /* metro dependency 11698: useOptionAnimations */).LayoutAnimation,
|
||||
onLayout: onLayout_89671};
|
||||
object4 = {collapsable: false, style: style};
|
||||
items2 = [value9 && ((Text) => <Text style={styles.labelText} variant="text-sm/semibold" color="text-subtle">{option.displayName}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
items2[1] = ((Component) => <Component option={option} onStartEditing={onStartEditing} onEndEditing={onEndEditing} onDismiss={onDismiss} onOptionValueChange={onOptionValueChange} onFocus={onFocus_89672} onPress={onPress_89673} onPressAttachmentOption={onPressAttachmentOption} channel={channel} autoFocusType={autoFocusType} command={command} optionValues={optionValues} hasError={r12} />)(importDefault(11700) /* metro dependency 11700: AppLauncherCommandOption */);
|
||||
items2[2] = ((Text) => <Text style={styles.optionDescription} variant="text-xs/medium" color="text-muted">{option.displayDescription}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
if (r12) {
|
||||
View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view3Props = {collapsable: false, entering: value6, exiting: value4,
|
||||
style: styles.optionErrorContainer};
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
value = <Icon style={styles.optionErrorIcon} source={importDefault(11077) /* metro dependency 11077 */} size={(require(1305) /* metro dependency 1305: native */).IconSizes.REFRESH_SMALL_16} />;
|
||||
value = <View3 {...view3Props}>{value}{((Text) => <Text variant="text-xs/medium" color="text-feedback-critical">{optionValidationResults[option.name].error}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View3>;
|
||||
r12 = value;
|
||||
}
|
||||
items2[3] = r12;
|
||||
return (
|
||||
<LayoutAnimationConfig {...object}>
|
||||
<AwaitAnimationContext {...object2}>
|
||||
<View2 {...view2Props}>
|
||||
<View {...object4}>
|
||||
{items2}
|
||||
</View>
|
||||
</View2>
|
||||
</AwaitAnimationContext>
|
||||
</LayoutAnimationConfig>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function CommandOptionViewOnLayout(a0) { // fn#89671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11883:2128, owner: CommandOptionView.onLayout, offset: 0x02019d13, size: 24 bytes, params: 2, frame: 13
|
||||
onOptionViewLayout(a0, option);
|
||||
}
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
/* Metro module 11728; source: modules/app_launcher/native/screens/command_view/OptionalCommandOptionList.tsx; dependencies: [31, 27, 33, 4501, 697, 6238, 5278, 4573, 1244, 2] */
|
||||
function _fun89880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11914:6, offset: 0x020221e7, size: 415 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'overflow': 'hidden', 'borderWidth': 1};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object5.borderColor = BORDER_SUBTLE;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const SHADOW_BORDER = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_BORDER;
|
||||
copyDataProperties(object5, SHADOW_BORDER, undefined);
|
||||
object4.container = object5;
|
||||
const object6 = {'borderRadius': null, 'minWidth': 48, 'height': 32, 'justifyContent': 'center',
|
||||
'alignItems': 'center', 'paddingHorizontal': 12};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const REDESIGN_BUTTON_TERTIARY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_BACKGROUND;
|
||||
object6.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
|
||||
object4.addButton = object6;
|
||||
const REDESIGN_BUTTON_TERTIARY_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_TEXT;
|
||||
object4.addButtonText = {color: REDESIGN_BUTTON_TERTIARY_TEXT};
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/command_view/OptionalCommandOptionList.tsx');
|
||||
exports.default = OptionalCommandOptionList;
|
||||
}
|
||||
|
||||
function OptionList({options, onSelectOption, style}) { // fn#89881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11914:628, offset: 0x02022386, size: 113 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={[styles.container, style]} collapsable={false}>
|
||||
{options.map(_fun89882)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function OptionalCommandOptionList({options, onSelectOption, style}) { // fn#89885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11914:1242, offset: 0x02022522, size: 71 bytes, params: 2, frame: 16
|
||||
return options.length > 0 ? <OptionList style={style} options={options} onSelectOption={onSelectOption} /> : null;
|
||||
}
|
||||
|
||||
function _fun89882(a0, a1) { // fn#89882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11914:761, offset: 0x020223f7, size: 299 bytes, params: 3, frame: 26
|
||||
const env0_0 = a0;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps = {onPress: onPress_89883, start: false, end: a1 === options.length - 1, label: a0.displayName,
|
||||
subLabel: a0.displayDescription};
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const object = {accessibilityRole: 'button'};
|
||||
const stylesBinding = styles;
|
||||
object.style = stylesBinding.addButton;
|
||||
object.onPress = onPress_89884;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const addButtonText = stylesBinding.addButtonText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const OYkgVk = (require(1244) /* metro dependency 1244: indexNative */).t.OYkgVk;
|
||||
tableRowProps.trailing = <PressableOpacity {...object}><Text variant="text-sm/semibold" style={addButtonText}>{Reflect.apply(string,
|
||||
intl, [OYkgVk])}</Text></PressableOpacity>;
|
||||
return <TableRow {...tableRowProps} key={a0.name} />;
|
||||
}
|
||||
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
/* Metro module 11698; source: modules/app_launcher/native/screens/command_view/hooks/useOptionAnimations.tsx; dependencies: [57, 31, 4504, 4017, 2] */
|
||||
function _fun89675(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:6, offset: 0x02019d53, size: 227 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
object = {code: 'function LayoutAnimation_useOptionAnimationsTsx1(values){const{withTiming,OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION}=this.__closure;const animations={originY:withTiming(values.targetOriginY,{duration:OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION})};const initialValues={originY:values.currentOriginY};return{initialValues:initialValues,animations:animations};}'};
|
||||
const value = _fun89676();
|
||||
object = {code: 'function ExitingAnimation_useOptionAnimationsTsx2(values){const{withTiming,OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION}=this.__closure;const offScreenX=Math.min(values.currentOriginX-values.windowWidth,-values.windowWidth);const animations={opacity:withTiming(0,{duration:OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION}),originX:withTiming(offScreenX,{duration:OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION})};const initialValues={originX:values.currentOriginX,opacity:1};return{initialValues:initialValues,animations:animations};}'};
|
||||
const value2 = _fun89678();
|
||||
object = {code: 'function useOptionAnimationsTsx3(){const{withTiming,Easing,OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION,withDelay,runOnJS,handleMountAnimationComplete}=this.__closure;const scaleAnimation=withTiming(1,{duration:250,easing:Easing.bezier(0.25,1.75,0.25,1.25)});const opacityAnimation=withTiming(1,{duration:200});const layoutShiftDelay=OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION-100;return{animations:{opacity:withDelay(layoutShiftDelay,opacityAnimation),transform:[{scale:withDelay(layoutShiftDelay,scaleAnimation)}]},initialValues:{opacity:0,transform:[{scale:0.92}]},callback:function(){runOnJS(handleMountAnimationComplete)();}};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/command_view/hooks/useOptionAnimations.tsx');
|
||||
exports.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
|
||||
exports.LayoutAnimation = value;
|
||||
exports.ExitingAnimation = value2;
|
||||
exports.useOptionEnteringAnimation = useOptionEnteringAnimation;
|
||||
}
|
||||
|
||||
function _fun89676() { // fn#89676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:488, offset: 0x02019e36, size: 90 bytes, params: 1, frame: 14
|
||||
const closure = LayoutAnimation;
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 16804895997501;
|
||||
closure.__initData = env0_4;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function _fun89678() { // fn#89678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:1386, offset: 0x02019eeb, size: 90 bytes, params: 1, frame: 14
|
||||
const closure = ExitingAnimation;
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 8977480282966;
|
||||
closure.__initData = env0_5;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function useOptionEnteringAnimation() { // fn#89680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:2720, offset: 0x02019fed, size: 153 bytes, params: 1, frame: 16
|
||||
var object2;
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
const binding = env0_3;
|
||||
const env0_1 = binding.useRef([]);
|
||||
const env0_2 = binding.useCallback(_fun89681, [value2]);
|
||||
const value3 = binding.useState(_fun89683);
|
||||
object2 = {};
|
||||
object2.EnteringAnimation = env0_2(value3, 1)[0];
|
||||
object2.registerAnimationCompleteCallback = registerAnimationCompleteCallback;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function LayoutAnimation({targetOriginY, currentOriginY}) { // fn#89677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:519, offset: 0x02019e90, size: 91 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
const value = environment.__proto__;
|
||||
object2.originY = (require(4504) /* metro dependency 4504: timing */).withTiming(targetOriginY, {duration: 300});
|
||||
return {initialValues: {originY: currentOriginY}, animations: object2};
|
||||
}
|
||||
|
||||
function ExitingAnimation(a0) { // fn#89679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:1418, offset: 0x02019f45, size: 168 bytes, params: 2, frame: 21
|
||||
const Math = global.Math;
|
||||
const min = Math.min;
|
||||
let value = a0.currentOriginX - a0.windowWidth;
|
||||
value = Reflect.apply(min, Math, [value, -a0.windowWidth]);
|
||||
const object2 = {};
|
||||
object2.opacity = (require(4504) /* metro dependency 4504: timing */).withTiming(0, {duration: 300});
|
||||
object2.originX = (require(4504) /* metro dependency 4504: timing */).withTiming(value, {duration: 300});
|
||||
return {initialValues: {originX: a0.currentOriginX, opacity: 1}, animations: object2};
|
||||
}
|
||||
|
||||
function _fun89681() { // fn#89681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:2823, offset: 0x0201a086, size: 80 bytes, params: 1, frame: 13
|
||||
let binding = env0_0;
|
||||
binding.set(true);
|
||||
binding = env0_1;
|
||||
let current = binding.current;
|
||||
current.forEach(function(a0) {
|
||||
return a0();
|
||||
});
|
||||
current = binding.current;
|
||||
current.splice(0, binding.current.length);
|
||||
}
|
||||
|
||||
function _fun89683() { // fn#89683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:2924, offset: 0x0201a0d6, size: 165 bytes, params: 1, frame: 16
|
||||
const closure = n_89684;
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
|
||||
object2.Easing = Easing;
|
||||
object2.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
|
||||
object2.withDelay = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay;
|
||||
object2.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
||||
object2.handleMountAnimationComplete = env0_2;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 1048348699475;
|
||||
closure.__initData = env1_6;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function registerAnimationCompleteCallback(a0) { // fn#89686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:3576, owner: useOptionEnteringAnimation.registerAnimationCompleteCallback, offset: 0x0201a2c4, size: 53 bytes, params: 2, frame: 12
|
||||
const binding = env0_0;
|
||||
const get = binding.get;
|
||||
if (Reflect.apply(get, binding, [])) {
|
||||
a0();
|
||||
} else {
|
||||
env0_1.current.push(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function n_89684() { // fn#89684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:2938, offset: 0x0201a17b, size: 281 bytes, params: 1, frame: 24
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
const object4 = {duration: 250};
|
||||
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
|
||||
object4.easing = Easing.bezier(0.25, 1.75, 0.25, 1.25);
|
||||
value = Reflect.apply(withTiming, value, [1, object4]);
|
||||
const value2 = (require(4504) /* metro dependency 4504: timing */).withTiming(1, {duration: 200});
|
||||
const object5 = {};
|
||||
object5.opacity = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay(200, value2);
|
||||
const object6 = {};
|
||||
object6.scale = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay(200, value);
|
||||
object5.transform = [object6];
|
||||
return {animations: object5, initialValues: {opacity: 0, transform: [{scale: 0.92}]}, callback: callback_89685};
|
||||
}
|
||||
|
||||
function n_89684Callback() { // fn#89685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11884:3227, owner: n_89684.callback, offset: 0x0201a294, size: 48 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env2_2)();
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,33 @@
|
||||
/* Metro module 11629; source: modules/app_launcher/native/screens/home/AppLauncherHomeTypes.tsx; dependencies: [2] */
|
||||
function _fun89199(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11815:6, offset: 0x02003e7e, size: 281 bytes, params: 8, frame: 16
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {PLACEHOLDER: 0};
|
||||
object2[0] = 'PLACEHOLDER';
|
||||
object2.SECTION_HEADER = 1;
|
||||
object2[1] = 'SECTION_HEADER';
|
||||
object2.APP = 2;
|
||||
object2[2] = 'APP';
|
||||
object2.SHELF_ITEM = 3;
|
||||
object2[3] = 'SHELF_ITEM';
|
||||
object2.SHELF_ITEM_TUPLE = 4;
|
||||
object2[4] = 'SHELF_ITEM_TUPLE';
|
||||
object2.DIVIDER_ITEM = 5;
|
||||
object2[5] = 'DIVIDER_ITEM';
|
||||
object2.RECOMMENDATION_SECTION_HEADER = 6;
|
||||
object2[6] = 'RECOMMENDATION_SECTION_HEADER';
|
||||
object2.RECOMMENDATION_BANNER_CARD = 7;
|
||||
object2[7] = 'RECOMMENDATION_BANNER_CARD';
|
||||
object2.RECOMMENDATION_APP = 8;
|
||||
object2[8] = 'RECOMMENDATION_APP';
|
||||
object2.RECOMMENDATION_TUPLE = 9;
|
||||
object2[9] = 'RECOMMENDATION_TUPLE';
|
||||
object2.VIEW_ALL = 10;
|
||||
object2[10] = 'VIEW_ALL';
|
||||
object2.LEARN_MORE = 11;
|
||||
object2[11] = 'LEARN_MORE';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/AppLauncherHomeTypes.tsx');
|
||||
exports.AppLauncherHomeListItemType = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 11653; source: modules/app_launcher/native/screens/home/EmptyState.tsx; dependencies: [31, 27, 33, 4501, 697, 11592, 8048, 11654, 4573, 1244, 2] */
|
||||
function _fun89359(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11839:6, offset: 0x0200aac1, size: 284 bytes, params: 8, frame: 22
|
||||
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 object = {'padding': 16, 'gap': 16, 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{container: object, textContainer: {textAlign: 'center'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/EmptyState.tsx');
|
||||
exports.default = EmptyState_89360;
|
||||
}
|
||||
|
||||
function EmptyState_89360() { // fn#89360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11839:465, offset: 0x0200abdd, size: 241 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const appLauncherNativeUtilsModule = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
const useLogAppLauncherEmptyStateView = appLauncherNativeUtilsModule.useLogAppLauncherEmptyStateView;
|
||||
const AppLauncherEmptyStateType = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEmptyStateType;
|
||||
const HOME_EMPTY = AppLauncherEmptyStateType.HOME_EMPTY;
|
||||
Reflect.apply(useLogAppLauncherEmptyStateView, appLauncherNativeUtilsModule, [HOME_EMPTY]);
|
||||
let value = importDefault(11654) /* metro dependency 11654: HomeEmptyState */;
|
||||
value = ((Component) => <Component />)(value);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{value}
|
||||
<Text
|
||||
style={styles.textContainer}
|
||||
variant="text-md/semibold"
|
||||
color="text-default"
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['V7+xhH'])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,556 @@
|
||||
/* Metro module 11593; source: modules/app_launcher/native/screens/home/FrecencySection.tsx; dependencies: [57, 31, 27, 1378, 11594, 661, 33, 4501, 697, 8046, 1360, 6777, 11595, 8774, 566, 8048, 4863, 4017, 4504, 1244, 8707, 11596, 11592, 1909, 8554, 11597, 4573, 8811, 8708, 5278, 11598, 5068, 5475, 11601, 2] */
|
||||
function _fun88766(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:6, offset: 0x01ff1260, size: 1239 bytes, params: 8, frame: 27
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ScrollView;
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const frecencySectionStore = importDefault(11594) /* metro dependency 11594: FrecencySectionStore */;
|
||||
const env0_9 = (require(11594) /* metro dependency 11594: FrecencySectionStore */).FrecencySectionSelection;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {marginBottom: PX_16};
|
||||
object2.headerContainer = {'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center'};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.header = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
|
||||
object2.scrollView = {'marginTop': 8, 'overflow': 'visible'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.scrollViewContentContainer = {gap: PX_8};
|
||||
object2.contextMenuIcon = {'height': 16, 'width': 16};
|
||||
const object3 = {};
|
||||
let CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object3.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
let SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object3, SHADOW_LOW, undefined);
|
||||
object2.appContainer = object3;
|
||||
const object4 = {};
|
||||
CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object4.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.opacity = 0.4;
|
||||
SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object4, SHADOW_LOW, undefined);
|
||||
object2.appContainerDisabled = object4;
|
||||
const object13 = {};
|
||||
CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object13.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object13.paddingLeft = PX_12;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object13.paddingRight = PX_16;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object13.paddingVertical = PX_12;
|
||||
object13.flexDirection = 'row';
|
||||
object13.justifyContent = 'center';
|
||||
object13.alignItems = 'center';
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object13.gap = PX_8;
|
||||
SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object13, SHADOW_LOW, undefined);
|
||||
object2.commandContainer = object13;
|
||||
const object14 = {'width': 60, 'height': 60};
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.appIcon = object14;
|
||||
const object15 = {'width': 36, 'height': 36};
|
||||
object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
let BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object15.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object2.loadingCommandIcon = object15;
|
||||
const object16 = {};
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object16.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object16.height = 16;
|
||||
object16.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object16.alignSelf = 'flex-start';
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object16.marginBottom = PX_4;
|
||||
object2.loadingTextPlaceholder = object16;
|
||||
const object17 = {};
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object17.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object17.height = 16;
|
||||
object17.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object17.alignSelf = 'flex-start';
|
||||
object2.loadingTextPlaceholderSmall = object17;
|
||||
const object18 = {'position': 'absolute', 'top': 0, 'left': 0, 'width': 60, 'height': 60};
|
||||
object18.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.submittingOverlay = object18;
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {APPS: 0};
|
||||
object2[0] = 'APPS';
|
||||
object2.COMMANDS = 1;
|
||||
object2[1] = 'COMMANDS';
|
||||
const env0_15 = {code: "function FrecencySectionTsx1(){const{withTiming,isRecentsMenuOpen}=this.__closure;return{transform:[{rotate:withTiming(isRecentsMenuOpen?'-180deg':'0deg')}]};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/FrecencySection.tsx');
|
||||
exports.default = FrecencySection;
|
||||
exports.SectionItemType = object2;
|
||||
}
|
||||
|
||||
function Placeholder_88767() { // fn#88767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:1826, offset: 0x01ff1737, size: 261 bytes, params: 1, frame: 25
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.commandContainer}>
|
||||
<View style={styles.loadingCommandIcon} />
|
||||
<View>
|
||||
<View
|
||||
style={[styles.loadingTextPlaceholder,
|
||||
{width: (require(11595) /* metro dependency 11595: usePlaceholderSize */).usePlaceholderWidth(20,
|
||||
90)}]}
|
||||
/>
|
||||
<View
|
||||
style={[styles.loadingTextPlaceholderSmall,
|
||||
{width: (require(11595) /* metro dependency 11595: usePlaceholderSize */).usePlaceholderWidth(20,
|
||||
70)}]}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function FrecentActivityOneClickCTA({context, app}) { // fn#88768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:2391, offset: 0x01ff183c, size: 462 bytes, params: 2, frame: 27
|
||||
var object2;
|
||||
const {entrypoint,
|
||||
onActivityItemSelected} = (require(8774) /* metro dependency 8774: AppLauncherContext */).useAppLauncherContext();
|
||||
const value3 = env0_4.useId();
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
const value5 = env0_3(Reflect.apply(useStateFromStoresArray, fluxModule, [[EmbeddedActivitiesStore], function() {
|
||||
var items = [EmbeddedActivitiesStore.isLaunchingActivity()];
|
||||
var getLaunchState = EmbeddedActivitiesStore.getLaunchState;
|
||||
items[1] = Reflect.apply(getLaunchState, EmbeddedActivitiesStore, [app.applicationId,
|
||||
context.type !== 'channel' ? undefined : context.channel.id]);
|
||||
return items;
|
||||
}]), 2);
|
||||
const property = value5[0];
|
||||
const property2 = value5[1];
|
||||
const value6 = (require(11598) /* metro dependency 11598: useActivityShelfItem */).useActivityAction({context: context,
|
||||
applicationId: app.applicationId});
|
||||
const r5 = property2 != null && property2.isLaunching && property2.componentId === value3;
|
||||
const appLauncherNativeUtilsModule = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
const useHandleActivityItemSelected = appLauncherNativeUtilsModule.useHandleActivityItemSelected;
|
||||
object2 = {applicationId: app.applicationId, context: context};
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const RECENT_APPS = AppLauncherSectionName.RECENT_APPS;
|
||||
object2.sectionName = RECENT_APPS;
|
||||
object2.onActivityItemSelected = onActivityItemSelected;
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_HOME = ApplicationCommandTriggerLocations.APP_LAUNCHER_HOME;
|
||||
object2.location = APP_LAUNCHER_HOME;
|
||||
object2.entrypoint = entrypoint;
|
||||
object2.launchingComponentId = value3;
|
||||
object2.fetchesApplication = false;
|
||||
return (
|
||||
<FrecentApp
|
||||
app={app}
|
||||
disabled={property || value6 === (require(11598) /* metro dependency 11598: useActivityShelfItem */).ActivityAction.LEAVE}
|
||||
submitting={r5}
|
||||
onAppSelected={env0_4.useCallback(function() {
|
||||
handleActivityItemSelected();
|
||||
}, [Reflect.apply(useHandleActivityItemSelected, appLauncherNativeUtilsModule,
|
||||
[object2]).handleActivityItemSelected])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function FrecentApp({app, disabled, submitting, onAppSelected}) { // fn#88771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:3281, offset: 0x01ff1a66, size: 353 bytes, params: 2, frame: 25
|
||||
submitting = !(submitting === undefined) && submitting;
|
||||
const styles = useStyles();
|
||||
if (app.section == null) {
|
||||
return null;
|
||||
}
|
||||
const appLauncherIconSource = (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(app.section.application);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps2 = {style: disabled ? styles.appContainerDisabled : styles.appContainer,
|
||||
disabled: disabled, accessible: true, accessibilityLabel: app.section.application?.name,
|
||||
accessibilityRole: 'button', onPress: onPress_88772};
|
||||
const r8 = appLauncherIconSource != null && ((Component) => <Component style={styles.appIcon} source={appLauncherIconSource} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const SubmittingOverlay = (require(11601) /* metro dependency 11601: SubmittingOverlay */).SubmittingOverlay;
|
||||
return (
|
||||
<PressableOpacity {...pressableOpacityProps2} key={app.applicationId}>
|
||||
{r8}
|
||||
<SubmittingOverlay submitting={submitting} style={styles.submittingOverlay} />
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function FrecencySection({context, sectionDescriptors, commands, loading, apps, onAppSelected, onCommandSelected, onViewAllSelected}) { // fn#88773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:4058, offset: 0x01ff1c39, size: 1544 bytes, params: 2, frame: 35
|
||||
var CheckmarkSmallBoldIcon;
|
||||
var r20;
|
||||
var r8;
|
||||
var COMMANDS;
|
||||
var APPS;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items4;
|
||||
const isNotNullish = (require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish;
|
||||
var value12;
|
||||
var value14;
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
var items2;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items3;
|
||||
const env0_3 = loading;
|
||||
const env0_4 = apps;
|
||||
let env0_14 = undefined;
|
||||
const env0_15 = undefined;
|
||||
const styles = useStyles();
|
||||
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
|
||||
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
|
||||
const entrypoint = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
|
||||
let binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value4 = env0_3(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property = value4[0];
|
||||
const env0_10 = value4[1];
|
||||
const selection = (require(566) /* metro dependency 566: flux */).useStateFromStores([FrecencySectionStore],
|
||||
function() {
|
||||
return FrecencySectionStore.getSelection();
|
||||
});
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
|
||||
function() {
|
||||
return EmbeddedActivitiesStore.isLaunchingActivity();
|
||||
});
|
||||
binding = env0_4;
|
||||
useState = binding.useState;
|
||||
let length = commands.length;
|
||||
const value7 = env0_3(Reflect.apply(useState, binding,
|
||||
[length > 0 && selection === FrecencySectionSelection.COMMANDS ? env0_14.COMMANDS : env0_14.APPS]), 2);
|
||||
const property2 = value7[0];
|
||||
const env0_12 = value7[1];
|
||||
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
|
||||
const VOICE = AppLauncherEntrypoint.VOICE;
|
||||
const value8 = entrypoint === VOICE;
|
||||
binding = env0_4;
|
||||
const useEffect = binding.useEffect;
|
||||
object = [commands.length];
|
||||
object[1] = apps.length;
|
||||
object[2] = loading;
|
||||
object[3] = property2;
|
||||
Reflect.apply(useEffect, binding, [_fun88776, object]);
|
||||
const value9 = env0_4.useMemo(function() {
|
||||
return apps.slice(0, 8);
|
||||
}, [apps]);
|
||||
useFetchFrecentActivityApps({apps: value9, onlyActivityApps: value8});
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = FrecencySectionV;
|
||||
closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming,
|
||||
isRecentsMenuOpen: property};
|
||||
closure.__workletHash = 4528534448308;
|
||||
closure.__initData = env0_15;
|
||||
env0_14 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
length = commands.length;
|
||||
if (length !== 0) {
|
||||
object = {};
|
||||
object.label = intl.string(t.XRBNsN);
|
||||
COMMANDS = env0_14.COMMANDS;
|
||||
CheckmarkSmallBoldIcon = property2 !== COMMANDS ? undefined : (require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon;
|
||||
object.IconComponent = CheckmarkSmallBoldIcon;
|
||||
object.action = action_88782;
|
||||
items4 = [object];
|
||||
object = {};
|
||||
object.label = intl.string(t.TCAk0p);
|
||||
APPS = env0_14.APPS;
|
||||
CheckmarkSmallBoldIcon = property2 !== APPS ? undefined : (require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon;
|
||||
object.IconComponent = CheckmarkSmallBoldIcon;
|
||||
object.action = action_88783;
|
||||
items4[1] = object;
|
||||
value12 = commands.slice(0, 8).map(_fun88784).filter(isNotNullish);
|
||||
value14 = value9.map(_fun88787).filter(isNotNullish);
|
||||
length = commands.length;
|
||||
r20 = length !== 0 ? commands.length > 0 ? apps.length !== 0 ? property2 : env0_14.COMMANDS : property2 : apps.length > 0 ? env0_14.APPS : commands.length > 0 ? apps.length !== 0 ? property2 : env0_14.COMMANDS : property2;
|
||||
COMMANDS = env0_14.COMMANDS;
|
||||
r8 = r20 !== COMMANDS ? value14 : value12;
|
||||
var viewBindingProps = {style: styles.container};
|
||||
var viewBinding2Props = {style: styles.headerContainer};
|
||||
length = commands.length;
|
||||
items2 = [<ContextMenu enabled={length > 0 && apps.length > 0} items={items4} triggerOnTap onOpen={onOpen} onClose={onClose_88789}>{children_88790}</ContextMenu>];
|
||||
APPS = env0_14.APPS;
|
||||
items2[1] = <PressableOpacity disabled={r20 === APPS && value5} onPress={onPress_88791} accessibilityRole="button"><Text variant="text-sm/medium" color="text-brand">{intl.string(t['/qG8v7'])}</Text></PressableOpacity>;
|
||||
items3 = [<View {...viewBinding2Props}>{items2}</View>];
|
||||
var scrollViewBindingProps = {style: styles.scrollView,
|
||||
contentContainerStyle: styles.scrollViewContentContainer,
|
||||
horizontal: true, showsHorizontalScrollIndicator: false};
|
||||
r8 = loading ? [1, 2, 3, 4, 5].map(_fun88792) : r8;
|
||||
items3[1] = <ScrollView {...scrollViewBindingProps}>{r8}</ScrollView>;
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
if (apps.length === 0) {
|
||||
return null;
|
||||
}
|
||||
object = {};
|
||||
let string = intl.string;
|
||||
const XRBNsN = (require(1244) /* metro dependency 1244: indexNative */).t.XRBNsN;
|
||||
object.label = Reflect.apply(string, intl, [XRBNsN]);
|
||||
COMMANDS = env0_14.COMMANDS;
|
||||
CheckmarkSmallBoldIcon = property2 !== COMMANDS ? undefined : (require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon;
|
||||
object.IconComponent = CheckmarkSmallBoldIcon;
|
||||
object.action = action_88782;
|
||||
items4 = [object];
|
||||
object = {};
|
||||
string = intl.string;
|
||||
const TCAk0p = (require(1244) /* metro dependency 1244: indexNative */).t.TCAk0p;
|
||||
object.label = Reflect.apply(string, intl, [TCAk0p]);
|
||||
APPS = env0_14.APPS;
|
||||
CheckmarkSmallBoldIcon = property2 !== APPS ? undefined : (require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon;
|
||||
object.IconComponent = CheckmarkSmallBoldIcon;
|
||||
object.action = action_88783;
|
||||
items4[1] = object;
|
||||
value12 = commands.slice(0,
|
||||
8).map(_fun88784).filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
const value13 = value9.map(_fun88787);
|
||||
value14 = value13.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
r20 = commands.length !== 0 ? commands.length > 0 ? apps.length !== 0 ? property2 : env0_14.COMMANDS : property2 : apps.length > 0 ? env0_14.APPS : commands.length > 0 ? apps.length !== 0 ? property2 : env0_14.COMMANDS : property2;
|
||||
COMMANDS = env0_14.COMMANDS;
|
||||
r8 = r20 !== COMMANDS ? value14 : value12;
|
||||
const contextMenu = <ContextMenu enabled={commands.length > 0 && apps.length > 0} items={items4} triggerOnTap onOpen={onOpen} onClose={onClose_88789}>{children_88790}</ContextMenu>;
|
||||
APPS = env0_14.APPS;
|
||||
const view = <View style={styles.headerContainer}>{contextMenu}<PressableOpacity disabled={r20 === APPS && value5} onPress={onPress_88791} accessibilityRole="button"><Text variant="text-sm/medium" color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/qG8v7'])}</Text></PressableOpacity></View>;
|
||||
r8 = loading ? [1, 2, 3, 4, 5].map(_fun88792) : r8;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<ScrollView
|
||||
style={styles.scrollView}
|
||||
contentContainerStyle={styles.scrollViewContentContainer}
|
||||
horizontal
|
||||
showsHorizontalScrollIndicator={false}
|
||||
>
|
||||
{r8}
|
||||
</ScrollView>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function FrecentAppOnPress() { // fn#88772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:3666, owner: FrecentApp.onPress, offset: 0x01ff1bc7, size: 114 bytes, params: 1, frame: 13
|
||||
var object2;
|
||||
if (onAppSelected != null && app.section.application != null) {
|
||||
onAppSelectedBinding = onAppSelected;
|
||||
object2 = {};
|
||||
object2.application = app.section.application;
|
||||
value = environment.__proto__;
|
||||
object2.sectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName.RECENT_APPS;
|
||||
onAppSelectedBinding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun88776() { // fn#88776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:4558, offset: 0x01ff2267, size: 271 bytes, params: 1, frame: 19
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var trackWithMetadata;
|
||||
var APP_LAUNCHER_FRECENTS_SEEN;
|
||||
var object2;
|
||||
var binding;
|
||||
var APPS;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
if (!(loading || commands.length === 0 && apps.length === 0)) {
|
||||
value4 = environment.__proto__;
|
||||
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
trackWithMetadata = moduleValue.trackWithMetadata;
|
||||
APP_LAUNCHER_FRECENTS_SEEN = AnalyticEvents.APP_LAUNCHER_FRECENTS_SEEN;
|
||||
object2 = {};
|
||||
binding = env0_11;
|
||||
APPS = env1_14.APPS;
|
||||
object2.num = binding === APPS ? apps.length : commands.length;
|
||||
binding = env0_11;
|
||||
APPS = env1_14.APPS;
|
||||
object2.section_name = binding === APPS ? AppLauncherSectionName.RECENT_APPS : AppLauncherSectionName.RECENT_COMMANDS;
|
||||
object2.location = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherLocations.HOME;
|
||||
Reflect.apply(trackWithMetadata, moduleValue, [APP_LAUNCHER_FRECENTS_SEEN, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function useFetchFrecentActivityApps({apps, onlyActivityApps}) { // fn#88778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:4914, owner: FrecencySection.useFetchFrecentActivityApps, offset: 0x01ff238f, size: 91 bytes, params: 2, frame: 16
|
||||
const binding = env1_4;
|
||||
const useMemo = binding.useMemo;
|
||||
(importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)(Reflect.apply(useMemo, binding,
|
||||
[_fun88779, [apps, onlyActivityApps]]));
|
||||
}
|
||||
|
||||
function FrecencySectionV() { // fn#88781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:5259, owner: FrecencySection.V, offset: 0x01ff24ac, size: 80 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(4504) /* metro dependency 4504: timing */;
|
||||
return {transform: [{rotate: value.withTiming(env0_9 ? '-180deg' : '0deg')}]};
|
||||
}
|
||||
|
||||
function FrecencySectionAction() { // fn#88782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:5605, owner: FrecencySection.action, offset: 0x01ff24fc, size: 149 bytes, params: 1, frame: 17
|
||||
const binding = env0_12;
|
||||
let COMMANDS = env1_14.COMMANDS;
|
||||
binding(COMMANDS);
|
||||
const frecencySectionStoreActionCreatorsModule = require(11596) /* metro dependency 11596: FrecencySectionStoreActionCreators */;
|
||||
const setFrecencySectionSelection = frecencySectionStoreActionCreatorsModule.setFrecencySectionSelection;
|
||||
COMMANDS = FrecencySectionSelection.COMMANDS;
|
||||
Reflect.apply(setFrecencySectionSelection, frecencySectionStoreActionCreatorsModule, [COMMANDS]);
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
|
||||
const APP_LAUNCHER_FRECENTS_TOGGLED = AnalyticEvents.APP_LAUNCHER_FRECENTS_TOGGLED;
|
||||
const object2 = {};
|
||||
object2.num = commands.length;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const RECENT_COMMANDS = AppLauncherSectionName.RECENT_COMMANDS;
|
||||
object2.section_name = RECENT_COMMANDS;
|
||||
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APP_LAUNCHER_FRECENTS_TOGGLED, object2]);
|
||||
}
|
||||
|
||||
function FrecencySectionAction_88783() { // fn#88783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:5926, owner: FrecencySection.action, offset: 0x01ff2591, size: 149 bytes, params: 1, frame: 17
|
||||
const binding = env0_12;
|
||||
let APPS = env1_14.APPS;
|
||||
binding(APPS);
|
||||
const frecencySectionStoreActionCreatorsModule = require(11596) /* metro dependency 11596: FrecencySectionStoreActionCreators */;
|
||||
const setFrecencySectionSelection = frecencySectionStoreActionCreatorsModule.setFrecencySectionSelection;
|
||||
APPS = FrecencySectionSelection.APPS;
|
||||
Reflect.apply(setFrecencySectionSelection, frecencySectionStoreActionCreatorsModule, [APPS]);
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
|
||||
const APP_LAUNCHER_FRECENTS_TOGGLED = AnalyticEvents.APP_LAUNCHER_FRECENTS_TOGGLED;
|
||||
const object2 = {};
|
||||
object2.num = apps.length;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const RECENT_APPS = AppLauncherSectionName.RECENT_APPS;
|
||||
object2.section_name = RECENT_APPS;
|
||||
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APP_LAUNCHER_FRECENTS_TOGGLED, object2]);
|
||||
}
|
||||
|
||||
function _fun88784(a0) { // fn#88784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:6145, offset: 0x01ff2626, size: 560 bytes, params: 2, frame: 29
|
||||
var r6;
|
||||
var r7;
|
||||
var moduleValue3;
|
||||
const env0_0 = a0;
|
||||
const value2 = sectionDescriptors.find(_fun88785);
|
||||
const appLauncherIconSource = (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(value2?.application);
|
||||
if (value2 == null) {
|
||||
return null;
|
||||
}
|
||||
const sectionName = (require(8046) /* metro dependency 8046: AppLauncherUtils */).getSectionName(value2.application ?? (require(8046) /* metro dependency 8046: AppLauncherUtils */).FAKE_BUILT_IN_APP);
|
||||
const type = a0.type;
|
||||
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
||||
const PRIMARY_ENTRY_POINT = ApplicationCommandType.PRIMARY_ENTRY_POINT;
|
||||
if (type === PRIMARY_ENTRY_POINT) {
|
||||
moduleValue3 = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
r6 = moduleValue3.formatPrimaryEntryPointCommandName(a0.displayName);
|
||||
} else {
|
||||
r6 = a0.displayName;
|
||||
}
|
||||
const PressableScale = (require(8554) /* metro dependency 8554: native */).PressableScale;
|
||||
const pressableScaleProps = {style: styles.commandContainer, accessible: true,
|
||||
accessibilityLabel: '' + r6 + ' ' + sectionName, accessibilityRole: 'button', onPress: onPress_88786};
|
||||
let value = appLauncherIconSource != null;
|
||||
if (value) {
|
||||
value = importDefault(11597) /* metro dependency 11597: EntityBorderAppIcon */;
|
||||
value = ((Component) => <Component iconSize={36} iconSource={appLauncherIconSource} />)(value);
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = value;
|
||||
}
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<PressableScale {...pressableScaleProps} key={a0.id}>
|
||||
{r7}
|
||||
<View>
|
||||
<Text variant="text-sm/semibold" color="mobile-text-heading-primary">
|
||||
{r6}
|
||||
</Text>
|
||||
<Text variant="text-xs/normal" color="text-subtle">
|
||||
{sectionName}
|
||||
</Text>
|
||||
</View>
|
||||
</PressableScale>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun88787(a0) { // fn#88787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:6943, offset: 0x01ff2856, size: 184 bytes, params: 2, frame: 20
|
||||
var r1;
|
||||
var r0;
|
||||
var moduleValue;
|
||||
const section = a0.section;
|
||||
let value = null;
|
||||
if (value == section) {
|
||||
r0 = value;
|
||||
} else {
|
||||
if (value == a0.section.application) {
|
||||
value = environment.__proto__;
|
||||
value = <FrecentApp app={a0} onAppSelected={onAppSelected} key={a0.applicationId} />;
|
||||
r1 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
moduleValue = require(8046) /* metro dependency 8046: AppLauncherUtils */;
|
||||
if (moduleValue.isEmbeddedApp(a0.section.application)) {
|
||||
if (env0_13) {
|
||||
r1 = <FrecentActivityOneClickCTA context={context} app={a0} key={a0.applicationId} />;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = <FrecentApp app={a0} onAppSelected={onAppSelected} key={a0.applicationId} />;
|
||||
r1 = value;
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = <FrecentApp app={a0} onAppSelected={onAppSelected} key={a0.applicationId} />;
|
||||
r1 = value;
|
||||
}
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function FrecencySectionOnOpen() { // fn#88788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:7452, owner: FrecencySection.onOpen, offset: 0x01ff290e, size: 18 bytes, params: 1, frame: 11
|
||||
return env0_10(true);
|
||||
}
|
||||
|
||||
function FrecencySectionOnClose() { // fn#88789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:7470, owner: FrecencySection.onClose, offset: 0x01ff2920, size: 18 bytes, params: 1, frame: 11
|
||||
return env0_10(false);
|
||||
}
|
||||
|
||||
function FrecencySectionChildren(a0) { // fn#88790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:7489, owner: FrecencySection.children, offset: 0x01ff2932, size: 353 bytes, params: 2, frame: 26
|
||||
const ref = a0.ref;
|
||||
const value = null;
|
||||
const value2 = Object.create(value);
|
||||
value2.ref = 0;
|
||||
const viewBindingProps = {style: styles.header, ...copyDataProperties({}, a0, value2, undefined)};
|
||||
viewBindingProps['ref'] = ref;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
<Text variant="text-lg/bold" color="mobile-text-heading-primary">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.acSE0h)}
|
||||
</Text>
|
||||
{commands.length > 0 && apps.length > 0 ? ((View) => <View style={env0_14}>{((ChevronSmallDownIcon) => <ChevronSmallDownIcon color="interactive-text-default" style={styles.contextMenuIcon} />)((require(8708) /* metro dependency 8708: ChevronSmallDownIcon */).ChevronSmallDownIcon)}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View) : value}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function FrecencySectionOnPress() { // fn#88791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:7894, owner: FrecencySection.onPress, offset: 0x01ff2a93, size: 20 bytes, params: 1, frame: 11
|
||||
return onViewAllSelected(env0_15);
|
||||
}
|
||||
|
||||
function _fun88792(a0, a1) { // fn#88792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:8210, offset: 0x01ff2aa7, size: 27 bytes, params: 3, frame: 15
|
||||
return <Placeholder_88767 key={a1} />;
|
||||
}
|
||||
|
||||
function _fun88779() { // fn#88779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11779:4997, offset: 0x01ff23ea, size: 69 bytes, params: 1, frame: 13
|
||||
let value = apps.map(function(a0) {
|
||||
var value = null;
|
||||
return value == a0.section ? value : value != a0.section.application && require(dependencyMap[9]).isEmbeddedApp(a0.section.application) && onlyActivityApps ? a0.section.application.id : value;
|
||||
});
|
||||
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 11594; source: modules/app_launcher/native/screens/home/FrecencySectionStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun88793(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:6, offset: 0x01ff2ac2, size: 318 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_6 = {selection: null};
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun88797(PersistedStore);
|
||||
value.displayName = 'FrecencySectionStore';
|
||||
value.persistKey = 'FrecencySectionStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{FRECENCY_SECTION_SET_SELECTION: FRECENCY_SECTION_SET_SELECTION});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/FrecencySectionStore.tsx');
|
||||
exports.default = value;
|
||||
exports.FrecencySectionSelection = {APPS: 'apps', COMMANDS: 'commands'};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_88794() { // fn#88794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:148, offset: 0x01ff2c00, 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_88794_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun88797(a0) { // fn#88797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:430, offset: 0x01ff2c62, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = FrecencySectionStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_88799}, {key: 'getState', value: value_88800},
|
||||
{key: 'getSelection', value: value_88801}]);
|
||||
}
|
||||
|
||||
function FRECENCY_SECTION_SET_SELECTION({selection}) { // fn#88802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:1072, offset: 0x01ff2d1b, size: 42 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_6, undefined);
|
||||
object2['selection'] = selection;
|
||||
}
|
||||
|
||||
function value_88799(a0) { // fn#88799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:760, offset: 0x01ff2cdc, size: 20 bytes, params: 2, frame: 2
|
||||
var value;
|
||||
if (a0 != null) {
|
||||
value = environment.__proto__;
|
||||
env1_6 = a0;
|
||||
}
|
||||
}
|
||||
|
||||
function value_88801() { // fn#88801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:859, offset: 0x01ff2cf0, size: 43 bytes, params: 1, frame: 3
|
||||
return env1_6.selection ?? env1_5.COMMANDS;
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/* Metro module 11596; source: modules/app_launcher/native/screens/home/FrecencySectionStoreActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun88806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11782:6, offset: 0x01ff2e11, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/FrecencySectionStoreActionCreators.tsx');
|
||||
exports.setFrecencySectionSelection = setFrecencySectionSelection;
|
||||
}
|
||||
|
||||
function setFrecencySectionSelection(a0) { // fn#88807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11782:235, offset: 0x01ff2e74, size: 56 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRECENCY_SECTION_SET_SELECTION',
|
||||
selection: a0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
/* Metro module 11652; source: modules/app_launcher/native/screens/home/InThisServerSection.tsx; dependencies: [31, 27, 33, 4501, 697, 11629, 1360, 4573, 1244, 5278, 11592, 8554, 8048, 11597, 2] */
|
||||
function _fun89351(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:6, offset: 0x0200a446, size: 469 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.ScrollView;
|
||||
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 = {};
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object, SHADOW_LOW, undefined);
|
||||
object['paddingLeft'] = 12;
|
||||
object['paddingRight'] = 12;
|
||||
object['paddingVertical'] = 12;
|
||||
object['flexDirection'] = 'row';
|
||||
object['justifyContent'] = 'center';
|
||||
object['alignItems'] = 'center';
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{container: {marginBottom: 16},
|
||||
headerContainer: {justifyContent: 'center'}, viewAll: {'position': 'absolute', 'right': 0},
|
||||
scrollView: {'marginTop': 8, 'overflow': 'visible'}, scrollViewContentContainer: {gap: 8},
|
||||
appCardContainer: object, iconContainer: {'marginEnd': 12, 'justifyContent': 'space-around'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/InThisServerSection.tsx');
|
||||
exports.default = InThisServerSection;
|
||||
exports.IN_THIS_SERVER_ITEM_MAX = 8;
|
||||
}
|
||||
|
||||
function AppInThisServer({appItem, onAppSelected}) { // fn#89352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:685, offset: 0x0200a61b, size: 295 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const application = appItem.application;
|
||||
const appLauncherIconSource = (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(application);
|
||||
const PressableScale = (require(8554) /* metro dependency 8554: native */).PressableScale;
|
||||
const pressableScaleProps = {'accessible': true, 'accessibilityLabel': null, 'accessibilityRole': 'button',
|
||||
accessibilityLabel: application.name, onPress: onPress_89353, style: styles.appCardContainer};
|
||||
const r7 = appLauncherIconSource != null ? ((Component) => <Component iconSource={appLauncherIconSource} wrapperStyle={styles.iconContainer} iconSize={36} />)(importDefault(11597) /* metro dependency 11597: EntityBorderAppIcon */) : null;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<PressableScale {...pressableScaleProps} key={application.id}>
|
||||
{r7}
|
||||
<Text
|
||||
variant="text-md/semibold"
|
||||
color="mobile-text-heading-primary"
|
||||
lineClamp={1}
|
||||
>
|
||||
{application.name}
|
||||
</Text>
|
||||
</PressableScale>
|
||||
);
|
||||
}
|
||||
|
||||
function InThisServerSection({items, onAppSelected, onViewAllSelected}) { // fn#89354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:1362, offset: 0x0200a79e, size: 608 bytes, params: 2, frame: 31
|
||||
const env0_2 = undefined;
|
||||
const styles = useStyles();
|
||||
if (items.length === 0) {
|
||||
return null;
|
||||
}
|
||||
items.forEach(_fun89355);
|
||||
const value4 = [].slice(0, 8).map(_fun89356);
|
||||
const value5 = value4.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
const binding = env0_2;
|
||||
const env0_4 = binding == null ? undefined : binding.applications.map(function(a0) {
|
||||
return a0;
|
||||
});
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<View style={styles.headerContainer}>
|
||||
<Text variant="text-lg/bold" color="mobile-text-heading-primary">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oJyzCu)}
|
||||
</Text>
|
||||
{env0_2 != null && ((PressableOpacity) => <PressableOpacity style={styles.viewAll} onPress={onPress_89358} accessibilityRole="button"><Text variant="text-sm/medium" color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/qG8v7'])}</Text></PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
|
||||
</View>
|
||||
<ScrollView
|
||||
style={styles.scrollView}
|
||||
contentContainerStyle={styles.scrollViewContentContainer}
|
||||
horizontal
|
||||
showsHorizontalScrollIndicator={false}
|
||||
>
|
||||
{value5}
|
||||
</ScrollView>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AppInThisServerOnPress() { // fn#89353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:913, owner: AppInThisServer.onPress, offset: 0x0200a742, size: 92 bytes, params: 1, frame: 13
|
||||
var object2;
|
||||
if (onAppSelected != null && application != null) {
|
||||
onAppSelectedBinding = onAppSelected;
|
||||
object2 = {};
|
||||
object2.application = application;
|
||||
value = environment.__proto__;
|
||||
object2.sectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName.APPS_IN_THIS_SERVER;
|
||||
onAppSelectedBinding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89355(a0) { // fn#89355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:1496, offset: 0x0200a9fe, size: 113 bytes, params: 2, frame: 15
|
||||
let type = a0.type;
|
||||
const AppLauncherHomeListItemType = (require(11629) /* metro dependency 11629: AppLauncherHomeTypes */).AppLauncherHomeListItemType;
|
||||
const RECOMMENDATION_APP = AppLauncherHomeListItemType.RECOMMENDATION_APP;
|
||||
if (type === RECOMMENDATION_APP) {
|
||||
env0_3.push(a0);
|
||||
}
|
||||
type = a0.type;
|
||||
const VIEW_ALL = AppLauncherHomeListItemType.VIEW_ALL;
|
||||
if (type === VIEW_ALL) {
|
||||
env0_2 = a0;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89356(a0) { // fn#89356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:1663, offset: 0x0200aa6f, size: 54 bytes, params: 2, frame: 15
|
||||
return (
|
||||
<AppInThisServer
|
||||
appItem={a0}
|
||||
onAppSelected={onAppSelected}
|
||||
key={a0.application.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function InThisServerSectionOnPress() { // fn#89358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11838:2073, owner: InThisServerSection.onPress, offset: 0x0200aaa5, size: 28 bytes, params: 1, frame: 10
|
||||
return env0_4 != null && onViewAllSelected();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 11636; source: modules/app_launcher/native/screens/home/LearnMoreAboutAppsSection.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 3853, 1948, 1244, 11637, 8048, 4573, 5278, 2] */
|
||||
function _fun89217(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11822:6, offset: 0x020051cd, size: 473 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object4.marginTop = PX_32;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.alignItems = 'center';
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object4.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
const PX_64 = (importDefault(697) /* metro dependency 697: native */).space.PX_64;
|
||||
object4.paddingHorizontal = PX_64;
|
||||
object3.container = object4;
|
||||
object3.body = {textAlign: 'center'};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.divider = {height: PX_16};
|
||||
const object6 = {'borderRadius': null, 'backgroundColor': null, 'paddingVertical': 12, 'paddingHorizontal': 16,
|
||||
'minHeight': 48, 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const CONTROL_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object6.backgroundColor = CONTROL_SECONDARY_BACKGROUND_DEFAULT;
|
||||
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object6, SHADOW_LOW, undefined);
|
||||
object3.linkButton = object6;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/LearnMoreAboutAppsSection.tsx');
|
||||
exports.default = LearnMoreAboutAppsSection;
|
||||
}
|
||||
|
||||
function LearnMoreAboutAppsSection({visible}) { // fn#89218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11822:802, offset: 0x020053a6, size: 628 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useCallback(function() {
|
||||
importDefault(dependencyMap[6]).openURL(importDefault(dependencyMap[7]).getAppsSupportURL(HelpdeskArticles.APPS_LEARN_MORE));
|
||||
}, []);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const value3 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['kw8/Ec']]);
|
||||
string = intl.string;
|
||||
const GZoV1O = (require(1244) /* metro dependency 1244: indexNative */).t.GZoV1O;
|
||||
const value4 = Reflect.apply(string, intl, [GZoV1O]);
|
||||
const value5 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.xx5Sug,
|
||||
{sectionTitle: value3, sectionBody: value4});
|
||||
const TrackSectionHeader = importDefault(11637) /* metro dependency 11637: TrackSectionHeader */;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const NEW_TO_APPS = AppLauncherSectionName.NEW_TO_APPS;
|
||||
const items2 = [<View style={styles.divider} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary">{value3}</Text>;
|
||||
items2[2] = <Text variant="text-xs/normal" color="text-default" style={styles.body}>{value4}</Text>;
|
||||
items2[3] = <View style={styles.divider} />;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
string = intl.string;
|
||||
const Ye51oT = (require(1244) /* metro dependency 1244: indexNative */).t.Ye51oT;
|
||||
items2[4] = <PressableHighlight style={styles.linkButton} onPress={value2} accessibilityRole="link" accessibilityLabel={value5}><Text variant="text-md/semibold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl, [Ye51oT])}</Text></PressableHighlight>;
|
||||
items2[5] = <View style={styles.divider} />;
|
||||
return (
|
||||
<TrackSectionHeader
|
||||
sectionName={NEW_TO_APPS}
|
||||
numItems={1}
|
||||
numVisibleItems={1}
|
||||
viewed={visible}
|
||||
>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</TrackSectionHeader>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 11655; source: modules/app_launcher/native/screens/home/NoPermsState.tsx; dependencies: [31, 27, 33, 4501, 697, 4002, 4048, 11656, 11657, 11592, 8048, 4573, 1244, 2] */
|
||||
function _fun89363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11841:6, offset: 0x0200b813, size: 310 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.Image;
|
||||
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 = {'paddingVertical': 16, 'paddingHorizontal': 24, 'gap': 12, 'backgroundColor': null,
|
||||
'borderRadius': null, 'alignItems': 'center', 'justifyContent': 'flex-start', 'display': 'flex',
|
||||
'flexDirection': 'row'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{container: object, textContainer: {flexShrink: 1},
|
||||
image: {'width': 64, 'height': 64}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/NoPermsState.tsx');
|
||||
exports.default = EmptyState_89364;
|
||||
}
|
||||
|
||||
function EmptyState_89364() { // fn#89364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11841:571, offset: 0x0200b949, size: 330 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(require(dependencyMap[5]).isThemeLight(importDefault(dependencyMap[6])()) ? dependencyMap[7] : dependencyMap[8]);
|
||||
const moduleValue2 = require(dependencyMap[9]);
|
||||
const useLogAppLauncherEmptyStateView = moduleValue2.useLogAppLauncherEmptyStateView;
|
||||
const AppLauncherEmptyStateType = require(dependencyMap[10]).AppLauncherEmptyStateType;
|
||||
const HOME_NO_PERMISSIONS = AppLauncherEmptyStateType.HOME_NO_PERMISSIONS;
|
||||
Reflect.apply(useLogAppLauncherEmptyStateView, moduleValue2, [HOME_NO_PERMISSIONS]);
|
||||
const image = <Image style={styles.image} resizeMode="contain" source={defaultImport} />;
|
||||
const Text = require(dependencyMap[11]).Text;
|
||||
const intl = require(dependencyMap[12]).intl;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{image}
|
||||
<Text
|
||||
style={styles.textContainer}
|
||||
variant="text-sm/medium"
|
||||
color="text-muted"
|
||||
>
|
||||
{intl.string(require(dependencyMap[12]).t.uDnXXj)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 11601; source: modules/app_launcher/native/screens/home/SubmittingOverlay.tsx; dependencies: [33, 4501, 697, 4017, 4577, 4581, 4593, 2] */
|
||||
function _fun88849(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11787:6, offset: 0x01ff44fd, size: 215 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{ellipsis: {'backgroundColor': null,
|
||||
'justifyContent': 'center', 'alignItems': 'center', backgroundColor: BACKGROUND_SCRIM}}]);
|
||||
object = {code: "function SubmittingOverlayTsx1(){const{withSpring,submitting,SUBTLE_SPRING}=this.__closure;return{opacity:withSpring(submitting?1:0,SUBTLE_SPRING,'animate-always')};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/SubmittingOverlay.tsx');
|
||||
exports.SubmittingOverlay = SubmittingOverlay;
|
||||
}
|
||||
|
||||
function SubmittingOverlay({submitting, style}) { // fn#88850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11787:533, offset: 0x01ff45d4, size: 269 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = function() {
|
||||
var r3;
|
||||
var moduleValue = require(dependencyMap[4]);
|
||||
var withSpring = moduleValue.withSpring;
|
||||
r3 = submitting ? 1 : 0;
|
||||
var SUBTLE_SPRING = require(dependencyMap[5]).SUBTLE_SPRING;
|
||||
return {opacity: Reflect.apply(withSpring, moduleValue, [r3, SUBTLE_SPRING, 'animate-always'])};
|
||||
};
|
||||
const object2 = {};
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.submitting = submitting;
|
||||
let SUBTLE_SPRING = (require(4581) /* metro dependency 4581: springPresets */).SUBTLE_SPRING;
|
||||
object2.SUBTLE_SPRING = SUBTLE_SPRING;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 492443733468;
|
||||
closure.__initData = env0_5;
|
||||
const value2 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<View style={[style, styles.ellipsis, value2]}>
|
||||
{submitting && ((Ellipsis) => <Ellipsis variant="active" size="md" />)((require(4593) /* metro dependency 4593: ButtonEllipsisNative */).Ellipsis)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 11637; source: modules/app_launcher/native/screens/home/TrackSectionHeader.tsx; dependencies: [8047, 8742, 480, 2] */
|
||||
function _fun89220(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11823:6, offset: 0x02005661, size: 118 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const appLauncherStore = importDefault(8047) /* metro dependency 8047: AppLauncherStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/TrackSectionHeader.tsx');
|
||||
exports.default = TrackSectionHeader;
|
||||
}
|
||||
|
||||
function TrackSectionHeader({sectionName, numItems, numVisibleItems, viewed, children}) { // fn#89221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11823:213, offset: 0x020056d7, size: 183 bytes, params: 2, frame: 23
|
||||
const defaultImport = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
|
||||
const object3 = {};
|
||||
const ImpressionTypes = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes;
|
||||
const VIEW = ImpressionTypes.VIEW;
|
||||
object3.type = VIEW;
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const APP_LAUNCHER_SECTION = ImpressionNames.APP_LAUNCHER_SECTION;
|
||||
object3.name = APP_LAUNCHER_SECTION;
|
||||
const object4 = {section_name: sectionName, num_items: numItems, num_visible_items: numVisibleItems};
|
||||
object4.source = AppLauncherStore.entrypoint();
|
||||
object3.properties = object4;
|
||||
defaultImport(object3, {disableTrack: !viewed}, [viewed]);
|
||||
return children;
|
||||
}
|
||||
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
/* Metro module 11633; source: modules/app_launcher/native/screens/home/recommendations/RecommendationsBanner.tsx; dependencies: [31, 27, 1885, 661, 33, 4501, 8774, 11625, 10718, 5475, 8490, 8507, 1423, 8372, 2] */
|
||||
function _fun89208(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11819:6, offset: 0x02004a0c, size: 329 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.BANNER_HEIGHT;
|
||||
const env0_7 = constantsModule.EMPTY_STRING_SNOWFLAKE_ID;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({imageContainer: {'width': '100%',
|
||||
'height': '100%'}, image: {'width': '100%', 'height': '100%'}});
|
||||
const env0_10 = value.memo(_fun89209);
|
||||
const env0_11 = value.memo(_fun89211);
|
||||
value = value.memo(RecommendationBanner);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/recommendations/RecommendationsBanner.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun89209({applicationId}) { // fn#89209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11819:318, offset: 0x02004b55, size: 261 bytes, params: 2, frame: 18
|
||||
var r0;
|
||||
var value;
|
||||
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
|
||||
const useRequiredAppLauncherContext = appLauncherContextModule.useRequiredAppLauncherContext;
|
||||
const value2 = (require(11625) /* metro dependency 11625: HeroMedia */).useHeroMediaDimensions({width: Reflect.apply(useRequiredAppLauncherContext,
|
||||
appLauncherContextModule, []).width});
|
||||
const {imageStyle, imageSource} = env0_3.useMemo(_fun89210, [value2,
|
||||
(importDefault(10718) /* metro dependency 10718: useEmbeddedActivityBackground */)({applicationId: applicationId,
|
||||
size: value2.width, names: ['embedded_cover']})]);
|
||||
if (imageSource != null) {
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = ((Component) => <Component style={imageStyle} source={imageSource} resizeMode="cover" />)(value);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = <View style={imageStyle} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun89211({applicationBot}) { // fn#89211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11819:811, offset: 0x02004cdb, size: 133 bytes, params: 2, frame: 17
|
||||
const value3 = (importDefault(8490) /* metro dependency 8490: useDisplayProfile */)(applicationBot?.id ?? EMPTY_STRING_SNOWFLAKE_ID);
|
||||
const UserProfileBanner = importDefault(8507) /* metro dependency 8507: UserProfileBanner */;
|
||||
const userRecord = new UserRecord(applicationBot);
|
||||
return <UserProfileBanner displayProfile={value3} user={userRecord} />;
|
||||
}
|
||||
|
||||
function RecommendationBanner({applicationEmbedded, applicationId, applicationIcon, applicationBot, overrideImageUrl}) { // fn#89212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11819:961, offset: 0x02004d60, size: 327 bytes, params: 2, frame: 23
|
||||
var r0;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const applicationIconSource = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getApplicationIconSource({id: applicationId,
|
||||
icon: applicationIcon, bot: applicationBot, botIconFirst: true});
|
||||
if (overrideImageUrl != null) {
|
||||
var viewBindingProps = {style: styles.imageContainer};
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = <View {...viewBindingProps}>{((Component) => <Component style={styles.image} source={{uri: overrideImageUrl}} resizeMode="cover" />)(value)}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = applicationEmbedded ? ((Component) => <Component applicationId={applicationId} />)(env0_10) : applicationBot != null ? ((Component) => <Component applicationBot={applicationBot} />)(env0_11) : <View style={{backgroundColor: (importDefault(8372) /* metro dependency 8372: useAvatarColor */)(typeof applicationIconSource === 'number' ? applicationIconSource : applicationIconSource?.uri,
|
||||
|
||||
'')}} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun89210() { // fn#89210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11819:522, offset: 0x02004c5a, size: 129 bytes, params: 1, frame: 6
|
||||
const binding = env0_0;
|
||||
return {imageStyle: {backgroundColor: 'black', height: binding.height, width: binding.width,
|
||||
transform: [{translateY: (BANNER_HEIGHT - binding.height) / 2}]}, imageSource: env0_1.url != null ? {uri: env0_1.url} : undefined};
|
||||
}
|
||||
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
/* Metro module 11632; source: modules/app_launcher/native/screens/home/recommendations/RecommendationsBannerCard.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 8046, 8491, 1423, 11623, 5278, 11633, 1909, 11627, 4573, 1244, 11597, 6243, 2] */
|
||||
function _fun89205(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11818:6, offset: 0x020042eb, size: 626 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object4.width = '100%';
|
||||
object4.overflow = 'hidden';
|
||||
object3.container = object4;
|
||||
object3.banner = {'width': '100%', 'height': 106, 'overflow': 'hidden'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.appDetailsContainer = {'padding': null, 'flexDirection': 'row', 'alignItems': 'center',
|
||||
'justifyContent': 'space-between', padding: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.appDetails = {'marginLeft': null, 'flexDirection': 'column', 'flexGrow': 1, 'flexShrink': 1,
|
||||
marginLeft: PX_16};
|
||||
object3.appIconContainer = {flexShrink: 0};
|
||||
const object5 = {'position': 'absolute', 'display': 'flex'};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.gap = PX_4;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.right = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.top = PX_8;
|
||||
object5.alignItems = 'flex-end';
|
||||
object3.notifsContainer = object5;
|
||||
object3.badge = {};
|
||||
const object8 = {};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object8.paddingVertical = PX_4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.paddingHorizontal = PX_8;
|
||||
const CONTROL_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object8.backgroundColor = CONTROL_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.promotedLabelWrapper = object8;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/recommendations/RecommendationsBannerCard.tsx');
|
||||
exports.default = RecommendationsBannerCard;
|
||||
}
|
||||
|
||||
function RecommendationsBannerCard({style, application, onPress, isFirst, isLast, isLandscape, showsPromoted, overrideImageUrl}) { // fn#89206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11818:1112, offset: 0x0200455d, size: 1130 bytes, params: 2, frame: 41
|
||||
var object2;
|
||||
var r15;
|
||||
var r0;
|
||||
var PressableOpacity;
|
||||
var items2;
|
||||
var items3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items4;
|
||||
var items5;
|
||||
var items6;
|
||||
let value = undefined;
|
||||
showsPromoted = !(showsPromoted === value) && showsPromoted;
|
||||
const styles = useStyles();
|
||||
let r21 = showsPromoted || (require(8046) /* metro dependency 8046: AppLauncherUtils */).isPromotedApplication(application);
|
||||
const shelfBadgeTypeIfActive = (require(8046) /* metro dependency 8046: AppLauncherUtils */).getShelfBadgeTypeIfActive(application);
|
||||
const binding = env0_3;
|
||||
const useEffect = binding.useEffect;
|
||||
const bot = application.bot;
|
||||
Reflect.apply(useEffect, binding, [function() {
|
||||
var r1;
|
||||
var value2 = undefined;
|
||||
var defaultImport = importDefault(dependencyMap[7]);
|
||||
var property = application.bot;
|
||||
r1 = property == null ? value2 : property.id;
|
||||
r1 = r1 ?? EMPTY_STRING_SNOWFLAKE_ID;
|
||||
defaultImport(r1);
|
||||
return value2;
|
||||
}, [bot == null ? value : bot.id]]);
|
||||
let defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getApplicationIconSource = defaultImport.getApplicationIconSource;
|
||||
object2 = {id: application.id};
|
||||
object2.icon = application.icon;
|
||||
object2.bot = application.bot;
|
||||
object2.botIconFirst = true;
|
||||
const value7 = Reflect.apply(getApplicationIconSource, defaultImport, [object2]);
|
||||
if (isLandscape) {
|
||||
const BaseAppRow = (require(11623) /* metro dependency 11623: AppLauncherHomeScreen */).BaseAppRow;
|
||||
r0 = <BaseAppRow application={application} iconSource={value7} onPress={onPress} isFirstRow={isFirst} isLastRow={isLast} />;
|
||||
} else {
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
object2 = {};
|
||||
r15 = isFirst ? 0 : 8;
|
||||
object2.style = [styles.container, {marginTop: r15, marginBottom: isLast ? 0 : 8}, style];
|
||||
object2.onPress = onPress;
|
||||
var viewBindingProps = {style: styles.banner};
|
||||
items2 = [((Component) => <Component applicationBot={application.bot} applicationEmbedded={(require(8046) /* metro dependency 8046: AppLauncherUtils */).isEmbeddedApp(application)} applicationId={application.id} applicationIcon={application.icon ?? value} overrideImageUrl={overrideImageUrl} />)(importDefault(11633) /* metro dependency 11633: RecommendationsBanner */)];
|
||||
if (r21) {
|
||||
var viewBinding2Props = {style: styles.notifsContainer};
|
||||
items3 = [((Component) => <Component labelType={shelfBadgeTypeIfActive} replacementStyles={styles.badge} />)(importDefault(11627) /* metro dependency 11627: ActivityShelfBadge */)];
|
||||
r21 = r21 && <View style={styles.promotedLabelWrapper}><Text variant="text-xxs/medium" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/eVltv'])}</Text></View>;
|
||||
items3[1] = r21;
|
||||
r15 = <View {...viewBinding2Props}>{items3}</View>;
|
||||
} else if (shelfBadgeTypeIfActive === (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes.NONE) {
|
||||
r15 = null;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.notifsContainer};
|
||||
items3 = [((Component) => <Component labelType={shelfBadgeTypeIfActive} replacementStyles={styles.badge} />)(importDefault(11627) /* metro dependency 11627: ActivityShelfBadge */)];
|
||||
r21 = r21 && <View style={styles.promotedLabelWrapper}><Text variant="text-xxs/medium" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/eVltv'])}</Text></View>;
|
||||
items3[1] = r21;
|
||||
r15 = <View {...viewBinding2Props}>{items3}</View>;
|
||||
}
|
||||
items2[1] = r15;
|
||||
items4 = [<View {...viewBindingProps}>{items2}</View>];
|
||||
var viewBindingProps2 = {style: styles.appDetailsContainer};
|
||||
r15 = value7 != null && ((Component) => <Component iconSource={value7} iconSize={36} wrapperStyle={styles.appIconContainer} />)(importDefault(11597) /* metro dependency 11597: EntityBorderAppIcon */);
|
||||
items5 = [r15];
|
||||
var viewBinding4Props = {style: styles.appDetails};
|
||||
items6 = [<Text variant="heading-lg/semibold" color="mobile-text-heading-primary" lineClamp={1}>{application.name}</Text>];
|
||||
items6[1] = <Text variant="text-sm/normal" color="text-subtle" lineClamp={1}>{application.description}</Text>;
|
||||
items5[1] = <View {...viewBinding4Props}>{items6}</View>;
|
||||
items5[2] = ((TableRowArrow) => <TableRowArrow />)((require(6243) /* metro dependency 6243: TableRowArrowNative */).TableRowArrow);
|
||||
items4[1] = <View {...viewBindingProps2}>{items5}</View>;
|
||||
value = <PressableOpacity {...object2}>{items4}</PressableOpacity>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
+216
@@ -0,0 +1,216 @@
|
||||
/* Metro module 11641; source: modules/app_launcher/native/screens/home/useTrackAppLauncherHomeItemImpression.tsx; dependencies: [31, 11642, 11629, 7504, 483, 2] */
|
||||
function _fun89236(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11827:6, offset: 0x02005dd6, size: 118 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/useTrackAppLauncherHomeItemImpression.tsx');
|
||||
exports.useTrackAppLauncherHomeItemImpression = useTrackAppLauncherHomeItemImpression;
|
||||
}
|
||||
|
||||
function useTrackAppLauncherHomeItemImpression() { // fn#89237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11827:262, offset: 0x02005e4c, size: 86 bytes, params: 1, frame: 15
|
||||
const useTrackAppLauncherItemImpressionOnFirstViewModule = require(11642) /* metro dependency 11642: useTrackAppLauncherItemImpressionOnFirstView */;
|
||||
const useTrackAppLauncherItemImpressionOnFirstView = useTrackAppLauncherItemImpressionOnFirstViewModule.useTrackAppLauncherItemImpressionOnFirstView;
|
||||
const trackAppLauncherItemImpressionOnFirstView = Reflect.apply(useTrackAppLauncherItemImpressionOnFirstView,
|
||||
useTrackAppLauncherItemImpressionOnFirstViewModule, []).trackAppLauncherItemImpressionOnFirstView;
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
return {trackAppLauncherHomeItemImpression: Reflect.apply(useCallback, binding, [function({viewableItems}) {
|
||||
viewableItems.forEach(_fun89239);
|
||||
}, [trackAppLauncherItemImpressionOnFirstView]])};
|
||||
}
|
||||
|
||||
function _fun89238({viewableItems}) { // fn#89238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11827:471, offset: 0x02005ea2, size: 32 bytes, params: 2, frame: 11
|
||||
viewableItems.forEach(_fun89239);
|
||||
}
|
||||
|
||||
function _fun89239({item}) { // fn#89239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11827:504, offset: 0x02005ec2, size: 706 bytes, params: 2, frame: 27
|
||||
var id;
|
||||
var flags;
|
||||
var r6;
|
||||
var r8;
|
||||
var shelfItem2SectionPosition;
|
||||
var r16;
|
||||
var r3;
|
||||
var application;
|
||||
var sectionPosition;
|
||||
var applicationId;
|
||||
var moduleValue;
|
||||
var getApplicationFlags;
|
||||
var value3;
|
||||
var moduleValue2;
|
||||
var value4;
|
||||
var value5;
|
||||
var trackAppLauncherItemImpressionOnFirstViewBinding;
|
||||
var object2;
|
||||
var sectionName;
|
||||
let type = item.type;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const AppLauncherHomeListItemType = (require(11629) /* metro dependency 11629: AppLauncherHomeTypes */).AppLauncherHomeListItemType;
|
||||
const RECOMMENDATION_APP = AppLauncherHomeListItemType.RECOMMENDATION_APP;
|
||||
if (type === RECOMMENDATION_APP) {
|
||||
sectionPosition = item.sectionPosition;
|
||||
application = item.application;
|
||||
id = application.id;
|
||||
moduleValue2 = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
|
||||
getApplicationFlags = moduleValue2.getApplicationFlags;
|
||||
application = item.application;
|
||||
value4 = Reflect.apply(getApplicationFlags, moduleValue2, [application]);
|
||||
r6 = id;
|
||||
id = undefined;
|
||||
flags = undefined;
|
||||
r8 = sectionPosition;
|
||||
shelfItem2SectionPosition = undefined;
|
||||
r16 = value4;
|
||||
value5 = environment.__proto__;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
sectionName = item.sectionName;
|
||||
object2.itemKey = 'sectionName:' + sectionName + ' applicationId:' + r6;
|
||||
sectionName = item.sectionName;
|
||||
object2.sectionName = sectionName;
|
||||
} else {
|
||||
type = item.type;
|
||||
var RECOMMENDATION_BANNER_CARD = AppLauncherHomeListItemType.RECOMMENDATION_BANNER_CARD;
|
||||
if (type === RECOMMENDATION_BANNER_CARD) {
|
||||
sectionPosition = item.sectionPosition;
|
||||
application = item.item.application;
|
||||
id = application.id;
|
||||
moduleValue = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
|
||||
getApplicationFlags = moduleValue.getApplicationFlags;
|
||||
application = item.item.application;
|
||||
value3 = Reflect.apply(getApplicationFlags, moduleValue, [application]);
|
||||
r6 = id;
|
||||
id = undefined;
|
||||
flags = undefined;
|
||||
r8 = sectionPosition;
|
||||
shelfItem2SectionPosition = undefined;
|
||||
r16 = value3;
|
||||
value5 = environment.__proto__;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
sectionName = item.sectionName;
|
||||
object2.itemKey = 'sectionName:' + sectionName + ' applicationId:' + r6;
|
||||
sectionName = item.sectionName;
|
||||
object2.sectionName = sectionName;
|
||||
object2.sectionPosition = r8;
|
||||
object2.sectionOverallPosition = item.sectionOverallPosition;
|
||||
object2.applicationId = r6;
|
||||
object2.applicationFlags = (importAll(483) /* metro dependency 483: BigFlagUtils */).asUintN(32, r16);
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding(object2);
|
||||
if (id != null && shelfItem2SectionPosition != null) {
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
sectionName = item.sectionName;
|
||||
object2.itemKey = 'sectionName:' + sectionName + ' applicationId:' + id;
|
||||
sectionName = item.sectionName;
|
||||
object2.sectionName = sectionName;
|
||||
object2.sectionPosition = shelfItem2SectionPosition;
|
||||
object2.sectionOverallPosition = item.sectionOverallPosition;
|
||||
object2.applicationId = id;
|
||||
if (flags != null) {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value = value.asUintN(32, flags);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = undefined;
|
||||
}
|
||||
object2.applicationFlags = r3;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding(object2);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
type = item.type;
|
||||
var SHELF_ITEM = AppLauncherHomeListItemType.SHELF_ITEM;
|
||||
if (type === SHELF_ITEM) {
|
||||
sectionPosition = item.sectionPosition;
|
||||
applicationId = item.applicationId;
|
||||
flags = item.section.application.flags;
|
||||
id = undefined;
|
||||
r6 = applicationId;
|
||||
r8 = sectionPosition;
|
||||
shelfItem2SectionPosition = undefined;
|
||||
r16 = flags;
|
||||
flags = undefined;
|
||||
value5 = environment.__proto__;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
sectionName = item.sectionName;
|
||||
object2.itemKey = 'sectionName:' + sectionName + ' applicationId:' + r6;
|
||||
sectionName = item.sectionName;
|
||||
object2.sectionName = sectionName;
|
||||
object2.sectionPosition = r8;
|
||||
object2.sectionOverallPosition = item.sectionOverallPosition;
|
||||
object2.applicationId = r6;
|
||||
object2.applicationFlags = (importAll(483) /* metro dependency 483: BigFlagUtils */).asUintN(32, r16);
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding(object2);
|
||||
if (id != null && shelfItem2SectionPosition != null) {
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
sectionName = item.sectionName;
|
||||
object2.itemKey = 'sectionName:' + sectionName + ' applicationId:' + id;
|
||||
sectionName = item.sectionName;
|
||||
object2.sectionName = sectionName;
|
||||
object2.sectionPosition = shelfItem2SectionPosition;
|
||||
object2.sectionOverallPosition = item.sectionOverallPosition;
|
||||
object2.applicationId = id;
|
||||
if (flags != null) {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value = value.asUintN(32, flags);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = undefined;
|
||||
}
|
||||
object2.applicationFlags = r3;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding(object2);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
type = item.type;
|
||||
var SHELF_ITEM_TUPLE = AppLauncherHomeListItemType.SHELF_ITEM_TUPLE;
|
||||
if (type !== SHELF_ITEM_TUPLE) {
|
||||
return undefined;
|
||||
}
|
||||
var shelfItem1SectionPosition = item.shelfItem1SectionPosition;
|
||||
shelfItem2SectionPosition = item.shelfItem2SectionPosition;
|
||||
var id2 = item.shelfItem1.application.id;
|
||||
var shelfItem2 = item.shelfItem2;
|
||||
id = shelfItem2 == null ? undefined : shelfItem2.application.id;
|
||||
var flags2 = item.shelfItem1.application.flags;
|
||||
shelfItem2 = item.shelfItem2;
|
||||
flags = shelfItem2 == null ? undefined : shelfItem2.application.flags;
|
||||
r6 = id2;
|
||||
r8 = shelfItem1SectionPosition;
|
||||
r16 = flags2;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
object2.itemKey = 'sectionName:' + item.sectionName + ' applicationId:' + r6;
|
||||
object2.sectionName = item.sectionName;
|
||||
}
|
||||
object2.sectionPosition = r8;
|
||||
object2.sectionOverallPosition = item.sectionOverallPosition;
|
||||
object2.applicationId = r6;
|
||||
object2.applicationFlags = (importAll(483) /* metro dependency 483: BigFlagUtils */).asUintN(32, r16);
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding(object2);
|
||||
if (id != null && shelfItem2SectionPosition != null) {
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
|
||||
object2 = {};
|
||||
sectionName = item.sectionName;
|
||||
object2.itemKey = 'sectionName:' + sectionName + ' applicationId:' + id;
|
||||
sectionName = item.sectionName;
|
||||
object2.sectionName = sectionName;
|
||||
object2.sectionPosition = shelfItem2SectionPosition;
|
||||
object2.sectionOverallPosition = item.sectionOverallPosition;
|
||||
object2.applicationId = id;
|
||||
if (flags != null) {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value = value.asUintN(32, flags);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = undefined;
|
||||
}
|
||||
object2.applicationFlags = r3;
|
||||
trackAppLauncherItemImpressionOnFirstViewBinding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 11628; source: modules/app_launcher/native/screens/home/useViewableAppLauncherHomeItems.tsx; dependencies: [31, 8047, 4017, 11629, 8742, 480, 2] */
|
||||
function _fun89195(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11814:6, offset: 0x02003b80, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const appLauncherStore = importDefault(8047) /* metro dependency 8047: AppLauncherStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/useViewableAppLauncherHomeItems.tsx');
|
||||
exports.useViewableAppLauncherHomeItems = useViewableAppLauncherHomeItems;
|
||||
}
|
||||
|
||||
function useViewableAppLauncherHomeItems() { // fn#89196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11814:260, offset: 0x02003c05, size: 141 bytes, params: 1, frame: 18
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
const binding = env0_2;
|
||||
const value = binding.useRef({});
|
||||
const useCallback = binding.useCallback;
|
||||
return {handleViewableItemsChanged: Reflect.apply(useCallback, binding, [function({viewableItems}) {
|
||||
viewableItems.forEach(_fun89198);
|
||||
}, [value2, value3, value]]), hasViewedActivityItem: value2, hasViewedLearnMoreItem: value3};
|
||||
}
|
||||
|
||||
function _fun89197({viewableItems}) { // fn#89197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11814:429, offset: 0x02003c92, size: 32 bytes, params: 2, frame: 11
|
||||
viewableItems.forEach(_fun89198);
|
||||
}
|
||||
|
||||
function _fun89198({item}) { // fn#89198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11814:462, offset: 0x02003cb2, size: 460 bytes, params: 2, frame: 18
|
||||
var value5;
|
||||
var value9;
|
||||
var current;
|
||||
var sectionName;
|
||||
var value14;
|
||||
var moduleValue;
|
||||
var trackImpression;
|
||||
var object3;
|
||||
var object4;
|
||||
let type = item.type;
|
||||
const AppLauncherHomeListItemType = (require(11629) /* metro dependency 11629: AppLauncherHomeTypes */).AppLauncherHomeListItemType;
|
||||
const SHELF_ITEM = AppLauncherHomeListItemType.SHELF_ITEM;
|
||||
if (!(type !== SHELF_ITEM || env1_0.get())) {
|
||||
value5 = environment.__proto__;
|
||||
env1_0.set(true);
|
||||
}
|
||||
type = item.type;
|
||||
const LEARN_MORE = AppLauncherHomeListItemType.LEARN_MORE;
|
||||
if (!(type !== LEARN_MORE || env1_1.get())) {
|
||||
value9 = environment.__proto__;
|
||||
env1_1.set(true);
|
||||
}
|
||||
type = item.type;
|
||||
const RECOMMENDATION_SECTION_HEADER = AppLauncherHomeListItemType.RECOMMENDATION_SECTION_HEADER;
|
||||
let r1 = type !== RECOMMENDATION_SECTION_HEADER && item.type !== AppLauncherHomeListItemType.SECTION_HEADER;
|
||||
r1 = !r1 ? env1_2.current[item.sectionName] != null : r1;
|
||||
if (!r1) {
|
||||
value14 = environment.__proto__;
|
||||
current = env1_2.current;
|
||||
sectionName = item.sectionName;
|
||||
current[sectionName] = true;
|
||||
moduleValue = require(8742) /* metro dependency 8742: useTrackImpression */;
|
||||
trackImpression = moduleValue.trackImpression;
|
||||
object3 = {};
|
||||
object3.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
|
||||
object3.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_SECTION;
|
||||
object4 = {};
|
||||
sectionName = item.sectionName;
|
||||
object4.section_name = sectionName;
|
||||
object4.num_items = item.numItems;
|
||||
object4.num_visible_items = item.numVisibleItems;
|
||||
object4.source = AppLauncherStore.entrypoint();
|
||||
object3.properties = object4;
|
||||
Reflect.apply(trackImpression, moduleValue, [object3]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 11651; source: modules/app_launcher/native/screens/search/EmptyState.tsx; dependencies: [31, 27, 33, 4501, 11592, 8048, 1244, 3869, 4573, 2] */
|
||||
function _fun89348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11837:6, offset: 0x0200a1ac, size: 235 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'position': 'relative',
|
||||
'justifyContent': 'center', 'alignItems': 'center'}, textContainer: {'justifyContent': 'center',
|
||||
'width': '100%'}, text: {'marginTop': 16, 'textAlign': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/search/EmptyState.tsx');
|
||||
exports.default = EmptyState_89349;
|
||||
}
|
||||
|
||||
function EmptyState_89349({query, showsGenericMessage}) { // fn#89349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11837:430, offset: 0x0200a297, size: 302 bytes, params: 2, frame: 22
|
||||
showsGenericMessage = !(showsGenericMessage === undefined) && showsGenericMessage;
|
||||
const styles = useStyles();
|
||||
const appLauncherNativeUtilsModule = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
const useLogAppLauncherEmptyStateView = appLauncherNativeUtilsModule.useLogAppLauncherEmptyStateView;
|
||||
const AppLauncherEmptyStateType = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEmptyStateType;
|
||||
const SEARCH_EMPTY = AppLauncherEmptyStateType.SEARCH_EMPTY;
|
||||
Reflect.apply(useLogAppLauncherEmptyStateView, appLauncherNativeUtilsModule, [SEARCH_EMPTY, query]);
|
||||
env0_2.useEffect(_fun89350, [showsGenericMessage]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<View style={styles.textContainer}>
|
||||
<Text
|
||||
style={styles.text}
|
||||
variant="text-sm/medium"
|
||||
color="text-default"
|
||||
>
|
||||
{showsGenericMessage ? Reflect.apply(string, intl, [t.aOkFv8]) : Reflect.apply(string, intl,
|
||||
[t.LSNOYf])}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89350() { // fn#89350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11837:606, offset: 0x0200a3c5, size: 129 bytes, params: 1, frame: 17
|
||||
const showsGenericMessageBinding = showsGenericMessage;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const r4 = showsGenericMessageBinding ? Reflect.apply(string, intl, [t.aOkFv8]) : Reflect.apply(string, intl,
|
||||
[t.LSNOYf]);
|
||||
const AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
AccessibilityAnnouncer.announce(r4, 'polite');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 11638; source: modules/app_launcher/native/screens/search/SearchBarBottomBorder.tsx; dependencies: [31, 33, 4501, 697, 4017, 4577, 4581, 2] */
|
||||
function _fun89222(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11824:6, offset: 0x0200578e, size: 226 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(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{border: {borderBottomColor: BORDER_SUBTLE,
|
||||
borderBottomWidth: 1}}]);
|
||||
object = {code: 'function SearchBarBottomBorderTsx1(){const{withSpring,scrollPosition,triggerScrollHeight,springStandard}=this.__closure;return{opacity:withSpring(scrollPosition.get()>triggerScrollHeight?1:0,springStandard)};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/search/SearchBarBottomBorder.tsx');
|
||||
exports.usePinnedSearchBarBottomBorder = usePinnedSearchBarBottomBorder;
|
||||
}
|
||||
|
||||
function usePinnedSearchBarBottomBorder({key, triggerScrollHeight}) { // fn#89223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11824:578, offset: 0x02005870, size: 323 bytes, params: 2, frame: 25
|
||||
var object2;
|
||||
triggerScrollHeight = triggerScrollHeight === undefined ? 1 : triggerScrollHeight;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const binding = env0_3;
|
||||
binding.useEffect(_fun89224, [key, value2]);
|
||||
const value3 = binding.useCallback(_fun89225, [value2]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = usePinnedSearchBarBottomBorderU;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
scrollPosition: value2, triggerScrollHeight: triggerScrollHeight,
|
||||
springStandard: (require(4581) /* metro dependency 4581: springPresets */).springStandard};
|
||||
closure.__workletHash = 5466161440826;
|
||||
closure.__initData = env0_6;
|
||||
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
object2 = {scrollHandler: value3};
|
||||
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
object2.bottomBorderComponent = <View style={[styles.border, value4]} key={key} />;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89225({offset}) { // fn#89225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11824:748, offset: 0x020059b3, size: 30 bytes, params: 2, frame: 11
|
||||
env0_1.set(offset);
|
||||
}
|
||||
|
||||
function usePinnedSearchBarBottomBorderU() { // fn#89226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11824:810, owner: usePinnedSearchBarBottomBorder.u, offset: 0x020059d1, size: 102 bytes, params: 1, frame: 17
|
||||
const object2 = {};
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
object2.opacity = springModule.withSpring(env0_1.get() > triggerScrollHeight ? 1 : 0,
|
||||
(require(4581) /* metro dependency 4581: springPresets */).springStandard);
|
||||
return object2;
|
||||
}
|
||||
|
||||
+527
@@ -0,0 +1,527 @@
|
||||
/* Metro module 11645; source: modules/app_launcher/native/screens/search/SearchLocalAndGlobalContentView.tsx; dependencies: [57, 31, 27, 7861, 11609, 1483, 33, 4501, 697, 11592, 11597, 6238, 8046, 11646, 8048, 11595, 1585, 1478, 7705, 8448, 11608, 5068, 5065, 11648, 11649, 1244, 3869, 11631, 11623, 11643, 4573, 11650, 8554, 11651, 2] */
|
||||
function _fun89260(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:6, offset: 0x02006da9, size: 962 bytes, params: 8, frame: 26
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const getImpressionPropsFromApplicationItem = function(a0) {
|
||||
var object = {};
|
||||
object.applicationId = getApplicationIdFromApplicationItem(a0);
|
||||
return object;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(7861) /* metro dependency 7861: ApplicationCommandIndexStore */).getSection;
|
||||
const env0_7 = (require(11609) /* metro dependency 11609: ApplicationDirectorySearchStore */).FetchState;
|
||||
const appLauncherNativeConstantsModule = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
|
||||
const DEFAULT_CONTENT_PADDING = appLauncherNativeConstantsModule.DEFAULT_CONTENT_PADDING;
|
||||
const env0_9 = appLauncherNativeConstantsModule.useAppLauncherNavigation;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value3.jsx;
|
||||
const env0_11 = value3.jsxs;
|
||||
const env0_12 = value3.Fragment;
|
||||
object2 = {PLACERHOLDER: 0};
|
||||
object2[0] = 'PLACERHOLDER';
|
||||
object2.LOCAL_APPLICATION = 1;
|
||||
object2[1] = 'LOCAL_APPLICATION';
|
||||
object2.GLOBAL_APPLICATION = 2;
|
||||
object2[2] = 'GLOBAL_APPLICATION';
|
||||
let Array = global.Array;
|
||||
let array = new Array(6);
|
||||
let fill = array.fill;
|
||||
const env0_15 = Reflect.apply(fill, array, ['placeholder']);
|
||||
Array = global.Array;
|
||||
array = new Array(3);
|
||||
fill = array.fill;
|
||||
const PLACERHOLDER = object2.PLACERHOLDER;
|
||||
const env0_16 = Reflect.apply(fill, array, [{type: PLACERHOLDER}]);
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
object2.sectionHeader = {marginBottom: 8};
|
||||
const object3 = {paddingHorizontal: DEFAULT_CONTENT_PADDING};
|
||||
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
|
||||
object3.backgroundColor = MOBILE_KEYBOARD_PANEL_BACKGROUND;
|
||||
object2.list = object3;
|
||||
const object8 = {'width': 32, 'height': 32};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
let BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object8.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object2.loadingCommandAppIcon = object8;
|
||||
const object10 = {'backgroundColor': null, 'height': 16, 'marginBottom': 4, 'borderRadius': null,
|
||||
'alignSelf': 'flex-start'};
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object10.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.loadingTextPlaceholder = object10;
|
||||
const object11 = {};
|
||||
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object11.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object11.height = 16;
|
||||
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object11.alignSelf = 'flex-start';
|
||||
object2.loadingTextPlaceholderSmall = object11;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.divider = {marginTop: PX_16};
|
||||
object2.commandsHeaderContainer = {'justifyContent': 'space-between', 'flexDirection': 'row'};
|
||||
const object12 = {};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object12.paddingHorizontal = PX_4;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object12.marginBottom = PX_4;
|
||||
object12.justifyContent = 'center';
|
||||
object2.commandsCTA = object12;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object2.commandsCTAUnderlayColor = {color: BACKGROUND_SURFACE_HIGH};
|
||||
const env0_17 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.forwardRef(_fun89274);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/search/SearchLocalAndGlobalContentView.tsx');
|
||||
exports.SearchLocalAndGlobalContentView = value;
|
||||
}
|
||||
|
||||
function getApplicationIdFromApplicationItem(a0) { // fn#89261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:440, offset: 0x0200716b, size: 55 bytes, params: 2, frame: 5
|
||||
const type = a0.type;
|
||||
const PLACERHOLDER = env0_13.PLACERHOLDER;
|
||||
const value = undefined;
|
||||
return type === PLACERHOLDER ? value : a0.application != null ? a0.application.id : value;
|
||||
}
|
||||
|
||||
function CommandRow({context, command, application, onPress, isFirstRow, isLastRow, beforeExecuteCommand, onExecuteCommand}) { // fn#89263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:1663, offset: 0x020071bb, size: 312 bytes, params: 2, frame: 26
|
||||
const appLauncherIconSource = (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(application);
|
||||
const r14 = appLauncherIconSource != null && ((Component) => <Component iconSource={appLauncherIconSource} />)(importDefault(11597) /* metro dependency 11597: EntityBorderAppIcon */);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps = {icon: r14, label: command.displayName,
|
||||
subLabel: (require(8046) /* metro dependency 8046: AppLauncherUtils */).getSectionName(application),
|
||||
subLabelLineClamp: 1, start: isFirstRow, end: isLastRow, onPress: onPress};
|
||||
const commandRowButton = importDefault(11646) /* metro dependency 11646: CommandRowButton */;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const SEARCH = AppLauncherSectionName.SEARCH;
|
||||
tableRowProps.trailing = ((Component) => <Component command={command} context={context} beforeExecuteCommand={beforeExecuteCommand} onExecuteCommand={onExecuteCommand} sectionName={SEARCH} />)(commandRowButton);
|
||||
return <TableRow {...tableRowProps} />;
|
||||
}
|
||||
|
||||
function PlaceholderCommandRow({isFirstRow, isLastRow}) { // fn#89264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:2150, offset: 0x020072f3, size: 337 bytes, params: 2, frame: 28
|
||||
isFirstRow = !(isFirstRow === undefined) && isFirstRow;
|
||||
isLastRow = !(isLastRow === undefined) && isLastRow;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11595) /* metro dependency 11595: usePlaceholderSize */).usePlaceholderWidth(10, 50);
|
||||
const value3 = (require(11595) /* metro dependency 11595: usePlaceholderSize */).usePlaceholderWidth(30, 90);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
icon={<View style={styles.loadingCommandAppIcon} />}
|
||||
label={<View style={[styles.loadingTextPlaceholder, {width: '' + value2 + '%'}]} />}
|
||||
subLabel={<View style={[styles.loadingTextPlaceholderSmall, {width: '' + value3 + '%'}]} />}
|
||||
subLabelLineClamp={1}
|
||||
start={isFirstRow}
|
||||
end={isLastRow}
|
||||
onPress={function() {
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function keyExtractor_89266(a0, a1) { // fn#89266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:2554, offset: 0x02007444, size: 51 bytes, params: 3, frame: 11
|
||||
const type = a0.type;
|
||||
const PLACERHOLDER = env0_13.PLACERHOLDER;
|
||||
return type === PLACERHOLDER ? a1.toString() : a0.application.id;
|
||||
}
|
||||
|
||||
function CommandsExpandableList({commandData, context, beforeExecuteCommand, onPressCommand, onExecuteCommand, expanded}) { // fn#89267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:7976, offset: 0x02007477, size: 162 bytes, params: 2, frame: 20
|
||||
return ((Component) => <Component items={onExecuteCommand.useMemo(function() {
|
||||
return commandData.map(_fun89269);
|
||||
}, [beforeExecuteCommand, context, commandData, onExecuteCommand,
|
||||
onPressCommand])} expandedOverride={expanded} showsExpandCTAOverride={false} />)(importDefault(11650) /* metro dependency 11650: ExpandableList */);
|
||||
}
|
||||
|
||||
function _fun89274({context, onScroll, onSend, entrypoint}, a1) { // fn#89274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:2662, offset: 0x02007660, size: 2157 bytes, params: 3, frame: 60
|
||||
var r33;
|
||||
var r23;
|
||||
var jsxRuntimeEnv0_12Binding2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
var AnimatedPressableHighlight;
|
||||
const styles = useStyles();
|
||||
const env0_3 = styles;
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const env0_4 = width;
|
||||
const value3 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
||||
const value4 = useAppLauncherNavigation();
|
||||
const [property, env0_8] = env0_3(env0_4.useState(''), 2);
|
||||
env0_4.useImperativeHandle(a1, _fun89275);
|
||||
const value7 = (require(8448) /* metro dependency 8448: ActivitiesInTextUtils */).useIsActivitiesInTextEnabled(context.type !== 'channel' ? undefined : context.channel.id);
|
||||
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
|
||||
const useLocalSearchResults = appLauncherSearchUtilsModule.useLocalSearchResults;
|
||||
const object2 = {context: context, query: property, commandLimit: 20, applicationLimit: 10};
|
||||
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
|
||||
const VOICE = AppLauncherEntrypoint.VOICE;
|
||||
object2.searchesActivities = entrypoint === VOICE || value7;
|
||||
let TEXT = AppLauncherEntrypoint.TEXT;
|
||||
object2.searchesCommands = entrypoint === TEXT;
|
||||
TEXT = AppLauncherEntrypoint.TEXT;
|
||||
object2.searchesBots = entrypoint === TEXT;
|
||||
const {loading, commandResults, applicationResults} = Reflect.apply(useLocalSearchResults,
|
||||
appLauncherSearchUtilsModule, [object2]);
|
||||
const value10 = appLauncherSearchUtilsModule.useGlobalSearchResults({query: property, context: context,
|
||||
fetches: true, entrypoint: entrypoint});
|
||||
const fetchState = value10.fetchState;
|
||||
const applicationResults2 = value10.applicationResults;
|
||||
const fetchNextPage = value10.fetchNextPage;
|
||||
const {isCommandsExpanded, toggleCommandsExpanded} = useCommandsExpanded(property);
|
||||
const value12 = env0_4.useCallback(_fun89280, [context, entrypoint, value4, property]);
|
||||
const value13 = env0_4.useCallback(_fun89281, [context, property]);
|
||||
const value14 = env0_4.useCallback(_fun89282, [value4, context, property, entrypoint]);
|
||||
const value15 = env0_4.useMemo(_fun89283, [loading, commandResults]);
|
||||
const useTrackSearchItemsModule = require(11648) /* metro dependency 11648: useTrackSearchItems */;
|
||||
const useTrackSearchItems = useTrackSearchItemsModule.useTrackSearchItems;
|
||||
const handleViewableItemsChanged = Reflect.apply(useTrackSearchItems, useTrackSearchItemsModule,
|
||||
[getApplicationIdFromApplicationItem, getImpressionPropsFromApplicationItem,
|
||||
property]).handleViewableItemsChanged;
|
||||
const value16 = env0_4.useMemo(_fun89284, [applicationResults, applicationResults2, loading, fetchState]);
|
||||
const r21 = value15.length === 0 && value16.length === 0;
|
||||
env0_4.useEffect(_fun89289, [property, commandResults.length, value16.length, loading, fetchState]);
|
||||
const value19 = env0_4.useCallback(_fun89290, [value16.length, value14, value3]);
|
||||
const value20 = bottom + DEFAULT_CONTENT_PADDING;
|
||||
const value21 = (require(11643) /* metro dependency 11643: AppLauncherFlashList */).useAppLauncherFlashListProps();
|
||||
const value22 = env0_4.useCallback(_fun89292, [fetchNextPage, onScroll, value3]);
|
||||
const value23 = env0_4.useMemo(_fun89293, [styles.list, value20]);
|
||||
const value24 = env0_4.useMemo(_fun89294, [value20]);
|
||||
const value25 = env0_4.useMemo(_fun89295, [value3, value16.length, value15.length, width]);
|
||||
const AppLauncherFlashList = importDefault(11643) /* metro dependency 11643: AppLauncherFlashList */;
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
if (value15.length === 0) {
|
||||
r23 = null;
|
||||
} else {
|
||||
jsxRuntimeEnv0_12Binding2 = jsxRuntimeEnv0_12;
|
||||
var viewBindingProps = {style: styles.commandsHeaderContainer};
|
||||
string = intl.string;
|
||||
items2 = [<Text variant="text-md/medium" color="text-default" style={styles.sectionHeader}>{Reflect.apply(string,
|
||||
|
||||
intl, [t['0hKkS+']])}</Text>];
|
||||
if (value15.length > (require(11650) /* metro dependency 11650: ExpandableList */).COLLAPSED_LIST_ITEM_MAX) {
|
||||
AnimatedPressableHighlight = (require(8554) /* metro dependency 8554: native */).AnimatedPressableHighlight;
|
||||
var animatedPressableHighlightProps = {style: styles.commandsCTA,
|
||||
underlayColor: styles.commandsCTAUnderlayColor.color};
|
||||
string = intl.string;
|
||||
animatedPressableHighlightProps.accessibilityLabel = isCommandsExpanded ? Reflect.apply(string, intl,
|
||||
[t.nPGLFQ]) : Reflect.apply(string, intl, [t.xal319]);
|
||||
animatedPressableHighlightProps.onPress = toggleCommandsExpanded;
|
||||
string = intl.string;
|
||||
r33 = <AnimatedPressableHighlight {...animatedPressableHighlightProps}><Text color="text-brand" variant="text-md/semibold">{isCommandsExpanded ? Reflect.apply(string,
|
||||
|
||||
|
||||
intl, [t.nPGLFQ]) : Reflect.apply(string, intl, [t.xal319])}</Text></AnimatedPressableHighlight>;
|
||||
} else {
|
||||
r33 = null;
|
||||
}
|
||||
items2[1] = r33;
|
||||
r23 = <><View {...viewBindingProps}>{items2}</View><CommandsExpandableList commandData={value15} context={context} beforeExecuteCommand={value13} onPressCommand={value12} onExecuteCommand={onSend} expanded={isCommandsExpanded} /></>;
|
||||
}
|
||||
const items3 = [r23];
|
||||
items3[1] = value15.length > 0 && value16.length > 0 ? <View style={styles.divider} /> : null;
|
||||
items3[2] = value16.length === 0 ? null : <Text variant="text-md/medium" color="text-default" style={styles.sectionHeader}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PHjkRE)}</Text>;
|
||||
items3[3] = r21 ? ((Component) => <Component query={property} showsGenericMessage={entrypoint === (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.VOICE} />)(importDefault(11651) /* metro dependency 11651: EmptyState */) : null;
|
||||
return (
|
||||
<AppLauncherFlashList
|
||||
ListHeaderComponent={<>{items3}</>}
|
||||
contentContainerStyle={value23}
|
||||
scrollIndicatorInsets={value24}
|
||||
renderItem={value19}
|
||||
keyExtractor={keyExtractor_89266}
|
||||
data={value16}
|
||||
estimatedItemSize={value3}
|
||||
estimatedListSize={value25}
|
||||
keyboardDismissMode="on-drag"
|
||||
keyboardShouldPersistTaps="always"
|
||||
automaticallyAdjustsScrollIndicatorInsets={false}
|
||||
showsVerticalScrollIndicator={false}
|
||||
onViewableItemsChanged={handleViewableItemsChanged}
|
||||
preserveScrollMomentum
|
||||
onScroll={value22}
|
||||
animatedOnScroll={value21.onScroll}
|
||||
ref={value21.scrollerRef}
|
||||
simultaneousHandlers={value21.gestureRef}
|
||||
animatedProps={value21.animatedProps}
|
||||
key={property}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89268() { // fn#89268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:8122, offset: 0x02007519, size: 28 bytes, params: 1, frame: 11
|
||||
return commandData.map(_fun89269);
|
||||
}
|
||||
|
||||
function _fun89275() { // fn#89275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:2852, offset: 0x02007ecd, size: 16 bytes, params: 1, frame: 2
|
||||
return {setQuery: env0_8};
|
||||
}
|
||||
|
||||
function useCommandsExpanded(a0) { // fn#89276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:3411, offset: 0x02007edd, size: 126 bytes, params: 2, frame: 16
|
||||
var object2;
|
||||
const [property, env0_0] = env1_3(env1_4.useState(false), 2);
|
||||
env1_4.useEffect(_fun89277, [a0]);
|
||||
object2 = {isCommandsExpanded: property};
|
||||
object2.toggleCommandsExpanded = env1_4.useCallback(_fun89278, []);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89280(a0, a1) { // fn#89280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:3679, offset: 0x02007f74, size: 190 bytes, params: 3, frame: 20
|
||||
let value = environment.__proto__;
|
||||
const getSectionBinding = getSection;
|
||||
const contextBinding = context;
|
||||
const descriptor = getSectionBinding(contextBinding, a0.applicationId).descriptor;
|
||||
value = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
const handleApplicationCommandSelected = value.handleApplicationCommandSelected;
|
||||
const object2 = {};
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_HOME_SEARCH = ApplicationCommandTriggerLocations.APP_LAUNCHER_HOME_SEARCH;
|
||||
object2.location = APP_LAUNCHER_HOME_SEARCH;
|
||||
object2.context = contextBinding;
|
||||
object2.command = a0;
|
||||
object2.section = descriptor;
|
||||
object2.sectionDescriptors = [descriptor];
|
||||
object2.query = env0_7;
|
||||
object2.navigation = env0_6;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const SEARCH = AppLauncherSectionName.SEARCH;
|
||||
object2.sectionName = SEARCH;
|
||||
object2.searchResultsPosition = a1;
|
||||
object2.entrypoint = entrypoint;
|
||||
Reflect.apply(handleApplicationCommandSelected, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun89281({command, searchResultsPosition}) { // fn#89281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:4039, offset: 0x02008032, size: 194 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
const descriptor = getSection(context, command.applicationId).descriptor;
|
||||
value = require(5065) /* metro dependency 5065: ApplicationCommandUtils */;
|
||||
const trackCommandSelected = value.trackCommandSelected;
|
||||
const object2 = {command: command};
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_HOME_SEARCH = ApplicationCommandTriggerLocations.APP_LAUNCHER_HOME_SEARCH;
|
||||
object2.location = APP_LAUNCHER_HOME_SEARCH;
|
||||
object2.triggerSection = (require(5065) /* metro dependency 5065: ApplicationCommandUtils */).getCommandTriggerSection(descriptor);
|
||||
const binding = env0_7;
|
||||
object2.queryLength = binding.length;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const SEARCH = AppLauncherSectionName.SEARCH;
|
||||
object2.sectionName = SEARCH;
|
||||
object2.query = binding;
|
||||
object2.searchResultsPosition = searchResultsPosition;
|
||||
Reflect.apply(trackCommandSelected, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun89282({section, installOnDemand, searchResultsPosition}) { // fn#89282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:4420, offset: 0x020080f4, size: 170 bytes, params: 2, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(11592) /* metro dependency 11592: AppLauncherNativeUtils */;
|
||||
const handleApplicationSelected = value.handleApplicationSelected;
|
||||
const object2 = {};
|
||||
const ApplicationCommandTriggerLocations = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations;
|
||||
const APP_LAUNCHER_HOME_SEARCH = ApplicationCommandTriggerLocations.APP_LAUNCHER_HOME_SEARCH;
|
||||
object2.location = APP_LAUNCHER_HOME_SEARCH;
|
||||
object2.application = section;
|
||||
object2.navigation = env0_6;
|
||||
object2.context = context;
|
||||
const AppLauncherSectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName;
|
||||
const SEARCH = AppLauncherSectionName.SEARCH;
|
||||
object2.sectionName = SEARCH;
|
||||
object2.installOnDemand = installOnDemand;
|
||||
object2.query = env0_7;
|
||||
object2.searchResultsPosition = searchResultsPosition;
|
||||
object2.entrypoint = entrypoint;
|
||||
Reflect.apply(handleApplicationSelected, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun89283() { // fn#89283, offset: 0x0200819e, size: 25 bytes, params: 1, frame: 2
|
||||
return loading ? env1_15 : commandResults;
|
||||
}
|
||||
|
||||
function _fun89284() { // fn#89284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:4936, offset: 0x020081b7, size: 251 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
var r0;
|
||||
var items2;
|
||||
var fetchStateBinding;
|
||||
var value8;
|
||||
var value;
|
||||
const value2 = applicationResults.map(_fun89285);
|
||||
const Set = global.Set;
|
||||
const set = new Set(applicationResults.map(function(a0) {
|
||||
return a0.id;
|
||||
}));
|
||||
const r6 = applicationResults ?? [];
|
||||
const value7 = r6.filter(_fun89287).map(_fun89288);
|
||||
if (loading) {
|
||||
value = environment.__proto__;
|
||||
r0 = env1_16;
|
||||
} else {
|
||||
fetchStateBinding = fetchState;
|
||||
if (fetchStateBinding == null) {
|
||||
items2 = [];
|
||||
value = arraySpread(items2, value7, arraySpread(items2, value2, 0, r6), r6);
|
||||
value8 = environment.__proto__;
|
||||
arraySpread(items2, env1_16, value, r6);
|
||||
r0 = items2;
|
||||
} else {
|
||||
fetchStateBinding = fetchState;
|
||||
value = environment.__proto__;
|
||||
if (fetchStateBinding === FetchState.FETCHING) {
|
||||
items2 = [];
|
||||
value = arraySpread(items2, value7, arraySpread(items2, value2, 0, r6), r6);
|
||||
value8 = environment.__proto__;
|
||||
arraySpread(items2, env1_16, value, r6);
|
||||
r0 = items2;
|
||||
} else {
|
||||
items2 = [];
|
||||
arraySpread(items2, value7, arraySpread(items2, value2, 0, r6), r6);
|
||||
r0 = items2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun89289() { // fn#89289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:5323, offset: 0x02008343, size: 185 bytes, params: 1, frame: 17
|
||||
var fetchStateBinding;
|
||||
var value2;
|
||||
var intl;
|
||||
var value;
|
||||
if (env0_7.length !== 0) {
|
||||
if (!loading) {
|
||||
fetchStateBinding = fetchState;
|
||||
value2 = environment.__proto__;
|
||||
if (fetchStateBinding !== FetchState.FETCHING) {
|
||||
value = commandResults.length + env0_17.length;
|
||||
if (value > 0) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.ZGVL3g,
|
||||
{count: value});
|
||||
(require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer.announce(value,
|
||||
|
||||
|
||||
|
||||
|
||||
'polite');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89290({item, index}) { // fn#89290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:5571, offset: 0x020083fc, size: 272 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
const type = item.type;
|
||||
const value = environment.__proto__;
|
||||
const PLACERHOLDER = env1_13.PLACERHOLDER;
|
||||
if (type === PLACERHOLDER) {
|
||||
return ((Component) => <Component isFirstRow={index === 0} isLastRow={index === env0_17.length - 1} style={{height: env0_5}} />)(importDefault(11631) /* metro dependency 11631: PlaceholderAppRow */);
|
||||
}
|
||||
const application = item.application;
|
||||
const appLauncherIconSource = (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(application);
|
||||
const BaseAppRow = (require(11623) /* metro dependency 11623: AppLauncherHomeScreen */).BaseAppRow;
|
||||
return (
|
||||
<BaseAppRow
|
||||
application={application}
|
||||
iconSource={appLauncherIconSource}
|
||||
onPress={onPress_89291}
|
||||
isFirstRow={index === 0}
|
||||
isLastRow={index === env0_17.length - 1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun89292(a0) { // fn#89292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:6071, offset: 0x0200856c, size: 103 bytes, params: 2, frame: 14
|
||||
const nativeEvent = a0.nativeEvent;
|
||||
if (nativeEvent.layoutMeasurement.height + nativeEvent.contentOffset.y >= nativeEvent.contentSize.height - 3 * env0_5) {
|
||||
fetchNextPage();
|
||||
}
|
||||
if (onScroll != null) {
|
||||
onScroll(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun89293() { // fn#89293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:6210, offset: 0x020085d3, size: 37 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
const stylesBinding = styles;
|
||||
copyDataProperties(object2, stylesBinding.list, stylesBinding);
|
||||
object2['paddingBottom'] = env0_18;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun89294() { // fn#89294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:6273, offset: 0x020085f8, size: 15 bytes, params: 1, frame: 2
|
||||
return {bottom: env0_18};
|
||||
}
|
||||
|
||||
function _fun89295() { // fn#89295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:6312, offset: 0x02008607, size: 49 bytes, params: 1, frame: 5
|
||||
return {height: env0_5 * (env0_17.length + env0_16.length), width: width};
|
||||
}
|
||||
|
||||
function _fun89269(a0, a1) { // fn#89269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:8133, offset: 0x02007535, size: 60 bytes, params: 3, frame: 3
|
||||
const env0_0 = a1;
|
||||
if (a0 === env2_14) {
|
||||
return _fun89270;
|
||||
}
|
||||
const env0_1 = a0.command;
|
||||
const env0_2 = a0.application;
|
||||
return _fun89271;
|
||||
}
|
||||
|
||||
function _fun89278() { // fn#89278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:3585, offset: 0x02007f5b, size: 25 bytes, params: 1, frame: 11
|
||||
env0_0(function(a0) {
|
||||
return !a0;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun89285(a0) { // fn#89285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:4954, offset: 0x020082b2, size: 28 bytes, params: 2, frame: 2
|
||||
const LOCAL_APPLICATION = env2_13.LOCAL_APPLICATION;
|
||||
return {type: LOCAL_APPLICATION, application: a0};
|
||||
}
|
||||
|
||||
function _fun89287(a0) { // fn#89287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:5055, offset: 0x020082ce, size: 84 bytes, params: 2, frame: 13
|
||||
const type = a0.type;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const ApplicationDirectorySearchResultType = (require(11649) /* metro dependency 11649: ApplicationDirectorySearchResultType */).ApplicationDirectorySearchResultType;
|
||||
const CONNECTION = ApplicationDirectorySearchResultType.CONNECTION;
|
||||
return type !== CONNECTION && !env0_0.has(a0.data.id);
|
||||
}
|
||||
|
||||
function _fun89288({data}) { // fn#89288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:5150, offset: 0x02008322, size: 33 bytes, params: 2, frame: 2
|
||||
const GLOBAL_APPLICATION = env2_13.GLOBAL_APPLICATION;
|
||||
return {type: GLOBAL_APPLICATION, application: data};
|
||||
}
|
||||
|
||||
function onPress_89291() { // fn#89291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:5822, offset: 0x0200850c, size: 96 bytes, params: 1, frame: 14
|
||||
const binding = env1_15;
|
||||
const type = item.type;
|
||||
const GLOBAL_APPLICATION = env2_13.GLOBAL_APPLICATION;
|
||||
return binding({section: application,
|
||||
installOnDemand: type === GLOBAL_APPLICATION || item.type === env2_13.LOCAL_APPLICATION,
|
||||
searchResultsPosition: index});
|
||||
}
|
||||
|
||||
function _fun89270({isLastRow}) { // fn#89270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:8156, offset: 0x02007571, size: 55 bytes, params: 2, frame: 15
|
||||
return <PlaceholderCommandRow isFirstRow={require === 0} isLastRow={isLastRow} />;
|
||||
}
|
||||
|
||||
function _fun89271({isLastRow}) { // fn#89271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11831:8267, offset: 0x020075a8, size: 117 bytes, params: 2, frame: 17
|
||||
return (
|
||||
<CommandRow
|
||||
context={context}
|
||||
command={command}
|
||||
application={application}
|
||||
onPress={function() {
|
||||
return onPressCommand(command, require);
|
||||
}}
|
||||
isFirstRow={require === 0}
|
||||
isLastRow={isLastRow}
|
||||
beforeExecuteCommand={function() {
|
||||
return beforeExecuteCommand({command: command, searchResultsPosition: require});
|
||||
}}
|
||||
onExecuteCommand={onExecuteCommand}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/* Metro module 11648; source: modules/app_launcher/native/screens/search/useTrackSearchItems.tsx; dependencies: [31, 8774, 8742, 480, 5068, 2] */
|
||||
function _fun89330(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11834:6, offset: 0x02009656, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/search/useTrackSearchItems.tsx');
|
||||
exports.useTrackSearchItems = useTrackSearchItems;
|
||||
}
|
||||
|
||||
function useTrackSearchItems(a0, a1, a2) { // fn#89331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11834:228, offset: 0x020096c8, size: 149 bytes, params: 4, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
|
||||
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
|
||||
const entrypoint = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
|
||||
const binding = env0_2;
|
||||
const env0_4 = binding.useRef({});
|
||||
const env0_5 = binding.useRef(a2);
|
||||
const useCallback = binding.useCallback;
|
||||
return {handleViewableItemsChanged: Reflect.apply(useCallback, binding, [_fun89332, [entrypoint, a0, a1, a2]])};
|
||||
}
|
||||
|
||||
function _fun89332({viewableItems}) { // fn#89332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11834:391, offset: 0x0200975d, size: 78 bytes, params: 2, frame: 12
|
||||
var binding;
|
||||
if (env0_5.current !== importDefault) {
|
||||
binding = env0_5;
|
||||
binding.current = importDefault;
|
||||
binding = env0_4;
|
||||
binding.current = {};
|
||||
}
|
||||
viewableItems.forEach(_fun89333);
|
||||
}
|
||||
|
||||
function _fun89333(a0) { // fn#89333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11834:466, offset: 0x020097ab, size: 271 bytes, params: 2, frame: 21
|
||||
var value;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var applicationId;
|
||||
var commandId;
|
||||
var value3;
|
||||
var moduleValue2;
|
||||
var trackImpression;
|
||||
var object3;
|
||||
var object4;
|
||||
if (a0.isViewable) {
|
||||
value = environment.__proto__;
|
||||
value2 = env1_0(a0.item);
|
||||
if (value2 != null) {
|
||||
if (env1_4.current[value2] == null) {
|
||||
env1_4.current[value2] = true;
|
||||
moduleValue = require(a0.item);
|
||||
applicationId = moduleValue.applicationId;
|
||||
commandId = moduleValue.commandId;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
moduleValue2 = require(8742) /* metro dependency 8742: useTrackImpression */;
|
||||
trackImpression = moduleValue2.trackImpression;
|
||||
object3 = {};
|
||||
object3.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
|
||||
object3.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_SEARCH_RESULTS_ITEM;
|
||||
object4 = {};
|
||||
object4.location = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations.APP_LAUNCHER_HOME_SEARCH;
|
||||
object4.application_id = applicationId;
|
||||
object4.command_id = commandId;
|
||||
object4.search_results_position = a0.index;
|
||||
object4.query = importDefault;
|
||||
object4.source = entrypoint;
|
||||
object3.properties = object4;
|
||||
Reflect.apply(trackImpression, moduleValue2, [object3, false]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user