This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,100 +1,129 @@
/* Metro module 15146; source: modules/app_launcher/native/AppLauncherActionSheet.tsx; dependencies: [57, 31, 1483, 33, 4017, 8774, 8048, 8775, 6275, 11622, 11732, 6513, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AppLauncherNavigator from './AppLauncherNavigator.tsx'; /* Metro dependency 11622 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AppLauncherNativeConstantsModule from './AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as AppLauncherTypesModule from '../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
import * as AppLauncherContextModule from './AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as UseDefaultAppLauncherWidthModule from './hooks/useDefaultAppLauncherWidth.tsx'; /* Metro dependency 8775 */
import * as GetAppDMApplicationModule from '../../app_dms/getAppDMApplication.tsx'; /* Metro dependency 11732 */
function _fun115506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:6, offset: 0x02463094, size: 191 bytes, params: 8, frame: 19
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 */;
const env0_5 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherRouteName;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherActionSheet.tsx');
exports.useAppLauncherActionSheet = useAppLauncherActionSheet;
}
function AppLauncherActionSheet({chatInputRef, channel}) { // fn#115507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:161, offset: 0x02463153, size: 476 bytes, params: 2, frame: 29
let binding = env0_4;
let useRef = binding.useRef;
const value2 = Reflect.apply(useRef, binding, [null]);
const value4 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(-1);
const value5 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const value6 = env0_4.useRef(undefined);
binding = env0_4;
useRef = binding.useRef;
const AppLauncherKeyboardCloseReason = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherKeyboardCloseReason;
const DISMISSED = AppLauncherKeyboardCloseReason.DISMISSED;
const value7 = Reflect.apply(useRef, binding, [DISMISSED]);
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const TEXT = AppLauncherEntrypoint.TEXT;
const value8 = (require(8775) /* metro dependency 8775: useDefaultAppLauncherWidth */).useDefaultAppLauncherWidth(TEXT);
const value9 = env0_4.useMemo(function() {
return {channel: channel, type: 'channel'};
}, [channel]);
const value10 = env0_4.useRef({getApplicationCommandManager: getApplicationCommandManager,
closeCustomKeyboard: closeCustomKeyboard_115510, openCustomKeyboard: openCustomKeyboard_115511});
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const AppLauncherNavigator = importDefault(11622) /* metro dependency 11622: AppLauncherNavigator */;
const object = {};
const HOME = AppLauncherRouteName.HOME;
object.initialRouteName = HOME;
let value = require(11732) /* metro dependency 11732: getAppDMApplication */;
value = value.getAppDMApplication(channel);
object.initialSearchQuery = value?.name;
return (
<BottomSheet
ref={value2}
animatedIndex={value4}
scrollable
startExpanded
>
<AppLauncherNavigator
bottomSheetIndex={value4}
bottomSheetPosition={value5}
bottomSheetExpandReasonRef={value6}
context={value9}
chatInputRef={value10}
entrypoint={TEXT}
keyboardCloseReasonRef={value7}
width={value8}
overrideParams={object}
/>
</BottomSheet>
);
}
function useAppLauncherActionSheet(a0) { // fn#115512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:1261, offset: 0x02463389, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
let binding = env0_4;
const [property, property2] = env0_3(binding.useState(false), 2);
binding = env0_4;
const useMemo = binding.useMemo;
return {appLauncherActionSheet: Reflect.apply(useMemo, binding, [_fun115513, [property, a0]]),
setAppLauncherActionSheetEnabled: property2};
}
function AppLauncherActionSheetGetApplicationCommandManager() { // fn#115509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:551, owner: AppLauncherActionSheet.getApplicationCommandManager, offset: 0x02463346, size: 35 bytes, params: 1, frame: 10
return chatInputRef.current?.getApplicationCommandManager();
}
function AppLauncherActionSheetOpenCustomKeyboard() { // fn#115511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:723, owner: AppLauncherActionSheet.openCustomKeyboard, offset: 0x02463369, size: 32 bytes, params: 1, frame: 9
const current = env0_2.current;
if (current != null) {
current.expandActionSheet();
}
}
function _fun115513() { // fn#115513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:1384, offset: 0x024633fb, size: 144 bytes, params: 1, frame: 19
if (env0_1) {
const Provider = (importDefault(6513) /* metro dependency 6513: ActionSheetContext */).Provider;
function AppLauncherActionSheet({chatInputRef, channel}) { // fn#115507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:161, offset: 0x02463153, size: 476 bytes, params: 2, frame: 29
let binding = ReactModule;
let useRef = binding.useRef;
const value2 = Reflect.apply(useRef, binding, [null]);
const value4 = (ReanimatedRexportModule).useSharedValue(-1);
const value5 = (ReanimatedRexportModule).useSharedValue(0);
const value6 = ReactModule.useRef(undefined);
binding = ReactModule;
useRef = binding.useRef;
const AppLauncherKeyboardCloseReason = (AppLauncherContextModule).AppLauncherKeyboardCloseReason;
const DISMISSED = AppLauncherKeyboardCloseReason.DISMISSED;
const value7 = Reflect.apply(useRef, binding, [DISMISSED]);
const AppLauncherEntrypoint = (AppLauncherTypesModule).AppLauncherEntrypoint;
const TEXT = AppLauncherEntrypoint.TEXT;
const value8 = (UseDefaultAppLauncherWidthModule).useDefaultAppLauncherWidth(TEXT);
const value9 = ReactModule.useMemo(function() {
return {channel: channel, type: 'channel'};
}, [channel]);
const value10 = ReactModule.useRef({getApplicationCommandManager: getApplicationCommandManager_115509,
closeCustomKeyboard: closeCustomKeyboard_115510, openCustomKeyboard: openCustomKeyboard_115511});
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const object2 = {};
const HOME = AppLauncherRouteName.HOME;
object2.initialRouteName = HOME;
let value = GetAppDMApplicationModule;
value = value.getAppDMApplication(channel);
object2.initialSearchQuery = value?.name;
return (
<Provider
value={{transitionState: 'visible', close: function() {
}, onLeave: onLeave, registerDismissHandler: registerDismissHandler}}
<BottomSheet
ref={value2}
animatedIndex={value4}
scrollable
startExpanded
>
<AppLauncherActionSheet {...env0_0} />
</Provider>
<AppLauncherNavigator
bottomSheetIndex={value4}
bottomSheetPosition={value5}
bottomSheetExpandReasonRef={value6}
context={value9}
chatInputRef={value10}
entrypoint={TEXT}
keyboardCloseReasonRef={value7}
width={value8}
overrideParams={object2}
/>
</BottomSheet>
);
} else {
return null;
function AppLauncherActionSheetGetApplicationCommandManager() { // fn#115509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:551, owner: AppLauncherActionSheet.getApplicationCommandManager, offset: 0x02463346, size: 35 bytes, params: 1, frame: 10
return chatInputRef.current?.getApplicationCommandManager();
}
function AppLauncherActionSheetCloseCustomKeyboard() { // fn#115510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:650, owner: AppLauncherActionSheet.closeCustomKeyboard, offset: 0x01e43b04, size: 32 bytes, params: 1, frame: 9
const current = env0_2.current;
if (current != null) {
current.closeActionSheet();
}
}
function AppLauncherActionSheetOpenCustomKeyboard() { // fn#115511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:723, owner: AppLauncherActionSheet.openCustomKeyboard, offset: 0x02463369, size: 32 bytes, params: 1, frame: 9
const current = env0_2.current;
if (current != null) {
current.expandActionSheet();
}
}
}
function useAppLauncherActionSheet(a0) { // fn#115512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:1261, offset: 0x02463389, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
let binding = ReactModule;
const [property, property2] = Module00057(binding.useState(false), 2);
binding = ReactModule;
const useMemo = binding.useMemo;
return {appLauncherActionSheet: Reflect.apply(useMemo, binding, [_fun115513, [property, a0]]),
setAppLauncherActionSheetEnabled: property2};
function _fun115513() { // fn#115513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:1384, offset: 0x024633fb, size: 144 bytes, params: 1, frame: 19
if (env0_1) {
const Provider = (importDefault(6513) /* metro dependency 6513: ActionSheetContext */).Provider;
return (
<Provider
value={{
transitionState: 'visible',
close: function() {
},
onLeave: onLeave_115515,
registerDismissHandler: registerDismissHandler,
}}
>
<AppLauncherActionSheet {...env0_0} />
</Provider>
);
} else {
return null;
}
function onLeave_115515() { // fn#115515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15343:1465, offset: 0x010d036b, size: 18 bytes, params: 1, frame: 11
env1_2(false);
}
}
}
}
function registerDismissHandler() { // fn#115516, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
}
global.__d(_fun115506, 15146, [57, 31, 1483, 33, 4017, 8774, 8048, 8775, 6275, 11622, 11732, 6513,
2]) /* metro module 15146, dependencies: [57, 31, 1483, 33, 4017, 8774, 8048, 8775, 6275, 11622, 11732, 6513, 2] */;
@@ -1,28 +1,39 @@
/* Metro module 11766; source: modules/app_launcher/native/AppLauncherButtonIcon.tsx; dependencies: [31, 27, 33, 4022, 1583, 11761, 8840, 2] */
import UseKeyboardType from '../../keyboard/native/useKeyboardType.tsx'; /* Metro dependency 4022 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as KeyboardTypesModule from '../../keyboard/native/KeyboardTypes.tsx'; /* Metro dependency 1583 */
function _fun90112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11952:6, offset: 0x0202c287, size: 159 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(27) /* metro dependency 27 */).View;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherButtonIcon.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherButtonIcon.tsx');
exports.AppLauncherButtonIcon = AppLauncherButtonIcon;
function AppLauncherButtonIcon(a0) { // fn#90113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11952:244, offset: 0x0202c326, size: 279 bytes, params: 2, frame: 22
const style = a0.style;
const value = Object.create(null);
value.style = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const value4 = (UseKeyboardType)();
const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes;
const APP_LAUNCHER = KeyboardTypes.APP_LAUNCHER;
return (
<View style={{overflow: 'hidden'}}>
{
value4 === APP_LAUNCHER
? ((PlusLargeIcon) => <PlusLargeIcon {...value2} {...{['style']: [style,
{transform: [{rotate: '45deg'}]}]}} />)((require(11761) /* metro dependency 11761: PlusLargeIcon */).PlusLargeIcon)
: ((AppsIcon) => <AppsIcon style={style} {...value2} />)((require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon)
}
</View>
);
}
}
function AppLauncherButtonIcon(a0) { // fn#90113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11952:244, offset: 0x0202c326, size: 279 bytes, params: 2, frame: 22
const style = a0.style;
const value = Object.create(null);
value.style = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const value4 = (importDefault(4022) /* metro dependency 4022: useKeyboardType */)();
const KeyboardTypes = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes;
const APP_LAUNCHER = KeyboardTypes.APP_LAUNCHER;
return (
<View style={{overflow: 'hidden'}}>
{value4 === APP_LAUNCHER ? ((PlusLargeIcon) => <PlusLargeIcon {...value2} {...{['style']: [style,
{transform: [{rotate: '45deg'}]}]}} />)((require(11761) /* metro dependency 11761: PlusLargeIcon */).PlusLargeIcon) : ((AppsIcon) => <AppsIcon style={style} {...value2} />)((require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon)}
</View>
);
}
global.__d(_fun90112, 11766, [31, 27, 33, 4022, 1583, 11761, 8840,
2]) /* metro module 11766, dependencies: [31, 27, 33, 4022, 1583, 11761, 8840, 2] */;
@@ -1,81 +1,103 @@
/* Metro module 8774; source: modules/app_launcher/native/AppLauncherContext.tsx; dependencies: [31, 4017, 8048, 8775, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as AppLauncherTypesModule from '../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
function _fun68618(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:6, offset: 0x01c56405, size: 334 bytes, params: 8, frame: 25
var object3;
const env0_0 = require;
const closure = useAppLauncherChatInputRefDummy;
const useAppLauncherChatInputRefDummy2 = useAppLauncherChatInputRefDummy;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
object3 = {DISMISSED: 0};
object3[0] = 'DISMISSED';
object3.COMMAND = 1;
object3[1] = 'COMMAND';
object3.ACTIVITY = 2;
object3[2] = 'ACTIVITY';
object3.BACK = 3;
object3[3] = 'BACK';
object3.OAUTH_MODAL = 4;
object3[4] = 'OAUTH_MODAL';
const object4 = {GESTURE: 0};
object4[0] = 'GESTURE';
object4.KEYBOARD = 1;
object4[1] = 'KEYBOARD';
object4.APP_VIEW = 2;
object4[2] = 'APP_VIEW';
object4.COMMAND_VIEW = 3;
object4[3] = 'COMMAND_VIEW';
object4.OTHER = 4;
object4[4] = 'OTHER';
let value = ReactModule;
object = {DISMISSED: 0};
object[0] = 'DISMISSED';
object.COMMAND = 1;
object[1] = 'COMMAND';
object.ACTIVITY = 2;
object[2] = 'ACTIVITY';
object.BACK = 3;
object[3] = 'BACK';
object.OAUTH_MODAL = 4;
object[4] = 'OAUTH_MODAL';
const object2 = {GESTURE: 0};
object2[0] = 'GESTURE';
object2.KEYBOARD = 1;
object2[1] = 'KEYBOARD';
object2.APP_VIEW = 2;
object2[2] = 'APP_VIEW';
object2.COMMAND_VIEW = 3;
object2[3] = 'COMMAND_VIEW';
object2.OTHER = 4;
object2[4] = 'OTHER';
value = value.createContext(undefined);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherContext.tsx');
exports.AppLauncherKeyboardCloseReason = object3;
exports.AppLauncherBottomSheetExpandReason = object4;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherContext.tsx');
exports.AppLauncherKeyboardCloseReason = object;
exports.AppLauncherBottomSheetExpandReason = object2;
exports.AppLauncherContext = value;
exports.useAppLauncherChatInputRefDummy = closure;
exports.useAppLauncherChatInputRefDummy = useAppLauncherChatInputRefDummy2;
exports.useRequiredAppLauncherContext = useRequiredAppLauncherContext;
exports.useAppLauncherContext = useAppLauncherContext;
}
function useAppLauncherChatInputRefDummy({noop}) { // fn#68619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:456, offset: 0x01c56553, size: 72 bytes, params: 2, frame: 13
return env0_2.useRef({getApplicationCommandManager: getApplicationCommandManager,
openCustomKeyboard: openCustomKeyboard, closeCustomKeyboard: closeCustomKeyboard});
function getApplicationCommandManager() { // fn#68620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:553, owner: useAppLauncherChatInputRefDummy.getApplicationCommandManager, offset: 0x01c5659b, size: 50 bytes, params: 1, frame: 11
if (noop) {
return undefined;
}
const Error = global.Error;
throw new Error('use useRequiredAppLauncherContext and provide a ChatInputRef');
}
function useAppLauncherChatInputRefDummy({noop}) { // fn#68619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:456, offset: 0x01c56553, size: 72 bytes, params: 2, frame: 13
return env0_2.useRef({getApplicationCommandManager: getApplicationCommandManager,
openCustomKeyboard: openCustomKeyboard_68621, closeCustomKeyboard: closeCustomKeyboard_68622});
}
function openCustomKeyboard() { // fn#68621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:664, owner: useAppLauncherChatInputRefDummy.openCustomKeyboard, offset: 0x01c5659b, size: 50 bytes, params: 1, frame: 11
if (noop) {
return undefined;
}
const Error = global.Error;
throw new Error('use useRequiredAppLauncherContext and provide a ChatInputRef');
}
function closeCustomKeyboard() { // fn#68622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:776, owner: useAppLauncherChatInputRefDummy.closeCustomKeyboard, offset: 0x01c5659b, size: 50 bytes, params: 1, frame: 11
if (noop) {
return undefined;
}
const Error = global.Error;
throw new Error('use useRequiredAppLauncherContext and provide a ChatInputRef');
}
function useRequiredAppLauncherContext() { // fn#68623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:1149, offset: 0x01c565cd, size: 66 bytes, params: 1, frame: 11
const value = env0_2.useContext(env0_4);
if (value == null) {
throw new global.Error('AppLauncherContext not found, must be used within AppLauncherNavigator');
}
return value;
}
function useAppLauncherContext() { // fn#68624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:1347, offset: 0x01c5660f, size: 273 bytes, params: 1, frame: 19
const binding = env0_2;
const useRef = binding.useRef;
const DISMISSED = env0_3.DISMISSED;
const env0_0 = Reflect.apply(useRef, binding, [DISMISSED]);
const env0_1 = env0_2.useRef(undefined);
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(-1);
var env0_2 = value2;
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const TEXT = AppLauncherEntrypoint.TEXT;
return env0_2.useContext(TEXT) ?? env0_2.useMemo(_fun68625,
[(require(8775) /* metro dependency 8775: useDefaultAppLauncherWidth */).useDefaultAppLauncherWidth(TEXT), TEXT,
useAppLauncherChatInputRefDummy({noop: false}), value2, value3]);
}
function useRequiredAppLauncherContext() { // fn#68623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:1149, offset: 0x01c565cd, size: 66 bytes, params: 1, frame: 11
const value = env0_2.useContext(env0_4);
if (value == null) {
throw new global.Error('AppLauncherContext not found, must be used within AppLauncherNavigator');
}
return value;
}
function useAppLauncherChatInputRefDummyGetApplicationCommandManager() { // fn#68620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:553, owner: useAppLauncherChatInputRefDummy.getApplicationCommandManager, offset: 0x01c5659b, size: 50 bytes, params: 1, frame: 11
if (noop) {
return undefined;
function useAppLauncherContext() { // fn#68624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:1347, offset: 0x01c5660f, size: 273 bytes, params: 1, frame: 19
const binding = env0_2;
const useRef = binding.useRef;
const DISMISSED = env0_3.DISMISSED;
const env0_0 = Reflect.apply(useRef, binding, [DISMISSED]);
const env0_1 = env0_2.useRef(undefined);
const value2 = (ReanimatedRexportModule).useSharedValue(-1);
var env0_2 = value2;
const value3 = (ReanimatedRexportModule).useSharedValue(0);
const AppLauncherEntrypoint = (AppLauncherTypesModule).AppLauncherEntrypoint;
const TEXT = AppLauncherEntrypoint.TEXT;
return env0_2.useContext(TEXT) ?? env0_2.useMemo(_fun68625,
[(require(8775) /* metro dependency 8775: useDefaultAppLauncherWidth */).useDefaultAppLauncherWidth(TEXT), TEXT,
useAppLauncherChatInputRefDummy({noop: false}), value2, value3]);
function _fun68625() { // fn#68625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:1619, offset: 0x01c56720, size: 76 bytes, params: 1, frame: 3
return {keyboardCloseReasonRef: env0_0, bottomSheetIndex: env0_2, bottomSheetPosition: env0_3,
bottomSheetExpandReasonRef: env0_1, chatInputRef: env0_6, width: env0_5, entrypoint: TEXT,
onActivityItemSelected: undefined};
}
}
const Error = global.Error;
throw new Error('use useRequiredAppLauncherContext and provide a ChatInputRef');
}
function _fun68625() { // fn#68625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8959:1619, offset: 0x01c56720, size: 76 bytes, params: 1, frame: 3
return {keyboardCloseReasonRef: env0_0, bottomSheetIndex: env0_2, bottomSheetPosition: env0_3,
bottomSheetExpandReasonRef: env0_1, chatInputRef: env0_6, width: env0_5, entrypoint: TEXT,
onActivityItemSelected: undefined};
}
global.__d(_fun68618, 8774, [31, 4017, 8048, 8775,
2]) /* metro module 8774, dependencies: [31, 4017, 8048, 8775, 2] */;
@@ -1,254 +1,267 @@
/* Metro module 11575; source: modules/app_launcher/native/AppLauncherKeyboard.tsx; dependencies: [31, 27, 661, 1376, 11576, 33, 4501, 697, 8775, 8774, 11577, 4559, 11578, 4017, 11587, 4508, 6277, 11588, 477, 4863, 1581, 1482, 1583, 4570, 11620, 8048, 11622, 2] */
import UseKeyboardActionSheetHeight from '../../action_sheet/native/useKeyboardActionSheetHeight.tsx'; /* Metro dependency 11577 */
import UseAppLauncherOnboardingContent from './onboarding/hooks/useAppLauncherOnboardingContent.tsx'; /* Metro dependency 11578 */
import CompleteAppLauncherOnboarding from './onboarding/utils/completeAppLauncherOnboarding.tsx'; /* Metro dependency 11587 */
import PortalKeyboardBottomSheet from '../../keyboard/native/PortalKeyboardBottomSheet.tsx'; /* Metro dependency 11620 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as DismissibleContentConstantsModule from '../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as MetaQuestUtilsAndroidModule from '../../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as UseIsScreenReaderEnabledNativeModule from '../../a11y/native/useIsScreenReaderEnabled.native.tsx'; /* Metro dependency 4559 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as AppLauncherContextModule from './AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as UseDefaultAppLauncherWidthModule from './hooks/useDefaultAppLauncherWidth.tsx'; /* Metro dependency 8775 */
import * as PortalKeyboardConstantsModule from '../../keyboard/native/PortalKeyboardConstants.tsx'; /* Metro dependency 11576 */
function _fun88634(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:6, offset: 0x01feca61, size: 579 bytes, params: 8, frame: 24
var object5;
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 env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
const env0_7 = (require(11576) /* metro dependency 11576: PortalKeyboardConstants */).KEYBOARD_ANIMATION_CONFIG;
const value2 = require(33) /* metro dependency 33 */;
const env0_8 = value2.jsx;
const env0_9 = value2.Fragment;
const env0_10 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object5 = {};
const object6 = {};
object6.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object6.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object5.onboardingRoundingView = object6;
const object7 = {'borderWidth': 2, 'borderBottomWidth': 0, 'borderColor': null, 'borderBottomColor': 'transparent'};
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {};
object2.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.onboardingRoundingView = object2;
const object3 = {'borderWidth': 2, 'borderBottomWidth': 0, 'borderColor': null, 'borderBottomColor': 'transparent'};
let BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object7.borderColor = BACKGROUND_BRAND;
object7.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object7.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object5.onboardingHeader = object7;
const object8 = {borderWidth: 2};
object3.borderColor = BACKGROUND_BRAND;
object3.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.onboardingHeader = object3;
const object4 = {borderWidth: 2};
BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object8.borderColor = BACKGROUND_BRAND;
object8.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object8.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object5.onboardingNavigatorContent = object8;
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object5]);
object5 = {code: 'function AppLauncherKeyboardTsx1(){const{bottomSheetIndex}=this.__closure;return bottomSheetIndex.get();}'};
object5 = {code: 'function AppLauncherKeyboardTsx2(i,prev){const{runOnJS,handleOnboardingParamChange,showOnboarding}=this.__closure;if(i===prev)return;runOnJS(handleOnboardingParamChange)(i,showOnboarding);}'};
object4.borderColor = BACKGROUND_BRAND;
object4.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object4.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.onboardingNavigatorContent = object4;
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function AppLauncherKeyboardTsx1(){const{bottomSheetIndex}=this.__closure;return bottomSheetIndex.get();}'};
object = {code: 'function AppLauncherKeyboardTsx2(i,prev){const{runOnJS,handleOnboardingParamChange,showOnboarding}=this.__closure;if(i===prev)return;runOnJS(handleOnboardingParamChange)(i,showOnboarding);}'};
value = value.memo(AppLauncherKeyboard);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherKeyboard.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherKeyboard.tsx');
exports.default = value;
exports.setAppLauncherA11yFocusReturnRef = function(a0) {
env0_12 = a0;
};
}
function AppLauncherKeyboard({context, chatInputRef, onClose, transitionState, entrypoint}) { // fn#88635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1101, offset: 0x01fecca4, size: 1139 bytes, params: 2, frame: 41
const env0_3 = transitionState;
const value2 = (require(8775) /* metro dependency 8775: useDefaultAppLauncherWidth */).useDefaultAppLauncherWidth(entrypoint);
const binding = env0_3;
let useRef = binding.useRef;
const AppLauncherKeyboardCloseReason = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherKeyboardCloseReason;
const DISMISSED = AppLauncherKeyboardCloseReason.DISMISSED;
const value3 = Reflect.apply(useRef, binding, [DISMISSED]);
const value4 = binding.useRef(undefined);
const styles = useStyles();
const {maximum, minimum} = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)();
useRef = binding.useRef;
const Date = global.Date;
const env0_7 = Reflect.apply(useRef, binding, [Date.now()]);
const env0_8 = binding.useRef(false);
const value6 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
const visibleContent = (importDefault(11578) /* metro dependency 11578: useAppLauncherOnboardingContent */)({channelId: context.channel.id}).visibleContent;
const value7 = visibleContent != null;
const value8 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(-1);
const value9 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const value10 = binding.useRef(null);
const env0_13 = value10;
const value11 = binding.useCallback(_fun88636, [value10]);
let closure = _fun88637;
const value12 = binding.useCallback(closure, []);
const env0_14 = value12;
binding.useEffect(_fun88638, [value7, value8, value12]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
closure = AppLauncherKeyboardO;
closure.__closure = {bottomSheetIndex: value8};
closure.__workletHash = 15587451723262;
closure.__initData = env0_13;
const closure2 = AppLauncherKeyboard_;
closure2.__closure = {runOnJS: reanimatedRexportModule.runOnJS, handleOnboardingParamChange: value12,
showOnboarding: value7};
closure2.__workletHash = 14003176039781;
closure2.__initData = env0_14;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
binding.useLayoutEffect(function() {
if (transitionState === require(dependencyMap[15]).TransitionStates.YEETED) {
importDefault(dependencyMap[14])(ContentDismissActionType.USER_DISMISS);
function AppLauncherKeyboard({context, chatInputRef, onClose, transitionState, entrypoint}) { // fn#88635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1101, offset: 0x01fecca4, size: 1139 bytes, params: 2, frame: 41
const transitionState2 = transitionState;
const value2 = (UseDefaultAppLauncherWidthModule).useDefaultAppLauncherWidth(entrypoint);
const binding = transitionState2;
let useRef = binding.useRef;
const AppLauncherKeyboardCloseReason = (AppLauncherContextModule).AppLauncherKeyboardCloseReason;
const DISMISSED = AppLauncherKeyboardCloseReason.DISMISSED;
const value3 = Reflect.apply(useRef, binding, [DISMISSED]);
const value4 = binding.useRef(undefined);
const styles = useStyles();
const {maximum, minimum} = (UseKeyboardActionSheetHeight)();
useRef = binding.useRef;
const Date = global.Date;
const env0_7 = Reflect.apply(useRef, binding, [Date.now()]);
const env0_8 = binding.useRef(false);
const value6 = (UseIsScreenReaderEnabledNativeModule).useIsScreenReaderEnabled();
const visibleContent = (UseAppLauncherOnboardingContent)({channelId: context.channel.id}).visibleContent;
const value7 = visibleContent != null;
const value8 = (ReanimatedRexportModule).useSharedValue(-1);
const value9 = (ReanimatedRexportModule).useSharedValue(0);
const value10 = binding.useRef(null);
const env0_13 = value10;
const value11 = binding.useCallback(_fun88636, [value10]);
let closure = _fun88637;
const value12 = binding.useCallback(closure, []);
const env0_14 = value12;
binding.useEffect(_fun88638, [value7, value8, value12]);
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = AppLauncherKeyboardO;
closure.__closure = {bottomSheetIndex: value8};
closure.__workletHash = 15587451723262;
closure.__initData = env0_13;
const AppLauncherKeyboard_2 = AppLauncherKeyboard_;
AppLauncherKeyboard_2.__closure = {runOnJS: ReanimatedRexportModule.runOnJS, handleOnboardingParamChange: value12,
showOnboarding: value7};
AppLauncherKeyboard_2.__workletHash = 14003176039781;
AppLauncherKeyboard_2.__initData = env0_14;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, AppLauncherKeyboard_2]);
binding.useLayoutEffect(function() {
if (transitionState === require(dependencyMap[15]).TransitionStates.YEETED) {
importDefault(dependencyMap[14])(ContentDismissActionType.USER_DISMISS);
}
}, [transitionState]);
const value13 = binding.useCallback(_fun88642, [visibleContent, context, minimum, value7]);
const value14 = binding.useCallback(_fun88643, [value4]);
const value15 = binding.useCallback(_fun88644, [chatInputRef, value6, value3, onClose]);
const defaultImport2Props = {ref: value10, animationConfigs: KEYBOARD_ANIMATION_CONFIG, animatedIndex: value8,
animatedPosition: value9, chatInputRef: chatInputRef,
forceMaxHeight: value6 || (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest(),
enablePanDownToClose: (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest(),
onAnimate: value14, onClose: value15, transitionState: transitionState, backdropComponent: value13,
disableHeaderRoundingAnimation: value7 || entrypoint === (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.VOICE,
roundingViewStyle: value7 && styles.onboardingRoundingView, headerStyle: value7 && styles.onboardingHeader,
isAppsKeyboard: true};
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const VOICE = AppLauncherEntrypoint.VOICE;
defaultImport2Props.rendersHandle = entrypoint !== VOICE;
defaultImport2Props.width = value2;
return (
<PortalKeyboardBottomSheet {...defaultImport2Props}>
<View style={{position: 'relative', height: maximum}}>
{((Component) => <Component bottomSheetExpandReasonRef={value4} bottomSheetIndex={value8} bottomSheetPosition={value9} context={context} chatInputRef={chatInputRef} contentStyle={value7 && styles.onboardingNavigatorContent} entrypoint={entrypoint} expandBottomSheet={value11} keyboardCloseReasonRef={value3} width={value2} />)(importDefault(11622) /* metro dependency 11622: AppLauncherNavigator */)}
</View>
</PortalKeyboardBottomSheet>
);
function _fun88636() { // fn#88636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1603, offset: 0x01fed117, size: 51 bytes, params: 1, frame: 13
var r1;
var r2;
var current;
const value2 = env0_13 == null;
const value3 = undefined;
if (value2) {
r1 = value2;
r2 = value3;
} else {
current = env0_13.current;
r1 = current == null;
r2 = current;
}
if (!r1) {
r2.expandActionSheet();
}
return value3;
}
}, [transitionState]);
const value13 = binding.useCallback(_fun88642, [visibleContent, context, minimum, value7]);
const value14 = binding.useCallback(_fun88643, [value4]);
const value15 = binding.useCallback(_fun88644, [chatInputRef, value6, value3, onClose]);
const PortalKeyboardBottomSheet = importDefault(11620) /* metro dependency 11620: PortalKeyboardBottomSheet */;
const defaultImport2Props = {ref: value10, animationConfigs: KEYBOARD_ANIMATION_CONFIG, animatedIndex: value8,
animatedPosition: value9, chatInputRef: chatInputRef,
forceMaxHeight: value6 || (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest(),
enablePanDownToClose: (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest(),
onAnimate: value14, onClose: value15, transitionState: transitionState, backdropComponent: value13,
disableHeaderRoundingAnimation: value7 || entrypoint === (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.VOICE,
roundingViewStyle: value7 && styles.onboardingRoundingView, headerStyle: value7 && styles.onboardingHeader,
isAppsKeyboard: true};
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const VOICE = AppLauncherEntrypoint.VOICE;
defaultImport2Props.rendersHandle = entrypoint !== VOICE;
defaultImport2Props.width = value2;
return (
<PortalKeyboardBottomSheet {...defaultImport2Props}>
<View style={{position: 'relative', height: maximum}}>
{((Component) => <Component bottomSheetExpandReasonRef={value4} bottomSheetIndex={value8} bottomSheetPosition={value9} context={context} chatInputRef={chatInputRef} contentStyle={value7 && styles.onboardingNavigatorContent} entrypoint={entrypoint} expandBottomSheet={value11} keyboardCloseReasonRef={value3} width={value2} />)(importDefault(11622) /* metro dependency 11622: AppLauncherNavigator */)}
</View>
</PortalKeyboardBottomSheet>
);
}
function _fun88636() { // fn#88636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1603, offset: 0x01fed117, size: 51 bytes, params: 1, frame: 13
var r1;
var r2;
var current;
const value2 = env0_13 == null;
const value3 = undefined;
if (value2) {
r1 = value2;
r2 = value3;
} else {
current = env0_13.current;
r1 = current == null;
r2 = current;
}
if (!r1) {
r2.expandActionSheet();
}
return value3;
}
function _fun88637(a0, a1) { // fn#88637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1690, offset: 0x01fed14a, size: 63 bytes, params: 3, frame: 12
let value = a1;
if (value && a0 === 1) {
value = environment.__proto__;
(importDefault(11587) /* metro dependency 11587: completeAppLauncherOnboarding */)(ContentDismissActionType.TAKE_ACTION);
}
}
function _fun88638() { // fn#88638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1752, offset: 0x01fed189, size: 34 bytes, params: 1, frame: 13
env0_14(env0_12.get(), result);
}
function AppLauncherKeyboard_(a0, a1) { // fn#88640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1910, owner: AppLauncherKeyboard._, offset: 0x01fed1ab, size: 66 bytes, params: 3, frame: 15
var value;
if (a0 !== a1) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value = value.runOnJS(env0_14);
value(a0, result);
}
}
function _fun88642(a0) { // fn#88642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:2207, offset: 0x01fed242, size: 199 bytes, params: 2, frame: 22
var r5;
var AppLauncherOnboardingLayer;
let value = environment.__proto__;
const jsxRuntimeEnv1_9Binding = jsxRuntimeEnv1_9;
const BottomSheetBackdrop = (require(6277) /* metro dependency 6277 */).BottomSheetBackdrop;
const bottomSheetBackdrop = <BottomSheetBackdrop {...a0} {...{['pressBehavior']: 'collapse'}} />;
const resultBinding = result;
if (resultBinding) {
AppLauncherOnboardingLayer = importDefault(11588) /* metro dependency 11588: AppLauncherOnboardingLayer */;
var defaultImportProps = {context: context, visibleContent: visibleContent};
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
defaultImportProps.bottomOffset = value ? 0 : minimum;
value = <AppLauncherOnboardingLayer {...defaultImportProps} />;
r5 = value;
} else {
r5 = resultBinding;
}
return (
<>
{bottomSheetBackdrop}
{r5}
</>
);
}
function _fun88643(a0, a1, a2) { // fn#88643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:2404, offset: 0x01fed309, size: 316 bytes, params: 4, frame: 15
var r5;
var value;
const ANIMATION_SOURCE = (require(6277) /* metro dependency 6277 */).ANIMATION_SOURCE;
const AppLauncherBottomSheetExpandReason = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherBottomSheetExpandReason;
var moduleValue;
if (a0 !== 1) {
if (a1 === 1) {
value = environment.__proto__;
r5 = a2 === ANIMATION_SOURCE.KEYBOARD ? AppLauncherBottomSheetExpandReason.KEYBOARD : a2 === ANIMATION_SOURCE.GESTURE ? AppLauncherBottomSheetExpandReason.GESTURE : a2 !== ANIMATION_SOURCE.USER ? AppLauncherBottomSheetExpandReason.OTHER : env0_5.current;
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_EXPANDED, {reason: r5});
env0_5.current = undefined;
function _fun88637(a0, a1) { // fn#88637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1690, offset: 0x01fed14a, size: 63 bytes, params: 3, frame: 12
let value = a1;
if (value && a0 === 1) {
value = environment.__proto__;
(importDefault(11587) /* metro dependency 11587: completeAppLauncherOnboarding */)(ContentDismissActionType.TAKE_ACTION);
}
}
function _fun88638() { // fn#88638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1752, offset: 0x01fed189, size: 34 bytes, params: 1, frame: 13
env0_14(env0_12.get(), result);
}
function AppLauncherKeyboardO() { // fn#88639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1814, owner: AppLauncherKeyboard.O, offset: 0x01d3a4dc, size: 18 bytes, params: 1, frame: 9
return env0_12.get();
}
function AppLauncherKeyboard_(a0, a1) { // fn#88640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:1910, owner: AppLauncherKeyboard._, offset: 0x01fed1ab, size: 66 bytes, params: 3, frame: 15
var value;
if (a0 !== a1) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value = value.runOnJS(env0_14);
value(a0, result);
}
}
function _fun88642(a0) { // fn#88642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:2207, offset: 0x01fed242, size: 199 bytes, params: 2, frame: 22
var r5;
var AppLauncherOnboardingLayer;
let value = environment.__proto__;
const jsxRuntimeEnv1_9Binding = jsxRuntimeEnv1_9;
const BottomSheetBackdrop = (Module06277Module).BottomSheetBackdrop;
const bottomSheetBackdrop = <BottomSheetBackdrop {...a0} {...{['pressBehavior']: 'collapse'}} />;
const resultBinding = result;
if (resultBinding) {
AppLauncherOnboardingLayer = importDefault(11588) /* metro dependency 11588: AppLauncherOnboardingLayer */;
var defaultImportProps = {context: context, visibleContent: visibleContent};
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
defaultImportProps.bottomOffset = value ? 0 : minimum;
value = <AppLauncherOnboardingLayer {...defaultImportProps} />;
r5 = value;
} else {
r5 = resultBinding;
}
return (
<>
{bottomSheetBackdrop}
{r5}
</>
);
}
function _fun88643(a0, a1, a2) { // fn#88643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:2404, offset: 0x01fed309, size: 316 bytes, params: 4, frame: 15
var r5;
var value;
const ANIMATION_SOURCE = (Module06277Module).ANIMATION_SOURCE;
const AppLauncherBottomSheetExpandReason = (AppLauncherContextModule).AppLauncherBottomSheetExpandReason;
var moduleValue;
if (a0 !== 1) {
if (a1 === 1) {
value = environment.__proto__;
r5 = a2 === ANIMATION_SOURCE.KEYBOARD ? AppLauncherBottomSheetExpandReason.KEYBOARD : a2 === ANIMATION_SOURCE.GESTURE ? AppLauncherBottomSheetExpandReason.GESTURE : a2 !== ANIMATION_SOURCE.USER ? AppLauncherBottomSheetExpandReason.OTHER : ConstantsModule.AnalyticEvents.current;
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_EXPANDED, {reason: r5});
ConstantsModule.AnalyticEvents.current = undefined;
}
}
}
function _fun88644() { // fn#88644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:2816, offset: 0x01fed445, size: 379 bytes, params: 1, frame: 18
var value2;
var moduleValue;
var trackWithMetadata;
var APP_LAUNCHER_CLOSED;
var object;
var value3;
var setKeyboardType;
var binding;
var value;
let current = env0_8.current;
if (!current) {
value2 = environment.__proto__;
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
trackWithMetadata = moduleValue.trackWithMetadata;
APP_LAUNCHER_CLOSED = AnalyticEvents.APP_LAUNCHER_CLOSED;
object = {};
value3 = global.Date.now();
current = env0_7.current;
object.time_spent = value3 - current;
current = ReactNativeModule.View.current;
object.reason = current;
Reflect.apply(trackWithMetadata, moduleValue, [APP_LAUNCHER_CLOSED, object]);
}
env0_8.current = true;
const value5 = undefined;
const defaultImport = CompleteAppLauncherOnboarding;
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
defaultImport(USER_DISMISS);
if (onClose != null) {
onClose();
}
if (MetaQuestUtilsAndroidModule.isMetaQuest()) {
current = chatInputRef.current;
if (current != null) {
current.closeCustomKeyboard();
}
}
if (JsxRuntimeModule.Fragment) {
value = require(1482) /* metro dependency 1482: KeyboardUIStoreNative */;
setKeyboardType = value.setKeyboardType;
object = {};
object.type = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM;
Reflect.apply(setKeyboardType, value, [object]);
binding = env1_12;
if ((binding == null ? value5 : binding.current) != null) {
value = require(4570) /* metro dependency 4570: setAccessibilityFocusAndroid */;
value.setAccessibilityFocus({ref: env1_12});
}
}
return value5;
}
}
}
function _fun88644() { // fn#88644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11761:2816, offset: 0x01fed445, size: 379 bytes, params: 1, frame: 18
var value2;
var moduleValue;
var trackWithMetadata;
var APP_LAUNCHER_CLOSED;
var object2;
var value3;
var setKeyboardType;
var binding;
var value;
let current = env0_8.current;
if (!current) {
value2 = environment.__proto__;
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
trackWithMetadata = moduleValue.trackWithMetadata;
APP_LAUNCHER_CLOSED = AnalyticEvents.APP_LAUNCHER_CLOSED;
object2 = {};
value3 = global.Date.now();
current = env0_7.current;
object2.time_spent = value3 - current;
current = env0_4.current;
object2.reason = current;
Reflect.apply(trackWithMetadata, moduleValue, [APP_LAUNCHER_CLOSED, object2]);
}
env0_8.current = true;
const value5 = undefined;
const defaultImport = importDefault(11587) /* metro dependency 11587: completeAppLauncherOnboarding */;
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
defaultImport(USER_DISMISS);
if (onClose != null) {
onClose();
}
const metaQuestUtilsAndroidModule = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
if (metaQuestUtilsAndroidModule.isMetaQuest()) {
current = chatInputRef.current;
if (current != null) {
current.closeCustomKeyboard();
}
}
if (env0_9) {
value = require(1482) /* metro dependency 1482: KeyboardUIStoreNative */;
setKeyboardType = value.setKeyboardType;
object2 = {};
object2.type = (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM;
Reflect.apply(setKeyboardType, value, [object2]);
binding = env1_12;
if ((binding == null ? value5 : binding.current) != null) {
value = require(4570) /* metro dependency 4570: setAccessibilityFocusAndroid */;
value.setAccessibilityFocus({ref: env1_12});
}
}
return value5;
}
global.__d(_fun88634, 11575, [31, 27, 661, 1376, 11576, 33, 4501, 697, 8775, 8774, 11577, 4559, 11578, 4017, 11587,
4508, 6277, 11588, 477, 4863, 1581, 1482, 1583, 4570, 11620, 8048, 11622,
2]) /* metro module 11575, dependencies: [31, 27, 661, 1376, 11576, 33, 4501, 697, 8775, 8774, 11577, 4559, 11578, 4017, 11587, 4508, 6277, 11588, 477, 4863, 1581, 1482, 1583, 4570, 11620, 8048, 11622, 2] */;
@@ -1,28 +1,33 @@
/* Metro module 1483; source: modules/app_launcher/native/AppLauncherNativeConstants.tsx; dependencies: [1484, 697, 2, 1579] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
function _fun16988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1610:6, offset: 0x00e60df9, size: 295 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const object = {NONE: 0};
object[0] = 'NONE';
object.FIRST_REQUIRED_OPTION = 1;
object[1] = 'FIRST_REQUIRED_OPTION';
object.OPTIONAL_OPTION_ADDED = 2;
object[2] = 'OPTIONAL_OPTION_ADDED';
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherNativeConstants.tsx');
const object2 = {NONE: 0};
object2[0] = 'NONE';
object2.FIRST_REQUIRED_OPTION = 1;
object2[1] = 'FIRST_REQUIRED_OPTION';
object2.OPTIONAL_OPTION_ADDED = 2;
object2[2] = 'OPTIONAL_OPTION_ADDED';
const PX_16 = (Native).space.PX_16;
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (Native).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherNativeConstants.tsx');
exports.APP_LAUNCHER_BUILT_IN_SECTION_ICON = importDefault(1579) /* metro dependency 1579 */;
exports.AppLauncherRouteName = {HOME: 'home', APPLICATION_VIEW: 'application_view', COMMAND_VIEW: 'command_view',
APP_LIST_VIEW: 'app_list_view'};
exports.useAppLauncherNavigation = useAppLauncherNavigation;
exports.AppLauncherOptionAutoFocusType = object;
exports.AppLauncherOptionAutoFocusType = object2;
exports.DEFAULT_CONTENT_PADDING = PX_16;
exports.SCREEN_BACKGROUND_COLOR = MOBILE_KEYBOARD_PANEL_BACKGROUND;
exports.FLASH_LIST_ITEM_IMPRESSION_VIEWABILITY_CONFIG = {'itemVisiblePercentThreshold': 50, 'minimumViewTime': 1000};
function useAppLauncherNavigation() { // fn#16989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1610:656, offset: 0x00e60f20, size: 36 bytes, params: 1, frame: 11
return (UseNavigationNativeModule).useNativeStackNavigation();
}
}
function useAppLauncherNavigation() { // fn#16989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1610:656, offset: 0x00e60f20, size: 36 bytes, params: 1, frame: 11
return (require(1484) /* metro dependency 1484: useNavigationNative */).useNativeStackNavigation();
}
global.__d(_fun16988, 1483, [1484, 697, 2, 1579]) /* metro module 1483, dependencies: [1484, 697, 2, 1579] */;
@@ -1,17 +1,26 @@
/* Metro module 11592; source: modules/app_launcher/native/AppLauncherNativeUtils.tsx; dependencies: [31, 1379, 1878, 1483, 661, 5066, 4863, 5068, 11593, 5065, 1909, 7166, 1860, 8046, 1423, 8774, 8620, 11598, 6777, 8092, 4081, 2] */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as AppLauncherNativeConstantsModule from './AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as ServerModule from '../../../flow/Server.tsx'; /* Metro dependency 1909 */
import * as AppAnalyticsUtilsModule from '../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import * as ApplicationCommandUtilsModule from '../../application_commands/ApplicationCommandUtils.tsx'; /* Metro dependency 5065 */
import * as ApplicationCommandConstantsModule from '../../application_commands/ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
import * as ApplicationCommandTypesModule from '../../application_commands/ApplicationCommandTypes.tsx'; /* Metro dependency 5068 */
import * as UseGetOrFetchApplicationsModule from '../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
import * as AnalyticsModule from '../../../hooks/analytics.tsx'; /* Metro dependency 8620 */
import * as AppLauncherContextModule from './AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as FrecencySectionModule from './screens/home/FrecencySection.tsx'; /* Metro dependency 11593 */
import * as UseActivityShelfItemModule from '../../activities/utils/useActivityShelfItem.tsx'; /* Metro dependency 11598 */
function _fun88751(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:6, offset: 0x01ff04d6, size: 311 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const appLauncherNativeConstantsModule = require(1483) /* metro dependency 1483: AppLauncherNativeConstants */;
const env0_7 = appLauncherNativeConstantsModule.APP_LAUNCHER_BUILT_IN_SECTION_ICON;
const env0_8 = appLauncherNativeConstantsModule.AppLauncherRouteName;
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_10 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherNativeUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherNativeUtils.tsx');
exports.handleApplicationSelected = handleApplicationSelected;
exports.handleViewAllSelected = handleViewAllSelected;
exports.handleApplicationCommandSelected = handleApplicationCommandSelected;
@@ -19,304 +28,317 @@ function _fun88751(global, require, importDefault, importAll, module, exports, d
exports.getAppLauncherIconSource = getAppLauncherIconSource;
exports.useLogAppLauncherEmptyStateView = useLogAppLauncherEmptyStateView;
exports.useHandleActivityItemSelected = useHandleActivityItemSelected;
}
function handleApplicationSelected({location, application, navigation, context, sectionName, installOnDemand, query, searchResultsPosition, navigates, entrypoint}) { // fn#88752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:369, offset: 0x01ff060d, size: 302 bytes, params: 2, frame: 28
const ApplicationCommandTriggerSections = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerSections;
navigates = navigates === undefined || navigates;
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
const APPLICATION_COMMAND_SECTION_SELECTED = AnalyticEvents.APPLICATION_COMMAND_SECTION_SELECTED;
const id = application.id;
const BUILT_IN = BuiltInSectionId.BUILT_IN;
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APPLICATION_COMMAND_SECTION_SELECTED,
{location: location,
section: id === BUILT_IN ? ApplicationCommandTriggerSections.BUILT_IN : ApplicationCommandTriggerSections.APP,
application_id: application.id ?? null, section_name: sectionName, query: query,
search_results_position: searchResultsPosition, source: entrypoint}]);
if (navigates) {
navigation.navigate(AppLauncherRouteName.APPLICATION_VIEW, {application: application, context: context,
installOnDemand: installOnDemand, sectionName: sectionName, entrypoint: entrypoint});
}
}
function handleViewAllSelected({location, navigation, context, sectionName, sectionOverallPosition, applications, sectionItemType, commands, sectionDescriptors, title, promotedApplicationIds}) { // fn#88753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:980, offset: 0x01ff073b, size: 239 bytes, params: 2, frame: 29
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
const APP_LAUNCHER_SECTION_VIEW_MORE = AnalyticEvents.APP_LAUNCHER_SECTION_VIEW_MORE;
const object2 = {section_name: sectionName};
const SectionItemType = (require(11593) /* metro dependency 11593: FrecencySection */).SectionItemType;
const APPS = SectionItemType.APPS;
object2.num = sectionItemType === APPS ? applications.length : commands.length;
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APP_LAUNCHER_SECTION_VIEW_MORE, object2]);
const navigate = navigation.navigate;
const APP_LIST_VIEW = AppLauncherRouteName.APP_LIST_VIEW;
Reflect.apply(navigate, navigation, [APP_LIST_VIEW, {analyticsLocation: location, context: context,
sectionName: sectionName, sectionOverallPosition: sectionOverallPosition, applications: applications,
sectionItemType: sectionItemType, commands: commands, sectionDescriptors: sectionDescriptors, title: title,
promotedApplicationIds: promotedApplicationIds}]);
}
function handleApplicationCommandSelected({location, context, command, section, sectionDescriptors, query, navigation, installOnDemand, sectionName, searchResultsPosition, entrypoint, onCommandExecuted}) { // fn#88754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:1550, offset: 0x01ff082a, size: 439 bytes, params: 2, frame: 31
var r13;
var navigate;
const applicationCommandUtilsModule = require(5065) /* metro dependency 5065: ApplicationCommandUtils */;
const trackCommandSelected = applicationCommandUtilsModule.trackCommandSelected;
const object2 = {command: command, location: location};
object2.triggerSection = applicationCommandUtilsModule.getCommandTriggerSection(section);
object2.queryLength = query.length;
object2.sectionName = sectionName;
object2.query = query;
object2.searchResultsPosition = searchResultsPosition;
object2.source = entrypoint;
Reflect.apply(trackCommandSelected, applicationCommandUtilsModule, [object2]);
const type = command.type;
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
const PRIMARY_ENTRY_POINT = ApplicationCommandType.PRIMARY_ENTRY_POINT;
if (type === PRIMARY_ENTRY_POINT) {
navigation.navigate(AppLauncherRouteName.APPLICATION_VIEW, {application: section.application, context: context,
installOnDemand: installOnDemand, sectionName: sectionName, entrypoint: entrypoint});
} else {
var id = section.id;
var FRECENCY = BuiltInSectionId.FRECENCY;
r13 = id !== FRECENCY ? section : sectionDescriptors.find(function({id}) {
return id === command.applicationId;
}) ?? section;
if (context.type !== 'channel') {
return undefined;
function handleApplicationSelected({location, application, navigation, context, sectionName, installOnDemand, query, searchResultsPosition, navigates, entrypoint}) { // fn#88752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:369, offset: 0x01ff060d, size: 302 bytes, params: 2, frame: 28
const ApplicationCommandTriggerSections = (ApplicationCommandTypesModule).ApplicationCommandTriggerSections;
navigates = navigates === undefined || navigates;
const trackWithMetadata = AppAnalyticsUtilsModule.trackWithMetadata;
const APPLICATION_COMMAND_SECTION_SELECTED = AnalyticEvents.APPLICATION_COMMAND_SECTION_SELECTED;
const id = application.id;
const BUILT_IN = BuiltInSectionId.BUILT_IN;
Reflect.apply(trackWithMetadata, AppAnalyticsUtilsModule, [APPLICATION_COMMAND_SECTION_SELECTED,
{location: location,
section: id === BUILT_IN ? ApplicationCommandTriggerSections.BUILT_IN : ApplicationCommandTriggerSections.APP,
application_id: application.id ?? null, section_name: sectionName, query: query,
search_results_position: searchResultsPosition, source: entrypoint}]);
if (navigates) {
navigation.navigate(AppLauncherRouteName.APPLICATION_VIEW, {application: application, context: context,
installOnDemand: installOnDemand, sectionName: sectionName, entrypoint: entrypoint});
}
var moduleValue3 = importAll(7166) /* metro dependency 7166: ApplicationCommandActionCreators */;
var setAppLauncherActiveCommand = moduleValue3.setAppLauncherActiveCommand;
id = context.channel.id;
Reflect.apply(setAppLauncherActiveCommand, moduleValue3, [id, command]);
navigate = navigation.navigate;
var COMMAND_VIEW = AppLauncherRouteName.COMMAND_VIEW;
Reflect.apply(navigate, navigation, [COMMAND_VIEW, {command: command, section: r13, context: context,
installOnDemand: installOnDemand, sectionName: sectionName, analyticsLocation: location,
onCommandExecuted: onCommandExecuted}]);
}
}
function getInitialOptionValues({option, prefilledValues, guildId, roles}) { // fn#88756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:2449, offset: 0x01ff09fb, size: 1142 bytes, params: 2, frame: 20
var items;
var items2;
var items3;
var object2;
var choices;
const r1 = prefilledValues?.find(_fun88757);
const type = option.type;
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
const BOOLEAN = ApplicationCommandOptionType.BOOLEAN;
if (BOOLEAN === type) {
if (r1 != null) {
object2 = {type: 'text'};
object2.text = global.String(global.Boolean(r1.value));
items3 = [object2];
function handleViewAllSelected({location, navigation, context, sectionName, sectionOverallPosition, applications, sectionItemType, commands, sectionDescriptors, title, promotedApplicationIds}) { // fn#88753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:980, offset: 0x01ff073b, size: 239 bytes, params: 2, frame: 29
const trackWithMetadata = AppAnalyticsUtilsModule.trackWithMetadata;
const APP_LAUNCHER_SECTION_VIEW_MORE = AnalyticEvents.APP_LAUNCHER_SECTION_VIEW_MORE;
const object = {section_name: sectionName};
const SectionItemType = (FrecencySectionModule).SectionItemType;
const APPS = SectionItemType.APPS;
object.num = sectionItemType === APPS ? applications.length : commands.length;
Reflect.apply(trackWithMetadata, AppAnalyticsUtilsModule, [APP_LAUNCHER_SECTION_VIEW_MORE, object]);
const navigate = navigation.navigate;
const APP_LIST_VIEW = AppLauncherRouteName.APP_LIST_VIEW;
Reflect.apply(navigate, navigation, [APP_LIST_VIEW, {analyticsLocation: location, context: context,
sectionName: sectionName, sectionOverallPosition: sectionOverallPosition, applications: applications,
sectionItemType: sectionItemType, commands: commands, sectionDescriptors: sectionDescriptors, title: title,
promotedApplicationIds: promotedApplicationIds}]);
}
function handleApplicationCommandSelected({location, context, command, section, sectionDescriptors, query, navigation, installOnDemand, sectionName, searchResultsPosition, entrypoint, onCommandExecuted}) { // fn#88754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:1550, offset: 0x01ff082a, size: 439 bytes, params: 2, frame: 31
var r13;
var navigate;
const trackCommandSelected = ApplicationCommandUtilsModule.trackCommandSelected;
const object = {command: command, location: location};
object.triggerSection = ApplicationCommandUtilsModule.getCommandTriggerSection(section);
object.queryLength = query.length;
object.sectionName = sectionName;
object.query = query;
object.searchResultsPosition = searchResultsPosition;
object.source = entrypoint;
Reflect.apply(trackCommandSelected, ApplicationCommandUtilsModule, [object]);
const type = command.type;
const ApplicationCommandType = (ServerModule).ApplicationCommandType;
const PRIMARY_ENTRY_POINT = ApplicationCommandType.PRIMARY_ENTRY_POINT;
if (type === PRIMARY_ENTRY_POINT) {
navigation.navigate(AppLauncherRouteName.APPLICATION_VIEW, {application: section.application, context: context,
installOnDemand: installOnDemand, sectionName: sectionName, entrypoint: entrypoint});
} else {
items3 = [{'type': 'text', 'text': 'false'}];
var id = section.id;
var FRECENCY = BuiltInSectionId.FRECENCY;
r13 = id !== FRECENCY ? section : sectionDescriptors.find(function({id}) {
return id === command.applicationId;
}) ?? section;
if (context.type !== 'channel') {
return undefined;
}
var moduleValue3 = importAll(7166) /* metro dependency 7166: ApplicationCommandActionCreators */;
var setAppLauncherActiveCommand = moduleValue3.setAppLauncherActiveCommand;
id = context.channel.id;
Reflect.apply(setAppLauncherActiveCommand, moduleValue3, [id, command]);
navigate = navigation.navigate;
var COMMAND_VIEW = AppLauncherRouteName.COMMAND_VIEW;
Reflect.apply(navigate, navigation, [COMMAND_VIEW, {command: command, section: r13, context: context,
installOnDemand: installOnDemand, sectionName: sectionName, analyticsLocation: location,
onCommandExecuted: onCommandExecuted}]);
}
return items3;
}
const STRING = ApplicationCommandOptionType.STRING;
if (STRING === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
function getInitialOptionValues({option, prefilledValues, guildId, roles}) { // fn#88756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:2449, offset: 0x01ff09fb, size: 1142 bytes, params: 2, frame: 20
var items4;
var items2;
var items3;
var object;
var userStoreBinding;
var channelStoreBinding;
var choices;
const r1 = prefilledValues?.find(_fun88757);
const type = option.type;
const ApplicationCommandOptionType = (ServerModule).ApplicationCommandOptionType;
const BOOLEAN = ApplicationCommandOptionType.BOOLEAN;
if (BOOLEAN === type) {
if (r1 != null) {
object = {type: 'text'};
object.text = global.String(global.Boolean(r1.value));
items3 = [object];
} else {
items3 = [{'type': 'text', 'text': 'false'}];
}
return items3;
}
choices = option.choices;
if (choices == null) {
object2 = {type: 'text'};
object2.text = global.String(r1.value);
return [object2];
}
choices = option.choices;
if (choices.some(_fun88758)) {
choices = option.choices;
return [{type: 'text', text: choices.find(_fun88759).displayName}];
}
} else {
var INTEGER = ApplicationCommandOptionType.INTEGER;
if (INTEGER === type) {
const STRING = ApplicationCommandOptionType.STRING;
if (STRING === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
}
choices = option.choices;
if (choices == null) {
object2 = {type: 'text'};
object2.text = global.String(r1.value);
return [object2];
object = {type: 'text'};
object.text = global.String(r1.value);
return [object];
}
choices = option.choices;
if (choices.some(_fun88758)) {
choices = option.choices;
return [{type: 'text', text: choices.find(_fun88759).displayName}];
}
return [{'type': 'text', 'text': ''}];
}
var NUMBER = ApplicationCommandOptionType.NUMBER;
if (NUMBER === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
}
choices = option.choices;
if (choices == null) {
object2 = {type: 'text'};
object2.text = global.String(r1.value);
return [object2];
}
choices = option.choices;
if (choices.some(_fun88758)) {
} else {
var INTEGER = ApplicationCommandOptionType.INTEGER;
if (INTEGER === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
}
choices = option.choices;
return [{type: 'text', text: choices.find(_fun88759).displayName}];
}
return [{'type': 'text', 'text': ''}];
}
var CHANNEL = ApplicationCommandOptionType.CHANNEL;
if (CHANNEL === type) {
if (r1 == null) {
items2 = [{'type': 'text', 'text': ''}];
} else if (ChannelStore.getChannel(global.String(r1.value)) != null) {
object2 = {type: 'channelMention'};
object2.channelId = global.String(r1.value);
items2 = [object2];
} else {
items2 = [{'type': 'text', 'text': ''}];
}
return items2;
}
var USER = ApplicationCommandOptionType.USER;
if (USER === type) {
if (r1 == null) {
items = [{'type': 'text', 'text': ''}];
} else if (UserStore.getUser(global.String(r1.value)) != null) {
object2 = {type: 'userMention'};
object2.userId = global.String(r1.value);
items = [object2];
} else {
items = [{'type': 'text', 'text': ''}];
}
return items;
}
var ROLE = ApplicationCommandOptionType.ROLE;
if (ROLE === type) {
return r1 == null || typeof r1.value !== 'string' ? [{'type': 'text',
'text': ''}] : r1.value in roles ? [{type: 'roleMention', roleId: r1.value}] : [{'type': 'text',
'text': ''}];
}
var MENTIONABLE = ApplicationCommandOptionType.MENTIONABLE;
if (MENTIONABLE === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
}
if (r1.value === guildId) {
return [{'type': 'textMention', 'text': '@everyone'}];
}
if (typeof r1.value !== 'string') {
if (UserStore.getUser(global.String(r1.value)) != null) {
object2 = {type: 'userMention'};
object2.userId = global.String(r1.value);
return [object2];
if (choices == null) {
object = {type: 'text'};
object.text = global.String(r1.value);
return [object];
}
choices = option.choices;
if (choices.some(_fun88758)) {
choices = option.choices;
return [{type: 'text', text: choices.find(_fun88759).displayName}];
}
return [{'type': 'text', 'text': ''}];
}
if (r1.value in roles) {
return [{type: 'roleMention', roleId: r1.value}];
var NUMBER = ApplicationCommandOptionType.NUMBER;
if (NUMBER === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
}
choices = option.choices;
if (choices == null) {
object = {type: 'text'};
object.text = global.String(r1.value);
return [object];
}
choices = option.choices;
if (choices.some(_fun88758)) {
choices = option.choices;
return [{type: 'text', text: choices.find(_fun88759).displayName}];
}
return [{'type': 'text', 'text': ''}];
}
if (UserStore.getUser(global.String(r1.value)) != null) {
object2 = {type: 'userMention'};
object2.userId = global.String(r1.value);
return [object2];
var CHANNEL = ApplicationCommandOptionType.CHANNEL;
if (CHANNEL === type) {
if (r1 == null) {
items2 = [{'type': 'text', 'text': ''}];
} else {
channelStoreBinding = ChannelStore;
if (channelStoreBinding.getChannel(global.String(r1.value)) != null) {
object = {type: 'channelMention'};
object.channelId = global.String(r1.value);
items2 = [object];
} else {
items2 = [{'type': 'text', 'text': ''}];
}
}
return items2;
}
var USER = ApplicationCommandOptionType.USER;
if (USER === type) {
if (r1 == null) {
items4 = [{'type': 'text', 'text': ''}];
} else {
userStoreBinding = UserStore;
if (userStoreBinding.getUser(global.String(r1.value)) != null) {
object = {type: 'userMention'};
object.userId = global.String(r1.value);
items4 = [object];
} else {
items4 = [{'type': 'text', 'text': ''}];
}
}
return items4;
}
var ROLE = ApplicationCommandOptionType.ROLE;
if (ROLE === type) {
return r1 == null || typeof r1.value !== 'string' ? [{'type': 'text',
'text': ''}] : r1.value in roles ? [{type: 'roleMention', roleId: r1.value}] : [{'type': 'text',
'text': ''}];
}
var MENTIONABLE = ApplicationCommandOptionType.MENTIONABLE;
if (MENTIONABLE === type) {
if (r1 == null) {
return [{'type': 'text', 'text': ''}];
}
if (r1.value === guildId) {
return [{'type': 'textMention', 'text': '@everyone'}];
}
if (typeof r1.value !== 'string') {
userStoreBinding = UserStore;
if (userStoreBinding.getUser(global.String(r1.value)) != null) {
object = {type: 'userMention'};
object.userId = global.String(r1.value);
return [object];
}
return [{'type': 'text', 'text': ''}];
}
if (r1.value in roles) {
return [{type: 'roleMention', roleId: r1.value}];
}
userStoreBinding = UserStore;
if (userStoreBinding.getUser(global.String(r1.value)) != null) {
object = {type: 'userMention'};
object.userId = global.String(r1.value);
return [object];
}
return [{'type': 'text', 'text': ''}];
}
return [{'type': 'text', 'text': ''}];
}
return [{'type': 'text', 'text': ''}];
function _fun88757(a0) { // fn#88757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:2529, offset: 0x01ff0e71, size: 47 bytes, params: 2, frame: 4
return a0.name === option.name && a0.type === option.type;
}
function _fun88758({value}) { // fn#88758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:2967, offset: 0x01ff0ea0, size: 26 bytes, params: 2, frame: 2
return value === env0_1.value;
}
function _fun88759({value}) { // fn#88759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:3031, offset: 0x01ff0ea0, size: 26 bytes, params: 2, frame: 2
return value === env0_1.value;
}
}
return [{'type': 'text', 'text': ''}];
}
function getAppLauncherIconSource(a0) { // fn#88760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4008, offset: 0x01ff0eba, size: 166 bytes, params: 2, frame: 15
var r0;
var isRealApplication2;
var defaultImport;
if (a0 == null) {
r0 = importDefault(1860) /* metro dependency 1860 */;
} else {
isRealApplication2 = (require(8046) /* metro dependency 8046: AppLauncherUtils */).isRealApplication(a0);
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
r0 = isRealApplication2 ? defaultImport.getApplicationIconSource({id: a0.id, icon: a0.icon, bot: a0.bot,
botIconFirst: false}) : defaultImport.makeSource(APP_LAUNCHER_BUILT_IN_SECTION_ICON);
function getAppLauncherIconSource(a0) { // fn#88760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4008, offset: 0x01ff0eba, size: 166 bytes, params: 2, frame: 15
var r0;
var isRealApplication2;
var defaultImport;
if (a0 == null) {
r0 = importDefault(1860) /* metro dependency 1860 */;
} else {
isRealApplication2 = (require(8046) /* metro dependency 8046: AppLauncherUtils */).isRealApplication(a0);
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
r0 = isRealApplication2 ? defaultImport.getApplicationIconSource({id: a0.id, icon: a0.icon, bot: a0.bot,
botIconFirst: false}) : defaultImport.makeSource(APP_LAUNCHER_BUILT_IN_SECTION_ICON);
}
return r0;
}
return r0;
}
function useLogAppLauncherEmptyStateView(a0, a1) { // fn#88761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4198, offset: 0x01ff0f60, size: 97 bytes, params: 3, frame: 16
const env0_0 = a0;
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
env0_4.useEffect(_fun88762, [a0, a1, Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint]);
}
function useLogAppLauncherEmptyStateView(a0, a1) { // fn#88761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4198, offset: 0x01ff0f60, size: 97 bytes, params: 3, frame: 16
const env0_0 = a0;
const useAppLauncherContext = AppLauncherContextModule.useAppLauncherContext;
ReactModule.useEffect(_fun88762, [a0, a1, Reflect.apply(useAppLauncherContext, AppLauncherContextModule, []).entrypoint]);
function _fun88762() { // fn#88762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4307, offset: 0x01ff0fc1, size: 82 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (env0_0 != null) {
value2 = environment.__proto__;
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_EMPTY_STATE_ENCOUNTERED, {type: env0_0,
source: entrypoint});
}
}
function useHandleActivityItemSelected({applicationId, context, sectionName, onActivityItemSelected, location, entrypoint, launchingComponentId, fetchesApplication}) { // fn#88763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4449, offset: 0x01ff1013, size: 392 bytes, params: 2, frame: 26
var object2;
fetchesApplication = fetchesApplication === undefined || fetchesApplication;
const value4 = (require(8620) /* metro dependency 8620: analytics */).useAnalyticsContext();
const env0_4 = (require(11598) /* metro dependency 11598: useActivityShelfItem */).useActivityAction({context: context,
applicationId: applicationId, fetchesApplication: fetchesApplication});
const value5 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(applicationId,
fetchesApplication);
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
const entrypointParams = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypointParams;
const useActivityShelfItemModule = require(11598) /* metro dependency 11598: useActivityShelfItem */;
const useOnActivityItemSelected = useActivityShelfItemModule.useOnActivityItemSelected;
object2 = {application: value5, context: context};
object2.embeddedActivitiesManager = importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */;
object2.locationObject = value4.location;
object2.onActivityItemSelectedProp = onActivityItemSelectedProp;
object2.launchingComponentId = launchingComponentId;
const CommandOrigin = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin;
const APPLICATION_LAUNCHER = CommandOrigin.APPLICATION_LAUNCHER;
object2.commandOrigin = APPLICATION_LAUNCHER;
object2.sectionName = sectionName;
object2.source = entrypoint;
object2.fetchesApplication = fetchesApplication;
object2.customId = entrypointParams?.customId;
object2.referrerId = entrypointParams?.referrerId;
const env0_5 = Reflect.apply(useOnActivityItemSelected, useActivityShelfItemModule, [object2]);
return {handleActivityItemSelected: handleActivityItemSelected};
}
function _fun88757(a0) { // fn#88757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:2529, offset: 0x01ff0e71, size: 47 bytes, params: 2, frame: 4
return a0.name === option.name && a0.type === option.type;
}
function _fun88762() { // fn#88762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4307, offset: 0x01ff0fc1, size: 82 bytes, params: 1, frame: 15
var value2;
var moduleValue;
if (env0_0 != null) {
value2 = environment.__proto__;
moduleValue = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_EMPTY_STATE_ENCOUNTERED, {type: env0_0,
source: entrypoint});
}
}
function onActivityItemSelectedProp({applicationId}) { // fn#88764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4986, owner: useHandleActivityItemSelected.onActivityItemSelectedProp, offset: 0x01ff119b, size: 127 bytes, params: 2, frame: 17
if (onActivityItemSelected != null) {
onActivityItemSelected({applicationId: applicationId});
function useHandleActivityItemSelected({applicationId, context, sectionName, onActivityItemSelected, location, entrypoint, launchingComponentId, fetchesApplication}) { // fn#88763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4449, offset: 0x01ff1013, size: 392 bytes, params: 2, frame: 26
fetchesApplication = fetchesApplication === undefined || fetchesApplication;
const value4 = (AnalyticsModule).useAnalyticsContext();
const env0_4 = (UseActivityShelfItemModule).useActivityAction({context: context,
applicationId: applicationId, fetchesApplication: fetchesApplication});
const value5 = (UseGetOrFetchApplicationsModule).useGetOrFetchApplication(applicationId,
fetchesApplication);
const useAppLauncherContext = AppLauncherContextModule.useAppLauncherContext;
const entrypointParams = Reflect.apply(useAppLauncherContext, AppLauncherContextModule, []).entrypointParams;
const useOnActivityItemSelected = UseActivityShelfItemModule.useOnActivityItemSelected;
object = {application: value5, context: context};
object.embeddedActivitiesManager = importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */;
object.locationObject = value4.location;
object.onActivityItemSelectedProp = onActivityItemSelectedProp;
object.launchingComponentId = launchingComponentId;
const CommandOrigin = (ApplicationCommandTypesModule).CommandOrigin;
const APPLICATION_LAUNCHER = CommandOrigin.APPLICATION_LAUNCHER;
object.commandOrigin = APPLICATION_LAUNCHER;
object.sectionName = sectionName;
object.source = entrypoint;
object.fetchesApplication = fetchesApplication;
object.customId = entrypointParams?.customId;
object.referrerId = entrypointParams?.referrerId;
const env0_5 = Reflect.apply(useOnActivityItemSelected, UseActivityShelfItemModule, [object]);
return {handleActivityItemSelected: handleActivityItemSelected};
function onActivityItemSelectedProp({applicationId}) { // fn#88764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:4986, owner: useHandleActivityItemSelected.onActivityItemSelectedProp, offset: 0x01ff119b, size: 127 bytes, params: 2, frame: 17
if (onActivityItemSelected != null) {
onActivityItemSelected({applicationId: applicationId});
}
const trackWithMetadata = AppAnalyticsUtilsModule.trackWithMetadata;
const APP_LAUNCHER_ACTIVITY_ITEM_SELECTED = AnalyticEvents.APP_LAUNCHER_ACTIVITY_ITEM_SELECTED;
Reflect.apply(trackWithMetadata, AppAnalyticsUtilsModule, [APP_LAUNCHER_ACTIVITY_ITEM_SELECTED, {location: location,
application_id: applicationId, section_name: sectionName, action: env0_4, source: entrypoint}]);
}
function handleActivityItemSelected() { // fn#88765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:5401, owner: useHandleActivityItemSelected.handleActivityItemSelected, offset: 0x01ff121a, size: 70 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
const triggerHapticFeedback = value.triggerHapticFeedback;
const HapticFeedbackTypes = (require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes;
const IMPACT_MEDIUM = HapticFeedbackTypes.IMPACT_MEDIUM;
Reflect.apply(triggerHapticFeedback, value, [IMPACT_MEDIUM]);
env0_5();
}
}
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
const APP_LAUNCHER_ACTIVITY_ITEM_SELECTED = AnalyticEvents.APP_LAUNCHER_ACTIVITY_ITEM_SELECTED;
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APP_LAUNCHER_ACTIVITY_ITEM_SELECTED, {location: location,
application_id: applicationId, section_name: sectionName, action: env0_4, source: entrypoint}]);
}
function handleActivityItemSelected() { // fn#88765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11778:5401, owner: useHandleActivityItemSelected.handleActivityItemSelected, offset: 0x01ff121a, size: 70 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = require(4081) /* metro dependency 4081: HapticUtilsNative */;
const triggerHapticFeedback = value.triggerHapticFeedback;
const HapticFeedbackTypes = (require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes;
const IMPACT_MEDIUM = HapticFeedbackTypes.IMPACT_MEDIUM;
Reflect.apply(triggerHapticFeedback, value, [IMPACT_MEDIUM]);
env0_5();
}
global.__d(_fun88751, 11592, [31, 1379, 1878, 1483, 661, 5066, 4863, 5068, 11593, 5065, 1909, 7166, 1860, 8046,
1423, 8774, 8620, 11598, 6777, 8092, 4081,
2]) /* metro module 11592, dependencies: [31, 1379, 1878, 1483, 661, 5066, 4863, 5068, 11593, 5065, 1909, 7166, 1860, 8046, 1423, 8774, 8620, 11598, 6777, 8092, 4081, 2] */;
@@ -1,114 +1,137 @@
/* Metro module 11622; source: modules/app_launcher/native/AppLauncherNavigator.tsx; dependencies: [29, 31, 1483, 661, 33, 9884, 4501, 697, 6771, 6789, 4022, 1583, 5280, 4863, 1485, 11623, 11669, 11691, 11731, 8774, 2] */
import ObjectWithoutProperties from '../../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as AppLauncherNativeConstantsModule from './AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as Module09884Module from '../../../by-id/module-09884.js'; /* Metro dependency 9884 */
function _fun89086(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11808:6, offset: 0x01ffe497, size: 337 bytes, params: 8, frame: 22
const env0_0 = require;
const env0_3 = ['initialRouteName'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherRouteName;
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const value2 = require(33) /* metro dependency 33 */;
const env0_8 = value2.jsx;
const env0_9 = value2.jsxs;
const env0_10 = (require(9884) /* metro dependency 9884 */).createNativeStackNavigator();
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
const env0_11 = Reflect.apply(createStyles, createStylesModule, [{navigator: {'backgroundColor': null,
let value = ReactModule;
const env0_10 = (Module09884Module).createNativeStackNavigator();
const createStyles = CreateStylesModule.createStyles;
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (Native).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [{navigator: {'backgroundColor': null,
'paddingTop': 16, 'overflow': 'visible', 'flex': 1, backgroundColor: MOBILE_KEYBOARD_PANEL_BACKGROUND}}]);
value = value.memo(AppLauncherNavigator);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/AppLauncherNavigator.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/AppLauncherNavigator.tsx');
exports.default = value;
function AppLauncherNavigator({bottomSheetExpandReasonRef, bottomSheetIndex, bottomSheetPosition, context, chatInputRef, contentStyle, entrypoint, expandBottomSheet, keyboardCloseReasonRef, onActivityItemSelected, width, overrideParams}) { // fn#89087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11808:421, offset: 0x01ffe5e8, size: 1034 bytes, params: 2, frame: 41
const defaultImport = importDefault(dependencyMap[8]);
let APP_LAUNCHER = importDefault(dependencyMap[9]).APP_LAUNCHER;
const analyticsLocations = defaultImport(APP_LAUNCHER).analyticsLocations;
const styles = useStyles();
let moduleValue = require(dependencyMap[10]);
const useKeyboardContextForType = moduleValue.useKeyboardContextForType;
const KeyboardTypes = require(dependencyMap[11]).KeyboardTypes;
APP_LAUNCHER = KeyboardTypes.APP_LAUNCHER;
const r2 = overrideParams ?? Reflect.apply(useKeyboardContextForType, moduleValue, [APP_LAUNCHER]);
const value5 = require(dependencyMap[12]).useAccessibilityNativeStackOptions();
let initialRouteName = r2.initialRouteName;
let binding = ObjectWithoutProperties;
const value6 = binding(r2, env0_3);
env0_5.useLayoutEffect(function() {
var moduleValue = require(dependencyMap[13]);
var APPLICATION_COMMAND_TOP_OF_FUNNEL = AnalyticEvents.APPLICATION_COMMAND_TOP_OF_FUNNEL;
moduleValue.trackWithMetadata(APPLICATION_COMMAND_TOP_OF_FUNNEL, {location: 'app_launcher',
source: entrypoint});
}, [entrypoint]);
const NavigationContainer = require(dependencyMap[14]).NavigationContainer;
const AnalyticsLocationProvider = require(dependencyMap[8]).AnalyticsLocationProvider;
binding = env0_10;
const Navigator = binding.Navigator;
const object3 = {initialRouteName: initialRouteName};
const object4 = {'contentStyle': null, 'headerShown': false, 'fullScreenGestureEnabled': true};
object4.contentStyle = [styles.navigator, contentStyle];
copyDataProperties(object4, value5, undefined);
object3.screenOptions = object4;
let Screen = binding.Screen;
const object5 = {};
let HOME = AppLauncherRouteName.HOME;
object5.name = HOME;
object5.component = importDefault(dependencyMap[15]);
const initialRouteName2 = r2.initialRouteName;
HOME = AppLauncherRouteName.HOME;
object5.initialParams = {context: context,
initialSearchQuery: initialRouteName2 !== HOME ? undefined : r2.initialSearchQuery};
const items2 = [
<Screen {...object5} />,
];
Screen = env0_10.Screen;
const object7 = {};
let APPLICATION_VIEW = AppLauncherRouteName.APPLICATION_VIEW;
object7.name = APPLICATION_VIEW;
object7.component = importDefault(dependencyMap[16]);
const object8 = {context: context};
APPLICATION_VIEW = AppLauncherRouteName.APPLICATION_VIEW;
copyDataProperties(object8, initialRouteName === APPLICATION_VIEW ? value6 : {}, dependencyMap);
object8['expandBottomSheet'] = expandBottomSheet;
object7.initialParams = object8;
items2[1] = <Screen {...object7} />;
Screen = env0_10.Screen;
const object10 = {};
let COMMAND_VIEW = AppLauncherRouteName.COMMAND_VIEW;
object10.name = COMMAND_VIEW;
object10.component = importDefault(dependencyMap[17]);
const object11 = {};
object11.context = context.type !== 'channel' ? undefined : context;
initialRouteName = r2.initialRouteName;
COMMAND_VIEW = AppLauncherRouteName.COMMAND_VIEW;
copyDataProperties(object11, initialRouteName === COMMAND_VIEW ? value6 : {}, initialRouteName);
object11['expandBottomSheet'] = expandBottomSheet;
object10.initialParams = object11;
items2[2] = <Screen {...object10} />;
Screen = env0_10.Screen;
const object13 = {};
let APP_LIST_VIEW = AppLauncherRouteName.APP_LIST_VIEW;
object13.name = APP_LIST_VIEW;
object13.component = importDefault(dependencyMap[18]);
const object14 = {context: context};
const initialRouteName3 = r2.initialRouteName;
APP_LIST_VIEW = AppLauncherRouteName.APP_LIST_VIEW;
copyDataProperties(object14, initialRouteName3 === APP_LIST_VIEW ? value6 : {}, initialRouteName);
object13.initialParams = object14;
items2[3] = <Screen {...object13} />;
const navigationContainer = (
<NavigationContainer independent>
<AnalyticsLocationProvider value={analyticsLocations}>
<Navigator {...object3}>
{items2}
</Navigator>
</AnalyticsLocationProvider>
</NavigationContainer>
);
const r9 = 'customId' in r2 || 'referrerId' in r2 ? {customId: r2.customId, referrerId: r2.referrerId} : null;
const AppLauncherContext = require(dependencyMap[19]).AppLauncherContext;
const Provider = AppLauncherContext.Provider;
return (
<Provider
value={{
bottomSheetExpandReasonRef: bottomSheetExpandReasonRef,
bottomSheetIndex: bottomSheetIndex,
bottomSheetPosition: bottomSheetPosition,
chatInputRef: chatInputRef,
entrypoint: entrypoint,
entrypointParams: r9,
keyboardCloseReasonRef: keyboardCloseReasonRef,
onActivityItemSelected: onActivityItemSelected,
width: width,
}}
>
{navigationContainer}
</Provider>
);
}
}
function AppLauncherNavigator({bottomSheetExpandReasonRef, bottomSheetIndex, bottomSheetPosition, context, chatInputRef, contentStyle, entrypoint, expandBottomSheet, keyboardCloseReasonRef, onActivityItemSelected, width, overrideParams}) { // fn#89087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11808:421, offset: 0x01ffe5e8, size: 1034 bytes, params: 2, frame: 41
const defaultImport = importDefault(dependencyMap[8]);
let APP_LAUNCHER = importDefault(dependencyMap[9]).APP_LAUNCHER;
const analyticsLocations = defaultImport(APP_LAUNCHER).analyticsLocations;
const styles = useStyles();
let moduleValue = require(dependencyMap[10]);
const useKeyboardContextForType = moduleValue.useKeyboardContextForType;
const KeyboardTypes = require(dependencyMap[11]).KeyboardTypes;
APP_LAUNCHER = KeyboardTypes.APP_LAUNCHER;
const r2 = overrideParams ?? Reflect.apply(useKeyboardContextForType, moduleValue, [APP_LAUNCHER]);
const value5 = require(dependencyMap[12]).useAccessibilityNativeStackOptions();
let initialRouteName = r2.initialRouteName;
let binding = env0_4;
const value6 = binding(r2, env0_3);
env0_5.useLayoutEffect(function() {
var moduleValue = require(dependencyMap[13]);
var APPLICATION_COMMAND_TOP_OF_FUNNEL = AnalyticEvents.APPLICATION_COMMAND_TOP_OF_FUNNEL;
moduleValue.trackWithMetadata(APPLICATION_COMMAND_TOP_OF_FUNNEL, {location: 'app_launcher',
source: entrypoint});
}, [entrypoint]);
const NavigationContainer = require(dependencyMap[14]).NavigationContainer;
const AnalyticsLocationProvider = require(dependencyMap[8]).AnalyticsLocationProvider;
binding = env0_10;
const Navigator = binding.Navigator;
const object = {initialRouteName: initialRouteName};
const object2 = {'contentStyle': null, 'headerShown': false, 'fullScreenGestureEnabled': true};
object2.contentStyle = [styles.navigator, contentStyle];
copyDataProperties(object2, value5, undefined);
object.screenOptions = object2;
let Screen = binding.Screen;
const object6 = {};
let HOME = AppLauncherRouteName.HOME;
object6.name = HOME;
object6.component = importDefault(dependencyMap[15]);
const initialRouteName2 = r2.initialRouteName;
HOME = AppLauncherRouteName.HOME;
object6.initialParams = {context: context,
initialSearchQuery: initialRouteName2 !== HOME ? undefined : r2.initialSearchQuery};
const items2 = [<Screen {...object6} />];
Screen = env0_10.Screen;
const object9 = {};
let APPLICATION_VIEW = AppLauncherRouteName.APPLICATION_VIEW;
object9.name = APPLICATION_VIEW;
object9.component = importDefault(dependencyMap[16]);
const object12 = {context: context};
APPLICATION_VIEW = AppLauncherRouteName.APPLICATION_VIEW;
copyDataProperties(object12, initialRouteName === APPLICATION_VIEW ? value6 : {}, dependencyMap);
object12['expandBottomSheet'] = expandBottomSheet;
object9.initialParams = object12;
items2[1] = <Screen {...object9} />;
Screen = env0_10.Screen;
const object15 = {};
let COMMAND_VIEW = AppLauncherRouteName.COMMAND_VIEW;
object15.name = COMMAND_VIEW;
object15.component = importDefault(dependencyMap[17]);
const object16 = {};
object16.context = context.type !== 'channel' ? undefined : context;
initialRouteName = r2.initialRouteName;
COMMAND_VIEW = AppLauncherRouteName.COMMAND_VIEW;
copyDataProperties(object16, initialRouteName === COMMAND_VIEW ? value6 : {}, initialRouteName);
object16['expandBottomSheet'] = expandBottomSheet;
object15.initialParams = object16;
items2[2] = <Screen {...object15} />;
Screen = env0_10.Screen;
const object17 = {};
let APP_LIST_VIEW = AppLauncherRouteName.APP_LIST_VIEW;
object17.name = APP_LIST_VIEW;
object17.component = importDefault(dependencyMap[18]);
const object18 = {context: context};
const initialRouteName3 = r2.initialRouteName;
APP_LIST_VIEW = AppLauncherRouteName.APP_LIST_VIEW;
copyDataProperties(object18, initialRouteName3 === APP_LIST_VIEW ? value6 : {}, initialRouteName);
object17.initialParams = object18;
items2[3] = <Screen {...object17} />;
const navigationContainer = <NavigationContainer independent><AnalyticsLocationProvider value={analyticsLocations}><Navigator {...object}>{items2}</Navigator></AnalyticsLocationProvider></NavigationContainer>;
const r9 = 'customId' in r2 || 'referrerId' in r2 ? {customId: r2.customId, referrerId: r2.referrerId} : null;
const AppLauncherContext = require(dependencyMap[19]).AppLauncherContext;
const Provider = AppLauncherContext.Provider;
return (
<Provider
value={{bottomSheetExpandReasonRef: bottomSheetExpandReasonRef, bottomSheetIndex: bottomSheetIndex,
bottomSheetPosition: bottomSheetPosition, chatInputRef: chatInputRef, entrypoint: entrypoint,
entrypointParams: r9, keyboardCloseReasonRef: keyboardCloseReasonRef,
onActivityItemSelected: onActivityItemSelected, width: width}}
>
{navigationContainer}
</Provider>
);
}
global.__d(_fun89086, 11622, [29, 31, 1483, 661, 33, 9884, 4501, 697, 6771, 6789, 4022, 1583, 5280, 4863, 1485,
11623, 11669, 11691, 11731, 8774,
2]) /* metro module 11622, dependencies: [29, 31, 1483, 661, 33, 9884, 4501, 697, 6771, 6789, 4022, 1583, 5280, 4863, 1485, 11623, 11669, 11691, 11731, 8774, 2] */;
@@ -1,25 +1,30 @@
/* Metro module 11673; source: modules/app_launcher/native/base_components/AppLauncherBackButton.tsx; dependencies: [31, 33, 1485, 8341, 5285, 5313, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun89491(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11859:6, offset: 0x0201062a, size: 147 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/base_components/AppLauncherBackButton.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherBackButton.tsx');
exports.default = AppLauncherBackButton;
exports.BACK_BUTTON_SIZE = 32;
function AppLauncherBackButton({onPress}) { // fn#89492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11859:231, offset: 0x020106bd, size: 230 bytes, params: 2, frame: 20
const canGoBack2 = require(dependencyMap[2]).useNavigation().canGoBack();
const IconButton = require(dependencyMap[3]).IconButton;
const iconButtonProps = {'size': 'sm', 'variant': 'secondary-overlay',
icon: importDefault(canGoBack2 ? dependencyMap[4] : dependencyMap[5]), onPress: onPress};
const intl = require(dependencyMap[6]).intl;
const string = intl.string;
const t = require(dependencyMap[6]).t;
iconButtonProps.accessibilityLabel = Reflect.apply(string, intl, [canGoBack2 ? t['13/7kX'] : t.cpT0Cq]);
iconButtonProps.maxFontSizeMultiplier = 1.5;
return <IconButton {...iconButtonProps} />;
}
}
function AppLauncherBackButton({onPress}) { // fn#89492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11859:231, offset: 0x020106bd, size: 230 bytes, params: 2, frame: 20
const canGoBack2 = require(dependencyMap[2]).useNavigation().canGoBack();
const IconButton = require(dependencyMap[3]).IconButton;
const iconButtonProps = {'size': 'sm', 'variant': 'secondary-overlay',
icon: importDefault(canGoBack2 ? dependencyMap[4] : dependencyMap[5]), onPress: onPress};
const intl = require(dependencyMap[6]).intl;
const string = intl.string;
const t = require(dependencyMap[6]).t;
iconButtonProps.accessibilityLabel = Reflect.apply(string, intl, [canGoBack2 ? t['13/7kX'] : t.cpT0Cq]);
iconButtonProps.maxFontSizeMultiplier = 1.5;
return <IconButton {...iconButtonProps} />;
}
global.__d(_fun89491, 11673, [31, 33, 1485, 8341, 5285, 5313, 1244,
2]) /* metro module 11673, dependencies: [31, 33, 1485, 8341, 5285, 5313, 1244, 2] */;
@@ -1,116 +1,124 @@
/* Metro module 11643; source: modules/app_launcher/native/base_components/AppLauncherFlashList.tsx; dependencies: [31, 27, 33, 5321, 11644, 8774, 8048, 8416, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module05321Module from '../../../../by-id/module-05321.js'; /* Metro dependency 5321 */
import * as AppLauncherTypesModule from '../../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
import * as AppLauncherContextModule from '../AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as CreateUseAnimatedScrollLockModule from '../../../voice_panel/native/controls/utils/createUseAnimatedScrollLock.tsx'; /* Metro dependency 11644 */
function _fun89244(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:6, offset: 0x020063aa, size: 193 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).ScrollView;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.forwardRef(_fun89245);
value.displayName = 'AppLauncherFlashList';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherFlashList.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherFlashList.tsx');
exports.default = value;
exports.useAppLauncherFlashListProps = useAppLauncherFlashListProps;
}
function _fun89245(a0, a1) { // fn#89245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:161, offset: 0x0200646b, size: 553 bytes, params: 3, frame: 18
const useAppLauncherContext = AppLauncherContextModule.useAppLauncherContext;
const entrypoint = Reflect.apply(useAppLauncherContext, AppLauncherContextModule, []).entrypoint;
const value2 = useScrollViewComponent(a0.simultaneousHandlers);
const AppLauncherEntrypoint = (AppLauncherTypesModule).AppLauncherEntrypoint;
const VOICE = AppLauncherEntrypoint.VOICE;
if (entrypoint === VOICE) {
const AnimatedFlashList = (require(8416) /* metro dependency 8416: flashList */).AnimatedFlashList;
return (
<AnimatedFlashList
renderScrollComponent={value2}
ListHeaderComponent={a0.ListHeaderComponent}
onScroll={a0.animatedOnScroll}
contentContainerStyle={a0.contentContainerStyle}
scrollIndicatorInsets={a0.scrollIndicatorInsets}
renderItem={a0.renderItem}
getItemType={a0.getItemType}
data={a0.data}
estimatedItemSize={a0.estimatedItemSize}
automaticallyAdjustsScrollIndicatorInsets={a0.automaticallyAdjustsScrollIndicatorInsets}
keyboardDismissMode={a0.keyboardDismissMode}
keyboardShouldPersistTaps={a0.keyboardShouldPersistTaps}
showsVerticalScrollIndicator={a0.showsVerticalScrollIndicator}
onViewableItemsChanged={a0.onViewableItemsChanged}
viewabilityConfigCallbackPairs={a0.viewabilityConfigCallbackPairs}
animatedProps={a0.animatedProps}
overScrollMode="never"
ref={a1}
/>
);
} else {
const BottomSheetFlashList = (require(8416) /* metro dependency 8416: flashList */).BottomSheetFlashList;
return (
<BottomSheetFlashList
ListHeaderComponent={a0.ListHeaderComponent}
onScroll={a0.onScroll}
contentContainerStyle={a0.contentContainerStyle}
scrollIndicatorInsets={a0.scrollIndicatorInsets}
renderItem={a0.renderItem}
getItemType={a0.getItemType}
data={a0.data}
estimatedItemSize={a0.estimatedItemSize}
preserveScrollMomentum={a0.preserveScrollMomentum}
automaticallyAdjustsScrollIndicatorInsets={a0.automaticallyAdjustsScrollIndicatorInsets}
keyboardDismissMode={a0.keyboardDismissMode}
keyboardShouldPersistTaps={a0.keyboardShouldPersistTaps}
showsVerticalScrollIndicator={a0.showsVerticalScrollIndicator}
lockableScrollableContentOffsetY={a0.lockableScrollableContentOffsetY}
onViewableItemsChanged={a0.onViewableItemsChanged}
viewabilityConfigCallbackPairs={a0.viewabilityConfigCallbackPairs}
bottomViewabilityInsetRef={a0.bottomViewabilityInsetRef}
ref={a1}
/>
);
}
function useScrollViewComponent(a0) { // fn#89246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:226, offset: 0x02006694, size: 44 bytes, params: 2, frame: 14
const env0_0 = a0;
return env1_2.useMemo(_fun89247, [a0]);
function _fun89247() { // fn#89247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:279, offset: 0x020066c0, size: 51 bytes, params: 1, frame: 11
var environment;
var r0;
var value;
if (env0_0 == null) {
value = environment.__proto__.__proto__;
r0 = ScrollView;
} else {
value = environment.__proto__.__proto__;
value = env2_2.forwardRef(_fun89248);
r0 = value;
}
return r0;
function _fun89248(a0, a1) { // fn#89248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:307, offset: 0x020066f3, size: 111 bytes, params: 3, frame: 16
const value2 = env3_2.useMemo(_fun89249, []);
const GestureDetector = (Module05321Module).GestureDetector;
return (
<GestureDetector gesture={value2}>
<ScrollView ref={a1} {...a0} />
</GestureDetector>
);
function _fun89249() { // fn#89249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:338, offset: 0x02006762, size: 61 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__.__proto__;
const Gesture = (Module05321Module).Gesture;
return Gesture.Native().simultaneousWithExternalGesture(env2_0);
}
}
}
}
function _fun89245(a0, a1) { // fn#89245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:161, offset: 0x0200646b, size: 553 bytes, params: 3, frame: 18
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
const entrypoint = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
const value2 = useScrollViewComponent(a0.simultaneousHandlers);
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const VOICE = AppLauncherEntrypoint.VOICE;
if (entrypoint === VOICE) {
const AnimatedFlashList = (require(8416) /* metro dependency 8416: flashList */).AnimatedFlashList;
return (
<AnimatedFlashList
renderScrollComponent={value2}
ListHeaderComponent={a0.ListHeaderComponent}
onScroll={a0.animatedOnScroll}
contentContainerStyle={a0.contentContainerStyle}
scrollIndicatorInsets={a0.scrollIndicatorInsets}
renderItem={a0.renderItem}
getItemType={a0.getItemType}
data={a0.data}
estimatedItemSize={a0.estimatedItemSize}
automaticallyAdjustsScrollIndicatorInsets={a0.automaticallyAdjustsScrollIndicatorInsets}
keyboardDismissMode={a0.keyboardDismissMode}
keyboardShouldPersistTaps={a0.keyboardShouldPersistTaps}
showsVerticalScrollIndicator={a0.showsVerticalScrollIndicator}
onViewableItemsChanged={a0.onViewableItemsChanged}
viewabilityConfigCallbackPairs={a0.viewabilityConfigCallbackPairs}
animatedProps={a0.animatedProps}
overScrollMode="never"
ref={a1}
/>
);
} else {
const BottomSheetFlashList = (require(8416) /* metro dependency 8416: flashList */).BottomSheetFlashList;
return (
<BottomSheetFlashList
ListHeaderComponent={a0.ListHeaderComponent}
onScroll={a0.onScroll}
contentContainerStyle={a0.contentContainerStyle}
scrollIndicatorInsets={a0.scrollIndicatorInsets}
renderItem={a0.renderItem}
getItemType={a0.getItemType}
data={a0.data}
estimatedItemSize={a0.estimatedItemSize}
preserveScrollMomentum={a0.preserveScrollMomentum}
automaticallyAdjustsScrollIndicatorInsets={a0.automaticallyAdjustsScrollIndicatorInsets}
keyboardDismissMode={a0.keyboardDismissMode}
keyboardShouldPersistTaps={a0.keyboardShouldPersistTaps}
showsVerticalScrollIndicator={a0.showsVerticalScrollIndicator}
lockableScrollableContentOffsetY={a0.lockableScrollableContentOffsetY}
onViewableItemsChanged={a0.onViewableItemsChanged}
viewabilityConfigCallbackPairs={a0.viewabilityConfigCallbackPairs}
bottomViewabilityInsetRef={a0.bottomViewabilityInsetRef}
ref={a1}
/>
);
}
}
function useAppLauncherFlashListProps(a0) { // fn#89250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:2302, offset: 0x0200679f, size: 56 bytes, params: 2, frame: 13
const binding = env0_2;
const useContext = binding.useContext;
const ControlsGestureScrollLock = (require(11644) /* metro dependency 11644: createUseAnimatedScrollLock */).ControlsGestureScrollLock;
return Reflect.apply(useContext, binding, [ControlsGestureScrollLock])(a0);
}
function useScrollViewComponent(a0) { // fn#89246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:226, offset: 0x02006694, size: 44 bytes, params: 2, frame: 14
const env0_0 = a0;
return env1_2.useMemo(_fun89247, [a0]);
}
function _fun89247() { // fn#89247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:279, offset: 0x020066c0, size: 51 bytes, params: 1, frame: 11
var environment;
var r0;
var value;
if (env0_0 == null) {
value = environment.__proto__.__proto__;
r0 = ScrollView;
} else {
value = environment.__proto__.__proto__;
value = env2_2.forwardRef(_fun89248);
r0 = value;
function useAppLauncherFlashListProps(a0) { // fn#89250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:2302, offset: 0x0200679f, size: 56 bytes, params: 2, frame: 13
const binding = env0_2;
const useContext = binding.useContext;
const ControlsGestureScrollLock = (CreateUseAnimatedScrollLockModule).ControlsGestureScrollLock;
return Reflect.apply(useContext, binding, [ControlsGestureScrollLock])(a0);
}
return r0;
}
function _fun89248(a0, a1) { // fn#89248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:307, offset: 0x020066f3, size: 111 bytes, params: 3, frame: 16
const value2 = env3_2.useMemo(_fun89249, []);
const GestureDetector = (require(5321) /* metro dependency 5321 */).GestureDetector;
return (
<GestureDetector gesture={value2}>
<ScrollView ref={a1} {...a0} />
</GestureDetector>
);
}
function _fun89249() { // fn#89249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11829:338, offset: 0x02006762, size: 61 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__.__proto__;
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
return Gesture.Native().simultaneousWithExternalGesture(env2_0);
}
global.__d(_fun89244, 11643, [31, 27, 33, 5321, 11644, 8774, 8048, 8416,
2]) /* metro module 11643, dependencies: [31, 27, 33, 5321, 11644, 8774, 8048, 8416, 2] */;
@@ -1,73 +1,85 @@
/* Metro module 11704; source: modules/app_launcher/native/base_components/AppLauncherList.tsx; dependencies: [31, 27, 33, 4501, 4584, 3860, 697, 1585, 11643, 1305, 11705, 1244, 6984, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import AppLauncherFlashList from './AppLauncherFlashList.tsx'; /* Metro dependency 11643 */
import Module11705 from '../../../../by-id/module-11705.js'; /* Metro dependency 11705 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as UseFontScaleModule from '../../../screen/native/useFontScale.tsx'; /* Metro dependency 4584 */
import * as SearchFieldNativeModule from '../../../../design/components/TextField/native/SearchField.native.tsx'; /* Metro dependency 6984 */
import * as AppLauncherFlashListModule from './AppLauncherFlashList.tsx'; /* Metro dependency 11643 */
function _fun89733(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:6, offset: 0x0201c04f, size: 268 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = 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({searchBarContainer: {marginBottom: 16},
let value = ReactModule;
const env0_5 = (CreateStylesModule).createStyles({searchBarContainer: {marginBottom: 16},
emptyState: {'backgroundColor': 'transparent', 'justifyContent': 'flex-start'}, emptyStateImage: {flex: 0}});
value = value.forwardRef(_fun89734);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherList.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherList.tsx');
exports.AppLauncherList = value;
exports.AppLauncherListEmptyState = AppLauncherListEmptyState;
exports.AppLauncherListSearchBar = AppLauncherListSearchBar;
function _fun89734(a0, a1) { // fn#89734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:314, offset: 0x0201c15b, size: 359 bytes, params: 3, frame: 22
const value = a1;
const value3 = (UseFontScaleModule).useFontScale();
let useToken = UseTokenModule.useToken;
const TABLE_ROW_HEIGHT = (Native).modules.mobile.TABLE_ROW_HEIGHT;
const value4 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_HEIGHT]);
useToken = UseTokenModule.useToken;
const TABLE_ROW_CONTENT_HEIGHT = (Native).modules.mobile.TABLE_ROW_CONTENT_HEIGHT;
const value5 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_CONTENT_HEIGHT]);
const Math = global.Math;
const value6 = value4 + Math.max(value3 * value5 - value5, 0);
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value7 = (AppLauncherFlashListModule).useAppLauncherFlashListProps();
const object = {};
const object2 = {paddingBottom: bottom};
copyDataProperties(object2, a0.contentContainerStyle, UseTokenModule);
object.contentContainerStyle = object2;
object.scrollIndicatorInsets = {bottom: bottom};
object.estimatedItemSize = value6;
object.ref = value7.scrollerRef ?? value;
copyDataProperties(object, a0, UseTokenModule);
object['animatedOnScroll'] = value7.onScroll;
object['simultaneousHandlers'] = value7.gestureRef;
object['animatedProps'] = value7.animatedProps;
return <AppLauncherFlashList {...object} />;
}
function AppLauncherListEmptyState() { // fn#89735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:1031, offset: 0x0201c2c2, size: 208 bytes, params: 1, frame: 19
const styles = useStyles();
const EmptyState = (NativeModule).EmptyState;
const emptyStateProps2 = {style: styles.emptyState, imageStyle: styles.emptyStateImage,
lightSource: Module11705,
darkSource: Module11705};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
emptyStateProps2.title = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.vYocDz]);
string = intl.string;
const V6nAfF = (require(1244) /* metro dependency 1244: indexNative */).t.V6nAfF;
emptyStateProps2.body = Reflect.apply(string, intl, [V6nAfF]);
return <EmptyState {...emptyStateProps2} />;
}
function AppLauncherListSearchBar(a0) { // fn#89736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:1317, offset: 0x0201c392, size: 97 bytes, params: 2, frame: 16
const styles = useStyles();
const SearchField = (SearchFieldNativeModule).SearchField;
return (
<View style={styles.searchBarContainer}>
<SearchField size="md" {...a0} />
</View>
);
}
}
function _fun89734(a0, a1) { // fn#89734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:314, offset: 0x0201c15b, size: 359 bytes, params: 3, frame: 22
const value = a1;
const value3 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
let useToken = useTokenModule.useToken;
const TABLE_ROW_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_HEIGHT;
const value4 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_HEIGHT]);
const moduleValue3 = useTokenModule;
useToken = moduleValue3.useToken;
const TABLE_ROW_CONTENT_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_CONTENT_HEIGHT;
const value5 = Reflect.apply(useToken, moduleValue3, [TABLE_ROW_CONTENT_HEIGHT]);
const Math = global.Math;
const value6 = value4 + Math.max(value3 * value5 - value5, 0);
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value7 = (require(11643) /* metro dependency 11643: AppLauncherFlashList */).useAppLauncherFlashListProps();
const AppLauncherFlashList = importDefault(11643) /* metro dependency 11643: AppLauncherFlashList */;
const object3 = {};
const object4 = {paddingBottom: bottom};
copyDataProperties(object4, a0.contentContainerStyle, useTokenModule);
object3.contentContainerStyle = object4;
object3.scrollIndicatorInsets = {bottom: bottom};
object3.estimatedItemSize = value6;
object3.ref = value7.scrollerRef ?? value;
copyDataProperties(object3, a0, useTokenModule);
object3['animatedOnScroll'] = value7.onScroll;
object3['simultaneousHandlers'] = value7.gestureRef;
object3['animatedProps'] = value7.animatedProps;
return <AppLauncherFlashList {...object3} />;
}
function AppLauncherListEmptyState() { // fn#89735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:1031, offset: 0x0201c2c2, size: 208 bytes, params: 1, frame: 19
const styles = useStyles();
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
const emptyStateProps2 = {style: styles.emptyState, imageStyle: styles.emptyStateImage,
lightSource: importDefault(11705) /* metro dependency 11705 */,
darkSource: importDefault(11705) /* metro dependency 11705 */};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
emptyStateProps2.title = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.vYocDz]);
string = intl.string;
const V6nAfF = (require(1244) /* metro dependency 1244: indexNative */).t.V6nAfF;
emptyStateProps2.body = Reflect.apply(string, intl, [V6nAfF]);
return <EmptyState {...emptyStateProps2} />;
}
function AppLauncherListSearchBar(a0) { // fn#89736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11890:1317, offset: 0x0201c392, size: 97 bytes, params: 2, frame: 16
const styles = useStyles();
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
return (
<View style={styles.searchBarContainer}>
<SearchField size="md" {...a0} />
</View>
);
}
global.__d(_fun89733, 11704, [31, 27, 33, 4501, 4584, 3860, 697, 1585, 11643, 1305, 11705, 1244, 6984,
2]) /* metro module 11704, dependencies: [31, 27, 33, 4501, 4584, 3860, 697, 1585, 11643, 1305, 11705, 1244, 6984, 2] */;
@@ -1,29 +1,35 @@
/* Metro module 11716; source: modules/app_launcher/native/base_components/AppLauncherOptionIcon.tsx; dependencies: [31, 27, 33, 4501, 697, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun89804(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11902:6, offset: 0x0201f343, size: 248 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).View;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
let value = require(4501) /* metro dependency 4501: createStyles */;
ReactModule;
let value = CreateStylesModule;
const createStyles = value.createStyles;
const object = {'justifyContent': 'center', 'alignItems': 'center'};
const object2 = {'justifyContent': 'center', 'alignItems': 'center'};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.backgroundColor = BACKGROUND_MOD_SUBTLE;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
value = Reflect.apply(createStyles, value, [{iconWrapper: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherOptionIcon.tsx');
object2.backgroundColor = BACKGROUND_MOD_SUBTLE;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
value = Reflect.apply(createStyles, value, [{iconWrapper: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherOptionIcon.tsx');
exports.default = AppLauncherOptionIcon;
exports.useAppLauncherOptionIconStyles = value;
function AppLauncherOptionIcon({wrapperStyle, wrapperSize, icon}) { // fn#89805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11902:420, offset: 0x0201f43b, size: 98 bytes, params: 2, frame: 18
wrapperSize = wrapperSize === undefined ? 32 : wrapperSize;
const styles = useStyles();
return (
<View style={[styles.iconWrapper, wrapperStyle, {height: wrapperSize, width: wrapperSize}]}>
{icon}
</View>
);
}
}
function AppLauncherOptionIcon({wrapperStyle, wrapperSize, icon}) { // fn#89805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11902:420, offset: 0x0201f43b, size: 98 bytes, params: 2, frame: 18
wrapperSize = wrapperSize === undefined ? 32 : wrapperSize;
const styles = useStyles();
return (
<View style={[styles.iconWrapper, wrapperStyle, {height: wrapperSize, width: wrapperSize}]}>
{icon}
</View>
);
}
global.__d(_fun89804, 11716, [31, 27, 33, 4501, 697,
2]) /* metro module 11716, dependencies: [31, 27, 33, 4501, 697, 2] */;
@@ -1,60 +1,78 @@
/* Metro module 11713; source: modules/app_launcher/native/base_components/AppLauncherSelectOptionFormRow.tsx; dependencies: [31, 33, 4501, 697, 11706, 7972, 4573, 1305, 6245, 2] */
import Module06245 from '../../../../by-id/module-06245.js'; /* Metro dependency 6245 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NativeModule2 from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as UseAnimationDelayedAutoFocusModule from '../hooks/useAnimationDelayedAutoFocus.tsx'; /* Metro dependency 11706 */
function _fun89788(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11899:6, offset: 0x0201e6f9, size: 240 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(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'flexDirection': 'row', 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {'flexDirection': 'row', 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
'flex': 1};
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_4 = Reflect.apply(createStyles, createStylesModule, [{formRow: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherSelectOptionFormRow.tsx');
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [{formRow: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/AppLauncherSelectOptionFormRow.tsx');
exports.default = AppLauncherSelectOptionFormRow;
function AppLauncherSelectOptionFormRow(a0) { // fn#89789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11899:408, offset: 0x0201e7e9, size: 381 bytes, params: 2, frame: 25
const style = a0.style;
const option = a0.option;
const selected = a0.selected;
const env0_0 = a0.selectedItemName;
const autoFocus = a0.autoFocus;
const object = {'style': 0, 'option': 0, 'selected': 0, 'selectedItemName': 0, 'autoFocus': 0};
const value = null;
silentSetPrototypeOf(object, value, undefined);
const value2 = copyDataProperties({}, a0, object, autoFocus);
const styles = useStyles();
(UseAnimationDelayedAutoFocusModule).useAnimationDelayedAutoFocus(autoFocus,
value2.onPress);
const FormRow = (NativeModule2).FormRow;
const formRowProps = {'start': true, 'end': true, style: [styles.formRow, style]};
const Text = (TextModule).Text;
formRowProps.label = (
<Text
variant={selected ? 'text-sm/medium' : 'text-md/medium'}
color={selected ? 'interactive-text-default' : 'text-default'}
lineClamp={1}
>
{option.displayName}
</Text>
);
formRowProps.subLabel = selected ? _fun89790 : value;
const Icon = (NativeModule).Icon;
const iconProps = {source: Module06245};
const IconSizes = (NativeModule).IconSizes;
const SMALL_20 = IconSizes.SMALL_20;
iconProps.size = SMALL_20;
formRowProps.trailing = <Icon {...iconProps} />;
copyDataProperties(formRowProps, value2, object);
return <FormRow {...formRowProps} />;
function _fun89790() { // fn#89790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11899:805, offset: 0x0201e966, size: 67 bytes, params: 1, frame: 14
const Text = (TextModule).Text;
return (
<Text
variant="text-md/medium"
color="text-default"
lineClamp={1}
>
{selectedItemName}
</Text>
);
}
}
}
function AppLauncherSelectOptionFormRow(a0) { // fn#89789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11899:408, offset: 0x0201e7e9, size: 381 bytes, params: 2, frame: 25
const style = a0.style;
const option = a0.option;
const selected = a0.selected;
const env0_0 = a0.selectedItemName;
const autoFocus = a0.autoFocus;
const object2 = {'style': 0, 'option': 0, 'selected': 0, 'selectedItemName': 0, 'autoFocus': 0};
const value = null;
silentSetPrototypeOf(object2, value, undefined);
const value2 = copyDataProperties({}, a0, object2, autoFocus);
const styles = useStyles();
(require(11706) /* metro dependency 11706: useAnimationDelayedAutoFocus */).useAnimationDelayedAutoFocus(autoFocus,
value2.onPress);
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
const formRowProps = {'start': true, 'end': true, style: [styles.formRow, style]};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
formRowProps.label = <Text variant={selected ? 'text-sm/medium' : 'text-md/medium'} color={selected ? 'interactive-text-default' : 'text-default'} lineClamp={1}>{option.displayName}</Text>;
formRowProps.subLabel = selected ? _fun89790 : value;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps = {source: importDefault(6245) /* metro dependency 6245 */};
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
const SMALL_20 = IconSizes.SMALL_20;
iconProps.size = SMALL_20;
formRowProps.trailing = <Icon {...iconProps} />;
copyDataProperties(formRowProps, value2, object2);
return <FormRow {...formRowProps} />;
}
function _fun89790() { // fn#89790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11899:805, offset: 0x0201e966, size: 67 bytes, params: 1, frame: 14
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-md/medium"
color="text-default"
lineClamp={1}
>
{selectedItemName}
</Text>
);
}
global.__d(_fun89788, 11713, [31, 33, 4501, 697, 11706, 7972, 4573, 1305, 6245,
2]) /* metro module 11713, dependencies: [31, 33, 4501, 697, 11706, 7972, 4573, 1305, 6245, 2] */;
@@ -1,273 +1,286 @@
/* Metro module 11646; source: modules/app_launcher/native/base_components/CommandRowButton.tsx; dependencies: [5, 57, 31, 33, 11573, 8046, 11647, 5068, 6243, 4578, 1244, 4058, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun89296(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:6, offset: 0x02008638, size: 170 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/CommandRowButton.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/CommandRowButton.tsx');
exports.default = CommandRowIcon;
}
function CommandRowIcon({command, context, beforeExecuteCommand, onExecuteCommand, tryExecuteCommand, sectionName}) { // fn#89297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:249, offset: 0x020086e2, size: 455 bytes, params: 2, frame: 24
var r0;
var Button;
var intl;
const env0_2 = onExecuteCommand;
const env0_3 = tryExecuteCommand;
const env0_4 = sectionName;
const value = (command.options ?? []).length > 0;
const binding = env0_4;
const [property, env0_5] = env0_3(binding.useState(false), 2);
if (value) {
const TableRowArrow = (require(6243) /* metro dependency 6243: TableRowArrowNative */).TableRowArrow;
r0 = <TableRowArrow />;
} else {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <Button size="sm" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S)} onPress={binding.useCallback(_fun89300,
[tryExecuteCommand, binding.useCallback(env0_2(_fun89299), [onExecuteCommand, command,
(require(11573) /* metro dependency 11573: useCommandContext */).useCommandContext(context),
beforeExecuteCommand,
sectionName])])} icon={((SendMessageIcon) => <SendMessageIcon size="sm" />)((require(4058) /* metro dependency 4058: SendMessageIcon */).SendMessageIcon)} iconPosition="end" grow={false} variant="tertiary" disabled={property} />;
}
return r0;
}
function* _fun89299() { // fn#89299, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:506, offset: 0x020088b4, size: 248 bytes, params: 1, frame: 24
var binding;
var binding2;
var property;
var value4;
var executeAppLauncherCommand;
var object3;
var value5;
var parseOptionValuesForSend;
var binding3;
var channel;
var object4;
var optionValuesForSend;
var binding4;
var binding5;
var value6;
var CommandOrigin;
var APP_LAUNCHER_APPLICATION_VIEW;
var value7;
var value8;
var value9;
var value10;
var error;
if (true) {
value = environment.__proto__;
env1_5(true);
if (dependencyMap != null) {
dependencyMap();
function CommandRowIcon({command, context, beforeExecuteCommand, onExecuteCommand, tryExecuteCommand, sectionName}) { // fn#89297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:249, offset: 0x020086e2, size: 455 bytes, params: 2, frame: 24
var r0;
var Button;
var intl;
const onExecuteCommand2 = onExecuteCommand;
const tryExecuteCommand2 = tryExecuteCommand;
const sectionName2 = sectionName;
const value = (command.options ?? []).length > 0;
const binding = sectionName2;
const [property, env0_5] = tryExecuteCommand2(binding.useState(false), 2);
if (value) {
const TableRowArrow = (require(6243) /* metro dependency 6243: TableRowArrowNative */).TableRowArrow;
r0 = <TableRowArrow />;
} else {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = (
<Button
size="sm"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S)}
onPress={binding.useCallback(_fun89300, [tryExecuteCommand,
binding.useCallback(onExecuteCommand2(_fun89299), [onExecuteCommand, command,
(require(11573) /* metro dependency 11573: useCommandContext */).useCommandContext(context),
beforeExecuteCommand, sectionName])])}
icon={((SendMessageIcon) => <SendMessageIcon size="sm" />)((require(4058) /* metro dependency 4058: SendMessageIcon */).SendMessageIcon)}
iconPosition="end"
grow={false}
variant="tertiary"
disabled={property}
/>
);
}
try {
binding = env2_0;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding2 = env2_1;
} catch (error) {
env1_5(false);
throw error;
}
try {
property = binding2[5];
} catch (error) {
env1_5(false);
throw error;
}
try {
value4 = binding(property);
} catch (error) {
env1_5(false);
throw error;
}
try {
executeAppLauncherCommand = value4.executeAppLauncherCommand;
} catch (error) {
env1_5(false);
throw error;
}
try {
object3 = {};
} catch (error) {
env1_5(false);
throw error;
}
try {
} catch (error) {
env1_5(false);
throw error;
}
try {
object3.command = require;
} catch (error) {
env1_5(false);
throw error;
}
try {
property = binding2[6];
} catch (error) {
env1_5(false);
throw error;
}
try {
value5 = binding(property);
} catch (error) {
env1_5(false);
throw error;
}
try {
parseOptionValuesForSend = value5.parseOptionValuesForSend;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding3 = env1_6;
} catch (error) {
env1_5(false);
throw error;
}
try {
channel = binding3.channel;
} catch (error) {
env1_5(false);
throw error;
}
try {
object4 = {};
} catch (error) {
env1_5(false);
throw error;
}
try {
optionValuesForSend = Reflect.apply(parseOptionValuesForSend, value5, [channel, require, object4]);
} catch (error) {
env1_5(false);
throw error;
}
try {
object3.optionValues = optionValuesForSend;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding4 = env1_6;
} catch (error) {
env1_5(false);
throw error;
}
try {
object3.context = binding4;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding5 = env1_4;
} catch (error) {
env1_5(false);
throw error;
}
try {
object3.sectionName = binding5;
} catch (error) {
env1_5(false);
throw error;
}
try {
property = binding2[7];
} catch (error) {
env1_5(false);
throw error;
}
try {
value6 = binding(property);
} catch (error) {
env1_5(false);
throw error;
}
try {
CommandOrigin = value6.CommandOrigin;
} catch (error) {
env1_5(false);
throw error;
}
try {
APP_LAUNCHER_APPLICATION_VIEW = CommandOrigin.APP_LAUNCHER_APPLICATION_VIEW;
} catch (error) {
env1_5(false);
throw error;
}
try {
object3.commandOrigin = APP_LAUNCHER_APPLICATION_VIEW;
} catch (error) {
env1_5(false);
throw error;
}
try {
value7 = Reflect.apply(executeAppLauncherCommand, value4, [object3]);
} catch (error) {
env1_5(false);
throw error;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
env1_5(false);
throw error;
}
if (value9) {
env1_5(false);
return value8;
}
try {
binding = env1_2;
} catch (error) {
env1_5(false);
throw error;
}
try {
value10 = binding == null;
} catch (error) {
env1_5(false);
throw error;
}
if (!value10) {
try {
binding = env1_2;
} catch (error) {
return r0;
function* _fun89299() { // fn#89299, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:506, offset: 0x020088b4, size: 248 bytes, params: 1, frame: 24
var binding;
var binding2;
var property;
var value4;
var executeAppLauncherCommand;
var object;
var value5;
var parseOptionValuesForSend;
var binding3;
var channel;
var object2;
var optionValuesForSend;
var binding4;
var binding5;
var value6;
var CommandOrigin;
var APP_LAUNCHER_APPLICATION_VIEW;
var value7;
var value8;
var value9;
var value10;
var error;
if (true) {
value = environment.__proto__;
env1_5(true);
if (dependencyMap != null) {
dependencyMap();
}
try {
binding = env2_0;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding2 = env2_1;
} catch (error) {
env1_5(false);
throw error;
}
try {
property = binding2[5];
} catch (error) {
env1_5(false);
throw error;
}
try {
value4 = binding(property);
} catch (error) {
env1_5(false);
throw error;
}
try {
executeAppLauncherCommand = value4.executeAppLauncherCommand;
} catch (error) {
env1_5(false);
throw error;
}
try {
object = {};
} catch (error) {
env1_5(false);
throw error;
}
try {
} catch (error) {
env1_5(false);
throw error;
}
try {
object.command = require;
} catch (error) {
env1_5(false);
throw error;
}
try {
property = binding2[6];
} catch (error) {
env1_5(false);
throw error;
}
try {
value5 = binding(property);
} catch (error) {
env1_5(false);
throw error;
}
try {
parseOptionValuesForSend = value5.parseOptionValuesForSend;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding3 = env1_6;
} catch (error) {
env1_5(false);
throw error;
}
try {
channel = binding3.channel;
} catch (error) {
env1_5(false);
throw error;
}
try {
object2 = {};
} catch (error) {
env1_5(false);
throw error;
}
try {
optionValuesForSend = Reflect.apply(parseOptionValuesForSend, value5, [channel, require, object2]);
} catch (error) {
env1_5(false);
throw error;
}
try {
object.optionValues = optionValuesForSend;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding4 = env1_6;
} catch (error) {
env1_5(false);
throw error;
}
try {
object.context = binding4;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding5 = env1_4;
} catch (error) {
env1_5(false);
throw error;
}
try {
object.sectionName = binding5;
} catch (error) {
env1_5(false);
throw error;
}
try {
property = binding2[7];
} catch (error) {
env1_5(false);
throw error;
}
try {
value6 = binding(property);
} catch (error) {
env1_5(false);
throw error;
}
try {
CommandOrigin = value6.CommandOrigin;
} catch (error) {
env1_5(false);
throw error;
}
try {
APP_LAUNCHER_APPLICATION_VIEW = CommandOrigin.APP_LAUNCHER_APPLICATION_VIEW;
} catch (error) {
env1_5(false);
throw error;
}
try {
object.commandOrigin = APP_LAUNCHER_APPLICATION_VIEW;
} catch (error) {
env1_5(false);
throw error;
}
try {
value7 = Reflect.apply(executeAppLauncherCommand, value4, [object]);
} catch (error) {
env1_5(false);
throw error;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
env1_5(false);
throw error;
}
if (value9) {
env1_5(false);
return value8;
}
try {
binding = env1_2;
} catch (error) {
env1_5(false);
throw error;
}
try {
value10 = binding == null;
} catch (error) {
env1_5(false);
throw error;
}
if (!value10) {
try {
binding = env1_2;
} catch (error) {
env1_5(false);
throw error;
}
try {
binding();
} catch (error) {
env1_5(false);
throw error;
}
}
env1_5(false);
throw error;
}
try {
binding();
} catch (error) {
env1_5(false);
throw error;
}
}
env1_5(false);
}
}
function _fun89300() { // fn#89300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:807, offset: 0x020089ac, size: 44 bytes, params: 1, frame: 11
if (tryExecuteCommand != null) {
tryExecuteCommand(env0_7);
} else {
env0_7();
function _fun89300() { // fn#89300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11832:807, offset: 0x020089ac, size: 44 bytes, params: 1, frame: 11
if (tryExecuteCommand != null) {
tryExecuteCommand(env0_7);
} else {
env0_7();
}
}
}
}
global.__d(_fun89296, 11646, [5, 57, 31, 33, 11573, 8046, 11647, 5068, 6243, 4578, 1244, 4058,
2]) /* metro module 11646, dependencies: [5, 57, 31, 33, 11573, 8046, 11647, 5068, 6243, 4578, 1244, 4058, 2] */;
@@ -1,28 +1,33 @@
/* Metro module 11597; source: modules/app_launcher/native/base_components/EntityBorderAppIcon.tsx; dependencies: [27, 33, 697, 4501, 5475, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import FastImage from '../../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun88808(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11783:6, offset: 0x01ff2eac, size: 200 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0, a1) {
var object3 = {'padding': 1, 'backgroundColor': null, 'overflow': 'hidden'};
object3.backgroundColor = importDefault(dependencyMap[2]).colors.BORDER_SUBTLE;
object3.borderRadius = a1 + 1;
return {appIcon: {width: a0, height: a0, borderRadius: a1}, entityWrapper: object3};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/EntityBorderAppIcon.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/EntityBorderAppIcon.tsx');
exports.default = EntityBorderAppIcon;
function EntityBorderAppIcon({iconSource, wrapperStyle, iconStyle, iconSize, iconBorderRadius = sm}) { // fn#88810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11783:440, offset: 0x01ff2fd9, size: 164 bytes, params: 2, frame: 20
iconSize = iconSize === undefined ? 32 : iconSize;
const styles = useStyles(iconSize, iconBorderRadius);
return (
<View style={[styles.entityWrapper, wrapperStyle]}>
{((Component) => <Component style={[styles.appIcon,
iconStyle]} source={iconSource} />)(FastImage)}
</View>
);
}
}
function EntityBorderAppIcon({iconSource, wrapperStyle, iconStyle, iconSize, iconBorderRadius = sm}) { // fn#88810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11783:440, offset: 0x01ff2fd9, size: 164 bytes, params: 2, frame: 20
iconSize = iconSize === undefined ? 32 : iconSize;
const styles = useStyles(iconSize, iconBorderRadius);
return (
<View style={[styles.entityWrapper, wrapperStyle]}>
{((Component) => <Component style={[styles.appIcon,
iconStyle]} source={iconSource} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
);
}
global.__d(_fun88808, 11597, [27, 33, 697, 4501, 5475,
2]) /* metro module 11597, dependencies: [27, 33, 697, 4501, 5475, 2] */;
@@ -1,191 +1,208 @@
/* Metro module 11650; source: modules/app_launcher/native/base_components/ExpandableList.tsx; dependencies: [57, 31, 27, 33, 4501, 6266, 4017, 4504, 4507, 6238, 1244, 4573, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun89335(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:6, offset: 0x02009941, size: 295 bytes, params: 8, frame: 21
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 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = value.Fragment;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({animatedListContainer: {overflow: 'hidden'},
const env0_9 = (CreateStylesModule).createStyles({animatedListContainer: {overflow: 'hidden'},
expandCTALabelContainer: {alignItems: 'center'}});
object = {code: 'function ExpandableListTsx1(){const{expanded,collapsedListHeight,remainingListHeight}=this.__closure;if(expanded&&collapsedListHeight.get()!==0&&remainingListHeight.get()!==0){return collapsedListHeight.get()+remainingListHeight.get();}return collapsedListHeight.get();}'};
object = {code: 'function ExpandableListTsx2(){const{collapsedListHeight,withTiming,containerHeight,timingStandard}=this.__closure;if(collapsedListHeight.get()!==0){return{height:withTiming(containerHeight.get(),timingStandard)};}else{return{};}}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/ExpandableList.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/ExpandableList.tsx');
exports.default = ExpandableList;
exports.COLLAPSED_LIST_ITEM_MAX = 4;
}
function ExpandableList({items, onExpand, onExpandCTAPress, expandedOverride, showsExpandCTAOverride, disableExpanding, title}) { // fn#89336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:917, offset: 0x02009a68, size: 1277 bytes, params: 2, frame: 33
var object2;
var TableRow;
var object8;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const env0_3 = expandedOverride;
const styles = useStyles();
let binding = disableExpanding;
const useState = binding.useState;
let r1 = expandedOverride != null && expandedOverride;
const value5 = env0_3(Reflect.apply(useState, binding, [r1]), 2);
const property = value5[0];
const env0_6 = value5[1];
r1 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(property) ?? property;
binding = disableExpanding;
binding.useEffect(_fun89337, [property, onExpand, r1]);
binding.useEffect(_fun89338, [expandedOverride]);
const Math = global.Math;
const value7 = Math.min(4, items.length);
let r5 = showsExpandCTAOverride ?? items.length > value7;
const value9 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const value10 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const env0_10 = value10;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useDerivedValue = reanimatedRexportModule.useDerivedValue;
let closure = ExpandableListA;
closure.__closure = {expanded: property, collapsedListHeight: value9, remainingListHeight: value10};
closure.__workletHash = 17033418452229;
closure.__initData = env0_10;
const value11 = Reflect.apply(useDerivedValue, reanimatedRexportModule, [closure]);
const env0_11 = value11;
binding = disableExpanding;
const value12 = binding.useMemo(_fun89340, [items, value7]);
const value13 = binding.useMemo(_fun89341, [items, value7]);
const moduleValue4 = reanimatedRexportModule;
const useAnimatedStyle = moduleValue4.useAnimatedStyle;
closure = ExpandableListP;
object2 = {collapsedListHeight: value9};
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.containerHeight = value11;
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
closure.__closure = object2;
closure.__workletHash = 2086836441465;
closure.__initData = env0_11;
const value14 = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
closure = function(a0) {
var items = a0.items;
var env0_0 = items;
var hasListEnd = a0.hasListEnd;
var env0_1 = hasListEnd !== undefined ? hasListEnd : false;
return items.map(_fun89344);
};
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const value15 = !r5;
const view = <View2 style={[styles.animatedListContainer,
value14]}><View onLayout={onLayout_89345}>{closure({items: value12,
hasListEnd: r5 ? value15 : !property})}</View>{value13.length > 0 && <View onLayout={onLayout_89346} accessibilityElementsHidden={!property} importantForAccessibility={property ? undefined : 'no-hide-descendants'}>{closure({items: value13,
hasListEnd: value15})}</View>}</View2>;
if (r5) {
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
r5 = <View><TableRow accessibilityLabel={property ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nPGLFQ) : title != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['bj/2kV'],
{title: title}) : undefined} label={<View style={styles.expandCTALabelContainer}>{((Text) => <Text color="text-brand" variant="text-md/semibold">{property ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nPGLFQ) : intl.format((require(1244) /* metro dependency 1244: indexNative */).t.gVw57p,
{})}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>} onPress={onPress_89347} end /></View>;
}
return (
<>
{view}
{r5}
</>
);
}
function _fun89337() { // fn#89337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1154, offset: 0x02009f65, size: 49 bytes, params: 1, frame: 10
if (env0_7 !== env0_5 && env0_5) {
if (onExpand != null) {
onExpand();
function ExpandableList({items, onExpand, onExpandCTAPress, expandedOverride, showsExpandCTAOverride, disableExpanding, title}) { // fn#89336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:917, offset: 0x02009a68, size: 1277 bytes, params: 2, frame: 33
var TableRow;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const expandedOverride2 = expandedOverride;
const styles = useStyles();
let binding = disableExpanding;
const useState = binding.useState;
let r1 = expandedOverride != null && expandedOverride;
const value5 = expandedOverride2(Reflect.apply(useState, binding, [r1]), 2);
const property = value5[0];
const env0_6 = value5[1];
r1 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(property) ?? property;
binding = disableExpanding;
binding.useEffect(_fun89337, [property, onExpand, r1]);
binding.useEffect(_fun89338, [expandedOverride]);
const Math = global.Math;
const value7 = Math.min(4, items.length);
let r5 = showsExpandCTAOverride ?? items.length > value7;
const value9 = (ReanimatedRexportModule).useSharedValue(0);
const value10 = (ReanimatedRexportModule).useSharedValue(0);
const env0_10 = value10;
const useDerivedValue = ReanimatedRexportModule.useDerivedValue;
let closure = ExpandableListA;
closure.__closure = {expanded: property, collapsedListHeight: value9, remainingListHeight: value10};
closure.__workletHash = 17033418452229;
closure.__initData = env0_10;
const value11 = Reflect.apply(useDerivedValue, ReanimatedRexportModule, [closure]);
const env0_11 = value11;
binding = disableExpanding;
const value12 = binding.useMemo(_fun89340, [items, value7]);
const value13 = binding.useMemo(_fun89341, [items, value7]);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = ExpandableListP;
object = {collapsedListHeight: value9};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.containerHeight = value11;
object.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
closure.__closure = object;
closure.__workletHash = 2086836441465;
closure.__initData = env0_11;
const value14 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
closure = function(a0) {
var items = a0.items;
var env0_0 = items;
var hasListEnd = a0.hasListEnd;
var env0_1 = hasListEnd !== undefined ? hasListEnd : false;
return items.map(_fun89344);
};
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const View2 = (ReanimatedRexport).View;
const value15 = !r5;
const view = (
<View2 style={[styles.animatedListContainer, value14]}>
<View onLayout={onLayout_89345}>
{closure({items: value12, hasListEnd: r5 ? value15 : !property})}
</View>
{value13.length > 0 && <View onLayout={onLayout_89346} accessibilityElementsHidden={!property} importantForAccessibility={property ? undefined : 'no-hide-descendants'}>{closure({items: value13,
hasListEnd: value15})}</View>}
</View2>
);
if (r5) {
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
r5 = (
<View>
<TableRow
accessibilityLabel={property ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nPGLFQ) : title != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['bj/2kV'],
{title: title}) : undefined}
label={<View style={styles.expandCTALabelContainer}>
{((Text) => <Text color="text-brand" variant="text-md/semibold">{property ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nPGLFQ) : intl.format((require(1244) /* metro dependency 1244: indexNative */).t.gVw57p,
{})}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
</View>}
onPress={onPress_89347}
end
/>
</View>
);
}
return (
<>
{view}
{r5}
</>
);
function _fun89337() { // fn#89337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1154, offset: 0x02009f65, size: 49 bytes, params: 1, frame: 10
if (JsxRuntimeModule.jsxs !== ReactNativeModule.View && ReactNativeModule.View) {
if (onExpand != null) {
onExpand();
}
}
}
}
}
function _fun89338() { // fn#89338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1208, offset: 0x02009f96, size: 28 bytes, params: 1, frame: 11
if (expandedOverride !== undefined) {
env0_6(expandedOverride);
}
}
function _fun89338() { // fn#89338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1208, offset: 0x02009f96, size: 28 bytes, params: 1, frame: 11
if (expandedOverride !== undefined) {
env0_6(expandedOverride);
}
}
function ExpandableListA() { // fn#89339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1377, owner: ExpandableList.A, offset: 0x02009fb2, size: 93 bytes, params: 1, frame: 11
var r0;
var binding;
var value3;
if (env0_5) {
binding = env0_9;
if (binding.get() === 0) {
r0 = env0_9.get();
} else {
binding = env0_10;
if (binding.get() !== 0) {
function ExpandableListA() { // fn#89339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1377, owner: ExpandableList.A, offset: 0x02009fb2, size: 93 bytes, params: 1, frame: 11
var r0;
var binding;
var value3;
if (ReactNativeModule.View) {
binding = env0_9;
value3 = binding.get();
binding = env0_10;
r0 = value3 + binding.get();
if (binding.get() === 0) {
r0 = env0_9.get();
} else {
binding = env0_10;
if (binding.get() !== 0) {
binding = env0_9;
value3 = binding.get();
binding = env0_10;
r0 = value3 + binding.get();
} else {
r0 = env0_9.get();
}
}
} else {
r0 = env0_9.get();
}
return r0;
}
} else {
r0 = env0_9.get();
function _fun89340() { // fn#89340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1578, offset: 0x0200a00f, size: 26 bytes, params: 1, frame: 13
return items.slice(0, JsxRuntimeModule.Fragment);
}
function _fun89341() { // fn#89341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1616, offset: 0x0200a029, size: 29 bytes, params: 1, frame: 13
const itemsBinding = items;
return itemsBinding.slice(JsxRuntimeModule.Fragment, itemsBinding.length);
}
function ExpandableListP() { // fn#89342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1679, owner: ExpandableList.P, offset: 0x0200a046, size: 104 bytes, params: 1, frame: 18
var r0;
var object;
var value3;
var moduleValue;
if (env0_9.get() !== 0) {
object = {};
value3 = environment.__proto__;
moduleValue = require(4504) /* metro dependency 4504: timing */;
object.height = moduleValue.withTiming(env0_11.get(),
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
r0 = object;
} else {
r0 = {};
}
return r0;
}
function renderItems({items, hasListEnd}) { // fn#89343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1955, owner: ExpandableList.renderItems, offset: 0x0200a0ae, size: 52 bytes, params: 2, frame: 12
if (hasListEnd !== undefined) {
}
return items.map(_fun89344);
function _fun89344(a0, a1) { // fn#89344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1991, offset: 0x0200a0e2, size: 58 bytes, params: 3, frame: 12
const hasListEndBinding = hasListEnd;
return a0({isLastRow: hasListEndBinding ? a1 === items.length - 1 : !!hasListEndBinding});
}
}
function ExpandableListOnLayout({nativeEvent}) { // fn#89345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:2132, owner: ExpandableList.onLayout, offset: 0x0200a11c, size: 41 bytes, params: 2, frame: 11
const binding = env0_9;
binding.set(nativeEvent.layout.height);
}
function ExpandableListOnLayout_89346({nativeEvent}) { // fn#89346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:2250, owner: ExpandableList.onLayout, offset: 0x0200a145, size: 41 bytes, params: 2, frame: 11
const binding = env0_10;
binding.set(nativeEvent.layout.height);
}
function ExpandableListOnPress() { // fn#89347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:2829, owner: ExpandableList.onPress, offset: 0x0200a16e, size: 62 bytes, params: 1, frame: 13
const r3 = disableExpanding !== true && !ReactNativeModule.View;
env0_6(r3);
if (onExpandCTAPress != null) {
onExpandCTAPress({expanded: r3});
}
}
}
return r0;
}
function _fun89340() { // fn#89340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1578, offset: 0x0200a00f, size: 26 bytes, params: 1, frame: 13
return items.slice(0, env0_8);
}
function _fun89341() { // fn#89341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1616, offset: 0x0200a029, size: 29 bytes, params: 1, frame: 13
const itemsBinding = items;
return itemsBinding.slice(env0_8, itemsBinding.length);
}
function ExpandableListP() { // fn#89342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1679, owner: ExpandableList.P, offset: 0x0200a046, size: 104 bytes, params: 1, frame: 18
var r0;
var object2;
var value3;
var moduleValue;
if (env0_9.get() !== 0) {
object2 = {};
value3 = environment.__proto__;
moduleValue = require(4504) /* metro dependency 4504: timing */;
object2.height = moduleValue.withTiming(env0_11.get(),
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
r0 = object2;
} else {
r0 = {};
}
return r0;
}
function renderItems({items, hasListEnd}) { // fn#89343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1955, owner: ExpandableList.renderItems, offset: 0x0200a0ae, size: 52 bytes, params: 2, frame: 12
if (hasListEnd !== undefined) {
}
return items.map(_fun89344);
}
function ExpandableListOnLayout({nativeEvent}) { // fn#89345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:2132, owner: ExpandableList.onLayout, offset: 0x0200a11c, size: 41 bytes, params: 2, frame: 11
const binding = env0_9;
binding.set(nativeEvent.layout.height);
}
function ExpandableListOnLayout_89346({nativeEvent}) { // fn#89346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:2250, owner: ExpandableList.onLayout, offset: 0x0200a145, size: 41 bytes, params: 2, frame: 11
const binding = env0_10;
binding.set(nativeEvent.layout.height);
}
function ExpandableListOnPress() { // fn#89347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:2829, owner: ExpandableList.onPress, offset: 0x0200a16e, size: 62 bytes, params: 1, frame: 13
const r3 = disableExpanding !== true && !env0_5;
env0_6(r3);
if (onExpandCTAPress != null) {
onExpandCTAPress({expanded: r3});
}
}
function _fun89344(a0, a1) { // fn#89344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11836:1991, offset: 0x0200a0e2, size: 58 bytes, params: 3, frame: 12
const hasListEndBinding = hasListEnd;
return a0({isLastRow: hasListEndBinding ? a1 === items.length - 1 : !!hasListEndBinding});
}
global.__d(_fun89335, 11650, [57, 31, 27, 33, 4501, 6266, 4017, 4504, 4507, 6238, 1244, 4573,
2]) /* metro module 11650, dependencies: [57, 31, 27, 33, 4501, 6266, 4017, 4504, 4507, 6238, 1244, 4573, 2] */;
@@ -1,56 +1,62 @@
/* Metro module 11631; source: modules/app_launcher/native/base_components/PlaceholderAppRow.tsx; dependencies: [31, 27, 33, 4501, 697, 11595, 6238, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as UsePlaceholderSizeModule from '../hooks/usePlaceholderSize.tsx'; /* Metro dependency 11595 */
function _fun89202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11817:6, offset: 0x02004021, size: 397 bytes, params: 8, frame: 24
var object5;
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;
object5 = {};
const object6 = {'width': 32, 'height': 32};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'width': 32, 'height': 32};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
let BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object6.backgroundColor = BACKGROUND_MOD_SUBTLE;
object5.loadingAppIcon = object6;
const object7 = {'backgroundColor': null, 'height': 16, 'marginBottom': 4, 'borderRadius': null,
object2.backgroundColor = BACKGROUND_MOD_SUBTLE;
object.loadingAppIcon = object2;
const object3 = {'backgroundColor': null, 'height': 16, 'marginBottom': 4, 'borderRadius': null,
'alignSelf': 'flex-start'};
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object7.backgroundColor = BACKGROUND_MOD_SUBTLE;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object5.loadingTextPlaceholder = object7;
const object8 = {};
object3.backgroundColor = BACKGROUND_MOD_SUBTLE;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.loadingTextPlaceholder = object3;
const object4 = {};
BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object8.backgroundColor = BACKGROUND_MOD_SUBTLE;
object8.height = 16;
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object8.alignSelf = 'flex-start';
object5.loadingTextPlaceholderSmall = object8;
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object5]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/PlaceholderAppRow.tsx');
object4.backgroundColor = BACKGROUND_MOD_SUBTLE;
object4.height = 16;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object4.alignSelf = 'flex-start';
object.loadingTextPlaceholderSmall = object4;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/PlaceholderAppRow.tsx');
exports.default = PlaceholderAppRow;
function PlaceholderAppRow({isFirstRow, isLastRow}) { // fn#89203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11817:689, offset: 0x020041ae, size: 317 bytes, params: 2, frame: 26
isFirstRow = !(isFirstRow === undefined) && isFirstRow;
isLastRow = !(isLastRow === undefined) && isLastRow;
const styles = useStyles();
const value2 = (UsePlaceholderSizeModule).usePlaceholderWidth(10, 50);
const value3 = (UsePlaceholderSizeModule).usePlaceholderWidth(30, 90);
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
icon={<View style={styles.loadingAppIcon} />}
label={<View style={[styles.loadingTextPlaceholder, {width: '' + value2 + '%'}]} />}
subLabel={<View style={[styles.loadingTextPlaceholderSmall, {width: '' + value3 + '%'}]} />}
subLabelLineClamp={1}
start={isFirstRow}
end={isLastRow}
onPress={function() {
}}
/>
);
}
}
function PlaceholderAppRow({isFirstRow, isLastRow}) { // fn#89203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11817:689, offset: 0x020041ae, size: 317 bytes, params: 2, frame: 26
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.loadingAppIcon} />}
label={<View style={[styles.loadingTextPlaceholder, {width: '' + value2 + '%'}]} />}
subLabel={<View style={[styles.loadingTextPlaceholderSmall, {width: '' + value3 + '%'}]} />}
subLabelLineClamp={1}
start={isFirstRow}
end={isLastRow}
onPress={function() {
}}
/>
);
}
global.__d(_fun89202, 11631, [31, 27, 33, 4501, 697, 11595, 6238,
2]) /* metro module 11631, dependencies: [31, 27, 33, 4501, 697, 11595, 6238, 2] */;
@@ -1,30 +1,37 @@
/* Metro module 11634; source: modules/app_launcher/native/base_components/RecommendationAppRow.tsx; dependencies: [31, 33, 1423, 11623, 2] */
import AvatarUtils from '../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AppLauncherHomeScreenModule from '../screens/home/AppLauncherHomeScreen.tsx'; /* Metro dependency 11623 */
function _fun89213(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11820:6, offset: 0x02004ea7, 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/base_components/RecommendationAppRow.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/RecommendationAppRow.tsx');
exports.default = RecommendationAppRow;
function RecommendationAppRow({application, onPress, isFirstRow, isLastRow, showsPromoted}) { // fn#89214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11820:230, offset: 0x02004f31, size: 187 bytes, params: 2, frame: 21
isFirstRow = !(isFirstRow === undefined) && isFirstRow;
isLastRow = !(isLastRow === undefined) && isLastRow;
showsPromoted = !(showsPromoted === undefined) && showsPromoted;
const applicationIconSource = (AvatarUtils).getApplicationIconSource({id: application.id,
icon: application.icon, bot: application.bot, botIconFirst: true});
const BaseAppRow = (AppLauncherHomeScreenModule).BaseAppRow;
return (
<BaseAppRow
application={application}
iconSource={applicationIconSource}
onPress={onPress}
isFirstRow={isFirstRow}
isLastRow={isLastRow}
showsPromoted={showsPromoted}
/>
);
}
}
function RecommendationAppRow({application, onPress, isFirstRow, isLastRow, showsPromoted}) { // fn#89214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11820:230, offset: 0x02004f31, size: 187 bytes, params: 2, frame: 21
isFirstRow = !(isFirstRow === undefined) && isFirstRow;
isLastRow = !(isLastRow === undefined) && isLastRow;
showsPromoted = !(showsPromoted === undefined) && showsPromoted;
const applicationIconSource = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getApplicationIconSource({id: application.id,
icon: application.icon, bot: application.bot, botIconFirst: true});
const BaseAppRow = (require(11623) /* metro dependency 11623: AppLauncherHomeScreen */).BaseAppRow;
return (
<BaseAppRow
application={application}
iconSource={applicationIconSource}
onPress={onPress}
isFirstRow={isFirstRow}
isLastRow={isLastRow}
showsPromoted={showsPromoted}
/>
);
}
global.__d(_fun89213, 11634, [31, 33, 1423, 11623,
2]) /* metro module 11634, dependencies: [31, 33, 1423, 11623, 2] */;
@@ -1,50 +1,73 @@
/* Metro module 11721; source: modules/app_launcher/native/base_components/UsernameText.tsx; dependencies: [31, 33, 4617, 4573, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NicknameUtilsModule from '../../../../utils/NicknameUtils.tsx'; /* Metro dependency 4617 */
function _fun89832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11907:6, offset: 0x020203ac, size: 150 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 value = require(33) /* metro dependency 33 */;
const env0_2 = value.jsxs;
const env0_3 = value.Fragment;
const env0_4 = value.jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/UsernameText.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/UsernameText.tsx');
exports.default = UsernameText;
function UsernameText({user, guildId, variant, color}) { // fn#89833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11907:248, offset: 0x02020442, size: 463 bytes, params: 2, frame: 24
const Text = (TextModule).Text;
var r11;
var r5;
var jsxRuntimeEnv0_3Binding;
var items2;
var items3;
variant = variant === undefined ? 'text-md/medium' : variant;
color = color === undefined ? 'text-default' : color;
const object = {variant: variant, color: color};
const name = (NicknameUtilsModule).getName(guildId, null, user);
const r4 = name != null && name !== user.toString();
if (user.hasUniqueUsername()) {
r11 = user.toString();
} else {
jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
items2 = [user.toString()];
items2[1] = (
<Text {...object} {...{['color']: 'text-muted'}}>
{'#'}
{user.discriminator}
</Text>
);
r11 = (
<>
{items2}
</>
);
}
const textProps2 = {...object};
if (r4) {
jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
items3 = [name, ' '];
items3[2] = (
<Text {...object} {...{['color']: 'text-muted'}}>
{'('}
{r11}
{')'}
</Text>
);
r5 = (
<>
{items3}
</>
);
} else {
r5 = r11;
}
return (
<Text {...textProps2}>
{r5}
</Text>
);
}
}
function UsernameText({user, guildId, variant, color}) { // fn#89833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11907:248, offset: 0x02020442, size: 463 bytes, params: 2, frame: 24
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var r11;
var r5;
var jsxRuntimeEnv0_3Binding;
var items2;
var items3;
variant = variant === undefined ? 'text-md/medium' : variant;
color = color === undefined ? 'text-default' : color;
const object2 = {variant: variant, color: color};
const name = (require(4617) /* metro dependency 4617: NicknameUtils */).getName(guildId, null, user);
const r4 = name != null && name !== user.toString();
if (user.hasUniqueUsername()) {
r11 = user.toString();
} else {
jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
items2 = [user.toString()];
items2[1] = <Text {...object2} {...{['color']: 'text-muted'}}>{'#'}{user.discriminator}</Text>;
r11 = <>{items2}</>;
}
const textProps2 = {...object2};
if (r4) {
jsxRuntimeEnv0_3Binding = jsxRuntimeEnv0_3;
items3 = [name, ' '];
items3[2] = <Text {...object2} {...{['color']: 'text-muted'}}>{'('}{r11}{')'}</Text>;
r5 = <>{items3}</>;
} else {
r5 = r11;
}
return (
<Text {...textProps2}>
{r5}
</Text>
);
}
global.__d(_fun89832, 11721, [31, 33, 4617, 4573,
2]) /* metro module 11721, dependencies: [31, 33, 4617, 4573, 2] */;
@@ -1,31 +1,42 @@
/* Metro module 11635; source: modules/app_launcher/native/base_components/ViewAllRow.tsx; dependencies: [31, 27, 33, 4501, 6238, 1244, 4573, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
function _fun89215(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11821:6, offset: 0x02004fec, size: 195 bytes, params: 8, frame: 20
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 env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({expandCTALabelContainer: {alignItems: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/base_components/ViewAllRow.tsx');
ReactModule;
const env0_4 = (CreateStylesModule).createStyles({expandCTALabelContainer: {alignItems: 'center'}});
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/base_components/ViewAllRow.tsx');
exports.default = ViewAllRow;
function ViewAllRow({onPress, title}) { // fn#89216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11821:307, offset: 0x020050af, size: 286 bytes, params: 2, frame: 24
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const TableRow = (TableRowNativeModule).TableRow;
const r5 = title != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['bj/2kV'],
{title: title}) : undefined;
const Text = (TextModule).Text;
return (
<TableRow
accessibilityLabel={r5}
label={<View style={styles.expandCTALabelContainer}>
<Text color="text-brand" variant="text-md/semibold">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.gVw57p, {})}
</Text>
</View>}
onPress={onPress}
end
/>
);
}
}
function ViewAllRow({onPress, title}) { // fn#89216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11821:307, offset: 0x020050af, size: 286 bytes, params: 2, frame: 24
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const r5 = title != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['bj/2kV'],
{title: title}) : undefined;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<TableRow
accessibilityLabel={r5}
label={<View style={styles.expandCTALabelContainer}><Text color="text-brand" variant="text-md/semibold">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.gVw57p,
{})}</Text></View>}
onPress={onPress}
end
/>
);
}
global.__d(_fun89215, 11635, [31, 27, 33, 4501, 6238, 1244, 4573,
2]) /* metro module 11635, dependencies: [31, 27, 33, 4501, 6238, 1244, 4573, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 11706; source: modules/app_launcher/native/hooks/useAnimationDelayedAutoFocus.tsx; dependencies: [31, 11699, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as UseAwaitAnimationCompleteModule from './useAwaitAnimationComplete.tsx'; /* Metro dependency 11699 */
function _fun89738(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:6, offset: 0x0201c439, size: 114 bytes, params: 8, frame: 18
let 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/hooks/useAnimationDelayedAutoFocus.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useAnimationDelayedAutoFocus.tsx');
exports.useAnimationDelayedAutoFocus = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
@@ -13,23 +16,24 @@ function _fun89738(global, require, importDefault, importAll, module, exports, d
var env0_3 = binding.useRef(false);
binding.useEffect(_fun89740, [a0, a1, value2]);
};
}
function useAnimationDelayedAutoFocus(a0, a1) { // fn#89739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:237, offset: 0x0201c4ab, size: 111 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
const value2 = (UseAwaitAnimationCompleteModule).useAwaitAnimationCompletion();
const binding = value2;
const env0_3 = binding.useRef(false);
binding.useEffect(_fun89740, [a0, a1, value2]);
function _fun89740() { // fn#89740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:352, offset: 0x0201c51a, size: 61 bytes, params: 1, frame: 12
if (env0_0 && !env0_3.current) {
ReactModule(function() {
require();
});
}
env0_3.current = true;
}
function useAnimationDelayedAutoFocus(a0, a1) { // fn#89739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:237, offset: 0x0201c4ab, size: 111 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
const value2 = (require(11699) /* metro dependency 11699: useAwaitAnimationComplete */).useAwaitAnimationCompletion();
const binding = value2;
const env0_3 = binding.useRef(false);
binding.useEffect(_fun89740, [a0, a1, value2]);
}
function _fun89740() { // fn#89740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11892:352, offset: 0x0201c51a, size: 61 bytes, params: 1, frame: 12
if (env0_0 && !env0_3.current) {
env0_2(function() {
require();
});
}
env0_3.current = true;
}
global.__d(_fun89738, 11706, [31, 11699, 2]) /* metro module 11706, dependencies: [31, 11699, 2] */;
@@ -1,31 +1,34 @@
/* Metro module 11699; source: modules/app_launcher/native/hooks/useAwaitAnimationComplete.tsx; dependencies: [31, 33, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun89687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:6, offset: 0x0201a2f9, size: 157 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
const env0_2 = value.createContext(null);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useAwaitAnimationComplete.tsx');
const env0_2 = ReactModule.createContext(null);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useAwaitAnimationComplete.tsx');
exports.AwaitAnimationContext = AwaitAnimationContext;
exports.useAwaitAnimationCompletion = useAwaitAnimationCompletion;
function AwaitAnimationContext({children, handleQueuedCallback}) { // fn#89688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:265, offset: 0x0201a396, size: 87 bytes, params: 2, frame: 16
const value2 = handleQueuedCallback.useMemo(function() {
return {handleQueuedCallback: handleQueuedCallback};
}, [handleQueuedCallback]);
const Provider = env0_2.Provider;
return (
<Provider value={value2}>
{children}
</Provider>
);
}
function useAwaitAnimationCompletion() { // fn#89690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:460, offset: 0x0201a3fd, size: 47 bytes, params: 1, frame: 11
const value = env0_0.useContext(env0_2);
return value == null ? function(a0) {
return a0();
} : value.handleQueuedCallback;
}
}
function AwaitAnimationContext({children, handleQueuedCallback}) { // fn#89688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:265, offset: 0x0201a396, size: 87 bytes, params: 2, frame: 16
const value2 = handleQueuedCallback.useMemo(function() {
return {handleQueuedCallback: handleQueuedCallback};
}, [handleQueuedCallback]);
const Provider = env0_2.Provider;
return (
<Provider value={value2}>
{children}
</Provider>
);
}
function useAwaitAnimationCompletion() { // fn#89690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11885:460, offset: 0x0201a3fd, size: 47 bytes, params: 1, frame: 11
const value = env0_0.useContext(env0_2);
return value == null ? function(a0) {
return a0();
} : value.handleQueuedCallback;
}
global.__d(_fun89687, 11699, [31, 33, 2]) /* metro module 11699, dependencies: [31, 33, 2] */;
@@ -1,71 +1,79 @@
/* Metro module 11639; source: modules/app_launcher/native/hooks/useBottomSheetFlashListBottomViewabilityInset.tsx; dependencies: [31, 1478, 8774, 11577, 22, 4017, 2] */
import Module00022 from '../../../../by-id/module-00022.js'; /* Metro dependency 22 */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseKeyboardActionSheetHeight from '../../../action_sheet/native/useKeyboardActionSheetHeight.tsx'; /* Metro dependency 11577 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as AppLauncherContextModule from '../AppLauncherContext.tsx'; /* Metro dependency 8774 */
function _fun89227(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:6, offset: 0x02005a37, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
object = {code: 'function useBottomSheetFlashListBottomViewabilityInsetTsx1(){const{bottomSheetPosition}=this.__closure;var _bottomSheetPosition$,_bottomSheetPosition;return(_bottomSheetPosition$=(_bottomSheetPosition=bottomSheetPosition)===null||_bottomSheetPosition===void 0?void 0:_bottomSheetPosition.get())!==null&&_bottomSheetPosition$!==void 0?_bottomSheetPosition$:0;}'};
object = {code: 'function useBottomSheetFlashListBottomViewabilityInsetTsx2(sheetPosition){const{distanceBetweenExpandedScreenTopAndSheetTop,runOnJS,handleBottomViewabilityInsetDebounced}=this.__closure;const bottomViewabilityInset=sheetPosition-distanceBetweenExpandedScreenTopAndSheetTop;runOnJS(handleBottomViewabilityInsetDebounced)(bottomViewabilityInset);}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useBottomSheetFlashListBottomViewabilityInset.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useBottomSheetFlashListBottomViewabilityInset.tsx');
exports.useBottomSheetFlashListBottomViewabilityInset = useBottomSheetFlashListBottomViewabilityInset;
}
function useBottomSheetFlashListBottomViewabilityInset() { // fn#89228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:999, offset: 0x02005ad0, size: 357 bytes, params: 1, frame: 24
const value2 = undefined;
const value3 = (UseWindowDimensionsNative)();
let binding = ReactModule;
const useContext = binding.useContext;
const AppLauncherContext = (AppLauncherContextModule).AppLauncherContext;
const value4 = Reflect.apply(useContext, binding, [AppLauncherContext]);
const bottomSheetPosition = value4 == null ? value2 : value4.bottomSheetPosition;
const maximum = (UseKeyboardActionSheetHeight)().maximum;
binding = ReactModule;
const value5 = binding.useRef(null);
const value6 = value3.height - maximum;
const value7 = binding.useRef(9999);
let closure = _fun89229;
const value8 = binding.useMemo(closure, []);
const env0_4 = value8;
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = useBottomSheetFlashListBottomViewabilityInsetU;
closure.__closure = {bottomSheetPosition: bottomSheetPosition};
closure.__workletHash = 3750973667946;
closure.__initData = env0_4;
const useBottomSheetFlashListBottomViewabilityInsetS2 = useBottomSheetFlashListBottomViewabilityInsetS;
object = {distanceBetweenExpandedScreenTopAndSheetTop: value6};
object.runOnJS = ReanimatedRexportModule.runOnJS;
object.handleBottomViewabilityInsetDebounced = value8;
useBottomSheetFlashListBottomViewabilityInsetS2.__closure = object;
useBottomSheetFlashListBottomViewabilityInsetS2.__workletHash = 6025307858098;
useBottomSheetFlashListBottomViewabilityInsetS2.__initData = env0_5;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure,
useBottomSheetFlashListBottomViewabilityInsetS2]);
return {flashListRef: value5, bottomVisibilityInsetRef: value7};
function _fun89229() { // fn#89229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1238, offset: 0x02005c35, size: 51 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (Module00022).debounce(_fun89230, 200);
function _fun89230(a0) { // fn#89230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1260, offset: 0x02005c68, size: 45 bytes, params: 2, frame: 10
env1_3.current = a0;
const current = env1_1.current;
if (current != null) {
current.updateViewableItems();
}
}
function useBottomSheetFlashListBottomViewabilityInset() { // fn#89228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:999, offset: 0x02005ad0, size: 357 bytes, params: 1, frame: 24
var object2;
const value2 = undefined;
const value3 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
let binding = env0_3;
const useContext = binding.useContext;
const AppLauncherContext = (require(8774) /* metro dependency 8774: AppLauncherContext */).AppLauncherContext;
const value4 = Reflect.apply(useContext, binding, [AppLauncherContext]);
const bottomSheetPosition = value4 == null ? value2 : value4.bottomSheetPosition;
const maximum = (importDefault(11577) /* metro dependency 11577: useKeyboardActionSheetHeight */)().maximum;
binding = env0_3;
const value5 = binding.useRef(null);
const value6 = value3.height - maximum;
const value7 = binding.useRef(9999);
let closure = _fun89229;
const value8 = binding.useMemo(closure, []);
const env0_4 = value8;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
closure = useBottomSheetFlashListBottomViewabilityInsetU;
closure.__closure = {bottomSheetPosition: bottomSheetPosition};
closure.__workletHash = 3750973667946;
closure.__initData = env0_4;
const closure2 = useBottomSheetFlashListBottomViewabilityInsetS;
object2 = {distanceBetweenExpandedScreenTopAndSheetTop: value6};
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.handleBottomViewabilityInsetDebounced = value8;
closure2.__closure = object2;
closure2.__workletHash = 6025307858098;
closure2.__initData = env0_5;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
return {flashListRef: value5, bottomVisibilityInsetRef: value7};
}
}
function _fun89229() { // fn#89229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1238, offset: 0x02005c35, size: 51 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (importDefault(22) /* metro dependency 22 */).debounce(_fun89230, 200);
}
function useBottomSheetFlashListBottomViewabilityInsetU() { // fn#89231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1378, owner: useBottomSheetFlashListBottomViewabilityInset.u, offset: 0x02005c95, size: 45 bytes, params: 1, frame: 11
return bottomSheetPosition?.get() ?? 0;
}
function useBottomSheetFlashListBottomViewabilityInsetU() { // fn#89231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1378, owner: useBottomSheetFlashListBottomViewabilityInset.u, offset: 0x02005c95, size: 45 bytes, params: 1, frame: 11
return bottomSheetPosition?.get() ?? 0;
}
function useBottomSheetFlashListBottomViewabilityInsetS(a0) { // fn#89232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1521, owner: useBottomSheetFlashListBottomViewabilityInset.s, offset: 0x02005cc2, size: 60 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value = value.runOnJS(env0_4);
value(a0 - env0_2);
}
function useBottomSheetFlashListBottomViewabilityInsetS(a0) { // fn#89232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1521, owner: useBottomSheetFlashListBottomViewabilityInset.s, offset: 0x02005cc2, size: 60 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value = value.runOnJS(env0_4);
value(a0 - env0_2);
}
function _fun89230(a0) { // fn#89230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11825:1260, offset: 0x02005c68, size: 45 bytes, params: 2, frame: 10
env1_3.current = a0;
const current = env1_1.current;
if (current != null) {
current.updateViewableItems();
}
}
global.__d(_fun89227, 11639, [31, 1478, 8774, 11577, 22, 4017,
2]) /* metro module 11639, dependencies: [31, 1478, 8774, 11577, 22, 4017, 2] */;
@@ -1,17 +1,22 @@
/* Metro module 8775; source: modules/app_launcher/native/hooks/useDefaultAppLauncherWidth.tsx; dependencies: [6276, 1478, 8048, 2] */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActionSheetConstantsModule from '../../../action_sheet/native/ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as AppLauncherTypesModule from '../../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
function _fun68626(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8960:6, offset: 0x01c5676c, size: 124 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useDefaultAppLauncherWidth.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useDefaultAppLauncherWidth.tsx');
exports.useDefaultAppLauncherWidth = useDefaultAppLauncherWidth;
function useDefaultAppLauncherWidth(a0) { // fn#68627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8960:256, offset: 0x01c567e8, size: 97 bytes, params: 2, frame: 15
const width = (UseWindowDimensionsNative)().width;
const AppLauncherEntrypoint = (AppLauncherTypesModule).AppLauncherEntrypoint;
const TEXT = AppLauncherEntrypoint.TEXT;
return a0 === TEXT ? width : global.Math.min(width, ACTION_SHEET_MAX_WIDTH);
}
}
function useDefaultAppLauncherWidth(a0) { // fn#68627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8960:256, offset: 0x01c567e8, size: 97 bytes, params: 2, frame: 15
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const TEXT = AppLauncherEntrypoint.TEXT;
return a0 === TEXT ? width : global.Math.min(width, ACTION_SHEET_MAX_WIDTH);
}
global.__d(_fun68626, 8775, [6276, 1478, 8048, 2]) /* metro module 8775, dependencies: [6276, 1478, 8048, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 11696; source: modules/app_launcher/native/hooks/useLatch.tsx; dependencies: [31, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun89663(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:6, offset: 0x020194e7, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useLatch.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useLatch.tsx');
exports.default = function(a0) {
var binding = a0;
var env0_1 = binding.useRef(false);
@@ -12,26 +14,27 @@ function _fun89663(global, require, importDefault, importAll, module, exports, d
object.tryCallback = binding.useCallback(_fun89666, [a0]);
return object;
};
}
function useLatch(a0) { // fn#89664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:196, offset: 0x02019551, size: 94 bytes, params: 2, frame: 16
const binding = a0;
const env0_1 = binding.useRef(false);
const object = {};
object.setLatch = binding.useCallback(_fun89665, []);
object.tryCallback = binding.useCallback(_fun89666, [a0]);
return object;
function _fun89665(a0) { // fn#89665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:267, offset: 0x020195af, size: 18 bytes, params: 2, frame: 2
env0_1.current = a0;
return a0;
}
function useLatch(a0) { // fn#89664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:196, offset: 0x02019551, size: 94 bytes, params: 2, frame: 16
const binding = a0;
const env0_1 = binding.useRef(false);
const object2 = {};
object2.setLatch = binding.useCallback(_fun89665, []);
object2.tryCallback = binding.useCallback(_fun89666, [a0]);
return object2;
}
function _fun89666() { // fn#89666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:314, offset: 0x020195c1, size: 41 bytes, params: 1, frame: 10
if (env0_1.current) {
env0_1.current = false;
ReactModule();
}
}
function _fun89665(a0) { // fn#89665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:267, offset: 0x020195af, size: 18 bytes, params: 2, frame: 2
env0_1.current = a0;
return a0;
}
function _fun89666() { // fn#89666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11882:314, offset: 0x020195c1, size: 41 bytes, params: 1, frame: 10
if (env0_1.current) {
env0_1.current = false;
env0_0();
}
}
global.__d(_fun89663, 11696, [31, 2]) /* metro module 11696, dependencies: [31, 2] */;
@@ -1,33 +1,37 @@
/* Metro module 11670; source: modules/app_launcher/native/hooks/useNavigationTransitionEnded.tsx; dependencies: [57, 31, 1483, 1485, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AppLauncherNativeConstantsModule from '../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as Module01485Module from '../../../../by-id/module-01485.js'; /* Metro dependency 1485 */
function _fun89452(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:6, offset: 0x0200e0de, size: 155 bytes, params: 8, frame: 18
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 */;
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).useAppLauncherNavigation;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/useNavigationTransitionEnded.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useNavigationTransitionEnded.tsx');
exports.default = useNavigationTransitionEnded;
}
function useNavigationTransitionEnded() { // fn#89453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:261, offset: 0x0200e179, size: 135 bytes, params: 1, frame: 18
const [property, property2] = Module00057(ReactModule.useState(false), 2);
const value4 = useAppLauncherNavigation();
let value = Module01485Module;
value = value.useRoute();
ReactModule.useEffect(_fun89454, [value4, value, property2]);
return property;
function _fun89454() { // fn#89454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:392, offset: 0x0200e200, size: 34 bytes, params: 1, frame: 13
return env0_1.addListener('transitionEnd', _fun89455);
function _fun89455() { // fn#89455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:427, offset: 0x0200e222, size: 67 bytes, params: 1, frame: 11
const state = env1_1.getState();
if (state.routes[state.index].key === env1_2.key) {
env1_0(true);
}
}
function useNavigationTransitionEnded() { // fn#89453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:261, offset: 0x0200e179, size: 135 bytes, params: 1, frame: 18
const binding = env0_3;
const [property, property2] = env0_2(binding.useState(false), 2);
const value4 = useAppLauncherNavigation();
let value = require(1485) /* metro dependency 1485 */;
value = value.useRoute();
binding.useEffect(_fun89454, [value4, value, property2]);
return property;
}
}
function _fun89454() { // fn#89454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:392, offset: 0x0200e200, size: 34 bytes, params: 1, frame: 13
return env0_1.addListener('transitionEnd', _fun89455);
}
function _fun89455() { // fn#89455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11856:427, offset: 0x0200e222, size: 67 bytes, params: 1, frame: 11
const state = env1_1.getState();
if (state.routes[state.index].key === env1_2.key) {
env1_0(true);
}
}
global.__d(_fun89452, 11670, [57, 31, 1483, 1485,
2]) /* metro module 11670, dependencies: [57, 31, 1483, 1485, 2] */;
@@ -1,22 +1,25 @@
/* Metro module 11595; source: modules/app_launcher/native/hooks/usePlaceholderSize.tsx; dependencies: [31, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun88803(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:6, offset: 0x01ff2d45, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/hooks/usePlaceholderSize.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/usePlaceholderSize.tsx');
exports.usePlaceholderWidth = usePlaceholderWidth;
function usePlaceholderWidth(a0, a1) { // fn#88804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:218, offset: 0x01ff2daf, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_0.useMemo(_fun88805, [a0, a1]);
function _fun88805() { // fn#88805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:270, offset: 0x01ff2de6, size: 43 bytes, params: 1, frame: 10
const Math = global.Math;
const value = Math.random();
const binding = env0_0;
return value * (require - binding) + binding;
}
}
}
function usePlaceholderWidth(a0, a1) { // fn#88804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:218, offset: 0x01ff2daf, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_0.useMemo(_fun88805, [a0, a1]);
}
function _fun88805() { // fn#88805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11781:270, offset: 0x01ff2de6, size: 43 bytes, params: 1, frame: 10
const Math = global.Math;
const value = Math.random();
const binding = env0_0;
return value * (require - binding) + binding;
}
global.__d(_fun88803, 11595, [31, 2]) /* metro module 11595, dependencies: [31, 2] */;
@@ -1,52 +1,55 @@
/* Metro module 11642; source: modules/app_launcher/native/hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx; dependencies: [31, 8774, 1485, 8742, 480, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AppLauncherContextModule from '../AppLauncherContext.tsx'; /* Metro dependency 8774 */
function _fun89240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:6, offset: 0x02006184, 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/hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx');
exports.useTrackAppLauncherItemImpressionOnFirstView = useTrackAppLauncherItemImpressionOnFirstView;
}
function useTrackAppLauncherItemImpressionOnFirstView() { // fn#89241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:269, offset: 0x020061f6, size: 173 bytes, params: 1, frame: 18
const useAppLauncherContext = AppLauncherContextModule.useAppLauncherContext;
const entrypoint = Reflect.apply(useAppLauncherContext, AppLauncherContextModule, []).entrypoint;
const useRef = ReactModule.useRef;
const Set = global.Set;
let set = new Set();
const env0_1 = Reflect.apply(useRef, ReactModule, [set]);
set = require(1485) /* metro dependency 1485 */;
const useFocusEffect = set.useFocusEffect;
let useCallback = ReactModule.useCallback;
Reflect.apply(useFocusEffect, set, [Reflect.apply(useCallback, ReactModule, [_fun89242, []])]);
useCallback = ReactModule.useCallback;
return {trackAppLauncherItemImpressionOnFirstView: Reflect.apply(useCallback, ReactModule, [_fun89243, [entrypoint]])};
function _fun89242() { // fn#89242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:439, offset: 0x020062a3, size: 26 bytes, params: 1, frame: 9
env0_1.current.clear();
}
function useTrackAppLauncherItemImpressionOnFirstView() { // fn#89241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:269, offset: 0x020061f6, size: 173 bytes, params: 1, frame: 18
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
const entrypoint = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
const binding = env0_2;
const useRef = binding.useRef;
const Set = global.Set;
let set = new Set();
const env0_1 = Reflect.apply(useRef, binding, [set]);
set = require(1485) /* metro dependency 1485 */;
const useFocusEffect = set.useFocusEffect;
let useCallback = binding.useCallback;
Reflect.apply(useFocusEffect, set, [Reflect.apply(useCallback, binding, [_fun89242, []])]);
useCallback = binding.useCallback;
return {trackAppLauncherItemImpressionOnFirstView: Reflect.apply(useCallback, binding, [_fun89243, [entrypoint]])};
}
function _fun89243({itemKey, sectionName, sectionPosition, sectionOverallPosition, applicationId, commandId, applicationFlags}) { // fn#89243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:527, offset: 0x020062bd, size: 237 bytes, params: 2, frame: 23
var value2;
var moduleValue;
var trackImpression;
var object;
const current = env0_1.current;
if (!current.has(itemKey)) {
env0_1.current.add(itemKey);
value2 = environment.__proto__;
moduleValue = require(8742) /* metro dependency 8742: useTrackImpression */;
trackImpression = moduleValue.trackImpression;
object = {};
object.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
object.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_ITEM;
object.properties = {source: entrypoint, section_name: sectionName, section_position: sectionPosition,
section_overall_position: sectionOverallPosition, application_id: applicationId, command_id: commandId,
application_flags: applicationFlags};
Reflect.apply(trackImpression, moduleValue, [object]);
}
}
function _fun89242() { // fn#89242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:439, offset: 0x020062a3, size: 26 bytes, params: 1, frame: 9
env0_1.current.clear();
}
function _fun89243({itemKey, sectionName, sectionPosition, sectionOverallPosition, applicationId, commandId, applicationFlags}) { // fn#89243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11828:527, offset: 0x020062bd, size: 237 bytes, params: 2, frame: 23
var value2;
var moduleValue;
var trackImpression;
var object2;
const current = env0_1.current;
if (!current.has(itemKey)) {
env0_1.current.add(itemKey);
value2 = environment.__proto__;
moduleValue = require(8742) /* metro dependency 8742: useTrackImpression */;
trackImpression = moduleValue.trackImpression;
object2 = {};
object2.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
object2.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_ITEM;
object2.properties = {source: entrypoint, section_name: sectionName, section_position: sectionPosition,
section_overall_position: sectionOverallPosition, application_id: applicationId, command_id: commandId,
application_flags: applicationFlags};
Reflect.apply(trackImpression, moduleValue, [object2]);
}
}
global.__d(_fun89240, 11642, [31, 8774, 1485, 8742, 480,
2]) /* metro module 11642, dependencies: [31, 8774, 1485, 8742, 480, 2] */;
@@ -1,84 +1,354 @@
/* Metro module 11654; source: modules/app_launcher/native/images/HomeEmptyState.tsx; dependencies: [31, 33, 7744, 2] */
import Module07744 from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module07744Module from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */
function _fun89361(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11840:6, offset: 0x0200acce, size: 147 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 value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/images/HomeEmptyState.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/images/HomeEmptyState.tsx');
exports.default = SvgComponent;
function SvgComponent(a0) { // fn#89362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11840:137, offset: 0x0200ad61, size: 2738 bytes, params: 2, frame: 27
const defaultImport = Module07744;
const defaultImportProps = {'width': 113, 'height': 124, 'fill': 'none', ...a0};
const Path = (Module07744Module).Path;
const items7 = [
<Path
fill="#FFE636"
d="M8.626 71.393c-1.634-1.035-2.708-2.776-2.989-4.706l-.467-3.294c0-.14-.14-.282-.327-.282-.14 0-.28.141-.327.282l-.467 3.294c-.28 1.93-1.4 3.624-2.989 4.706l-.42.282c-.093.047-.14.188-.14.282 0 .142.047.236.14.283l.42.282c1.635 1.035 2.71 2.776 2.99 4.706l.466 3.293c0 .142.14.283.327.283.14 0 .28-.141.327-.283l.467-3.293c.28-1.93 1.401-3.624 2.99-4.706l.42-.282c.093-.047.14-.188.14-.283 0-.14-.047-.235-.14-.282l-.42-.282z"
/>,
];
items7[1] = (
<Path
fill="#CFCFDA"
d="M7.6 109.225c-1.168 2.306-.234 5.129 2.1 6.305a4.78 4.78 0 002.103.518c1.728 0 3.362-.941 4.156-2.588a193.59 193.59 0 013.41-6.541l-7.893-5.035c-1.261 2.212-2.522 4.659-3.877 7.341zm10.507-16.987l6.82 6.446a36.207 36.207 0 015.65-5.364l-5.184-7.858c-2.849 2.117-5.23 4.329-7.332 6.776h.046zm-6.117 8.752l7.892 5.035c1.448-2.494 2.85-4.658 4.437-6.54L17.5 93.037c-1.961 2.4-3.736 4.988-5.464 7.952h-.047zm26.9-18.398c-1.26-2.259-4.156-3.059-6.351-1.741-2.289 1.317-4.344 2.635-6.212 4l5.184 7.858a60.462 60.462 0 015.698-3.67c2.242-1.271 2.99-4.189 1.728-6.4l-.046-.047z"
/>
);
items7[2] = (
<Path
fill="#9B9BBA"
d="M25.44 85.462l5.184 7.858c.28-.188.56-.423.841-.611l-5.184-7.859c-.28.189-.56.424-.84.612zm-7.986 7.528l6.819 6.447c.233-.282.42-.517.654-.8l-6.819-6.446c-.234.282-.467.517-.654.8zm-5.978 8.894l7.893 5.035c.186-.329.326-.612.513-.894l-7.893-5.035c-.187.283-.327.612-.513.894z"
/>
);
items7[3] = (
<Path
fill="#6990FF"
d="M10.261 121.506c4.23 0 7.66-3.455 7.66-7.717s-3.43-7.717-7.66-7.717-7.66 3.455-7.66 7.717 3.43 7.717 7.66 7.717z"
/>
);
items7[4] = (
<Path
fill="#CFCFDA"
d="M88.164 74.545l4.764 8.188c2.709-1.835 5.278-4.188 7.426-7.152l-7.706-5.365a20.703 20.703 0 01-4.484 4.33zm-16.067 5.553a4.678 4.678 0 00-3.97 5.317 4.683 4.683 0 004.624 4.046h.654c2.429-.329 4.998-.8 7.52-1.458l-1.495-9.364c-2.195.659-4.67 1.13-7.333 1.506v-.047zm8.361-1.835l1.494 9.41c3.457-.988 6.913-2.352 10.088-4.329l-4.763-8.187c-1.962 1.27-4.25 2.306-6.866 3.106h.047zm22.278-20.752c-2.475-.658-5.044.8-5.745 3.341-.887 3.294-2.102 6.117-3.736 8.517l7.659 5.365c2.102-3.106 3.877-6.87 5.091-11.482a4.753 4.753 0 00-3.316-5.788l.047.047z"
/>
);
items7[5] = (
<Path
fill="#9B9BBA"
d="M79.477 78.545l1.494 9.364c.327-.094.654-.188 1.028-.282l-1.495-9.411-.98.282-.047.047zm7.846-3.435l4.764 8.187c.28-.188.56-.376.887-.564l-4.764-8.188-.84.565h-.047zm5.324-4.894l7.707 5.364c.186-.282.42-.564.607-.847l-7.66-5.364c-.187.282-.42.565-.607.847h-.047z"
/>
);
items7[6] = (
<Path
fill="#6990FF"
d="M102.034 69.84c4.231 0 7.66-3.455 7.66-7.717s-3.429-7.717-7.66-7.717c-4.23 0-7.659 3.455-7.659 7.717s3.43 7.717 7.659 7.717z"
/>
);
items7[7] = (
<Path
fill="url(#a)"
d="M79.897 102.119c0 5.976-4.764 11.247-11.116 11.247h-28.77c-7.472 0-12.796-7.247-10.648-14.446L33.8 84.144c1.588-5.317 6.445-8.94 11.956-8.94h17.327c5.511 0 10.369 3.623 11.957 8.94l3.876 12.94.467 1.6v.189c.187.47.327.94.374 1.411.093.612.14 1.224.14 1.788v.047z"
/>
);
items7[8] = (
<Path
fill="#898989"
d="M79.336 98.684l-4.67 2.636c-.187.094-.374.141-.514.094-.233 0-.467-.189-.56-.424-.234-.376-.094-.894.327-1.13l4.997-2.822.467 1.6-.047.046zm.56 3.436l-4.25 2.399c-.187.094-.373.142-.56.094-.234 0-.467-.188-.56-.423-.234-.376-.094-.894.326-1.129l4.904-2.777c.094.612.14 1.224.14 1.789v.047z"
/>
);
items7[9] = (
<Path
fill="#6990FF"
d="M43.654 69.746l.42 10.21 9.715-.423-.42-10.21-9.715.423zm11.302-.518l.467 10.258 9.668-.423-.42-10.258-9.715.423zm-20.97.942l.14 3.575c.187 3.718 3.27 6.541 6.96 6.4h1.4c0-.047-.42-10.305-.42-10.305l-8.08.376v-.047zm32.32-1.413l.42 10.258h1.401c3.69-.235 6.539-3.34 6.352-7.058l-.14-3.576-8.08.376h.047z"
/>
);
items7[10] = (
<Path
fill="#3D6BF2"
d="M42.02 69.793l.467 10.258 1.587-.094-.42-10.211-1.635.047zm11.348-.471l.42 10.211 1.635-.047-.467-10.258-1.588.094zm11.303-.517l.42 10.258 1.635-.094-.42-10.211-1.635.047z"
/>
);
items7[11] = (
<Path
fill="url(#b)"
d="M86.996 53.747c-.748-8.517-6.772-11.575-9.948-13.316a25.756 25.756 0 01-1.635-.941c3.222-1.647 7.66-4.47 9.06-8.047 1.075-2.776.841-6.494-4.203-10.823a16.517 16.517 0 00-1.12-.8c-3.13-1.835-7.567-1.552-8.734 4.094a118.554 118.554 0 00-1.495 9.6c-.14-.236-.28-.518-.42-.753-3.41-6.4-8.92-11.858-19.336-11.011-10.181.8-15.179 8.281-17.327 15.716-.094.33-.187.659-.28.941-.84-2.917-2.055-6.634-3.41-10.07-2.148-5.364-6.492-4.893-9.294-2.493-.373.329-.7.658-.98.988-4.25 5.176-3.83 8.846-2.29 11.434 2.43 4.047 9.342 6.117 12.47 6.917-3.362 3.247-7.332 7.952-6.631 15.058.84 8.328 8.126 14.398 16.346 13.74l35.87-3.623c8.126-.989 14.057-8.33 13.31-16.564l.047-.047z"
/>
);
items7[12] = (
<Path
fill="#FFAED7"
d="M15.585 38.219c2.475 4.047 9.387 6.117 12.517 6.917l-9.248-19.34c-.373.33-.7.66-.98.989-4.25 5.176-3.83 8.846-2.29 11.434zm57.772 2.259c2.943-1.318 9.388-4.565 11.116-9.035 1.074-2.776.84-6.494-4.203-10.823-.374-.282-.748-.564-1.121-.8l-5.745 20.658h-.047z"
/>
);
items7[13] = (
<Path
fill="#000"
d="M49.446 18.926c.7 0 1.308-.611 1.308-1.317 0-.565.233-13.74-8.968-16.987-8.967-3.153-22.09 6.682-22.651 7.105-.607.47-.7 1.318-.28 1.93.467.611 1.307.706 1.915.282.14-.094 12.516-9.364 20.129-6.729 7.332 2.588 7.146 14.21 7.146 14.352 0 .753.56 1.364 1.307 1.412h.094v-.048z"
/>
);
items7[14] = (
<Path
fill="#6990FF"
d="M43.262 24.238l12.98-1.144a2.207 2.207 0 001.996-2.396l-.252-2.906a2.2 2.2 0 00-2.378-2.01l-12.98 1.144a2.207 2.207 0 00-1.996 2.396l.252 2.906a2.2 2.2 0 002.378 2.01zM18.9 18.174c4.928 0 8.921-4.024 8.921-8.988 0-4.964-3.994-8.988-8.92-8.988-4.927 0-8.92 4.024-8.92 8.988 0 4.964 3.993 8.988 8.92 8.988z"
/>
);
items7[15] = (
<Path
fill="#698FFF"
d="M25.44 54.688c1.774-.188 3.502 2.259 3.83 5.459.326 3.2-.888 5.928-2.663 6.117l-6.118.611L19.321 55.3l6.119-.612z"
/>
);
items7[16] = (
<Path
fill="#8CA9FF"
d="M20.398 66.965c1.796-.181 2.995-2.927 2.678-6.133-.318-3.207-2.032-5.66-3.829-5.48-1.796.181-2.995 2.927-2.677 6.134.317 3.206 2.031 5.66 3.828 5.479z"
/>
);
items7[17] = (
<Path
fill="#698FFF"
d="M82.185 49.7c-1.821.141-3.082 2.824-2.849 6.07.234 3.247 1.869 5.694 3.69 5.553l6.165-.47-.84-11.623-6.166.47z"
/>
);
items7[18] = (
<Path
fill="#8CA9FF"
d="M89.287 60.717c1.8-.136 3.065-2.852 2.826-6.065-.24-3.214-1.894-5.708-3.695-5.572-1.8.137-3.065 2.852-2.826 6.066.24 3.213 1.894 5.707 3.695 5.571z"
/>
);
items7[19] = (
<Path
fill="#000"
d="M51.734 47.677c-.093-.941 3.27-1.27 3.363-.33.093.942-.84 1.553-1.541 1.6-.7.047-1.728-.329-1.822-1.27z"
/>
);
items7[20] = (
<Path fill="#FF78B9" d="M58.086 52.053c.14 3.435-1.448 6.306-3.736 6.494-2.242.188-4.297-2.306-4.764-5.694l8.5-.8z" />
);
items7[21] = (
<Path
fill="#000"
d="M63.247 42.597c1.074-1.495 1.318-3.164.545-3.727-.773-.564-2.27.19-3.344 1.685-1.074 1.495-1.318 3.163-.545 3.727.773.564 2.27-.19 3.344-1.685zM46.4 45.502c.647-.708.078-2.294-1.27-3.543-1.349-1.25-2.965-1.688-3.611-.98-.646.708-.077 2.294 1.271 3.543 1.348 1.249 2.965 1.688 3.61.98z"
/>
);
items7[22] = (
<Path
fill="#FFAED7"
d="M42.627 52.806a.747.747 0 00.513-.235c.327-.283.374-.847.047-1.177l-3.27-3.623c-.28-.33-.84-.376-1.167-.047-.327.282-.373.847-.047 1.176l3.27 3.624a.92.92 0 00.654.282zm-3.457.329a.748.748 0 00.514-.235c.327-.282.374-.847.047-1.176L36.46 48.1c-.28-.329-.84-.376-1.167-.047-.327.283-.374.847-.047 1.177l3.27 3.623c.186.188.42.282.653.282zm-3.456.33a.748.748 0 00.514-.236c.327-.282.374-.847.047-1.176l-3.27-3.623c-.28-.33-.84-.377-1.167-.047-.327.282-.374.847-.047 1.176l3.27 3.623c.186.188.42.283.653.283zm29.19-2.871c.28 0 .514-.14.654-.376l2.569-4.188c.234-.377.093-.894-.28-1.13-.374-.235-.888-.093-1.121.283l-2.569 4.188c-.233.376-.093.894.28 1.13.14.093.327.14.467.14v-.047zm3.456-.329c.28 0 .514-.141.654-.377l2.569-4.187c.234-.377.093-.894-.28-1.13-.374-.235-.888-.094-1.121.283l-2.569 4.188c-.233.376-.093.894.28 1.129.14.094.327.141.468.141v-.047zm3.41-.329c.28 0 .513-.142.653-.377l2.569-4.188c.233-.376.093-.894-.28-1.129-.374-.235-.888-.094-1.121.282l-2.569 4.188c-.233.377-.093.894.28 1.13.14.094.327.14.467.14v-.046z"
/>
);
items7[23] = (
<Path
fill="url(#c)"
d="M88.257 54.83l13.03 11.293 3.036 2.635c.374.33.841.612 1.308.847.84.33 1.681.423 2.522.235 2.615-.565 4.437-3.011 4.343-5.694 0-.329 0-.611-.093-.94-.187-1.13-.888-2.071-1.868-2.636l-3.643-2.117-15.086-8.705a17.593 17.593 0 01-3.596 5.082h.047z"
/>
);
items7[24] = (
<Path
fill="#433D84"
d="M75.647 61.135c10.446 0 18.915-8.532 18.915-19.057 0-10.526-8.469-19.058-18.915-19.058-10.447 0-18.916 8.532-18.916 19.058 0 10.524 8.47 19.057 18.916 19.057z"
opacity={0.4}
/>
);
items7[25] = (
<Path
fill="url(#d)"
d="M75.647 61.135c10.446 0 18.915-8.532 18.915-19.057 0-10.526-8.469-19.058-18.915-19.058-10.447 0-18.916 8.532-18.916 19.058 0 10.524 8.47 19.057 18.916 19.057z"
/>
);
items7[26] = (
<Path
fill="url(#e)"
d="M77.14 27.02c-8.22-.847-15.599 5.27-16.44 13.552-.84 8.282 5.232 15.716 13.452 16.563 8.22.847 15.599-5.27 16.44-13.551.84-8.282-5.231-15.717-13.451-16.564zm.374-3.905C87.883 24.15 95.495 33.514 94.468 43.96c-1.028 10.446-10.322 18.116-20.69 17.08-10.368-1.034-17.981-10.398-16.954-20.844 1.028-10.447 10.322-18.117 20.69-17.081z"
/>
);
items7[27] = (
<Path
fill="url(#f)"
d="M71.863 34.078h-.887c-1.962 0-4.344 1.412-4.904 4.517l-.094 1.036c0 3.058 2.056 7.01 8.734 12.422 7.613-3.953 10.415-7.435 10.976-10.446l.093-1.035c0-3.2-2.008-5.035-3.923-5.412a36.61 36.61 0 01-.887-.14c-2.242-.236-3.41.564-4.764 1.787-1.075-1.506-2.055-2.494-4.297-2.729"
/>
);
items7[28] = (
<Path
fill="#6990FF"
d="M100.26 68.099c2.012 0 3.643-1.643 3.643-3.67s-1.631-3.67-3.643-3.67c-2.012 0-3.643 1.643-3.643 3.67s1.631 3.67 3.643 3.67z"
/>
);
items7[29] = (
<Path
fill="url(#g)"
d="M90.873 26.408c-1.635-1.035-2.71-2.776-2.99-4.705l-.467-3.294c0-.141-.14-.282-.326-.282-.14 0-.28.14-.328.282l-.466 3.294c-.28 1.929-1.402 3.623-2.99 4.705l-.42.282c-.093.047-.14.189-.14.283 0 .141.047.235.14.282l.42.282c1.635 1.036 2.71 2.777 2.99 4.706l.466 3.294c0 .14.14.282.328.282.14 0 .28-.141.326-.282l.467-3.294c.28-1.93 1.402-3.623 2.99-4.706l.42-.282c.093-.047.14-.188.14-.282 0-.141-.047-.235-.14-.282l-.42-.283z"
/>
);
items7[30] = (
<Path
fill="#6990FF"
d="M46.504 123.953H34.92c-5.137 0-5.09-3.341-3.83-5.6.981-1.788 1.448-2.823 3.036-4.752.374-.471.887-1.035 1.448-1.647l.14-.141c2.989-3.247 7.239-5.506 11.069-.424 1.354 1.835 3.783 5.459 4.483 7.388.607 1.6 0 5.223-4.763 5.223v-.047z"
/>
);
items7[31] = (
<Path
fill="#3D6BF2"
d="M35.528 111.907c2.335-.141 4.95.847 6.445 5.082.14.471.234.8.374 1.082.327 1.035.514 1.6.84 3.294.187.941.094 1.835-.233 2.588h-1.588c.467-.565.607-1.365.467-2.306-.28-1.599-.467-2.117-.794-3.105-.093-.283-.233-.659-.373-1.082-1.168-3.341-3.176-4.659-6.165-3.953l-.42.094 1.447-1.647v-.047z"
/>
);
items7[32] = (
<Path
fill="#6990FF"
d="M62.383 123.953h11.583c5.137 0 5.09-3.341 3.876-5.6-.98-1.788-1.448-2.823-3.036-4.752-.373-.471-.887-1.035-1.447-1.647l-.14-.141c-2.99-3.247-7.24-5.506-11.07-.424-1.354 1.835-3.783 5.459-4.483 7.388-.607 1.6 0 5.223 4.764 5.223l-.047-.047z"
/>
);
items7[33] = (
<Path
fill="#3D6BF2"
d="M74.806 113.601l-.42-.094c-2.99-.706-4.998.612-6.165 3.953-.14.423-.234.799-.374 1.082-.327.988-.514 1.506-.794 3.105-.187.941 0 1.741.42 2.306h-1.587c-.327-.753-.42-1.647-.234-2.588.327-1.694.514-2.259.84-3.294.094-.282.234-.659.374-1.082 1.495-4.235 4.11-5.223 6.446-5.082l1.447 1.694h.047z"
/>
);
const Defs = (Module07744Module).Defs;
const LinearGradient = (Module07744Module).LinearGradient;
const Stop = (Module07744Module).Stop;
const items2 = [
<Stop offset={0.2} stopColor="#E8E8E8" />,
];
items2[1] = <Stop offset={0.6} stopColor="#E6E6E7" />;
items2[2] = <Stop offset={0.7} stopColor="#DFE1E6" />;
items2[3] = <Stop offset={0.8} stopColor="#D3D8E4" />;
items2[4] = <Stop offset={0.9} stopColor="#C2CBE1" />;
items2[5] = <Stop offset={1} stopColor="#ABB9DD" />;
const items3 = [
<LinearGradient
id="a"
x1={54.35}
x2={54.35}
y1={76.145}
y2={113.601}
gradientUnits="userSpaceOnUse"
>
{items2}
</LinearGradient>,
];
const items4 = [
<Stop offset={0.2} stopColor="#E8E8E8" />,
];
items4[1] = <Stop offset={0.6} stopColor="#E6E6E7" />;
items4[2] = <Stop offset={0.7} stopColor="#DFE1E6" />;
items4[3] = <Stop offset={0.8} stopColor="#D3D8E4" />;
items4[4] = <Stop offset={0.9} stopColor="#C2CBE1" />;
items4[5] = <Stop offset={1} stopColor="#ABB9DD" />;
items3[1] = (
<LinearGradient
id="b"
x1={48.605}
x2={55.288}
y1={22.456}
y2={74.486}
gradientUnits="userSpaceOnUse"
>
{items4}
</LinearGradient>
);
const items5 = [
<Stop offset={0.2} stopColor="#EB459F" />,
];
items5[1] = <Stop offset={0.4} stopColor="#E73E9B" />;
items5[2] = <Stop offset={0.7} stopColor="#DD2B90" />;
items5[3] = <Stop offset={1} stopColor="#D11583" />;
items3[2] = (
<LinearGradient
id="c"
x1={111.499}
x2={89.676}
y1={67.431}
y2={52.544}
gradientUnits="userSpaceOnUse"
>
{items5}
</LinearGradient>
);
const items6 = [
<Stop stopColor="#433D84" stopOpacity={0.2} />,
];
items6[1] = (
<Stop
offset={0.5}
stopColor="#433D84"
stopOpacity={0.8}
/>
);
items6[2] = <Stop offset={0.8} stopColor="#433D84" />;
items3[3] = (
<LinearGradient
id="d"
x1={90.254}
x2={60.843}
y1={29.892}
y2={53.785}
gradientUnits="userSpaceOnUse"
>
{items6}
</LinearGradient>
);
items3[4] = (
<LinearGradient
id="e"
x1={70.532}
x2={80.882}
y1={60.302}
y2={23.632}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#EB459F" />
<Stop offset={1} stopColor="#FF78B9" />
</LinearGradient>
);
items3[5] = (
<LinearGradient
id="f"
x1={72.64}
x2={77.637}
y1={51.339}
y2={33.837}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#EB459F" />
<Stop offset={1} stopColor="#FF78B9" />
</LinearGradient>
);
items3[6] = (
<LinearGradient
id="g"
x1={84.614}
x2={90.428}
y1={31.866}
y2={20.373}
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#29CC7A" />
<Stop offset={0.5} stopColor="#57F287" />
</LinearGradient>
);
items7[34] = (
<Defs>
{items3}
</Defs>
);
return ((Component) => <Component {...defaultImportProps}>{items7}</Component>)(defaultImport);
}
}
function SvgComponent(a0) { // fn#89362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11840:137, offset: 0x0200ad61, size: 2738 bytes, params: 2, frame: 27
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
const defaultImportProps = {'width': 113, 'height': 124, 'fill': 'none', ...a0};
const Path = (require(7744) /* metro dependency 7744 */).Path;
const items7 = [<Path fill="#FFE636" d="M8.626 71.393c-1.634-1.035-2.708-2.776-2.989-4.706l-.467-3.294c0-.14-.14-.282-.327-.282-.14 0-.28.141-.327.282l-.467 3.294c-.28 1.93-1.4 3.624-2.989 4.706l-.42.282c-.093.047-.14.188-.14.282 0 .142.047.236.14.283l.42.282c1.635 1.035 2.71 2.776 2.99 4.706l.466 3.293c0 .142.14.283.327.283.14 0 .28-.141.327-.283l.467-3.293c.28-1.93 1.401-3.624 2.99-4.706l.42-.282c.093-.047.14-.188.14-.283 0-.14-.047-.235-.14-.282l-.42-.282z" />];
items7[1] = <Path fill="#CFCFDA" d="M7.6 109.225c-1.168 2.306-.234 5.129 2.1 6.305a4.78 4.78 0 002.103.518c1.728 0 3.362-.941 4.156-2.588a193.59 193.59 0 013.41-6.541l-7.893-5.035c-1.261 2.212-2.522 4.659-3.877 7.341zm10.507-16.987l6.82 6.446a36.207 36.207 0 015.65-5.364l-5.184-7.858c-2.849 2.117-5.23 4.329-7.332 6.776h.046zm-6.117 8.752l7.892 5.035c1.448-2.494 2.85-4.658 4.437-6.54L17.5 93.037c-1.961 2.4-3.736 4.988-5.464 7.952h-.047zm26.9-18.398c-1.26-2.259-4.156-3.059-6.351-1.741-2.289 1.317-4.344 2.635-6.212 4l5.184 7.858a60.462 60.462 0 015.698-3.67c2.242-1.271 2.99-4.189 1.728-6.4l-.046-.047z" />;
items7[2] = <Path fill="#9B9BBA" d="M25.44 85.462l5.184 7.858c.28-.188.56-.423.841-.611l-5.184-7.859c-.28.189-.56.424-.84.612zm-7.986 7.528l6.819 6.447c.233-.282.42-.517.654-.8l-6.819-6.446c-.234.282-.467.517-.654.8zm-5.978 8.894l7.893 5.035c.186-.329.326-.612.513-.894l-7.893-5.035c-.187.283-.327.612-.513.894z" />;
items7[3] = <Path fill="#6990FF" d="M10.261 121.506c4.23 0 7.66-3.455 7.66-7.717s-3.43-7.717-7.66-7.717-7.66 3.455-7.66 7.717 3.43 7.717 7.66 7.717z" />;
items7[4] = <Path fill="#CFCFDA" d="M88.164 74.545l4.764 8.188c2.709-1.835 5.278-4.188 7.426-7.152l-7.706-5.365a20.703 20.703 0 01-4.484 4.33zm-16.067 5.553a4.678 4.678 0 00-3.97 5.317 4.683 4.683 0 004.624 4.046h.654c2.429-.329 4.998-.8 7.52-1.458l-1.495-9.364c-2.195.659-4.67 1.13-7.333 1.506v-.047zm8.361-1.835l1.494 9.41c3.457-.988 6.913-2.352 10.088-4.329l-4.763-8.187c-1.962 1.27-4.25 2.306-6.866 3.106h.047zm22.278-20.752c-2.475-.658-5.044.8-5.745 3.341-.887 3.294-2.102 6.117-3.736 8.517l7.659 5.365c2.102-3.106 3.877-6.87 5.091-11.482a4.753 4.753 0 00-3.316-5.788l.047.047z" />;
items7[5] = <Path fill="#9B9BBA" d="M79.477 78.545l1.494 9.364c.327-.094.654-.188 1.028-.282l-1.495-9.411-.98.282-.047.047zm7.846-3.435l4.764 8.187c.28-.188.56-.376.887-.564l-4.764-8.188-.84.565h-.047zm5.324-4.894l7.707 5.364c.186-.282.42-.564.607-.847l-7.66-5.364c-.187.282-.42.565-.607.847h-.047z" />;
items7[6] = <Path fill="#6990FF" d="M102.034 69.84c4.231 0 7.66-3.455 7.66-7.717s-3.429-7.717-7.66-7.717c-4.23 0-7.659 3.455-7.659 7.717s3.43 7.717 7.659 7.717z" />;
items7[7] = <Path fill="url(#a)" d="M79.897 102.119c0 5.976-4.764 11.247-11.116 11.247h-28.77c-7.472 0-12.796-7.247-10.648-14.446L33.8 84.144c1.588-5.317 6.445-8.94 11.956-8.94h17.327c5.511 0 10.369 3.623 11.957 8.94l3.876 12.94.467 1.6v.189c.187.47.327.94.374 1.411.093.612.14 1.224.14 1.788v.047z" />;
items7[8] = <Path fill="#898989" d="M79.336 98.684l-4.67 2.636c-.187.094-.374.141-.514.094-.233 0-.467-.189-.56-.424-.234-.376-.094-.894.327-1.13l4.997-2.822.467 1.6-.047.046zm.56 3.436l-4.25 2.399c-.187.094-.373.142-.56.094-.234 0-.467-.188-.56-.423-.234-.376-.094-.894.326-1.129l4.904-2.777c.094.612.14 1.224.14 1.789v.047z" />;
items7[9] = <Path fill="#6990FF" d="M43.654 69.746l.42 10.21 9.715-.423-.42-10.21-9.715.423zm11.302-.518l.467 10.258 9.668-.423-.42-10.258-9.715.423zm-20.97.942l.14 3.575c.187 3.718 3.27 6.541 6.96 6.4h1.4c0-.047-.42-10.305-.42-10.305l-8.08.376v-.047zm32.32-1.413l.42 10.258h1.401c3.69-.235 6.539-3.34 6.352-7.058l-.14-3.576-8.08.376h.047z" />;
items7[10] = <Path fill="#3D6BF2" d="M42.02 69.793l.467 10.258 1.587-.094-.42-10.211-1.635.047zm11.348-.471l.42 10.211 1.635-.047-.467-10.258-1.588.094zm11.303-.517l.42 10.258 1.635-.094-.42-10.211-1.635.047z" />;
items7[11] = <Path fill="url(#b)" d="M86.996 53.747c-.748-8.517-6.772-11.575-9.948-13.316a25.756 25.756 0 01-1.635-.941c3.222-1.647 7.66-4.47 9.06-8.047 1.075-2.776.841-6.494-4.203-10.823a16.517 16.517 0 00-1.12-.8c-3.13-1.835-7.567-1.552-8.734 4.094a118.554 118.554 0 00-1.495 9.6c-.14-.236-.28-.518-.42-.753-3.41-6.4-8.92-11.858-19.336-11.011-10.181.8-15.179 8.281-17.327 15.716-.094.33-.187.659-.28.941-.84-2.917-2.055-6.634-3.41-10.07-2.148-5.364-6.492-4.893-9.294-2.493-.373.329-.7.658-.98.988-4.25 5.176-3.83 8.846-2.29 11.434 2.43 4.047 9.342 6.117 12.47 6.917-3.362 3.247-7.332 7.952-6.631 15.058.84 8.328 8.126 14.398 16.346 13.74l35.87-3.623c8.126-.989 14.057-8.33 13.31-16.564l.047-.047z" />;
items7[12] = <Path fill="#FFAED7" d="M15.585 38.219c2.475 4.047 9.387 6.117 12.517 6.917l-9.248-19.34c-.373.33-.7.66-.98.989-4.25 5.176-3.83 8.846-2.29 11.434zm57.772 2.259c2.943-1.318 9.388-4.565 11.116-9.035 1.074-2.776.84-6.494-4.203-10.823-.374-.282-.748-.564-1.121-.8l-5.745 20.658h-.047z" />;
items7[13] = <Path fill="#000" d="M49.446 18.926c.7 0 1.308-.611 1.308-1.317 0-.565.233-13.74-8.968-16.987-8.967-3.153-22.09 6.682-22.651 7.105-.607.47-.7 1.318-.28 1.93.467.611 1.307.706 1.915.282.14-.094 12.516-9.364 20.129-6.729 7.332 2.588 7.146 14.21 7.146 14.352 0 .753.56 1.364 1.307 1.412h.094v-.048z" />;
items7[14] = <Path fill="#6990FF" d="M43.262 24.238l12.98-1.144a2.207 2.207 0 001.996-2.396l-.252-2.906a2.2 2.2 0 00-2.378-2.01l-12.98 1.144a2.207 2.207 0 00-1.996 2.396l.252 2.906a2.2 2.2 0 002.378 2.01zM18.9 18.174c4.928 0 8.921-4.024 8.921-8.988 0-4.964-3.994-8.988-8.92-8.988-4.927 0-8.92 4.024-8.92 8.988 0 4.964 3.993 8.988 8.92 8.988z" />;
items7[15] = <Path fill="#698FFF" d="M25.44 54.688c1.774-.188 3.502 2.259 3.83 5.459.326 3.2-.888 5.928-2.663 6.117l-6.118.611L19.321 55.3l6.119-.612z" />;
items7[16] = <Path fill="#8CA9FF" d="M20.398 66.965c1.796-.181 2.995-2.927 2.678-6.133-.318-3.207-2.032-5.66-3.829-5.48-1.796.181-2.995 2.927-2.677 6.134.317 3.206 2.031 5.66 3.828 5.479z" />;
items7[17] = <Path fill="#698FFF" d="M82.185 49.7c-1.821.141-3.082 2.824-2.849 6.07.234 3.247 1.869 5.694 3.69 5.553l6.165-.47-.84-11.623-6.166.47z" />;
items7[18] = <Path fill="#8CA9FF" d="M89.287 60.717c1.8-.136 3.065-2.852 2.826-6.065-.24-3.214-1.894-5.708-3.695-5.572-1.8.137-3.065 2.852-2.826 6.066.24 3.213 1.894 5.707 3.695 5.571z" />;
items7[19] = <Path fill="#000" d="M51.734 47.677c-.093-.941 3.27-1.27 3.363-.33.093.942-.84 1.553-1.541 1.6-.7.047-1.728-.329-1.822-1.27z" />;
items7[20] = <Path fill="#FF78B9" d="M58.086 52.053c.14 3.435-1.448 6.306-3.736 6.494-2.242.188-4.297-2.306-4.764-5.694l8.5-.8z" />;
items7[21] = <Path fill="#000" d="M63.247 42.597c1.074-1.495 1.318-3.164.545-3.727-.773-.564-2.27.19-3.344 1.685-1.074 1.495-1.318 3.163-.545 3.727.773.564 2.27-.19 3.344-1.685zM46.4 45.502c.647-.708.078-2.294-1.27-3.543-1.349-1.25-2.965-1.688-3.611-.98-.646.708-.077 2.294 1.271 3.543 1.348 1.249 2.965 1.688 3.61.98z" />;
items7[22] = <Path fill="#FFAED7" d="M42.627 52.806a.747.747 0 00.513-.235c.327-.283.374-.847.047-1.177l-3.27-3.623c-.28-.33-.84-.376-1.167-.047-.327.282-.373.847-.047 1.176l3.27 3.624a.92.92 0 00.654.282zm-3.457.329a.748.748 0 00.514-.235c.327-.282.374-.847.047-1.176L36.46 48.1c-.28-.329-.84-.376-1.167-.047-.327.283-.374.847-.047 1.177l3.27 3.623c.186.188.42.282.653.282zm-3.456.33a.748.748 0 00.514-.236c.327-.282.374-.847.047-1.176l-3.27-3.623c-.28-.33-.84-.377-1.167-.047-.327.282-.374.847-.047 1.176l3.27 3.623c.186.188.42.283.653.283zm29.19-2.871c.28 0 .514-.14.654-.376l2.569-4.188c.234-.377.093-.894-.28-1.13-.374-.235-.888-.093-1.121.283l-2.569 4.188c-.233.376-.093.894.28 1.13.14.093.327.14.467.14v-.047zm3.456-.329c.28 0 .514-.141.654-.377l2.569-4.187c.234-.377.093-.894-.28-1.13-.374-.235-.888-.094-1.121.283l-2.569 4.188c-.233.376-.093.894.28 1.129.14.094.327.141.468.141v-.047zm3.41-.329c.28 0 .513-.142.653-.377l2.569-4.188c.233-.376.093-.894-.28-1.129-.374-.235-.888-.094-1.121.282l-2.569 4.188c-.233.377-.093.894.28 1.13.14.094.327.14.467.14v-.046z" />;
items7[23] = <Path fill="url(#c)" d="M88.257 54.83l13.03 11.293 3.036 2.635c.374.33.841.612 1.308.847.84.33 1.681.423 2.522.235 2.615-.565 4.437-3.011 4.343-5.694 0-.329 0-.611-.093-.94-.187-1.13-.888-2.071-1.868-2.636l-3.643-2.117-15.086-8.705a17.593 17.593 0 01-3.596 5.082h.047z" />;
items7[24] = <Path fill="#433D84" d="M75.647 61.135c10.446 0 18.915-8.532 18.915-19.057 0-10.526-8.469-19.058-18.915-19.058-10.447 0-18.916 8.532-18.916 19.058 0 10.524 8.47 19.057 18.916 19.057z" opacity={0.4} />;
items7[25] = <Path fill="url(#d)" d="M75.647 61.135c10.446 0 18.915-8.532 18.915-19.057 0-10.526-8.469-19.058-18.915-19.058-10.447 0-18.916 8.532-18.916 19.058 0 10.524 8.47 19.057 18.916 19.057z" />;
items7[26] = <Path fill="url(#e)" d="M77.14 27.02c-8.22-.847-15.599 5.27-16.44 13.552-.84 8.282 5.232 15.716 13.452 16.563 8.22.847 15.599-5.27 16.44-13.551.84-8.282-5.231-15.717-13.451-16.564zm.374-3.905C87.883 24.15 95.495 33.514 94.468 43.96c-1.028 10.446-10.322 18.116-20.69 17.08-10.368-1.034-17.981-10.398-16.954-20.844 1.028-10.447 10.322-18.117 20.69-17.081z" />;
items7[27] = <Path fill="url(#f)" d="M71.863 34.078h-.887c-1.962 0-4.344 1.412-4.904 4.517l-.094 1.036c0 3.058 2.056 7.01 8.734 12.422 7.613-3.953 10.415-7.435 10.976-10.446l.093-1.035c0-3.2-2.008-5.035-3.923-5.412a36.61 36.61 0 01-.887-.14c-2.242-.236-3.41.564-4.764 1.787-1.075-1.506-2.055-2.494-4.297-2.729" />;
items7[28] = <Path fill="#6990FF" d="M100.26 68.099c2.012 0 3.643-1.643 3.643-3.67s-1.631-3.67-3.643-3.67c-2.012 0-3.643 1.643-3.643 3.67s1.631 3.67 3.643 3.67z" />;
items7[29] = <Path fill="url(#g)" d="M90.873 26.408c-1.635-1.035-2.71-2.776-2.99-4.705l-.467-3.294c0-.141-.14-.282-.326-.282-.14 0-.28.14-.328.282l-.466 3.294c-.28 1.929-1.402 3.623-2.99 4.705l-.42.282c-.093.047-.14.189-.14.283 0 .141.047.235.14.282l.42.282c1.635 1.036 2.71 2.777 2.99 4.706l.466 3.294c0 .14.14.282.328.282.14 0 .28-.141.326-.282l.467-3.294c.28-1.93 1.402-3.623 2.99-4.706l.42-.282c.093-.047.14-.188.14-.282 0-.141-.047-.235-.14-.282l-.42-.283z" />;
items7[30] = <Path fill="#6990FF" d="M46.504 123.953H34.92c-5.137 0-5.09-3.341-3.83-5.6.981-1.788 1.448-2.823 3.036-4.752.374-.471.887-1.035 1.448-1.647l.14-.141c2.989-3.247 7.239-5.506 11.069-.424 1.354 1.835 3.783 5.459 4.483 7.388.607 1.6 0 5.223-4.763 5.223v-.047z" />;
items7[31] = <Path fill="#3D6BF2" d="M35.528 111.907c2.335-.141 4.95.847 6.445 5.082.14.471.234.8.374 1.082.327 1.035.514 1.6.84 3.294.187.941.094 1.835-.233 2.588h-1.588c.467-.565.607-1.365.467-2.306-.28-1.599-.467-2.117-.794-3.105-.093-.283-.233-.659-.373-1.082-1.168-3.341-3.176-4.659-6.165-3.953l-.42.094 1.447-1.647v-.047z" />;
items7[32] = <Path fill="#6990FF" d="M62.383 123.953h11.583c5.137 0 5.09-3.341 3.876-5.6-.98-1.788-1.448-2.823-3.036-4.752-.373-.471-.887-1.035-1.447-1.647l-.14-.141c-2.99-3.247-7.24-5.506-11.07-.424-1.354 1.835-3.783 5.459-4.483 7.388-.607 1.6 0 5.223 4.764 5.223l-.047-.047z" />;
items7[33] = <Path fill="#3D6BF2" d="M74.806 113.601l-.42-.094c-2.99-.706-4.998.612-6.165 3.953-.14.423-.234.799-.374 1.082-.327.988-.514 1.506-.794 3.105-.187.941 0 1.741.42 2.306h-1.587c-.327-.753-.42-1.647-.234-2.588.327-1.694.514-2.259.84-3.294.094-.282.234-.659.374-1.082 1.495-4.235 4.11-5.223 6.446-5.082l1.447 1.694h.047z" />;
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
const LinearGradient = (require(7744) /* metro dependency 7744 */).LinearGradient;
const Stop = (require(7744) /* metro dependency 7744 */).Stop;
const items2 = [<Stop offset={0.2} stopColor="#E8E8E8" />];
items2[1] = <Stop offset={0.6} stopColor="#E6E6E7" />;
items2[2] = <Stop offset={0.7} stopColor="#DFE1E6" />;
items2[3] = <Stop offset={0.8} stopColor="#D3D8E4" />;
items2[4] = <Stop offset={0.9} stopColor="#C2CBE1" />;
items2[5] = <Stop offset={1} stopColor="#ABB9DD" />;
const items3 = [<LinearGradient id="a" x1={54.35} x2={54.35} y1={76.145} y2={113.601} gradientUnits="userSpaceOnUse">{items2}</LinearGradient>];
const items4 = [<Stop offset={0.2} stopColor="#E8E8E8" />];
items4[1] = <Stop offset={0.6} stopColor="#E6E6E7" />;
items4[2] = <Stop offset={0.7} stopColor="#DFE1E6" />;
items4[3] = <Stop offset={0.8} stopColor="#D3D8E4" />;
items4[4] = <Stop offset={0.9} stopColor="#C2CBE1" />;
items4[5] = <Stop offset={1} stopColor="#ABB9DD" />;
items3[1] = <LinearGradient id="b" x1={48.605} x2={55.288} y1={22.456} y2={74.486} gradientUnits="userSpaceOnUse">{items4}</LinearGradient>;
const items5 = [<Stop offset={0.2} stopColor="#EB459F" />];
items5[1] = <Stop offset={0.4} stopColor="#E73E9B" />;
items5[2] = <Stop offset={0.7} stopColor="#DD2B90" />;
items5[3] = <Stop offset={1} stopColor="#D11583" />;
items3[2] = <LinearGradient id="c" x1={111.499} x2={89.676} y1={67.431} y2={52.544} gradientUnits="userSpaceOnUse">{items5}</LinearGradient>;
const items6 = [<Stop stopColor="#433D84" stopOpacity={0.2} />];
items6[1] = <Stop offset={0.5} stopColor="#433D84" stopOpacity={0.8} />;
items6[2] = <Stop offset={0.8} stopColor="#433D84" />;
items3[3] = <LinearGradient id="d" x1={90.254} x2={60.843} y1={29.892} y2={53.785} gradientUnits="userSpaceOnUse">{items6}</LinearGradient>;
items3[4] = <LinearGradient id="e" x1={70.532} x2={80.882} y1={60.302} y2={23.632} gradientUnits="userSpaceOnUse"><Stop stopColor="#EB459F" /><Stop offset={1} stopColor="#FF78B9" /></LinearGradient>;
items3[5] = <LinearGradient id="f" x1={72.64} x2={77.637} y1={51.339} y2={33.837} gradientUnits="userSpaceOnUse"><Stop stopColor="#EB459F" /><Stop offset={1} stopColor="#FF78B9" /></LinearGradient>;
items3[6] = <LinearGradient id="g" x1={84.614} x2={90.428} y1={31.866} y2={20.373} gradientUnits="userSpaceOnUse"><Stop stopColor="#29CC7A" /><Stop offset={0.5} stopColor="#57F287" /></LinearGradient>;
items7[34] = <Defs>{items3}</Defs>;
return ((Component) => <Component {...defaultImportProps}>{items7}</Component>)(defaultImport);
}
global.__d(_fun89361, 11654, [31, 33, 7744, 2]) /* metro module 11654, dependencies: [31, 33, 7744, 2] */;
@@ -1,59 +1,215 @@
/* Metro module 11605; source: modules/app_launcher/native/images/OnboardingAppsRocket.tsx; dependencies: [31, 33, 7744, 2] */
import Module07744 from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module07744Module from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */
function _fun88860(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11791:6, offset: 0x01ff6d07, size: 147 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 value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/images/OnboardingAppsRocket.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/images/OnboardingAppsRocket.tsx');
exports.default = _default_88861;
function _default_88861(a0) { // fn#88861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11791:140, offset: 0x01ff6d9a, size: 1503 bytes, params: 2, frame: 26
const defaultImport = Module07744;
const defaultImportProps = {fill: 'none', ...a0};
const Path = (Module07744Module).Path;
const items6 = [
<Path
fill="#88898E"
d="m36.45 13.982-16.079 2.562a2.17 2.17 0 0 0-1.185.609l-5.742 5.733a.593.593 0 0 0 .305.993 9.329 9.329 0 0 1 4.62 2.795 7.664 7.664 0 0 1 2.09 6.734L36.45 13.982ZM49.174 26.714 46.62 42.785a2.17 2.17 0 0 1-.609 1.193l-5.741 5.734a.593.593 0 0 1-.993-.297 9.265 9.265 0 0 0-2.787-4.62 7.647 7.647 0 0 0-6.742-2.09l19.426-15.991Z"
/>,
];
items6[1] = (
<Path
fill="#727378"
d="m23.009 33.47 6.676 6.675-2.265 2.265a.448.448 0 0 1-.635 0l-6.047-6.047a.448.448 0 0 1 0-.634l2.265-2.265.006.005Z"
/>
);
items6[2] = (
<Path
fill="#5A65E8"
d="m20.459 33.416 4.644 4.645 4.653 4.652M18.746 29.95v-.225a4.324 4.324 0 0 0-1.338-2.338l-.056-.048-.048-.048a4.228 4.228 0 0 0-2.33-1.338 1.186 1.186 0 0 0-.232 0v.049a7.207 7.207 0 0 0-2.49 6.454h.04a7.207 7.207 0 0 0 6.454-2.49v-.017Z"
/>
);
items6[3] = (
<Path
fill="#A4A5AB"
d="M61.986 2.666C58.6 25.448 29.748 42.704 29.748 42.704l-4.645-4.652-4.652-4.653S37.707 4.572 60.489 1.17a1.321 1.321 0 0 1 1.497 1.497Z"
/>
);
items6[4] = (
<Path
fill="#5A65E8"
d="M33.207 44.418c.078-.007.155-.007.232 0 .902.18 1.72.65 2.33 1.337l.049.049.056.048a4.324 4.324 0 0 1 1.337 2.338v.224h-.048a7.207 7.207 0 0 1-6.454 2.49 7.207 7.207 0 0 1 2.49-6.454l.008-.032ZM25.576 43.442a.505.505 0 0 0 0-.705l-1.874-1.874-1.401-1.401-1.874-1.874a.497.497 0 0 0-.705 0c-1.28 1.25-5.525 5.806-4.668 10.53 4.716.849 9.249-3.395 10.522-4.676Z"
/>
);
items6[5] = (
<Path
fill="#5A65E8"
fillRule="evenodd"
d="M47.052 17.857a1.78 1.78 0 0 1-.368-.512l-.288-.585-.585-.288a1.82 1.82 0 0 1-.513-.369 1.882 1.882 0 0 1-.368-2.154l.28-.584-.144-.64a1.898 1.898 0 0 1 1.425-2.267l.633-.144.409-.512a1.898 1.898 0 0 1 2.658-.297l.505.409h.656a1.89 1.89 0 0 1 1.89 1.89v.648l.408.512a1.898 1.898 0 0 1-.296 2.66l-.512.408-.145.632a1.897 1.897 0 0 1-2.266 1.425l-.64-.144-.585.28a1.89 1.89 0 0 1-2.154-.368Z"
clipRule="evenodd"
/>
);
items6[6] = (
<Path
fill="#F2F3F5"
fillRule="evenodd"
d="M51.352 11.107a.697.697 0 0 1 .697.697v.8c0 .157.054.31.152.433l.513.648a.69.69 0 0 1-.112.977l-.641.52a.689.689 0 0 0-.248.385l-.184.8a.689.689 0 0 1-.801.521l-.801-.176a.69.69 0 0 0-.456.048l-.745.36a.704.704 0 0 1-.929-.328l-.36-.745a.657.657 0 0 0-.32-.32l-.745-.36a.713.713 0 0 1-.329-.937l.36-.737a.69.69 0 0 0 .049-.456l-.176-.8a.688.688 0 0 1 .52-.802l.8-.184a.737.737 0 0 0 .385-.248l.513-.64a.705.705 0 0 1 .984-.113l.65.513a.697.697 0 0 0 .432.152l.792-.008Z"
clipRule="evenodd"
/>
);
items6[7] = (
<Path
fill="#F2F3F5"
d="m36.45 13.982-16.079 2.562a2.17 2.17 0 0 0-1.185.609l-5.742 5.733a.593.593 0 0 0 .305.993 9.329 9.329 0 0 1 4.62 2.795 7.664 7.664 0 0 1 2.09 6.734L36.45 13.982ZM49.174 26.714 46.62 42.785a2.17 2.17 0 0 1-.609 1.193l-5.741 5.734a.593.593 0 0 1-.993-.297 9.265 9.265 0 0 0-2.787-4.62 7.647 7.647 0 0 0-6.742-2.09l19.426-15.991Z"
/>
);
items6[8] = (
<Path
fill="#5A65E9"
d="m23.009 33.47 6.676 6.675-2.265 2.265a.448.448 0 0 1-.635 0l-6.047-6.047a.448.448 0 0 1 0-.634l2.265-2.265.006.005Z"
/>
);
items6[9] = <Path fill="#5A65E8" d="m20.459 33.416 4.644 4.645 4.653 4.652" />;
items6[10] = (
<Path
fill="url(#a)"
d="M18.746 29.95v-.225a4.324 4.324 0 0 0-1.338-2.338l-.056-.048-.048-.048a4.228 4.228 0 0 0-2.33-1.338 1.186 1.186 0 0 0-.232 0v.049a7.207 7.207 0 0 0-2.49 6.454h.04a7.207 7.207 0 0 0 6.454-2.49v-.017Z"
/>
);
items6[11] = (
<Path
fill="#D298FF"
d="M61.986 2.666C58.6 25.448 29.748 42.704 29.748 42.704l-4.645-4.652-4.652-4.653S37.707 4.572 60.489 1.17a1.321 1.321 0 0 1 1.497 1.497Z"
/>
);
items6[12] = (
<Path
fill="url(#b)"
d="M33.207 44.418c.078-.007.155-.007.232 0 .902.18 1.72.65 2.33 1.337l.049.049.056.048a4.324 4.324 0 0 1 1.337 2.338v.224h-.048a7.207 7.207 0 0 1-6.454 2.49 7.207 7.207 0 0 1 2.49-6.454l.008-.032Z"
/>
);
items6[13] = (
<Path
fill="url(#c)"
d="M25.576 43.442a.505.505 0 0 0 0-.705l-1.874-1.874-1.401-1.401-1.874-1.874a.497.497 0 0 0-.705 0c-1.28 1.25-5.525 5.806-4.668 10.53 4.716.849 9.249-3.395 10.522-4.676Z"
/>
);
items6[14] = (
<Path
fill="#5A65E8"
fillRule="evenodd"
d="M47.052 17.857a1.78 1.78 0 0 1-.368-.512l-.288-.585-.585-.288a1.82 1.82 0 0 1-.513-.369 1.882 1.882 0 0 1-.368-2.154l.28-.584-.144-.64a1.898 1.898 0 0 1 1.425-2.267l.633-.144.409-.512a1.898 1.898 0 0 1 2.658-.297l.505.409h.656a1.89 1.89 0 0 1 1.89 1.89v.648l.408.512a1.898 1.898 0 0 1-.296 2.66l-.512.408-.145.632a1.897 1.897 0 0 1-2.266 1.425l-.64-.144-.585.28a1.89 1.89 0 0 1-2.154-.368Z"
clipRule="evenodd"
/>
);
items6[15] = (
<Path
fill="#F2F3F5"
fillRule="evenodd"
d="M51.352 11.107a.697.697 0 0 1 .697.697v.8c0 .157.054.31.152.433l.513.648a.69.69 0 0 1-.112.977l-.641.52a.689.689 0 0 0-.248.385l-.184.8a.689.689 0 0 1-.801.521l-.801-.176a.69.69 0 0 0-.456.048l-.745.36a.704.704 0 0 1-.929-.328l-.36-.745a.657.657 0 0 0-.32-.32l-.745-.36a.713.713 0 0 1-.329-.937l.36-.737a.69.69 0 0 0 .049-.456l-.176-.8a.688.688 0 0 1 .52-.802l.8-.184a.737.737 0 0 0 .385-.248l.513-.64a.705.705 0 0 1 .984-.113l.65.513a.697.697 0 0 0 .432.152l.792-.008Z"
clipRule="evenodd"
/>
);
items6[16] = (
<Path
fill="#84EE91"
d="m53.681 48.805-3.617 2.963a1.874 1.874 0 0 0-.263 2.637l2.963 3.618c.656.8 1.837.918 2.637.262l3.618-2.963c.8-.656.918-1.836.262-2.637l-2.963-3.618a1.874 1.874 0 0 0-2.637-.262Z"
/>
);
items6[17] = (
<Path
fill="#EF913C"
fillRule="evenodd"
d="M26.76 1.89A1.874 1.874 0 0 0 23.999.224l-4.34 2.322a1.866 1.866 0 0 0-.144 3.203l4.3 2.827a1.874 1.874 0 0 0 2.89-1.561l.057-5.125Z"
clipRule="evenodd"
/>
);
items6[18] = (
<Path
fill="#98AFFF"
fillRule="evenodd"
d="M12.22 52.298a1.025 1.025 0 0 0-1.362-1.361l-1.121.52a1.666 1.666 0 0 1-1.41 0l-1.129-.52a1.025 1.025 0 0 0-1.353 1.36l.52 1.122a1.73 1.73 0 0 1 0 1.41l-.52 1.12a1.025 1.025 0 0 0 1.353 1.362l1.13-.52a1.73 1.73 0 0 1 1.409 0l1.121.52a1.025 1.025 0 0 0 1.361-1.362l-.52-1.12a1.666 1.666 0 0 1 0-1.41l.52-1.121Z"
clipRule="evenodd"
/>
);
items6[19] = (
<Path
fill="#fff"
fillRule="evenodd"
d="M3.531 60.354a.545.545 0 0 0-.729-.729l-.608.28a.986.986 0 0 1-.801 0l-.609-.28a.545.545 0 0 0-.728.729l.28.608a.985.985 0 0 1 0 .801l-.28.609a.545.545 0 0 0 .728.728l.609-.28a.986.986 0 0 1 .8 0l.61.28a.545.545 0 0 0 .728-.728l-.28-.609a.92.92 0 0 1 0-.8l.28-.61Z"
clipRule="evenodd"
/>
);
const Defs = (Module07744Module).Defs;
const LinearGradient = (Module07744Module).LinearGradient;
const Stop = (Module07744Module).Stop;
const items2 = [
<Stop offset={0.07} stopColor="#F9E172" />,
];
items2[1] = <Stop offset={0.27} stopColor="#F7D067" />;
items2[2] = <Stop offset={0.67} stopColor="#F1A549" />;
items2[3] = <Stop offset={0.83} stopColor="#EF913C" />;
const items3 = [
<LinearGradient
id="a"
x1={12.115}
x2={18.746}
y1={29.237}
y2={29.237}
gradientUnits="userSpaceOnUse"
>
{items2}
</LinearGradient>,
];
const items4 = [
<Stop offset={0.07} stopColor="#F9E172" />,
];
items4[1] = <Stop offset={0.27} stopColor="#F7D067" />;
items4[2] = <Stop offset={0.67} stopColor="#F1A549" />;
items4[3] = <Stop offset={0.83} stopColor="#EF913C" />;
items3[1] = (
<LinearGradient
id="b"
x1={30.613}
x2={37.243}
y1={47.733}
y2={47.733}
gradientUnits="userSpaceOnUse"
>
{items4}
</LinearGradient>
);
const items5 = [
<Stop offset={0.07} stopColor="#F9E172" />,
];
items5[1] = <Stop offset={0.27} stopColor="#F7D067" />;
items5[2] = <Stop offset={0.67} stopColor="#F1A549" />;
items5[3] = <Stop offset={0.83} stopColor="#EF913C" />;
items3[2] = (
<LinearGradient
id="c"
x1={14.934}
x2={25.72}
y1={42.833}
y2={42.833}
gradientUnits="userSpaceOnUse"
>
{items5}
</LinearGradient>
);
items6[20] = (
<Defs>
{items3}
</Defs>
);
return ((Component) => <Component {...defaultImportProps}>{items6}</Component>)(defaultImport);
}
}
function _default_88861(a0) { // fn#88861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11791:140, offset: 0x01ff6d9a, size: 1503 bytes, params: 2, frame: 26
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
const defaultImportProps = {fill: 'none', ...a0};
const Path = (require(7744) /* metro dependency 7744 */).Path;
const items6 = [<Path fill="#88898E" d="m36.45 13.982-16.079 2.562a2.17 2.17 0 0 0-1.185.609l-5.742 5.733a.593.593 0 0 0 .305.993 9.329 9.329 0 0 1 4.62 2.795 7.664 7.664 0 0 1 2.09 6.734L36.45 13.982ZM49.174 26.714 46.62 42.785a2.17 2.17 0 0 1-.609 1.193l-5.741 5.734a.593.593 0 0 1-.993-.297 9.265 9.265 0 0 0-2.787-4.62 7.647 7.647 0 0 0-6.742-2.09l19.426-15.991Z" />];
items6[1] = <Path fill="#727378" d="m23.009 33.47 6.676 6.675-2.265 2.265a.448.448 0 0 1-.635 0l-6.047-6.047a.448.448 0 0 1 0-.634l2.265-2.265.006.005Z" />;
items6[2] = <Path fill="#5A65E8" d="m20.459 33.416 4.644 4.645 4.653 4.652M18.746 29.95v-.225a4.324 4.324 0 0 0-1.338-2.338l-.056-.048-.048-.048a4.228 4.228 0 0 0-2.33-1.338 1.186 1.186 0 0 0-.232 0v.049a7.207 7.207 0 0 0-2.49 6.454h.04a7.207 7.207 0 0 0 6.454-2.49v-.017Z" />;
items6[3] = <Path fill="#A4A5AB" d="M61.986 2.666C58.6 25.448 29.748 42.704 29.748 42.704l-4.645-4.652-4.652-4.653S37.707 4.572 60.489 1.17a1.321 1.321 0 0 1 1.497 1.497Z" />;
items6[4] = <Path fill="#5A65E8" d="M33.207 44.418c.078-.007.155-.007.232 0 .902.18 1.72.65 2.33 1.337l.049.049.056.048a4.324 4.324 0 0 1 1.337 2.338v.224h-.048a7.207 7.207 0 0 1-6.454 2.49 7.207 7.207 0 0 1 2.49-6.454l.008-.032ZM25.576 43.442a.505.505 0 0 0 0-.705l-1.874-1.874-1.401-1.401-1.874-1.874a.497.497 0 0 0-.705 0c-1.28 1.25-5.525 5.806-4.668 10.53 4.716.849 9.249-3.395 10.522-4.676Z" />;
items6[5] = <Path fill="#5A65E8" fillRule="evenodd" d="M47.052 17.857a1.78 1.78 0 0 1-.368-.512l-.288-.585-.585-.288a1.82 1.82 0 0 1-.513-.369 1.882 1.882 0 0 1-.368-2.154l.28-.584-.144-.64a1.898 1.898 0 0 1 1.425-2.267l.633-.144.409-.512a1.898 1.898 0 0 1 2.658-.297l.505.409h.656a1.89 1.89 0 0 1 1.89 1.89v.648l.408.512a1.898 1.898 0 0 1-.296 2.66l-.512.408-.145.632a1.897 1.897 0 0 1-2.266 1.425l-.64-.144-.585.28a1.89 1.89 0 0 1-2.154-.368Z" clipRule="evenodd" />;
items6[6] = <Path fill="#F2F3F5" fillRule="evenodd" d="M51.352 11.107a.697.697 0 0 1 .697.697v.8c0 .157.054.31.152.433l.513.648a.69.69 0 0 1-.112.977l-.641.52a.689.689 0 0 0-.248.385l-.184.8a.689.689 0 0 1-.801.521l-.801-.176a.69.69 0 0 0-.456.048l-.745.36a.704.704 0 0 1-.929-.328l-.36-.745a.657.657 0 0 0-.32-.32l-.745-.36a.713.713 0 0 1-.329-.937l.36-.737a.69.69 0 0 0 .049-.456l-.176-.8a.688.688 0 0 1 .52-.802l.8-.184a.737.737 0 0 0 .385-.248l.513-.64a.705.705 0 0 1 .984-.113l.65.513a.697.697 0 0 0 .432.152l.792-.008Z" clipRule="evenodd" />;
items6[7] = <Path fill="#F2F3F5" d="m36.45 13.982-16.079 2.562a2.17 2.17 0 0 0-1.185.609l-5.742 5.733a.593.593 0 0 0 .305.993 9.329 9.329 0 0 1 4.62 2.795 7.664 7.664 0 0 1 2.09 6.734L36.45 13.982ZM49.174 26.714 46.62 42.785a2.17 2.17 0 0 1-.609 1.193l-5.741 5.734a.593.593 0 0 1-.993-.297 9.265 9.265 0 0 0-2.787-4.62 7.647 7.647 0 0 0-6.742-2.09l19.426-15.991Z" />;
items6[8] = <Path fill="#5A65E9" d="m23.009 33.47 6.676 6.675-2.265 2.265a.448.448 0 0 1-.635 0l-6.047-6.047a.448.448 0 0 1 0-.634l2.265-2.265.006.005Z" />;
items6[9] = <Path fill="#5A65E8" d="m20.459 33.416 4.644 4.645 4.653 4.652" />;
items6[10] = <Path fill="url(#a)" d="M18.746 29.95v-.225a4.324 4.324 0 0 0-1.338-2.338l-.056-.048-.048-.048a4.228 4.228 0 0 0-2.33-1.338 1.186 1.186 0 0 0-.232 0v.049a7.207 7.207 0 0 0-2.49 6.454h.04a7.207 7.207 0 0 0 6.454-2.49v-.017Z" />;
items6[11] = <Path fill="#D298FF" d="M61.986 2.666C58.6 25.448 29.748 42.704 29.748 42.704l-4.645-4.652-4.652-4.653S37.707 4.572 60.489 1.17a1.321 1.321 0 0 1 1.497 1.497Z" />;
items6[12] = <Path fill="url(#b)" d="M33.207 44.418c.078-.007.155-.007.232 0 .902.18 1.72.65 2.33 1.337l.049.049.056.048a4.324 4.324 0 0 1 1.337 2.338v.224h-.048a7.207 7.207 0 0 1-6.454 2.49 7.207 7.207 0 0 1 2.49-6.454l.008-.032Z" />;
items6[13] = <Path fill="url(#c)" d="M25.576 43.442a.505.505 0 0 0 0-.705l-1.874-1.874-1.401-1.401-1.874-1.874a.497.497 0 0 0-.705 0c-1.28 1.25-5.525 5.806-4.668 10.53 4.716.849 9.249-3.395 10.522-4.676Z" />;
items6[14] = <Path fill="#5A65E8" fillRule="evenodd" d="M47.052 17.857a1.78 1.78 0 0 1-.368-.512l-.288-.585-.585-.288a1.82 1.82 0 0 1-.513-.369 1.882 1.882 0 0 1-.368-2.154l.28-.584-.144-.64a1.898 1.898 0 0 1 1.425-2.267l.633-.144.409-.512a1.898 1.898 0 0 1 2.658-.297l.505.409h.656a1.89 1.89 0 0 1 1.89 1.89v.648l.408.512a1.898 1.898 0 0 1-.296 2.66l-.512.408-.145.632a1.897 1.897 0 0 1-2.266 1.425l-.64-.144-.585.28a1.89 1.89 0 0 1-2.154-.368Z" clipRule="evenodd" />;
items6[15] = <Path fill="#F2F3F5" fillRule="evenodd" d="M51.352 11.107a.697.697 0 0 1 .697.697v.8c0 .157.054.31.152.433l.513.648a.69.69 0 0 1-.112.977l-.641.52a.689.689 0 0 0-.248.385l-.184.8a.689.689 0 0 1-.801.521l-.801-.176a.69.69 0 0 0-.456.048l-.745.36a.704.704 0 0 1-.929-.328l-.36-.745a.657.657 0 0 0-.32-.32l-.745-.36a.713.713 0 0 1-.329-.937l.36-.737a.69.69 0 0 0 .049-.456l-.176-.8a.688.688 0 0 1 .52-.802l.8-.184a.737.737 0 0 0 .385-.248l.513-.64a.705.705 0 0 1 .984-.113l.65.513a.697.697 0 0 0 .432.152l.792-.008Z" clipRule="evenodd" />;
items6[16] = <Path fill="#84EE91" d="m53.681 48.805-3.617 2.963a1.874 1.874 0 0 0-.263 2.637l2.963 3.618c.656.8 1.837.918 2.637.262l3.618-2.963c.8-.656.918-1.836.262-2.637l-2.963-3.618a1.874 1.874 0 0 0-2.637-.262Z" />;
items6[17] = <Path fill="#EF913C" fillRule="evenodd" d="M26.76 1.89A1.874 1.874 0 0 0 23.999.224l-4.34 2.322a1.866 1.866 0 0 0-.144 3.203l4.3 2.827a1.874 1.874 0 0 0 2.89-1.561l.057-5.125Z" clipRule="evenodd" />;
items6[18] = <Path fill="#98AFFF" fillRule="evenodd" d="M12.22 52.298a1.025 1.025 0 0 0-1.362-1.361l-1.121.52a1.666 1.666 0 0 1-1.41 0l-1.129-.52a1.025 1.025 0 0 0-1.353 1.36l.52 1.122a1.73 1.73 0 0 1 0 1.41l-.52 1.12a1.025 1.025 0 0 0 1.353 1.362l1.13-.52a1.73 1.73 0 0 1 1.409 0l1.121.52a1.025 1.025 0 0 0 1.361-1.362l-.52-1.12a1.666 1.666 0 0 1 0-1.41l.52-1.121Z" clipRule="evenodd" />;
items6[19] = <Path fill="#fff" fillRule="evenodd" d="M3.531 60.354a.545.545 0 0 0-.729-.729l-.608.28a.986.986 0 0 1-.801 0l-.609-.28a.545.545 0 0 0-.728.729l.28.608a.985.985 0 0 1 0 .801l-.28.609a.545.545 0 0 0 .728.728l.609-.28a.986.986 0 0 1 .8 0l.61.28a.545.545 0 0 0 .728-.728l-.28-.609a.92.92 0 0 1 0-.8l.28-.61Z" clipRule="evenodd" />;
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
const LinearGradient = (require(7744) /* metro dependency 7744 */).LinearGradient;
const Stop = (require(7744) /* metro dependency 7744 */).Stop;
const items2 = [<Stop offset={0.07} stopColor="#F9E172" />];
items2[1] = <Stop offset={0.27} stopColor="#F7D067" />;
items2[2] = <Stop offset={0.67} stopColor="#F1A549" />;
items2[3] = <Stop offset={0.83} stopColor="#EF913C" />;
const items3 = [<LinearGradient id="a" x1={12.115} x2={18.746} y1={29.237} y2={29.237} gradientUnits="userSpaceOnUse">{items2}</LinearGradient>];
const items4 = [<Stop offset={0.07} stopColor="#F9E172" />];
items4[1] = <Stop offset={0.27} stopColor="#F7D067" />;
items4[2] = <Stop offset={0.67} stopColor="#F1A549" />;
items4[3] = <Stop offset={0.83} stopColor="#EF913C" />;
items3[1] = <LinearGradient id="b" x1={30.613} x2={37.243} y1={47.733} y2={47.733} gradientUnits="userSpaceOnUse">{items4}</LinearGradient>;
const items5 = [<Stop offset={0.07} stopColor="#F9E172" />];
items5[1] = <Stop offset={0.27} stopColor="#F7D067" />;
items5[2] = <Stop offset={0.67} stopColor="#F1A549" />;
items5[3] = <Stop offset={0.83} stopColor="#EF913C" />;
items3[2] = <LinearGradient id="c" x1={14.934} x2={25.72} y1={42.833} y2={42.833} gradientUnits="userSpaceOnUse">{items5}</LinearGradient>;
items6[20] = <Defs>{items3}</Defs>;
return ((Component) => <Component {...defaultImportProps}>{items6}</Component>)(defaultImport);
}
global.__d(_fun88860, 11605, [31, 33, 7744, 2]) /* metro module 11605, dependencies: [31, 33, 7744, 2] */;
@@ -1,18 +1,22 @@
/* Metro module 11640; source: modules/app_launcher/native/onboarding/AppLauncherOnboardingActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun89233(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:6, offset: 0x02005cfe, size: 112 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/onboarding/AppLauncherOnboardingActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/AppLauncherOnboardingActionCreators.tsx');
exports.setLastSeenTimeMs = setLastSeenTimeMs;
exports.setTriggeredOnboardingContentMetadata = setTriggeredOnboardingContentMetadata;
function setLastSeenTimeMs() { // fn#89234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:224, offset: 0x02005d6e, size: 48 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS'});
}
function setTriggeredOnboardingContentMetadata(a0) { // fn#89235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:367, offset: 0x02005d9e, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA',
triggeredOnboardingContentMetadata: a0});
}
}
function setLastSeenTimeMs() { // fn#89234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:224, offset: 0x02005d6e, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS'});
}
function setTriggeredOnboardingContentMetadata(a0) { // fn#89235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11826:367, offset: 0x02005d9e, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA',
triggeredOnboardingContentMetadata: a0});
}
global.__d(_fun89233, 11640, [694, 2]) /* metro module 11640, dependencies: [694, 2] */;
@@ -1,126 +1,140 @@
/* Metro module 11764; source: modules/app_launcher/native/onboarding/AppLauncherOnboardingChatInputButtonAnimation.tsx; dependencies: [31, 27, 4502, 33, 4501, 4582, 697, 4504, 4507, 566, 7701, 11578, 4017, 6760, 11765, 11603, 2] */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import LottieAnimationView from '../../../../components_native/common/LottieAnimationView.tsx'; /* Metro dependency 6760 */
import UseAppLauncherOnboardingContent from './hooks/useAppLauncherOnboardingContent.tsx'; /* Metro dependency 11578 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ButtonConstantsNativeModule from '../../../../design/components/Button/native/ButtonConstants.native.tsx'; /* Metro dependency 4582 */
import * as ClientThemesOverridesModule from '../../../client_themes/native/ClientThemesOverrides.tsx'; /* Metro dependency 7701 */
import * as Module11603Module from '../../../../by-id/module-11603.js'; /* Metro dependency 11603 */
import * as Module11765Module from '../../../../by-id/module-11765.js'; /* Metro dependency 11765 */
function _fun90103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:6, offset: 0x0202b290, size: 311 bytes, params: 8, frame: 19
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.StyleSheet;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = value.Fragment;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun90104);
const env0_9 = (CreateStylesModule).createStyles(_fun90104);
object = {code: 'function EnteringAnimation_AppLauncherOnboardingChatInputButtonAnimationTsx1(){const{withTiming,timingStandard}=this.__closure;const initialValues={opacity:0};const animations={opacity:withTiming(1,timingStandard)};return{initialValues:initialValues,animations:animations};}'};
const env0_11 = _fun90105();
object = {code: 'function ExitingAnimation_AppLauncherOnboardingChatInputButtonAnimationTsx2(){const{withTiming,timingStandard}=this.__closure;const initialValues={opacity:1};const animations={opacity:withTiming(0,timingStandard)};return{initialValues:initialValues,animations:animations};}'};
const env0_13 = _fun90107();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/AppLauncherOnboardingChatInputButtonAnimation.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/AppLauncherOnboardingChatInputButtonAnimation.tsx');
exports.APP_LAUNCHER_ONBOARDING_CHAT_INPUT_BUTTON_ANIMATION_DURATION_MS = 7000;
exports.AppLauncherOnboardingChatInputButtonAnimation = AppLauncherOnboardingChatInputButtonAnimation;
function _fun90104() { // fn#90104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:212, offset: 0x0202b3c7, size: 289 bytes, params: 1, frame: 17
const SMALL_BUTTON_HEIGHT = (ButtonConstantsNativeModule).SMALL_BUTTON_HEIGHT;
const SMALL_BUTTON_PADDING = (ButtonConstantsNativeModule).SMALL_BUTTON_PADDING;
const value2 = SMALL_BUTTON_HEIGHT + SMALL_BUTTON_PADDING + 2;
const object = {};
const object2 = {'zIndex': 3, 'borderWidth': 1.5, 'borderColor': null, 'borderRadius': null, 'alignItems': 'center',
'justifyContent': 'center'};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object2.borderColor = BACKGROUND_BRAND;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.width = value2;
object2.height = value2;
object2.marginLeft = 4;
object.fakeButton = object2;
const object3 = {'zIndex': 1, 'position': 'absolute', 'borderRadius': null, 'top': 0, 'left': 0};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.width = value2;
object3.height = value2;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object3.backgroundColor = BACKGROUND_BASE_LOW;
object3.marginLeft = 4;
object.glowMask = object3;
object.glowLottie = {'width': '150%', 'height': '150%', 'position': 'absolute', 'top': '-25%', 'left': '-25%',
'zIndex': 0, 'opacity': 0.8};
object.trinketsLottie = {'zIndex': 4, 'position': 'absolute', 'pointerEvents': 'none', 'width': '175%',
'height': '175%', 'top': '-43%', 'left': '-38%'};
object.glowAnimation = {pointerEvents: 'none'};
return object;
}
function _fun90105() { // fn#90105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1194, offset: 0x0202b4e8, size: 102 bytes, params: 1, frame: 15
const EnteringAnimation2 = EnteringAnimation;
const object = {};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
EnteringAnimation2.__closure = object;
EnteringAnimation2.__workletHash = 2327377243473;
EnteringAnimation2.__initData = env0_10;
return EnteringAnimation2;
function EnteringAnimation() { // fn#90106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1227, offset: 0x0202b54e, size: 85 bytes, params: 1, frame: 17
const object2 = {};
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
object2.opacity = value.withTiming(1, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
return {initialValues: {opacity: 0}, animations: object2};
}
}
function _fun90107() { // fn#90107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1829, offset: 0x0202b5a3, size: 102 bytes, params: 1, frame: 15
const ExitingAnimation_901082 = ExitingAnimation_90108;
const object = {};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
ExitingAnimation_901082.__closure = object;
ExitingAnimation_901082.__workletHash = 1065249287738;
ExitingAnimation_901082.__initData = env0_12;
return ExitingAnimation_901082;
function ExitingAnimation_90108() { // fn#90108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1861, offset: 0x0202b609, size: 85 bytes, params: 1, frame: 17
const object2 = {};
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
object2.opacity = value.withTiming(0, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
return {initialValues: {opacity: 1}, animations: object2};
}
}
function AppLauncherOnboardingChatInputButtonAnimation({channelId}) { // fn#90109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:2412, offset: 0x0202b65e, size: 439 bytes, params: 2, frame: 29
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value2 = (ClientThemesOverridesModule).useGradientBottom();
(UseAppLauncherOnboardingContent)({channelId: channelId});
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const View2 = (ReanimatedRexport).View;
const view2Props = {entering: env0_11, exiting: env0_13, style: [StyleSheet.absoluteFill, styles.glowAnimation],
collapsable: false};
const defaultImport2Props = {collapsable: false, style: styles.glowLottie,
source: Module11765Module};
const value3 = !useReducedMotion;
defaultImport2Props.autoPlay = value3;
return (
<>
<View2 {...view2Props}>
<LottieAnimationView {...defaultImport2Props} />
<View collapsable={false} style={[styles.glowMask, value2]} />
<View collapsable={false} style={styles.fakeButton} />
</View2>
<LottieAnimationView
collapsable={false}
style={styles.trinketsLottie}
source={Module11603Module}
autoPlay={value3}
/>
</>
);
}
}
function _fun90104() { // fn#90104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:212, offset: 0x0202b3c7, size: 289 bytes, params: 1, frame: 17
const SMALL_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_HEIGHT;
const SMALL_BUTTON_PADDING = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_PADDING;
const value2 = SMALL_BUTTON_HEIGHT + SMALL_BUTTON_PADDING + 2;
const object4 = {};
const object5 = {'zIndex': 3, 'borderWidth': 1.5, 'borderColor': null, 'borderRadius': null, 'alignItems': 'center',
'justifyContent': 'center'};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object5.borderColor = BACKGROUND_BRAND;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object5.width = value2;
object5.height = value2;
object5.marginLeft = 4;
object4.fakeButton = object5;
const object6 = {'zIndex': 1, 'position': 'absolute', 'borderRadius': null, 'top': 0, 'left': 0};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object6.width = value2;
object6.height = value2;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object6.backgroundColor = BACKGROUND_BASE_LOW;
object6.marginLeft = 4;
object4.glowMask = object6;
object4.glowLottie = {'width': '150%', 'height': '150%', 'position': 'absolute', 'top': '-25%', 'left': '-25%',
'zIndex': 0, 'opacity': 0.8};
object4.trinketsLottie = {'zIndex': 4, 'position': 'absolute', 'pointerEvents': 'none', 'width': '175%',
'height': '175%', 'top': '-43%', 'left': '-38%'};
object4.glowAnimation = {pointerEvents: 'none'};
return object4;
}
function _fun90105() { // fn#90105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1194, offset: 0x0202b4e8, size: 102 bytes, params: 1, frame: 15
const closure = EnteringAnimation;
const object2 = {};
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
closure.__closure = object2;
closure.__workletHash = 2327377243473;
closure.__initData = env0_10;
return closure;
}
function _fun90107() { // fn#90107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1829, offset: 0x0202b5a3, size: 102 bytes, params: 1, frame: 15
const closure = ExitingAnimation_90108;
const object2 = {};
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
closure.__closure = object2;
closure.__workletHash = 1065249287738;
closure.__initData = env0_12;
return closure;
}
function AppLauncherOnboardingChatInputButtonAnimation({channelId}) { // fn#90109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:2412, offset: 0x0202b65e, size: 439 bytes, params: 2, frame: 29
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value2 = (require(7701) /* metro dependency 7701: ClientThemesOverrides */).useGradientBottom();
(importDefault(11578) /* metro dependency 11578: useAppLauncherOnboardingContent */)({channelId: channelId});
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const view2Props = {entering: env0_11, exiting: env0_13, style: [StyleSheet.absoluteFill, styles.glowAnimation],
collapsable: false};
const LottieAnimationView = importDefault(6760) /* metro dependency 6760: LottieAnimationView */;
const defaultImport2Props = {collapsable: false, style: styles.glowLottie,
source: require(11765) /* metro dependency 11765 */};
const value3 = !useReducedMotion;
defaultImport2Props.autoPlay = value3;
return (
<>
<View2 {...view2Props}>
<LottieAnimationView {...defaultImport2Props} />
<View collapsable={false} style={[styles.glowMask, value2]} />
<View collapsable={false} style={styles.fakeButton} />
</View2>
<LottieAnimationView
collapsable={false}
style={styles.trinketsLottie}
source={require(11603) /* metro dependency 11603 */}
autoPlay={value3}
/>
</>
);
}
function EnteringAnimation() { // fn#90106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1227, offset: 0x0202b54e, size: 85 bytes, params: 1, frame: 17
const object = {};
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
object.opacity = value.withTiming(1, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
return {initialValues: {opacity: 0}, animations: object};
}
function ExitingAnimation_90108() { // fn#90108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11950:1861, offset: 0x0202b609, size: 85 bytes, params: 1, frame: 17
const object = {};
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
object.opacity = value.withTiming(0, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
return {initialValues: {opacity: 1}, animations: object};
}
global.__d(_fun90103, 11764, [31, 27, 4502, 33, 4501, 4582, 697, 4504, 4507, 566, 7701, 11578, 4017, 6760, 11765,
11603,
2]) /* metro module 11764, dependencies: [31, 27, 4502, 33, 4501, 4582, 697, 4504, 4507, 566, 7701, 11578, 4017, 6760, 11765, 11603, 2] */;
@@ -1,39 +1,44 @@
/* Metro module 11590; source: modules/app_launcher/native/onboarding/banner/ActivitiesBanner.tsx; dependencies: [57, 31, 33, 11579, 11591, 11602, 1244, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseActivityApplicationsModule from '../hooks/useActivityApplications.tsx'; /* Metro dependency 11579 */
function _fun88747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11776:6, offset: 0x01ff0040, size: 154 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/ActivitiesBanner.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/ActivitiesBanner.tsx');
exports.default = ActivitiesBanner;
}
function ActivitiesBanner({context}) { // fn#88748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11776:240, offset: 0x01ff00da, size: 260 bytes, params: 2, frame: 20
var r0;
var BannerBase;
var intl;
const useActivityApplicationsModule = require(11579) /* metro dependency 11579: useActivityApplications */;
const useActivityApplications = useActivityApplicationsModule.useActivityApplications;
let object2 = {};
object2.guildId = context.channel.guild_id;
object2.fetchesShelf = false;
const value3 = env0_3(Reflect.apply(useActivityApplications, useActivityApplicationsModule, [object2]), 2);
const property = value3[0];
const property2 = value3[1];
if (property == null) {
r0 = null;
} else if (property2 == null) {
r0 = null;
} else {
BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
object2 = {image: ((Component) => <Component firstApplication={property} secondApplication={property2} />)(importDefault(11591) /* metro dependency 11591: ApplicationsImage */)};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.text = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.zHMWuV,
{activityName: property.name});
r0 = <BannerBase {...object2} />;
function ActivitiesBanner({context}) { // fn#88748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11776:240, offset: 0x01ff00da, size: 260 bytes, params: 2, frame: 20
var r0;
var BannerBase;
var intl;
const useActivityApplications = UseActivityApplicationsModule.useActivityApplications;
let object = {};
object.guildId = context.channel.guild_id;
object.fetchesShelf = false;
const value3 = Module00057(Reflect.apply(useActivityApplications, UseActivityApplicationsModule, [object]), 2);
const property = value3[0];
const property2 = value3[1];
if (property == null) {
r0 = null;
} else if (property2 == null) {
r0 = null;
} else {
BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
object = {image: ((Component) => <Component firstApplication={property} secondApplication={property2} />)(importDefault(11591) /* metro dependency 11591: ApplicationsImage */)};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.text = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.zHMWuV,
{activityName: property.name});
r0 = <BannerBase {...object} />;
}
return r0;
}
return r0;
}
global.__d(_fun88747, 11590, [57, 31, 33, 11579, 11591, 11602, 1244,
2]) /* metro module 11590, dependencies: [57, 31, 33, 11579, 11591, 11602, 1244, 2] */;
@@ -1,79 +1,103 @@
/* Metro module 11658; source: modules/app_launcher/native/onboarding/banner/AppLauncherGlobalSearchOnboardingBanner.tsx; dependencies: [31, 27, 1483, 1376, 33, 4501, 697, 8840, 8552, 1244, 2] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DismissibleContentConstantsModule from '../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as AppLauncherNativeConstantsModule from '../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as AppsIconModule from '../../../../../design/components/Icon/native/redesign/generated/AppsIcon.tsx'; /* Metro dependency 8840 */
function _fun89367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:6, offset: 0x0200bb1f, size: 352 bytes, params: 8, frame: 22
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(1483) /* metro dependency 1483: AppLauncherNativeConstants */).DEFAULT_CONTENT_PADDING;
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'height': 40, 'width': 40, 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'height': 40, 'width': 40, 'backgroundColor': null, 'borderRadius': null, 'alignItems': 'center',
'justifyContent': 'center'};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object4.backgroundColor = BACKGROUND_BRAND;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.appsIcon = object4;
object2.backgroundColor = BACKGROUND_BRAND;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.appsIcon = object2;
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object3.appsIconImage = {'height': 24, 'width': 24, tintColor: WHITE};
const env0_8 = Reflect.apply(createStyles, createStylesModule, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherGlobalSearchOnboardingBanner.tsx');
object.appsIconImage = {'height': 24, 'width': 24, tintColor: WHITE};
const env0_8 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherGlobalSearchOnboardingBanner.tsx');
exports.default = GlobalSearchCoachmark;
}
function GlobalSearchCoachmark({markAsDismissed, visible, windowDimensions}) { // fn#89368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:595, offset: 0x0200bc7f, size: 342 bytes, params: 2, frame: 23
var r0;
var Coachmark;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const env0_2 = useStyles();
const value2 = windowDimensions.width - 2 * DEFAULT_CONTENT_PADDING;
const useEffect = ReactModule.useEffect;
const items = [markAsDismissed, visible];
Reflect.apply(useEffect, ReactModule, [function() {
return _fun89370;
}, items]);
if (visible) {
Coachmark = (require(8552) /* metro dependency 8552: CoachmarkNative */).Coachmark;
r0 = (
<Coachmark
renderImgComponent={renderImgComponent_89371}
title={intl.string(t.bCPN5y)}
description={intl.string(t['0TBExc'])}
onDismiss={function() {
markAsDismissed({actionType: ContentDismissActionType.TAKE_ACTION});
}}
targetMeasurements={{
'x': 0,
'y': -40,
'width': null,
'height': 40,
width: value2,
}}
surfaceMeasurements={{
'x': -140,
'y': -40,
width: value2,
height: windowDimensions.height,
}}
position="bottom"
/>
);
} else {
r0 = null;
}
return r0;
function _fun89369() { // fn#89369, offset: 0x0200bdd5, size: 11 bytes, params: 1, frame: 1
return _fun89370;
function _fun89370() { // fn#89370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:724, offset: 0x0200bde0, size: 45 bytes, params: 1, frame: 11
var markAsDismissedBinding;
if (visible) {
markAsDismissedBinding = markAsDismissed;
value = environment.__proto__.__proto__;
markAsDismissedBinding({actionType: ContentDismissActionType.USER_DISMISS});
}
}
function GlobalSearchCoachmark({markAsDismissed, visible, windowDimensions}) { // fn#89368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:595, offset: 0x0200bc7f, size: 342 bytes, params: 2, frame: 23
var r0;
var Coachmark;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const env0_2 = useStyles();
const value2 = windowDimensions.width - 2 * DEFAULT_CONTENT_PADDING;
const binding = env0_3;
const useEffect = binding.useEffect;
const items = [markAsDismissed, visible];
Reflect.apply(useEffect, binding, [function() {
return _fun89370;
}, items]);
if (visible) {
Coachmark = (require(8552) /* metro dependency 8552: CoachmarkNative */).Coachmark;
r0 = <Coachmark renderImgComponent={renderImgComponent} title={intl.string(t.bCPN5y)} description={intl.string(t['0TBExc'])} onDismiss={function() {
markAsDismissed({actionType: ContentDismissActionType.TAKE_ACTION});
}} targetMeasurements={{'x': 0, 'y': -40, 'width': null, 'height': 40,
width: value2}} surfaceMeasurements={{'x': -140, 'y': -40, width: value2,
height: windowDimensions.height}} position="bottom" />;
} else {
r0 = null;
}
return r0;
}
}
function _fun89369() { // fn#89369, offset: 0x0200bdd5, size: 11 bytes, params: 1, frame: 1
return _fun89370;
}
function GlobalSearchCoachmarkRenderImgComponent() { // fn#89371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:814, owner: GlobalSearchCoachmark.renderImgComponent, offset: 0x0200be0d, size: 119 bytes, params: 1, frame: 18
const stylesBinding = styles;
const appsIcon = stylesBinding.appsIcon;
const AppsIcon = (AppsIconModule).AppsIcon;
const appsIconImage = stylesBinding.appsIconImage;
const INTERACTIVE_TEXT_ACTIVE = (Native).colors.INTERACTIVE_TEXT_ACTIVE;
return (
<View style={appsIcon}>
<AppsIcon style={appsIconImage} color={INTERACTIVE_TEXT_ACTIVE} />
</View>
);
}
function GlobalSearchCoachmarkRenderImgComponent() { // fn#89371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:814, owner: GlobalSearchCoachmark.renderImgComponent, offset: 0x0200be0d, size: 119 bytes, params: 1, frame: 18
const stylesBinding = styles;
const appsIcon = stylesBinding.appsIcon;
const AppsIcon = (require(8840) /* metro dependency 8840: AppsIcon */).AppsIcon;
const appsIconImage = stylesBinding.appsIconImage;
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
return (
<View style={appsIcon}>
<AppsIcon style={appsIconImage} color={INTERACTIVE_TEXT_ACTIVE} />
</View>
);
}
function _fun89370() { // fn#89370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11844:724, offset: 0x0200bde0, size: 45 bytes, params: 1, frame: 11
var markAsDismissedBinding;
if (visible) {
markAsDismissedBinding = markAsDismissed;
value = environment.__proto__.__proto__;
markAsDismissedBinding({actionType: ContentDismissActionType.USER_DISMISS});
}
}
global.__d(_fun89367, 11658, [31, 27, 1483, 1376, 33, 4501, 697, 8840, 8552, 1244,
2]) /* metro module 11658, dependencies: [31, 27, 1483, 1376, 33, 4501, 697, 8840, 8552, 1244, 2] */;
@@ -1,28 +1,34 @@
/* Metro module 11589; source: modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingBanner.tsx; dependencies: [31, 33, 1365, 11590, 11604, 11606, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Dismissible_contentModule from '../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
function _fun88745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11775:6, offset: 0x01fefec8, 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/onboarding/banner/AppLauncherOnboardingBanner.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingBanner.tsx');
exports.default = AppLauncherOnboardingBanner;
function AppLauncherOnboardingBanner({context, visibleContent}) { // fn#88746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11775:239, offset: 0x01feff52, size: 238 bytes, params: 2, frame: 16
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
if (APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER === visibleContent) {
return ((Component) => <Component context={context} />)(importDefault(11590) /* metro dependency 11590: ActivitiesBanner */);
}
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
if (APP_LAUNCHER_ONBOARDING_APPS_BANNER === visibleContent) {
return ((Component) => <Component />)(importDefault(11604) /* metro dependency 11604: AppsBanner */);
}
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
if (APP_LAUNCHER_ONBOARDING_BOTS_BANNER === visibleContent) {
return ((Component) => <Component context={context} />)(importDefault(11606) /* metro dependency 11606: BotsBanner */);
}
return null;
}
}
function AppLauncherOnboardingBanner({context, visibleContent}) { // fn#88746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11775:239, offset: 0x01feff52, size: 238 bytes, params: 2, frame: 16
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
if (APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER === visibleContent) {
return ((Component) => <Component context={context} />)(importDefault(11590) /* metro dependency 11590: ActivitiesBanner */);
}
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
if (APP_LAUNCHER_ONBOARDING_APPS_BANNER === visibleContent) {
return ((Component) => <Component />)(importDefault(11604) /* metro dependency 11604: AppsBanner */);
}
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
if (APP_LAUNCHER_ONBOARDING_BOTS_BANNER === visibleContent) {
return ((Component) => <Component context={context} />)(importDefault(11606) /* metro dependency 11606: BotsBanner */);
}
return null;
}
global.__d(_fun88745, 11589, [31, 33, 1365, 11590, 11604, 11606,
2]) /* metro module 11589, dependencies: [31, 33, 1365, 11590, 11604, 11606, 2] */;
@@ -1,38 +1,48 @@
/* Metro module 11588; source: modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingLayer.tsx; dependencies: [31, 27, 7729, 33, 4501, 697, 11589, 2] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as UseChatBottomManagerUIStoreModule from '../../../../chat_input/native/useChatBottomManagerUIStore.tsx'; /* Metro dependency 7729 */
function _fun88743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11774:6, offset: 0x01fefd38, size: 260 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(7729) /* metro dependency 7729: useChatBottomManagerUIStore */).useBestActiveChatInputContainerHeight;
const env0_4 = (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_5 = Reflect.apply(createStyles, createStylesModule, [{container: {'opacity': 1, 'width': '100%',
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_SCRIM = (Native).colors.BACKGROUND_SCRIM;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{container: {'opacity': 1, 'width': '100%',
'position': 'absolute', 'left': 0, 'top': 0, backgroundColor: BACKGROUND_SCRIM}}]);
value = value.memo(_fun88744);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingLayer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppLauncherOnboardingLayer.tsx');
exports.default = value;
}
function _fun88744({context, visibleContent, bottomOffset}) { // fn#88744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11774:335, offset: 0x01fefe3c, size: 140 bytes, params: 2, frame: 21
var r0;
var object2;
var items2;
var value;
const styles = useStyles();
if (visibleContent != null) {
object2 = {};
items2 = [styles.container];
items2[1] = {bottom: useBestActiveChatInputContainerHeight() + bottomOffset};
object2.style = items2;
value = importDefault(11589) /* metro dependency 11589: AppLauncherOnboardingBanner */;
value = <View {...object2}>{((Component) => <Component context={context} visibleContent={visibleContent} />)(value)}</View>;
r0 = value;
} else {
r0 = null;
function _fun88744({context, visibleContent, bottomOffset}) { // fn#88744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11774:335, offset: 0x01fefe3c, size: 140 bytes, params: 2, frame: 21
var r0;
var object;
var items2;
var value;
const styles = useStyles();
if (visibleContent != null) {
object = {};
items2 = [styles.container];
items2[1] = {bottom: useBestActiveChatInputContainerHeight() + bottomOffset};
object.style = items2;
value = importDefault(11589) /* metro dependency 11589: AppLauncherOnboardingBanner */;
value = (
<View {...object}>
{((Component) => <Component context={context} visibleContent={visibleContent} />)(value)}
</View>
);
r0 = value;
} else {
r0 = null;
}
return r0;
}
return r0;
}
global.__d(_fun88743, 11588, [31, 27, 7729, 33, 4501, 697, 11589,
2]) /* metro module 11588, dependencies: [31, 27, 7729, 33, 4501, 697, 11589, 2] */;
@@ -1,50 +1,55 @@
/* Metro module 11591; source: modules/app_launcher/native/onboarding/banner/ApplicationsImage.tsx; dependencies: [31, 27, 33, 4501, 697, 11592, 5475, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun88749(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11777:6, offset: 0x01ff01de, size: 422 bytes, params: 8, frame: 23
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;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.Fragment;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
object = {};
const object2 = {};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object4.backgroundColor = BACKGROUND_BRAND;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm + 3;
object4.position = 'absolute';
object4.padding = 3;
object3.appIconContainer = object4;
object3.appIconLeftContainer = {transform: [{rotate: '-10deg'}]};
object2.backgroundColor = BACKGROUND_BRAND;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm + 3;
object2.position = 'absolute';
object2.padding = 3;
object.appIconContainer = object2;
object.appIconLeftContainer = {transform: [{rotate: '-10deg'}]};
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object3.appIconRightContainer = {left: PX_32, transform: [{rotate: '15deg'}]};
const object5 = {'borderRadius': null, 'width': 36, 'height': 36};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.appIcon = object5;
const env0_7 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/ApplicationsImage.tsx');
object.appIconRightContainer = {left: PX_32, transform: [{rotate: '15deg'}]};
const object6 = {'borderRadius': null, 'width': 36, 'height': 36};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.appIcon = object6;
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/ApplicationsImage.tsx');
exports.default = ApplicationsImage;
exports.APP_ICON_SIZE = 36;
function ApplicationsImage({firstApplication, secondApplication}) { // fn#88750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11777:615, offset: 0x01ff0384, size: 338 bytes, params: 2, frame: 21
const styles = useStyles();
const r7 = firstApplication != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(firstApplication) : null;
const r6 = secondApplication != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(secondApplication) : null;
return (
<>
<View style={[styles.appIconContainer, styles.appIconLeftContainer]}>
{r6 != null && ((Component) => <Component style={styles.appIcon} source={r6} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
<View style={[styles.appIconContainer, styles.appIconRightContainer]}>
{r7 != null && ((Component) => <Component style={styles.appIcon} source={r7} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
</>
);
}
}
function ApplicationsImage({firstApplication, secondApplication}) { // fn#88750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11777:615, offset: 0x01ff0384, size: 338 bytes, params: 2, frame: 21
const styles = useStyles();
const r7 = firstApplication != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(firstApplication) : null;
const r6 = secondApplication != null ? (require(11592) /* metro dependency 11592: AppLauncherNativeUtils */).getAppLauncherIconSource(secondApplication) : null;
return (
<>
<View style={[styles.appIconContainer, styles.appIconLeftContainer]}>
{r6 != null && ((Component) => <Component style={styles.appIcon} source={r6} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
<View style={[styles.appIconContainer, styles.appIconRightContainer]}>
{r7 != null && ((Component) => <Component style={styles.appIcon} source={r7} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
</>
);
}
global.__d(_fun88749, 11591, [31, 27, 33, 4501, 697, 11592, 5475,
2]) /* metro module 11591, dependencies: [31, 27, 33, 4501, 697, 11592, 5475, 2] */;
@@ -1,22 +1,34 @@
/* Metro module 11604; source: modules/app_launcher/native/onboarding/banner/AppsBanner.tsx; dependencies: [31, 27, 33, 4501, 11605, 11602, 1244, 2] */
import BannerBase from './BannerBase.tsx'; /* Metro dependency 11602 */
import OnboardingAppsRocket from '../../images/OnboardingAppsRocket.tsx'; /* Metro dependency 11605 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun88858(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11790:6, offset: 0x01ff6b81, size: 225 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({rocketIconContainer: {'position': 'absolute',
ReactModule;
const env0_5 = (CreateStylesModule).createStyles({rocketIconContainer: {'position': 'absolute',
'top': -20}, rocketIcon: {'width': 90, 'height': 90}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppsBanner.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/AppsBanner.tsx');
exports.default = AppsBaner;
function AppsBaner() { // fn#88859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11790:345, offset: 0x01ff6c62, size: 165 bytes, params: 1, frame: 19
const styles = useStyles();
const view = (
<View style={styles.rocketIconContainer}>
{((Component) => <Component style={styles.rocketIcon} />)(OnboardingAppsRocket)}
</View>
);
const intl = (IndexNativeModule).intl;
return <BannerBase image={view} text={intl.string((IndexNativeModule).t.sjRwMJ)} />;
}
}
function AppsBaner() { // fn#88859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11790:345, offset: 0x01ff6c62, size: 165 bytes, params: 1, frame: 19
const styles = useStyles();
const view = <View style={styles.rocketIconContainer}>{((Component) => <Component style={styles.rocketIcon} />)(importDefault(11605) /* metro dependency 11605: OnboardingAppsRocket */)}</View>;
const BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return <BannerBase image={view} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sjRwMJ)} />;
}
global.__d(_fun88858, 11604, [31, 27, 33, 4501, 11605, 11602, 1244,
2]) /* metro module 11604, dependencies: [31, 27, 33, 4501, 11605, 11602, 1244, 2] */;
@@ -1,135 +1,161 @@
/* Metro module 11602; source: modules/app_launcher/native/onboarding/banner/BannerBase.tsx; dependencies: [57, 31, 27, 4502, 33, 697, 4501, 11591, 4017, 1478, 4000, 566, 4577, 4589, 6760, 11603, 4573, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import ReanimatedRexport from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ColorUtilsModule from '../../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ApplicationsImageModule from './ApplicationsImage.tsx'; /* Metro dependency 11591 */
function _fun88852(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:6, offset: 0x01ff473d, size: 624 bytes, params: 8, frame: 25
var object3;
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 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
const env0_9 = {'mass': 1, 'stiffness': 100, 'damping': 15};
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object5 = {};
object = {};
const object2 = {};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object5.backgroundColor = BACKGROUND_BRAND;
object5.position = 'absolute';
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.backgroundColor = BACKGROUND_BRAND;
object2.position = 'absolute';
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
object5.paddingVertical = PX_12;
object5.flexDirection = 'row';
const APP_ICON_SIZE = (require(11591) /* metro dependency 11591: ApplicationsImage */).APP_ICON_SIZE;
object5.minHeight = APP_ICON_SIZE + 2 * PX_12 + 4;
object2.paddingHorizontal = PX_16;
object2.paddingVertical = PX_12;
object2.flexDirection = 'row';
const APP_ICON_SIZE = (ApplicationsImageModule).APP_ICON_SIZE;
object2.minHeight = APP_ICON_SIZE + 2 * PX_12 + 4;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.bottom = PX_16;
object2.bottom = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.left = PX_16;
object3.banner = object5;
object3.bannerGradientColor = {backgroundColor: '#7eaaff'};
const object6 = {'position': 'absolute', 'top': 0, 'left': 0};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.bannerBackgroundGradient = object6;
object3.imageContainer = {width: 72};
object3.trinketsLottie = {'width': 175, 'height': 175, 'position': 'absolute', 'top': -38, 'left': -27, 'zIndex': 1,
object2.left = PX_16;
object.banner = object2;
object.bannerGradientColor = {backgroundColor: '#7eaaff'};
const object4 = {'position': 'absolute', 'top': 0, 'left': 0};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.bannerBackgroundGradient = object4;
object.imageContainer = {width: 72};
object.trinketsLottie = {'width': 175, 'height': 175, 'position': 'absolute', 'top': -38, 'left': -27, 'zIndex': 1,
'pointerEvents': 'none'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.bannerTextContainer = {'alignItems': 'center', 'justifyContent': 'center', 'marginLeft': null,
object.bannerTextContainer = {'alignItems': 'center', 'justifyContent': 'center', 'marginLeft': null,
'flexShrink': 1, marginLeft: PX_12};
object3.bannerText = {width: '100%'};
const env0_10 = Reflect.apply(createStyles, value, [object3]);
object3 = {code: 'function BannerBaseTsx1(){const{bannerMeasured,withDelay,withSpring,SPRING_CONFIG}=this.__closure;return{opacity:bannerMeasured.get()?withDelay(150,withSpring(1,SPRING_CONFIG)):0,transform:[{translateY:bannerMeasured.get()?withDelay(150,withSpring(0,SPRING_CONFIG)):30}]};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/BannerBase.tsx');
object.bannerText = {width: '100%'};
const env0_10 = Reflect.apply(createStyles, value, [object]);
object = {code: 'function BannerBaseTsx1(){const{bannerMeasured,withDelay,withSpring,SPRING_CONFIG}=this.__closure;return{opacity:bannerMeasured.get()?withDelay(150,withSpring(1,SPRING_CONFIG)):0,transform:[{translateY:bannerMeasured.get()?withDelay(150,withSpring(0,SPRING_CONFIG)):30}]};}'};
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/BannerBase.tsx');
exports.default = BannerBase;
}
function BannerBase({image, text}) { // fn#88853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:1320, offset: 0x01ff49ad, size: 778 bytes, params: 2, frame: 30
const styles = useStyles();
const [property, env0_0] = Module00057(ReactModule.useState(0), 2);
const value6 = (ReanimatedRexportModule).useSharedValue(false);
const width = (UseWindowDimensionsNative)().width;
const PX_16 = (Native).space.PX_16;
const value7 = width - 2 * PX_16;
const backgroundColor = styles.bannerGradientColor.backgroundColor;
let items2 = [ColorUtilsModule.hexOpacityToRgba(backgroundColor, 0.2)];
items2[1] = ColorUtilsModule.hexOpacityToRgba(backgroundColor, 0);
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const BannerBase_2 = BannerBase_;
const object = {bannerMeasured: value6};
object.withDelay = ReanimatedRexportModule.withDelay;
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.SPRING_CONFIG = env0_9;
BannerBase_2.__closure = object;
BannerBase_2.__workletHash = 5314641176204;
BannerBase_2.__initData = env0_11;
const value9 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [BannerBase_2]);
const View2 = (ReanimatedRexport).View;
const view2Props = {style: [styles.banner, {opacity: property > 0 ? 1 : 0, width: value7}, value9],
onLayout: onLayout_88856};
items2 = [
((Component) => <Component start={{'x': 0, 'y': 0}} end={{'x': 0,
'y': 1}} colors={items2} style={[styles.bannerBackgroundGradient, {height: property,
width: value7}]} />)(importDefault(4589) /* metro dependency 4589 */),
];
items2[1] = (
<View style={styles.imageContainer}>
{((Component) => <Component style={styles.trinketsLottie} source={require(11603) /* metro dependency 11603 */} autoPlay={!useReducedMotion} />)(importDefault(6760) /* metro dependency 6760: LottieAnimationView */)}
{image}
</View>
);
const Text = (TextModule).Text;
items2[2] = (
<View style={styles.bannerTextContainer}>
<Text
variant="text-md/semibold"
color="white"
style={styles.bannerText}
>
{text}
</Text>
</View>
);
return (
<View2 {...view2Props}>
{items2}
</View2>
);
function BannerBase_() { // fn#88855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:1676, owner: BannerBase._, offset: 0x01ff4cb7, size: 206 bytes, params: 1, frame: 20
var r2;
var r1;
var value4;
var moduleValue;
var withDelay;
var moduleValue3;
const object = {};
const value2 = env0_1.get();
const value3 = 0;
if (value2) {
value4 = environment.__proto__;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
r2 = moduleValue.withDelay(150, (require(4577) /* metro dependency 4577: spring */).withSpring(1, env1_9));
} else {
r2 = value3;
}
object.opacity = r2;
let value = env0_1.get();
if (value) {
value = environment.__proto__;
moduleValue3 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = moduleValue3.withDelay;
value = (require(4577) /* metro dependency 4577: spring */).withSpring(value3, env1_9);
value = Reflect.apply(withDelay, moduleValue3, [150, value]);
r1 = value;
} else {
r1 = 30;
}
object.transform = [{translateY: r1}];
return object;
}
function BannerBase({image, text}) { // fn#88853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:1320, offset: 0x01ff49ad, size: 778 bytes, params: 2, frame: 30
const styles = useStyles();
const [property, env0_0] = env0_3(env0_4.useState(0), 2);
const value6 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const value7 = width - 2 * PX_16;
const backgroundColor = styles.bannerGradientColor.backgroundColor;
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
let items2 = [colorUtilsModule.hexOpacityToRgba(backgroundColor, 0.2)];
const moduleValue3 = colorUtilsModule;
items2[1] = moduleValue3.hexOpacityToRgba(backgroundColor, 0);
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = BannerBase_;
const object2 = {bannerMeasured: value6};
object2.withDelay = reanimatedRexportModule.withDelay;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.SPRING_CONFIG = env0_9;
closure.__closure = object2;
closure.__workletHash = 5314641176204;
closure.__initData = env0_11;
const value9 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const view2Props = {style: [styles.banner, {opacity: property > 0 ? 1 : 0, width: value7}, value9],
onLayout: onLayout_88856};
items2 = [((Component) => <Component start={{'x': 0, 'y': 0}} end={{'x': 0,
'y': 1}} colors={items2} style={[styles.bannerBackgroundGradient, {height: property,
width: value7}]} />)(importDefault(4589) /* metro dependency 4589 */)];
items2[1] = <View style={styles.imageContainer}>{((Component) => <Component style={styles.trinketsLottie} source={require(11603) /* metro dependency 11603 */} autoPlay={!useReducedMotion} />)(importDefault(6760) /* metro dependency 6760: LottieAnimationView */)}{image}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[2] = <View style={styles.bannerTextContainer}><Text variant="text-md/semibold" color="white" style={styles.bannerText}>{text}</Text></View>;
return (
<View2 {...view2Props}>
{items2}
</View2>
);
}
function BannerBaseOnLayout({nativeEvent}) { // fn#88856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:2077, owner: BannerBase.onLayout, offset: 0x01ff4d85, size: 69 bytes, params: 2, frame: 12
const height = nativeEvent.layout?.height;
if (height > 0) {
env0_0(height);
env0_1.set(true);
}
}
function BannerBase_() { // fn#88855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:1676, owner: BannerBase._, offset: 0x01ff4cb7, size: 206 bytes, params: 1, frame: 20
var r2;
var r1;
var value4;
var moduleValue;
var withDelay;
var moduleValue3;
const object2 = {};
const value2 = env0_1.get();
const value3 = 0;
if (value2) {
value4 = environment.__proto__;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
r2 = moduleValue.withDelay(150, (require(4577) /* metro dependency 4577: spring */).withSpring(1, env1_9));
} else {
r2 = value3;
}
object2.opacity = r2;
let value = env0_1.get();
if (value) {
value = environment.__proto__;
moduleValue3 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = moduleValue3.withDelay;
value = (require(4577) /* metro dependency 4577: spring */).withSpring(value3, env1_9);
value = Reflect.apply(withDelay, moduleValue3, [150, value]);
r1 = value;
} else {
r1 = 30;
}
object2.transform = [{translateY: r1}];
return object2;
}
function BannerBaseOnLayout({nativeEvent}) { // fn#88856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11788:2077, owner: BannerBase.onLayout, offset: 0x01ff4d85, size: 69 bytes, params: 2, frame: 12
const height = nativeEvent.layout?.height;
if (height > 0) {
env0_0(height);
env0_1.set(true);
}
}
global.__d(_fun88852, 11602, [57, 31, 27, 4502, 33, 697, 4501, 11591, 4017, 1478, 4000, 566, 4577, 4589, 6760,
11603, 4573,
2]) /* metro module 11602, dependencies: [57, 31, 27, 4502, 33, 697, 4501, 11591, 4017, 1478, 4000, 566, 4577, 4589, 6760, 11603, 4573, 2] */;
@@ -1,44 +1,49 @@
/* Metro module 11606; source: modules/app_launcher/native/onboarding/banner/BotsBanner.tsx; dependencies: [31, 33, 11607, 11591, 11602, 1244, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseBannerBotsModule from '../hooks/useBannerBots.tsx'; /* Metro dependency 11607 */
function _fun88862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11792:6, offset: 0x01ff7379, 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/onboarding/banner/BotsBanner.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/banner/BotsBanner.tsx');
exports.default = BotsBanner;
}
function BotsBanner({context}) { // fn#88863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11792:222, offset: 0x01ff7403, size: 246 bytes, params: 2, frame: 21
var r0;
var BannerBase;
var intl;
var formatToPlainString;
var property;
var object3;
var name;
const useBannerBotsModule = require(11607) /* metro dependency 11607: useBannerBots */;
const useBannerBots = useBannerBotsModule.useBannerBots;
let object4 = {context: context};
const {firstBotApplication, secondBotApplication} = Reflect.apply(useBannerBots, useBannerBotsModule, [object4]);
if (firstBotApplication == null) {
r0 = null;
} else if (secondBotApplication == null) {
r0 = null;
} else {
BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
object4 = {image: ((Component) => <Component firstApplication={firstBotApplication} secondApplication={secondBotApplication} />)(importDefault(11591) /* metro dependency 11591: ApplicationsImage */)};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['9SN0xw'];
object3 = {};
name = firstBotApplication.name;
object3.firstApplicationName = name;
name = secondBotApplication.name;
object3.secondApplicationName = name;
object4.text = Reflect.apply(formatToPlainString, intl, [property, object3]);
r0 = <BannerBase {...object4} />;
function BotsBanner({context}) { // fn#88863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11792:222, offset: 0x01ff7403, size: 246 bytes, params: 2, frame: 21
var r0;
var BannerBase;
var intl;
var formatToPlainString;
var property;
var object;
var name;
const useBannerBots = UseBannerBotsModule.useBannerBots;
let object2 = {context: context};
const {firstBotApplication, secondBotApplication} = Reflect.apply(useBannerBots, UseBannerBotsModule, [object2]);
if (firstBotApplication == null) {
r0 = null;
} else if (secondBotApplication == null) {
r0 = null;
} else {
BannerBase = importDefault(11602) /* metro dependency 11602: BannerBase */;
object2 = {image: ((Component) => <Component firstApplication={firstBotApplication} secondApplication={secondBotApplication} />)(importDefault(11591) /* metro dependency 11591: ApplicationsImage */)};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['9SN0xw'];
object = {};
name = firstBotApplication.name;
object.firstApplicationName = name;
name = secondBotApplication.name;
object.secondApplicationName = name;
object2.text = Reflect.apply(formatToPlainString, intl, [property, object]);
r0 = <BannerBase {...object2} />;
}
return r0;
}
return r0;
}
global.__d(_fun88862, 11606, [31, 33, 11607, 11591, 11602, 1244,
2]) /* metro module 11606, dependencies: [31, 33, 11607, 11591, 11602, 1244, 2] */;
@@ -1,26 +1,29 @@
/* Metro module 11579; source: modules/app_launcher/native/onboarding/hooks/useActivityApplications.tsx; dependencies: [31, 11580, 7860, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun88659(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:6, offset: 0x01fedc77, size: 121 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useActivityApplications.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useActivityApplications.tsx');
exports.useActivityApplications = useActivityApplications;
}
function useActivityApplications({guildId, fetchesShelf}) { // fn#88660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:238, offset: 0x01fedcf0, size: 113 bytes, params: 2, frame: 17
const value3 = (importDefault(11580) /* metro dependency 11580: useActivityShelfItems */)({guildId: guildId}).map(function(a0) {
return a0.application;
});
ReactModule.useEffect(_fun88662, [fetchesShelf, guildId]);
return value3;
function _fun88662() { // fn#88662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:370, offset: 0x01fedd6b, size: 60 bytes, params: 1, frame: 12
var value2;
if (fetchesShelf) {
value2 = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).fetchShelf({guildId: guildId});
}
}
function useActivityApplications({guildId, fetchesShelf}) { // fn#88660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:238, offset: 0x01fedcf0, size: 113 bytes, params: 2, frame: 17
const value3 = (importDefault(11580) /* metro dependency 11580: useActivityShelfItems */)({guildId: guildId}).map(function(a0) {
return a0.application;
});
env0_3.useEffect(_fun88662, [fetchesShelf, guildId]);
return value3;
}
function _fun88662() { // fn#88662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11765:370, offset: 0x01fedd6b, size: 60 bytes, params: 1, frame: 12
var value2;
if (fetchesShelf) {
value2 = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).fetchShelf({guildId: guildId});
}
}
global.__d(_fun88659, 11579, [31, 11580, 7860, 2]) /* metro module 11579, dependencies: [31, 11580, 7860, 2] */;
@@ -1,4 +1,16 @@
/* Metro module 11578; source: modules/app_launcher/native/onboarding/hooks/useAppLauncherOnboardingContent.tsx; dependencies: [57, 7862, 1379, 1376, 3968, 1365, 566, 11579, 11584, 7013, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelStore from '../../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import ApplicationFrecencyStore from '../../../../applications/ApplicationFrecencyStore.tsx'; /* Metro dependency 7862 */
import UseCanShowAppLauncherOnboarding from './useCanShowAppLauncherOnboarding.tsx'; /* Metro dependency 11584 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as Dismissible_contentModule from '../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as DismissibleContentConstantsModule from '../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as DismissibleContentUnsafeUtilsModule from '../../../../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
import * as UseSelectedDismissibleContentModule from '../../../../dismissible_content/hooks/useSelectedDismissibleContent.tsx'; /* Metro dependency 7013 */
import * as UseActivityApplicationsModule from './useActivityApplications.tsx'; /* Metro dependency 11579 */
function _fun88651(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:6, offset: 0x01fed7bc, size: 194 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_88654 = function(a0, a1) {
@@ -46,162 +58,161 @@ function _fun88651(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const applicationFrecencyStore = importDefault(7862) /* metro dependency 7862: ApplicationFrecencyStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).DismissibleContentGroupName;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useAppLauncherOnboardingContent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useAppLauncherOnboardingContent.tsx');
exports.default = useAppLauncherOnboardingContent;
}
function _createForOfIteratorHelperLoose_88652(a0, a1) { // fn#88652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:169, offset: 0x01fed87e, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_88652(a0, a1) { // fn#88652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:169, offset: 0x01fed87e, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun88653;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_88654(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun88653;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_88654(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_88654(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_88654(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun88653;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function useAppLauncherOnboardingContent({channelId}) { // fn#88655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:1206, offset: 0x01fed9f2, size: 324 bytes, params: 2, frame: 20
var push;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const items = [];
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
const hasUsedActivities = useHasUsedActivities({channel: Reflect.apply(useStateFromStores, fluxModule,
[[ChannelStore], function() {
return ChannelStore.getChannel(channelId);
}])}).hasUsedActivities;
const {canShowBotsBanner,
canShowAppsOrActivitiesBanner} = (importDefault(11584) /* metro dependency 11584: useCanShowAppLauncherOnboarding */)({channelId: channelId});
if (canShowBotsBanner) {
items.push(DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER);
}
if (canShowAppsOrActivitiesBanner) {
push = items.push;
if (hasUsedActivities) {
Reflect.apply(push, items, [DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
} else {
Reflect.apply(push, items, [DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
r5 = value;
}
}
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
const useSelectedDismissibleContent = useSelectedDismissibleContentModule.useSelectedDismissibleContent;
const APP_LAUNCHER_ONBOARDING = DismissibleContentGroupName.APP_LAUNCHER_ONBOARDING;
const value = env0_3(Reflect.apply(useSelectedDismissibleContent, useSelectedDismissibleContentModule, [items,
APP_LAUNCHER_ONBOARDING]), 2);
return {visibleContent: value[0], markAsDismissed: value[1]};
}
function useHasUsedActivities({channel}) { // fn#88656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:1273, owner: useAppLauncherOnboardingContent.useHasUsedActivities, offset: 0x01fedb36, size: 302 bytes, params: 2, frame: 19
var environment;
var r2;
var r1;
var value7;
var getEntry;
var id;
var value8;
var value9;
var value10;
let value = environment.__proto__;
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
let UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
const value3 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
const moduleValue2 = dismissibleContentUnsafeUtilsModule;
UNSAFE_useIsDismissibleContentDismissed = moduleValue2.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
const value4 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, moduleValue2,
[APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
const applicationFrecencyWithoutLoadingLatest = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationFrecencyStore],
function() {
return ApplicationFrecencyStore.getApplicationFrecencyWithoutLoadingLatest();
});
const guild_id = channel?.guild_id;
const _createForOfIteratorHelperLoose_88652Binding = _createForOfIteratorHelperLoose_88652;
const useActivityApplications = (require(11579) /* metro dependency 11579: useActivityApplications */).useActivityApplications;
value = _createForOfIteratorHelperLoose_88652Binding(Reflect.apply(useActivityApplications, value,
[{guildId: guild_id, fetchesShelf: !(value3 && value4)}]));
const value5 = value();
let done = value5.done;
if (done) {
r1 = false;
} else {
r2 = value5;
while (true) {
value7 = r2.value;
getEntry = applicationFrecencyWithoutLoadingLatest.getEntry;
id = value7.id;
value8 = Reflect.apply(getEntry, applicationFrecencyWithoutLoadingLatest, [id]) != null;
value9 = true;
if (value8) {
r1 = value9;
break;
if (r5) {
if (r5) {
}
value10 = value();
done = value10.done;
return _fun88653;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun88653() { // fn#88653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:740, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function useAppLauncherOnboardingContent({channelId}) { // fn#88655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:1206, offset: 0x01fed9f2, size: 324 bytes, params: 2, frame: 20
var push;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const items2 = [];
const useStateFromStores = FluxModule.useStateFromStores;
const hasUsedActivities = useHasUsedActivities({channel: Reflect.apply(useStateFromStores, FluxModule,
[[ChannelStore], function() {
return ChannelStore.getChannel(channelId);
}])}).hasUsedActivities;
const {canShowBotsBanner,
canShowAppsOrActivitiesBanner} = (UseCanShowAppLauncherOnboarding)({channelId: channelId});
if (canShowBotsBanner) {
items2.push(DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER);
}
if (canShowAppsOrActivitiesBanner) {
push = items2.push;
if (hasUsedActivities) {
Reflect.apply(push, items2, [DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
} else {
Reflect.apply(push, items2, [DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
}
}
const useSelectedDismissibleContent = UseSelectedDismissibleContentModule.useSelectedDismissibleContent;
const APP_LAUNCHER_ONBOARDING = DismissibleContentGroupName.APP_LAUNCHER_ONBOARDING;
const value = Module00057(Reflect.apply(useSelectedDismissibleContent, UseSelectedDismissibleContentModule, [items2,
APP_LAUNCHER_ONBOARDING]), 2);
return {visibleContent: value[0], markAsDismissed: value[1]};
function useHasUsedActivities({channel}) { // fn#88656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11764:1273, owner: useAppLauncherOnboardingContent.useHasUsedActivities, offset: 0x01fedb36, size: 302 bytes, params: 2, frame: 19
var environment;
var r2;
var r1;
var value7;
var getEntry;
var id;
var value8;
var value9;
var value10;
let value = environment.__proto__;
let UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
const value3 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
const value4 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
const applicationFrecencyWithoutLoadingLatest = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationFrecencyStore],
function() {
return ApplicationFrecencyStore.getApplicationFrecencyWithoutLoadingLatest();
});
const guild_id = channel?.guild_id;
const _createForOfIteratorHelperLoose_88652Binding = _createForOfIteratorHelperLoose_88652;
const useActivityApplications = (UseActivityApplicationsModule).useActivityApplications;
value = _createForOfIteratorHelperLoose_88652Binding(Reflect.apply(useActivityApplications, value,
[{guildId: guild_id, fetchesShelf: !(value3 && value4)}]));
const value5 = value();
let done = value5.done;
if (done) {
r1 = false;
break;
} else {
r2 = value5;
while (true) {
value7 = r2.value;
getEntry = applicationFrecencyWithoutLoadingLatest.getEntry;
id = value7.id;
value8 = Reflect.apply(getEntry, applicationFrecencyWithoutLoadingLatest, [id]) != null;
value9 = true;
if (value8) {
r1 = value9;
break;
}
value10 = value();
done = value10.done;
if (done) {
r1 = false;
break;
}
r2 = value10;
continue;
}
}
r2 = value10;
continue;
return {hasUsedActivities: r1};
}
}
return {hasUsedActivities: r1};
}
global.__d(_fun88651, 11578, [57, 7862, 1379, 1376, 3968, 1365, 566, 11579, 11584, 7013,
2]) /* metro module 11578, dependencies: [57, 7862, 1379, 1376, 3968, 1365, 566, 11579, 11584, 7013, 2] */;
@@ -1,4 +1,13 @@
/* Metro module 11607; source: modules/app_launcher/native/onboarding/hooks/useBannerBots.tsx; dependencies: [31, 1867, 11586, 566, 7870, 11608, 11579, 2] */
import GuildStore from '../../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import AppLauncherOnboardingStore from '../stores/AppLauncherOnboardingStore.tsx'; /* Metro dependency 11586 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ApplicationCommandFrecencyHooksModule from '../../../../application_commands/ApplicationCommandFrecencyHooks.tsx'; /* Metro dependency 7870 */
import * as UseActivityApplicationsModule from './useActivityApplications.tsx'; /* Metro dependency 11579 */
import * as AppLauncherSearchUtilsModule from '../../../utils/AppLauncherSearchUtils.tsx'; /* Metro dependency 11608 */
function _fun88864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:6, offset: 0x01ff74f9, size: 171 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_88867 = function(a0, a1) {
@@ -46,312 +55,312 @@ function _fun88864(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const appLauncherOnboardingStore = importDefault(11586) /* metro dependency 11586: AppLauncherOnboardingStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useBannerBots.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useBannerBots.tsx');
exports.useBannerBots = useBannerBots;
}
function _createForOfIteratorHelperLoose_88865(a0, a1) { // fn#88865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:131, offset: 0x01ff75a4, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_88865(a0, a1) { // fn#88865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:131, offset: 0x01ff75a4, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun88866;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_88867(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun88866;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_88867(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_88867(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_88867(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun88866;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun88866() { // fn#88866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:702, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
return _fun88866;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function useBannerBots({context}) { // fn#88868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1155, offset: 0x01ff7718, size: 583 bytes, params: 2, frame: 29
var guild_id;
var r6;
var r8;
var r10;
var id;
var r15;
var r9;
var r1;
var r5;
var r2;
var get;
var applicationId;
var value8;
var value11;
var value12;
var value13;
var id2;
var value14;
var find;
var length;
var property;
let value = undefined;
var env0_0;
const value2 = useAppsMap({context: context});
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
const useApplicationsInContext = appLauncherSearchUtilsModule.useApplicationsInContext;
const apps = Reflect.apply(useApplicationsInContext, appLauncherSearchUtilsModule, [{'context': null,
'onlyWithCommands': true, 'includeBuiltIn': false, 'includeEmbeddedApps': false, 'includeNonEmbeddedApps': true,
context: context}]).apps;
const value4 = useCommandsMap({context: context});
const value5 = useFrecencyCommandIds({context: context});
const useActivityApplicationsModule = require(11579) /* metro dependency 11579: useActivityApplications */;
const useActivityApplications = useActivityApplicationsModule.useActivityApplications;
const channel = context.channel;
reducibleJoin2: while (true) {
if (channel == null) {
guild_id = value;
}
function useBannerBots({context}) { // fn#88868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1155, offset: 0x01ff7718, size: 583 bytes, params: 2, frame: 29
var guild_id;
var r6;
var r8;
var r10;
var id;
var r15;
var r9;
var r1;
var r5;
var r2;
var get;
var applicationId;
var value8;
var value11;
var value12;
var value13;
var id2;
var value14;
var find;
var length;
var property;
let value = undefined;
var env0_0;
const value2 = useAppsMap({context: context});
const useApplicationsInContext = AppLauncherSearchUtilsModule.useApplicationsInContext;
const apps = Reflect.apply(useApplicationsInContext, AppLauncherSearchUtilsModule, [{'context': null,
'onlyWithCommands': true, 'includeBuiltIn': false, 'includeEmbeddedApps': false, 'includeNonEmbeddedApps': true,
context: context}]).apps;
const value4 = useCommandsMap({context: context});
const value5 = useFrecencyCommandIds({context: context});
const useActivityApplications = UseActivityApplicationsModule.useActivityApplications;
const channel = context.channel;
reducibleJoin2: while (true) {
if (channel == null) {
guild_id = value;
break reducibleJoin2;
}
guild_id = channel.guild_id;
break reducibleJoin2;
}
guild_id = channel.guild_id;
break reducibleJoin2;
}
const value7 = Reflect.apply(useActivityApplications, useActivityApplicationsModule, [{guildId: guild_id,
fetchesShelf: true}]);
const recentApplicationCommandMetadata = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingStore],
function() {
return AppLauncherOnboardingStore.getRecentApplicationCommandMetadata();
});
reducibleJoin4: while (true) {
if (recentApplicationCommandMetadata != null) {
get = value2.get;
applicationId = recentApplicationCommandMetadata.applicationId;
value8 = Reflect.apply(get, value2, [applicationId]);
r6 = value8;
const value7 = Reflect.apply(useActivityApplications, UseActivityApplicationsModule, [{guildId: guild_id,
fetchesShelf: true}]);
const recentApplicationCommandMetadata = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingStore],
function() {
return AppLauncherOnboardingStore.getRecentApplicationCommandMetadata();
});
reducibleJoin4: while (true) {
if (recentApplicationCommandMetadata != null) {
get = value2.get;
applicationId = recentApplicationCommandMetadata.applicationId;
value8 = Reflect.apply(get, value2, [applicationId]);
r6 = value8;
break reducibleJoin4;
}
r6 = null;
break reducibleJoin4;
}
r6 = null;
break reducibleJoin4;
}
const value9 = _createForOfIteratorHelperLoose_88865(value5);
const value10 = value9();
let done = value10.done;
if (done) {
r9 = value;
} else {
r8 = value10;
r10 = r6;
reducibleLoop5: while (true) {
value11 = r8.value;
get = value4.get;
value12 = Reflect.apply(get, value4, [value11]);
if (value12 == null) {
r15 = r10;
} else {
get = value2.get;
applicationId = value12.applicationId;
value13 = Reflect.apply(get, value2, [applicationId]);
reducibleJoin12: while (true) {
if (value13 == null) {
const value9 = _createForOfIteratorHelperLoose_88865(value5);
const value10 = value9();
let done = value10.done;
if (done) {
r9 = value;
} else {
r8 = value10;
r10 = r6;
reducibleLoop5: while (true) {
value11 = r8.value;
get = value4.get;
value12 = Reflect.apply(get, value4, [value11]);
if (value12 == null) {
r15 = r10;
} else {
get = value2.get;
applicationId = value12.applicationId;
value13 = Reflect.apply(get, value2, [applicationId]);
reducibleJoin12: while (true) {
if (value13 == null) {
r15 = r10;
break reducibleJoin12;
}
if (r10 == null) {
env0_0 = value13;
r15 = value13;
break reducibleJoin12;
}
id2 = value13.id;
reducibleJoin10: while (true) {
if (r10 == null) {
id = value;
break reducibleJoin10;
}
id = r10.id;
break reducibleJoin10;
}
if (id2 !== id) {
r6 = r10;
r9 = value13;
break reducibleLoop5;
}
r15 = r10;
break reducibleJoin12;
}
if (r10 == null) {
env0_0 = value13;
r15 = value13;
break reducibleJoin12;
}
id2 = value13.id;
reducibleJoin10: while (true) {
if (r10 == null) {
id = value;
break reducibleJoin10;
}
id = r10.id;
break reducibleJoin10;
}
if (id2 !== id) {
r6 = r10;
r9 = value13;
break reducibleLoop5;
}
r15 = r10;
break reducibleJoin12;
}
value14 = value9();
done = value14.done;
if (done) {
r6 = r15;
r9 = value;
break reducibleLoop5;
}
r8 = value14;
r10 = r15;
continue reducibleLoop5;
}
value14 = value9();
done = value14.done;
if (done) {
r6 = r15;
r9 = value;
break reducibleLoop5;
}
r8 = value14;
r10 = r15;
continue reducibleLoop5;
}
}
if (r6 == null) {
length = apps.length;
reducibleJoin18: while (true) {
if (length > 0) {
property = apps[0];
env0_0 = property;
r6 = property;
if (r6 == null) {
length = apps.length;
reducibleJoin18: while (true) {
if (length > 0) {
property = apps[0];
env0_0 = property;
r6 = property;
break reducibleJoin18;
}
break reducibleJoin18;
}
break reducibleJoin18;
}
length = apps.length;
reducibleJoin20: while (true) {
if (length > 1) {
property = apps[1];
r1 = property;
r5 = r6;
break reducibleJoin20;
}
r1 = r9;
r5 = r6;
break reducibleJoin20;
}
} else {
reducibleJoin20: while (true) {
if (r9 != null) {
length = apps.length;
reducibleJoin20: while (true) {
if (length > 1) {
property = apps[1];
r1 = property;
r5 = r6;
break reducibleJoin20;
}
r1 = r9;
r5 = r6;
break reducibleJoin20;
}
find = apps.find;
value = Reflect.apply(find, apps, [_fun88876]);
r1 = value;
r5 = r6;
break reducibleJoin20;
} else {
reducibleJoin20: while (true) {
if (r9 != null) {
r1 = r9;
r5 = r6;
break reducibleJoin20;
}
find = apps.find;
value = Reflect.apply(find, apps, [_fun88876]);
r1 = value;
r5 = r6;
break reducibleJoin20;
}
}
}
if (r5 == null) {
property = value7[0];
r1 = value7[1];
r2 = property;
} else {
reducibleJoin24: while (true) {
if (r1 != null) {
if (r5 == null) {
property = value7[0];
r1 = value7[1];
r2 = property;
} else {
reducibleJoin24: while (true) {
if (r1 != null) {
r2 = r5;
break reducibleJoin24;
}
property = value7[0];
r1 = property;
r2 = r5;
break reducibleJoin24;
}
property = value7[0];
r1 = property;
r2 = r5;
break reducibleJoin24;
}
return {firstBotApplication: r2, secondBotApplication: r1};
function useAppsMap({context}) { // fn#88869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1203, owner: useBannerBots.useAppsMap, offset: 0x01ff795f, size: 108 bytes, params: 2, frame: 15
const useApplicationsInContext = AppLauncherSearchUtilsModule.useApplicationsInContext;
return env1_2.useMemo(function() {
var r2;
var value7;
var property = global.Map;
var value2 = new property();
var value5 = _createForOfIteratorHelperLoose_88865(apps);
var value6 = value5();
if (!value6.done) {
for (r2 = value6; true; r2 = value7) {
property = r2.value;
value2.set(property.id, property);
value7 = value5();
if (value7.done) {
break;
}
}
}
return value2;
}, [Reflect.apply(useApplicationsInContext, AppLauncherSearchUtilsModule, [{'context': null,
'onlyWithCommands': true, 'includeBuiltIn': false, 'includeEmbeddedApps': false, 'includeNonEmbeddedApps': true,
context: context}]).apps]);
}
function useCommandsMap({context}) { // fn#88871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1678, owner: useBannerBots.useCommandsMap, offset: 0x01ff7a2e, size: 101 bytes, params: 2, frame: 15
const useApplicationCommandsInContext = AppLauncherSearchUtilsModule.useApplicationCommandsInContext;
return env1_2.useMemo(function() {
var r2;
var value7;
var property = global.Map;
var value2 = new property();
var value5 = _createForOfIteratorHelperLoose_88865(commands);
var value6 = value5();
if (!value6.done) {
for (r2 = value6; true; r2 = value7) {
property = r2.value;
value2.set(property.id, property);
value7 = value5();
if (value7.done) {
break;
}
}
}
return value2;
}, [Reflect.apply(useApplicationCommandsInContext, AppLauncherSearchUtilsModule, [{context: context,
includeBuiltIn: false}]).commands]);
}
function useFrecencyCommandIds({context}) { // fn#88873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1958, owner: useBannerBots.useFrecencyCommandIds, offset: 0x01ff7a93, size: 109 bytes, params: 2, frame: 18
var environment;
const value = environment.__proto__;
return (ApplicationCommandFrecencyHooksModule).useTopCommands({channel: context.channel,
guild: (FluxModule).useStateFromStores([GuildStore], _fun88874)});
function _fun88874() { // fn#88874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:2041, offset: 0x01ff7b00, size: 48 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
return GuildStore.getGuild(context.channel?.guild_id);
}
}
function _fun88876({id}) { // fn#88876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:2699, offset: 0x01ff7b43, size: 37 bytes, params: 2, frame: 4
const id = env0_0?.id;
return id !== id;
}
}
return {firstBotApplication: r2, secondBotApplication: r1};
}
function useAppsMap({context}) { // fn#88869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1203, owner: useBannerBots.useAppsMap, offset: 0x01ff795f, size: 108 bytes, params: 2, frame: 15
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
const useApplicationsInContext = appLauncherSearchUtilsModule.useApplicationsInContext;
return env1_2.useMemo(function() {
var r2;
var value7;
var property = global.Map;
var value2 = new property();
var value5 = _createForOfIteratorHelperLoose_88865(apps);
var value6 = value5();
if (!value6.done) {
for (r2 = value6; true; r2 = value7) {
property = r2.value;
value2.set(property.id, property);
value7 = value5();
if (value7.done) {
break;
}
}
}
return value2;
}, [Reflect.apply(useApplicationsInContext, appLauncherSearchUtilsModule, [{'context': null,
'onlyWithCommands': true, 'includeBuiltIn': false, 'includeEmbeddedApps': false, 'includeNonEmbeddedApps': true,
context: context}]).apps]);
}
function useCommandsMap({context}) { // fn#88871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1678, owner: useBannerBots.useCommandsMap, offset: 0x01ff7a2e, size: 101 bytes, params: 2, frame: 15
const appLauncherSearchUtilsModule = require(11608) /* metro dependency 11608: AppLauncherSearchUtils */;
const useApplicationCommandsInContext = appLauncherSearchUtilsModule.useApplicationCommandsInContext;
return env1_2.useMemo(function() {
var r2;
var value7;
var property = global.Map;
var value2 = new property();
var value5 = _createForOfIteratorHelperLoose_88865(commands);
var value6 = value5();
if (!value6.done) {
for (r2 = value6; true; r2 = value7) {
property = r2.value;
value2.set(property.id, property);
value7 = value5();
if (value7.done) {
break;
}
}
}
return value2;
}, [Reflect.apply(useApplicationCommandsInContext, appLauncherSearchUtilsModule, [{context: context,
includeBuiltIn: false}]).commands]);
}
function useFrecencyCommandIds({context}) { // fn#88873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:1958, owner: useBannerBots.useFrecencyCommandIds, offset: 0x01ff7a93, size: 109 bytes, params: 2, frame: 18
var environment;
const value = environment.__proto__;
return (require(7870) /* metro dependency 7870: ApplicationCommandFrecencyHooks */).useTopCommands({channel: context.channel,
guild: (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun88874)});
}
function _fun88876({id}) { // fn#88876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:2699, offset: 0x01ff7b43, size: 37 bytes, params: 2, frame: 4
const id = env0_0?.id;
return id !== id;
}
function _fun88874() { // fn#88874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11793:2041, offset: 0x01ff7b00, size: 48 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
return GuildStore.getGuild(context.channel?.guild_id);
}
global.__d(_fun88864, 11607, [31, 1867, 11586, 566, 7870, 11608, 11579,
2]) /* metro module 11607, dependencies: [31, 1867, 11586, 566, 7870, 11608, 11579, 2] */;
@@ -1,15 +1,20 @@
/* Metro module 11584; source: modules/app_launcher/native/onboarding/hooks/useCanShowAppLauncherOnboarding.tsx; dependencies: [57, 1379, 4111, 1878, 11585, 11586, 5066, 672, 566, 21, 1365, 7013, 3968, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelStore from '../../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildMemberCountStore from '../../../../../stores/GuildMemberCountStore.tsx'; /* Metro dependency 4111 */
import AppLauncherOnboardingPersistedStore from '../stores/AppLauncherOnboardingPersistedStore.tsx'; /* Metro dependency 11585 */
import AppLauncherOnboardingStore from '../stores/AppLauncherOnboardingStore.tsx'; /* Metro dependency 11586 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as DismissibleContentUnsafeUtilsModule from '../../../../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
import * as ApplicationCommandConstantsModule from '../../../../application_commands/ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
import * as UseSelectedDismissibleContentModule from '../../../../dismissible_content/hooks/useSelectedDismissibleContent.tsx'; /* Metro dependency 7013 */
function _fun88706(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:6, offset: 0x01feed75, size: 369 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const appLauncherOnboardingPersistedStore = importDefault(11585) /* metro dependency 11585: AppLauncherOnboardingPersistedStore */;
const appLauncherOnboardingStore = importDefault(11586) /* metro dependency 11586: AppLauncherOnboardingStore */;
const env0_9 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
let SECOND = Millis.SECOND;
const value = 5 * SECOND;
@@ -23,152 +28,152 @@ function _fun88706(global, require, importDefault, importAll, module, exports, d
const env0_13 = Millis.HOUR;
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
DAY = Millis.DAY;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useCanShowAppLauncherOnboarding.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/hooks/useCanShowAppLauncherOnboarding.tsx');
exports.default = useCanShowAppLauncherOnboarding;
exports.RECENT_MESSAGE_MS = value;
}
function useCanShowAppLauncherOnboarding({channelId}) { // fn#88707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:427, offset: 0x01feeee6, size: 944 bytes, params: 2, frame: 31
var r10;
var r4;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
var canShowOnboarding;
const Date = global.Date;
let value = Date.now();
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const guild_id = channel?.guild_id;
const value4 = useIsNewUser();
const value5 = useIsInSmallContext({guildId: guild_id});
const value6 = useIsInCooldown({currentTimeMs: value});
const isInCooldown = ({isInCooldown: value6}).isInCooldown;
object = [];
if (!isInCooldown) {
object.push(DismissibleContent.APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING);
}
const property = env0_3((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(object),
1)[0];
const APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING = DismissibleContent.APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING;
const willShowGlobalSearchOnboarding = ({willShowGlobalSearchOnboarding: property === APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING}).willShowGlobalSearchOnboarding;
let {recentMessageMetadata,
recentApplicationCommandMetadata} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AppLauncherOnboardingStore],
function() {
var object = {};
object.recentMessageMetadata = AppLauncherOnboardingStore.getRecentMessageMetadata();
object.recentApplicationCommandMetadata = AppLauncherOnboardingStore.getRecentApplicationCommandMetadata();
function useCanShowAppLauncherOnboarding({channelId}) { // fn#88707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:427, offset: 0x01feeee6, size: 944 bytes, params: 2, frame: 31
var r10;
var r4;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
var canShowOnboarding;
const Date = global.Date;
let value = Date.now();
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const guild_id = channel?.guild_id;
const value4 = useIsNewUser();
const value5 = useIsInSmallContext({guildId: guild_id});
const value6 = useIsInCooldown({currentTimeMs: value});
const isInCooldown = ({isInCooldown: value6}).isInCooldown;
object = [];
if (!isInCooldown) {
object.push(DismissibleContent.APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING);
}
const property = Module00057((UseSelectedDismissibleContentModule).useSelectedDismissibleContent(object),
1)[0];
const APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING = DismissibleContent.APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING;
const willShowGlobalSearchOnboarding = ({willShowGlobalSearchOnboarding: property === APP_LAUNCHER_GLOBAL_SEARCH_ONBOARDING}).willShowGlobalSearchOnboarding;
let {recentMessageMetadata,
recentApplicationCommandMetadata} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AppLauncherOnboardingStore],
function() {
var object = {};
var appLauncherOnboardingStoreBinding = AppLauncherOnboardingStore;
object.recentMessageMetadata = appLauncherOnboardingStoreBinding.getRecentMessageMetadata();
object.recentApplicationCommandMetadata = appLauncherOnboardingStoreBinding.getRecentApplicationCommandMetadata();
return object;
});
const triggeredOnboardingContentMetadata = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingPersistedStore],
function() {
return AppLauncherOnboardingPersistedStore.getTriggeredOnboardingContentMetadata();
});
object = {currentTimeMs: value, recentMessageMetadata: recentMessageMetadata, channelId: channelId};
let currentTimeMs = object.currentTimeMs;
recentMessageMetadata = object.recentMessageMetadata;
const r9 = recentMessageMetadata != null && currentTimeMs < recentMessageMetadata.timeMs + env0_10 && recentMessageMetadata?.channelId === object.channelId;
object = {currentTimeMs: value, recentApplicationCommandMetadata: recentApplicationCommandMetadata,
channelId: channelId};
currentTimeMs = object.currentTimeMs;
const recentApplicationCommandMetadata2 = object.recentApplicationCommandMetadata;
const r13 = recentApplicationCommandMetadata2 != null && currentTimeMs < recentApplicationCommandMetadata2.timeMs + env0_11 && recentApplicationCommandMetadata2?.channelId === object.channelId;
const applicationId = recentApplicationCommandMetadata?.applicationId;
const BUILT_IN = BuiltInSectionId.BUILT_IN;
const value16 = applicationId === BUILT_IN;
let UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
const value17 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_BOTS_BANNER]);
UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
const value18 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
const value19 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
object = {'canShowOnboarding': false, 'canShowBotsBanner': false, 'canShowAppsOrActivitiesBanner': false,
'willShowGlobalSearchOnboarding': false, 'fromTriggeredOnboarding': false};
let r3 = triggeredOnboardingContentMetadata != null && triggeredOnboardingContentMetadata.channelId === channelId;
if (r3) {
value = triggeredOnboardingContentMetadata.timeMs + DAY > value;
r3 = value;
}
if (channel != null) {
value = !r13;
r10 = r13 ? value16 : value;
r10 = !r10 ? value17 : r10;
r10 = !r10 ? value6 : r10;
if (!r10) {
object.canShowOnboarding = true;
object.canShowBotsBanner = true;
}
r4 = value4 || !r9;
r4 = !r4 ? !value5 : r4;
r4 = !r4 ? value6 : r4;
r4 = !r4 ? value18 && value19 : r4;
if (!r4) {
object.canShowOnboarding = true;
object.canShowAppsOrActivitiesBanner = true;
}
if (willShowGlobalSearchOnboarding) {
object.willShowGlobalSearchOnboarding = true;
object.canShowOnboarding = true;
}
canShowOnboarding = object.canShowOnboarding;
value = !canShowOnboarding;
if (canShowOnboarding ? value : r3) {
object.canShowOnboarding = true;
object.canShowBotsBanner = triggeredOnboardingContentMetadata.canShowBotsBanner;
object.canShowAppsOrActivitiesBanner = triggeredOnboardingContentMetadata.canShowAppsOrActivitiesBanner;
object.willShowGlobalSearchOnboarding = triggeredOnboardingContentMetadata.willShowGlobalSearchOnboarding;
object.fromTriggeredOnboarding = true;
}
}
return object;
});
const triggeredOnboardingContentMetadata = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingPersistedStore],
function() {
return AppLauncherOnboardingPersistedStore.getTriggeredOnboardingContentMetadata();
});
object = {currentTimeMs: value, recentMessageMetadata: recentMessageMetadata, channelId: channelId};
let currentTimeMs = object.currentTimeMs;
recentMessageMetadata = object.recentMessageMetadata;
const r9 = recentMessageMetadata != null && currentTimeMs < recentMessageMetadata.timeMs + env0_10 && recentMessageMetadata?.channelId === object.channelId;
object = {currentTimeMs: value, recentApplicationCommandMetadata: recentApplicationCommandMetadata,
channelId: channelId};
currentTimeMs = object.currentTimeMs;
const recentApplicationCommandMetadata2 = object.recentApplicationCommandMetadata;
const r13 = recentApplicationCommandMetadata2 != null && currentTimeMs < recentApplicationCommandMetadata2.timeMs + env0_11 && recentApplicationCommandMetadata2?.channelId === object.channelId;
const applicationId = recentApplicationCommandMetadata?.applicationId;
const BUILT_IN = BuiltInSectionId.BUILT_IN;
const value16 = applicationId === BUILT_IN;
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
let UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
const value17 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
[APP_LAUNCHER_ONBOARDING_BOTS_BANNER]);
const moduleValue6 = dismissibleContentUnsafeUtilsModule;
UNSAFE_useIsDismissibleContentDismissed = moduleValue6.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
const value18 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, moduleValue6,
[APP_LAUNCHER_ONBOARDING_APPS_BANNER]);
const moduleValue7 = dismissibleContentUnsafeUtilsModule;
UNSAFE_useIsDismissibleContentDismissed = moduleValue7.UNSAFE_useIsDismissibleContentDismissed;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
const value19 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, moduleValue7,
[APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER]);
object = {'canShowOnboarding': false, 'canShowBotsBanner': false, 'canShowAppsOrActivitiesBanner': false,
'willShowGlobalSearchOnboarding': false, 'fromTriggeredOnboarding': false};
let r3 = triggeredOnboardingContentMetadata != null && triggeredOnboardingContentMetadata.channelId === channelId;
if (r3) {
value = triggeredOnboardingContentMetadata.timeMs + DAY > value;
r3 = value;
function useIsNewUser() { // fn#88709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:586, owner: useCanShowAppLauncherOnboarding.useIsNewUser, offset: 0x01fef296, size: 148 bytes, params: 1, frame: 17
var environment;
var r0;
var value4;
var defaultImport;
const value = environment.__proto__;
const value2 = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value3 = (currentUser == null ? value2 : currentUser.createdAt) != null;
if (value3) {
value4 = global.Date.now();
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
r0 = value4 < defaultImport.extractTimestamp(currentUser.id) + env1_12;
} else {
r0 = value3;
}
return r0;
}
function useIsInSmallContext({guildId}) { // fn#88711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:765, owner: useCanShowAppLauncherOnboarding.useIsInSmallContext, offset: 0x01fef32a, size: 87 bytes, params: 2, frame: 14
var environment;
const value = environment.__proto__;
const memberCount = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberCountStore],
function() {
return GuildMemberCountStore.getMemberCount(guildId);
});
return memberCount != null && memberCount < 200;
}
function useIsInCooldown({currentTimeMs}) { // fn#88713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:909, owner: useCanShowAppLauncherOnboarding.useIsInCooldown, offset: 0x01fef39c, size: 89 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
const lastSeenTimeMs = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingPersistedStore],
function() {
return AppLauncherOnboardingPersistedStore.getLastSeenTimeMs();
});
return lastSeenTimeMs != null && currentTimeMs < lastSeenTimeMs + HOUR;
}
}
if (channel != null) {
value = !r13;
r10 = r13 ? value16 : value;
r10 = !r10 ? value17 : r10;
r10 = !r10 ? value6 : r10;
if (!r10) {
object.canShowOnboarding = true;
object.canShowBotsBanner = true;
}
r4 = value4 || !r9;
r4 = !r4 ? !value5 : r4;
r4 = !r4 ? value6 : r4;
r4 = !r4 ? value18 && value19 : r4;
if (!r4) {
object.canShowOnboarding = true;
object.canShowAppsOrActivitiesBanner = true;
}
if (willShowGlobalSearchOnboarding) {
object.willShowGlobalSearchOnboarding = true;
object.canShowOnboarding = true;
}
canShowOnboarding = object.canShowOnboarding;
value = !canShowOnboarding;
if (canShowOnboarding ? value : r3) {
object.canShowOnboarding = true;
object.canShowBotsBanner = triggeredOnboardingContentMetadata.canShowBotsBanner;
object.canShowAppsOrActivitiesBanner = triggeredOnboardingContentMetadata.canShowAppsOrActivitiesBanner;
object.willShowGlobalSearchOnboarding = triggeredOnboardingContentMetadata.willShowGlobalSearchOnboarding;
object.fromTriggeredOnboarding = true;
}
}
return object;
}
function useIsNewUser() { // fn#88709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:586, owner: useCanShowAppLauncherOnboarding.useIsNewUser, offset: 0x01fef296, size: 148 bytes, params: 1, frame: 17
var environment;
var r0;
var value4;
var defaultImport;
const value = environment.__proto__;
const value2 = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value3 = (currentUser == null ? value2 : currentUser.createdAt) != null;
if (value3) {
value4 = global.Date.now();
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
r0 = value4 < defaultImport.extractTimestamp(currentUser.id) + env1_12;
} else {
r0 = value3;
}
return r0;
}
function useIsInSmallContext({guildId}) { // fn#88711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:765, owner: useCanShowAppLauncherOnboarding.useIsInSmallContext, offset: 0x01fef32a, size: 87 bytes, params: 2, frame: 14
var environment;
const value = environment.__proto__;
const memberCount = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberCountStore],
function() {
return GuildMemberCountStore.getMemberCount(guildId);
});
return memberCount != null && memberCount < 200;
}
function useIsInCooldown({currentTimeMs}) { // fn#88713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11770:909, owner: useCanShowAppLauncherOnboarding.useIsInCooldown, offset: 0x01fef39c, size: 89 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
const lastSeenTimeMs = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppLauncherOnboardingPersistedStore],
function() {
return AppLauncherOnboardingPersistedStore.getLastSeenTimeMs();
});
return lastSeenTimeMs != null && currentTimeMs < lastSeenTimeMs + HOUR;
}
global.__d(_fun88706, 11584, [57, 1379, 4111, 1878, 11585, 11586, 5066, 672, 566, 21, 1365, 7013, 3968,
2]) /* metro module 11584, dependencies: [57, 1379, 4111, 1878, 11585, 11586, 5066, 672, 566, 21, 1365, 7013, 3968, 2] */;
@@ -1,15 +1,18 @@
/* Metro module 11585; source: modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingPersistedStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun88717(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:6, offset: 0x01fef448, size: 344 bytes, params: 8, frame: 18
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 = {lastSeenTimeMs: null, triggeredOnboardingContentMetadata: {'canShowBotsBanner': false,
'canShowAppsOrActivitiesBanner': false, 'willShowGlobalSearchOnboarding': false, 'timeMs': 0, 'channelId': '0'}};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun88721(PersistedStore);
value.displayName = 'AppLauncherOnboardingPersistedStore';
value.persistKey = 'AppLauncherOnboardingPersistedStore';
@@ -17,94 +20,108 @@ function _fun88717(global, require, importDefault, importAll, module, exports, d
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS: APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS,
APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA: APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingPersistedStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingPersistedStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_88718() { // fn#88718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:148, offset: 0x01fef5a0, 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) {
function _isNativeReflectConstruct_88718() { // fn#88718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:148, offset: 0x01fef5a0, 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_88718_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_88718_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun88721(a0) { // fn#88721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:527, offset: 0x01fef602, size: 149 bytes, params: 2, frame: 16
const closure = AppLauncherOnboardingPersistedStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_88723}, {key: 'getState', value: value_88724},
{key: 'getLastSeenTimeMs', value: value_88725}, {key: 'getTriggeredOnboardingContentMetadata',
value: value_88726}]);
}
function _fun88721(a0) { // fn#88721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:527, offset: 0x01fef602, size: 149 bytes, params: 2, frame: 16
const AppLauncherOnboardingPersistedStore2 = AppLauncherOnboardingPersistedStore;
Inherits(AppLauncherOnboardingPersistedStore2, a0);
return CreateClass(AppLauncherOnboardingPersistedStore2, [{key: 'initialize', value: value_88723}, {key: 'getState',
value: value_88724}, {key: 'getLastSeenTimeMs', value: value_88725},
{key: 'getTriggeredOnboardingContentMetadata', value: value_88726}]);
function AppLauncherOnboardingPersistedStore() { // fn#88722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:539, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, AppLauncherOnboardingPersistedStore);
const value3 = env1_3(AppLauncherOnboardingPersistedStore);
return env1_2(this, _isNativeReflectConstruct_88718() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function _fun88727(a0) { // fn#88727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1429, offset: 0x01fef6e1, size: 305 bytes, params: 2, frame: 8
const value = null;
const value2 = undefined;
const lastSeenTimeMs = value == a0 ? value2 : a0.lastSeenTimeMs;
let canShowBotsBanner = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.canShowBotsBanner;
canShowBotsBanner = value == canShowBotsBanner ? env0_5.canShowBotsBanner : canShowBotsBanner;
let canShowAppsOrActivitiesBanner = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.canShowAppsOrActivitiesBanner;
canShowAppsOrActivitiesBanner = value == canShowAppsOrActivitiesBanner ? env0_5.canShowAppsOrActivitiesBanner : canShowAppsOrActivitiesBanner;
let willShowGlobalSearchOnboarding = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.willShowGlobalSearchOnboarding;
willShowGlobalSearchOnboarding = value == willShowGlobalSearchOnboarding ? env0_5.willShowGlobalSearchOnboarding : willShowGlobalSearchOnboarding;
let timeMs = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.timeMs;
timeMs = value == timeMs ? env0_5.timeMs : timeMs;
let channelId = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.channelId;
channelId = value == channelId ? env0_5.channelId : channelId;
return {lastSeenTimeMs: value != lastSeenTimeMs ? lastSeenTimeMs : value,
triggeredOnboardingContentMetadata: {canShowBotsBanner: canShowBotsBanner,
canShowAppsOrActivitiesBanner: canShowAppsOrActivitiesBanner,
willShowGlobalSearchOnboarding: willShowGlobalSearchOnboarding, timeMs: timeMs, channelId: channelId}};
}
function value_88723(a0) { // fn#88723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:932, offset: 0x01fef697, size: 44 bytes, params: 2, frame: 3
var value;
var binding;
if (a0 != null) {
value = environment.__proto__;
binding = env1_6;
binding.lastSeenTimeMs = a0.lastSeenTimeMs;
binding.triggeredOnboardingContentMetadata = a0.triggeredOnboardingContentMetadata;
}
}
function APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS() { // fn#88728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:2320, offset: 0x01fef812, size: 34 bytes, params: 1, frame: 10
const binding = env0_6;
const Date = global.Date;
binding.lastSeenTimeMs = Date.now();
}
function value_88724() { // fn#88724, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
return env1_6;
}
function APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA({triggeredOnboardingContentMetadata}) { // fn#88729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:2450, offset: 0x01fef834, size: 26 bytes, params: 2, frame: 2
env0_6.triggeredOnboardingContentMetadata = triggeredOnboardingContentMetadata;
}
function value_88725() { // fn#88725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1140, offset: 0x01fef6c3, size: 15 bytes, params: 1, frame: 1
return env1_6.lastSeenTimeMs;
}
function value_88726() { // fn#88726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1228, offset: 0x01fef6d2, size: 15 bytes, params: 1, frame: 1
return env1_6.triggeredOnboardingContentMetadata;
}
function value_88723(a0) { // fn#88723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:932, offset: 0x01fef697, size: 44 bytes, params: 2, frame: 3
var value;
var binding;
if (a0 != null) {
value = environment.__proto__;
binding = env1_6;
binding.lastSeenTimeMs = a0.lastSeenTimeMs;
binding.triggeredOnboardingContentMetadata = a0.triggeredOnboardingContentMetadata;
}
function _fun88727(a0) { // fn#88727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1429, offset: 0x01fef6e1, size: 305 bytes, params: 2, frame: 8
const value = null;
const value2 = undefined;
const lastSeenTimeMs = value == a0 ? value2 : a0.lastSeenTimeMs;
let canShowBotsBanner = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.canShowBotsBanner;
canShowBotsBanner = value == canShowBotsBanner ? env0_5.canShowBotsBanner : canShowBotsBanner;
let canShowAppsOrActivitiesBanner = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.canShowAppsOrActivitiesBanner;
canShowAppsOrActivitiesBanner = value == canShowAppsOrActivitiesBanner ? env0_5.canShowAppsOrActivitiesBanner : canShowAppsOrActivitiesBanner;
let willShowGlobalSearchOnboarding = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.willShowGlobalSearchOnboarding;
willShowGlobalSearchOnboarding = value == willShowGlobalSearchOnboarding ? env0_5.willShowGlobalSearchOnboarding : willShowGlobalSearchOnboarding;
let timeMs = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.timeMs;
timeMs = value == timeMs ? env0_5.timeMs : timeMs;
let channelId = value == a0 || value == a0.triggeredOnboardingContentMetadata ? value2 : a0.triggeredOnboardingContentMetadata.channelId;
channelId = value == channelId ? env0_5.channelId : channelId;
return {lastSeenTimeMs: value != lastSeenTimeMs ? lastSeenTimeMs : value,
triggeredOnboardingContentMetadata: {canShowBotsBanner: canShowBotsBanner,
canShowAppsOrActivitiesBanner: canShowAppsOrActivitiesBanner,
willShowGlobalSearchOnboarding: willShowGlobalSearchOnboarding, timeMs: timeMs, channelId: channelId}};
}
function APP_LAUNCHER_ONBOARDING_SET_LAST_SEEN_TIME_MS() { // fn#88728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:2320, offset: 0x01fef812, size: 34 bytes, params: 1, frame: 10
const binding = env0_6;
const Date = global.Date;
binding.lastSeenTimeMs = Date.now();
}
function APP_LAUNCHER_ONBOARDING_SET_TRIGGERED_ONBOARDING_CONTENT_METADATA({triggeredOnboardingContentMetadata}) { // fn#88729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:2450, offset: 0x01fef834, size: 26 bytes, params: 2, frame: 2
env0_6.triggeredOnboardingContentMetadata = triggeredOnboardingContentMetadata;
}
}
function value_88725() { // fn#88725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1140, offset: 0x01fef6c3, size: 15 bytes, params: 1, frame: 1
return env1_6.lastSeenTimeMs;
}
function value_88726() { // fn#88726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11771:1228, offset: 0x01fef6d2, size: 15 bytes, params: 1, frame: 1
return env1_6.triggeredOnboardingContentMetadata;
}
global.__d(_fun88717, 11585, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 11585, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,103 +1,117 @@
/* Metro module 11586; source: modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingStore.tsx; dependencies: [6, 7, 15, 17, 18, 1878, 21, 11584, 5068, 566, 694, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import UserStore from '../../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApplicationCommandTypesModule from '../../../../application_commands/ApplicationCommandTypes.tsx'; /* Metro dependency 5068 */
function _fun88730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:6, offset: 0x01fef84e, size: 305 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_5 = importDefault(6) /* metro dependency 6 */;
const env0_6 = importDefault(7) /* metro dependency 7 */;
const env0_7 = importDefault(15) /* metro dependency 15 */;
const env0_8 = importDefault(17) /* metro dependency 17 */;
const env0_9 = importDefault(18) /* metro dependency 18 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun88734(Store);
value.displayName = 'AppLauncherOnboardingStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{APPLICATION_COMMAND_USED: APPLICATION_COMMAND_USED_88739, MESSAGE_CREATE: MESSAGE_CREATE_88740});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/stores/AppLauncherOnboardingStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_88731() { // fn#88731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:162, offset: 0x01fef97f, 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) {
function _isNativeReflectConstruct_88731() { // fn#88731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:162, offset: 0x01fef97f, 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_88731_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_88731_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun88734(a0) { // fn#88734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:361, offset: 0x01fef9e1, size: 124 bytes, params: 2, frame: 16
const closure = AppLauncherOnboardingStore;
env0_9(closure, a0);
return env0_6(closure, [{key: 'initialize', value: function() {
this.waitFor(UserStore);
}}, {key: 'getRecentMessageMetadata', value: value_88737}, {key: 'getRecentApplicationCommandMetadata',
value: value_88738}]);
}
function _fun88734(a0) { // fn#88734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:361, offset: 0x01fef9e1, size: 124 bytes, params: 2, frame: 16
const AppLauncherOnboardingStore2 = AppLauncherOnboardingStore;
Inherits(AppLauncherOnboardingStore2, a0);
return CreateClass(AppLauncherOnboardingStore2, [{key: 'initialize', value: function() {
this.waitFor(UserStore);
}}, {key: 'getRecentMessageMetadata', value: value_88737}, {key: 'getRecentApplicationCommandMetadata',
value: value_88738}]);
function AppLauncherOnboardingStore() { // fn#88735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:373, offset: 0x01fefa5d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_5(this, AppLauncherOnboardingStore);
const value3 = env1_8(AppLauncherOnboardingStore);
return env1_7(this, _isNativeReflectConstruct_88731() ? global.Reflect.construct(value3, arguments,
env1_8(this).constructor) : value3.apply(this, arguments));
}
function value_88737() { // fn#88737, offset: 0x011057d9, size: 9 bytes, params: 1, frame: 1
return env1_3;
}
function value_88738() { // fn#88738, offset: 0x00e361d6, size: 9 bytes, params: 1, frame: 1
return env1_4;
}
function APPLICATION_COMMAND_USED_88739({command, context, commandOrigin}) { // fn#88739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:989, offset: 0x01feface, size: 156 bytes, params: 2, frame: 15
var id;
var object2;
const CommandOrigin = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).CommandOrigin;
const APPLICATION_LAUNCHER = CommandOrigin.APPLICATION_LAUNCHER;
if (commandOrigin !== APPLICATION_LAUNCHER && context.channel != null) {
object2 = {};
object2.timeMs = global.Date.now();
object2.applicationId = command.applicationId;
id = context.guild?.id;
object2.guildId = id;
id = context.channel.id;
object2.channelId = id;
}
}
function MESSAGE_CREATE_88740({channelId, guildId, message}) { // fn#88740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:1268, offset: 0x01fefb6a, size: 196 bytes, params: 2, frame: 17
var defaultImport;
var value3;
var object;
const currentUser = UserStore.getCurrentUser();
if (currentUser != null) {
if (currentUser.id != null) {
if (message.author != null) {
if (currentUser.id === message.author.id) {
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value3 = defaultImport.extractTimestamp(message.id);
if (!(global.Date.now() > value3 + (require(11584) /* metro dependency 11584: useCanShowAppLauncherOnboarding */).RECENT_MESSAGE_MS)) {
object = {timeMs: value3, guildId: guildId, channelId: channelId};
function APPLICATION_COMMAND_USED_88739({command, context, commandOrigin}) { // fn#88739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:989, offset: 0x01feface, size: 156 bytes, params: 2, frame: 15
var id;
var object;
const CommandOrigin = (ApplicationCommandTypesModule).CommandOrigin;
const APPLICATION_LAUNCHER = CommandOrigin.APPLICATION_LAUNCHER;
if (commandOrigin !== APPLICATION_LAUNCHER && context.channel != null) {
object = {};
object.timeMs = global.Date.now();
object.applicationId = command.applicationId;
id = context.guild?.id;
object.guildId = id;
id = context.channel.id;
object.channelId = id;
}
}
function MESSAGE_CREATE_88740({channelId, guildId, message}) { // fn#88740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:1268, offset: 0x01fefb6a, size: 196 bytes, params: 2, frame: 17
var defaultImport;
var value3;
var object;
const currentUser = UserStore.getCurrentUser();
if (currentUser != null) {
if (currentUser.id != null) {
if (message.author != null) {
if (currentUser.id === message.author.id) {
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value3 = defaultImport.extractTimestamp(message.id);
if (!(global.Date.now() > value3 + (require(11584) /* metro dependency 11584: useCanShowAppLauncherOnboarding */).RECENT_MESSAGE_MS)) {
object = {timeMs: value3, guildId: guildId, channelId: channelId};
}
}
}
}
}
}
}
function AppLauncherOnboardingStore() { // fn#88735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11772:373, offset: 0x01fefa5d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_5(this, AppLauncherOnboardingStore);
const value3 = env1_8(AppLauncherOnboardingStore);
return env1_7(this, _isNativeReflectConstruct_88731() ? global.Reflect.construct(value3, arguments,
env1_8(this).constructor) : value3.apply(this, arguments));
}
global.__d(_fun88730, 11586, [6, 7, 15, 17, 18, 1878, 21, 11584, 5068, 566, 694,
2]) /* metro module 11586, dependencies: [6, 7, 15, 17, 18, 1878, 21, 11584, 5068, 566, 694, 2] */;
@@ -1,28 +1,32 @@
/* Metro module 11587; source: modules/app_launcher/native/onboarding/utils/completeAppLauncherOnboarding.tsx; dependencies: [3968, 1365, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
function _fun88741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11773:6, offset: 0x01fefc2e, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/onboarding/utils/completeAppLauncherOnboarding.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/onboarding/utils/completeAppLauncherOnboarding.tsx');
exports.default = completeAppLauncherOnboarding;
function completeAppLauncherOnboarding(a0) { // fn#88742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11773:214, offset: 0x01fefc8e, size: 170 bytes, params: 2, frame: 20
let value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
let UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER,
{dismissAction: a0}]);
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_BOTS_BANNER,
{dismissAction: a0}]);
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_APPS_BANNER,
{dismissAction: a0}]);
}
}
function completeAppLauncherOnboarding(a0) { // fn#88742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11773:214, offset: 0x01fefc8e, size: 170 bytes, params: 2, frame: 20
let value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
let UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER,
{dismissAction: a0}]);
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const APP_LAUNCHER_ONBOARDING_BOTS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_BOTS_BANNER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_BOTS_BANNER,
{dismissAction: a0}]);
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const APP_LAUNCHER_ONBOARDING_APPS_BANNER = DismissibleContent.APP_LAUNCHER_ONBOARDING_APPS_BANNER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [APP_LAUNCHER_ONBOARDING_APPS_BANNER,
{dismissAction: a0}]);
}
global.__d(_fun88741, 11587, [3968, 1365, 2]) /* metro module 11587, dependencies: [3968, 1365, 2] */;
@@ -1,287 +1,481 @@
/* Metro module 11700; source: modules/app_launcher/native/options/AppLauncherCommandOption.tsx; dependencies: [31, 27, 1483, 33, 4501, 697, 1909, 11701, 11707, 11709, 11712, 11714, 11715, 11719, 6589, 11722, 11723, 11726, 5278, 6988, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AppLauncherNativeConstantsModule from '../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as ServerModule from '../../../../flow/Server.tsx'; /* Metro dependency 1909 */
import * as AppLauncherMentionableListActionSheetModule from './mentionable/AppLauncherMentionableListActionSheet.tsx'; /* Metro dependency 11719 */
function _fun89692(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:6, offset: 0x0201a42c, size: 304 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 env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherOptionAutoFocusType;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'marginLeft': 8, 'marginRight': -4, 'padding': 4};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const object2 = {'marginLeft': 8, 'marginRight': -4, 'padding': 4};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_7 = Reflect.apply(createStyles, value, [{dismissableOptionWrapper: {'flexDirection': 'row',
'alignItems': 'center'}, optionViewContainer: {flex: 1}, dismissButton: object, option: {flex: 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/AppLauncherCommandOption.tsx');
'alignItems': 'center'}, optionViewContainer: {flex: 1}, dismissButton: object2, option: {flex: 1}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/AppLauncherCommandOption.tsx');
exports.default = AppLauncherCommandOption;
}
function AppLauncherCommandOption({option, onStartEditing, onEndEditing, onOptionValueChange, onPress, onPressAttachmentOption, onDismiss, onFocus, channel, autoFocusType, command, optionValues, hasError}) { // fn#89693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:521, offset: 0x0201a55c, size: 1933 bytes, params: 2, frame: 33
var r7;
var r10;
var r1;
var AppLauncherChannelOption;
var current;
var name;
var OPTIONAL_OPTION_ADDED;
var AppLauncherUserOption;
var AppLauncherRoleOption;
var AppLauncherBooleanOption;
var defaultImport7;
var defaultImport8;
var defaultImport9;
const styles = useStyles();
const type = option.type;
const ApplicationCommandOptionType = (ServerModule).ApplicationCommandOptionType;
const STRING = ApplicationCommandOptionType.STRING;
if (STRING === type) {
if (option.choices != null) {
defaultImport9 = importDefault(11701) /* metro dependency 11701: AppLauncherChoicesOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} option={option} initialValue={r10} onSelect={onSelect_89694} onOpenChoicesSheet={function() {
onPress();
onStartEditing(option);
}} onDismissChoicesSheet={onDismissChoicesSheet} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} key={name} />)(defaultImport9);
} else if (option.autocomplete) {
defaultImport8 = importDefault(11707) /* metro dependency 11707: AppLauncherAutocompleteOption */;
current = optionValues.current;
name = option.name;
r1 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} channel={channel} option={option} activeCommand={command} optionValues={optionValues} initialValue={r1} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} onSelect={onSelect_89697} onOpenAutocompleteSheet={onOpenAutocompleteSheet} onDismissAutocompleteSheet={onDismissAutocompleteSheet} hasError={hasError} key={name} />)(defaultImport8);
} else {
defaultImport7 = importDefault(11709) /* metro dependency 11709: AppLauncherTextInputOption */;
var defaultImport7Props = {style: styles.option, option: option, guildId: channel.guild_id};
current = optionValues.current;
name = option.name;
defaultImport7Props.initialValue = current[name]?.[0];
defaultImport7Props.onEndEditing = onEndEditing;
defaultImport7Props.onChangeText = onChangeText_89701;
defaultImport7Props.onFocus = onFocus;
defaultImport7Props.autoFocus = [AppLauncherOptionAutoFocusType.FIRST_REQUIRED_OPTION,
AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED].includes(autoFocusType);
defaultImport7Props.hasError = hasError;
defaultImport7Props.onPressIn = onPress;
name = option.name;
r7 = ((Component) => <Component {...defaultImport7Props} key={name} />)(defaultImport7);
}
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const INTEGER = ApplicationCommandOptionType.INTEGER;
if (INTEGER === type) {
if (option.choices != null) {
defaultImport9 = importDefault(11701) /* metro dependency 11701: AppLauncherChoicesOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} option={option} initialValue={r10} onSelect={onSelect_89694} onOpenChoicesSheet={function() {
onPress();
onStartEditing(option);
}} onDismissChoicesSheet={onDismissChoicesSheet} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} key={name} />)(defaultImport9);
} else if (option.autocomplete) {
defaultImport8 = importDefault(11707) /* metro dependency 11707: AppLauncherAutocompleteOption */;
current = optionValues.current;
name = option.name;
r1 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} channel={channel} option={option} activeCommand={command} optionValues={optionValues} initialValue={r1} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} onSelect={onSelect_89697} onOpenAutocompleteSheet={onOpenAutocompleteSheet} onDismissAutocompleteSheet={onDismissAutocompleteSheet} hasError={hasError} key={name} />)(defaultImport8);
} else {
defaultImport7 = importDefault(11709) /* metro dependency 11709: AppLauncherTextInputOption */;
var defaultImport7Props = {style: styles.option, option: option, guildId: channel.guild_id};
current = optionValues.current;
name = option.name;
defaultImport7Props.initialValue = current[name]?.[0];
defaultImport7Props.onEndEditing = onEndEditing;
defaultImport7Props.onChangeText = onChangeText_89701;
defaultImport7Props.onFocus = onFocus;
defaultImport7Props.autoFocus = [AppLauncherOptionAutoFocusType.FIRST_REQUIRED_OPTION,
AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED].includes(autoFocusType);
defaultImport7Props.hasError = hasError;
defaultImport7Props.onPressIn = onPress;
name = option.name;
r7 = ((Component) => <Component {...defaultImport7Props} key={name} />)(defaultImport7);
}
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const NUMBER = ApplicationCommandOptionType.NUMBER;
if (NUMBER === type) {
if (option.choices != null) {
defaultImport9 = importDefault(11701) /* metro dependency 11701: AppLauncherChoicesOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} option={option} initialValue={r10} onSelect={onSelect_89694} onOpenChoicesSheet={function() {
onPress();
onStartEditing(option);
}} onDismissChoicesSheet={onDismissChoicesSheet} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} key={name} />)(defaultImport9);
} else if (option.autocomplete) {
defaultImport8 = importDefault(11707) /* metro dependency 11707: AppLauncherAutocompleteOption */;
current = optionValues.current;
name = option.name;
r1 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} channel={channel} option={option} activeCommand={command} optionValues={optionValues} initialValue={r1} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} onSelect={onSelect_89697} onOpenAutocompleteSheet={onOpenAutocompleteSheet} onDismissAutocompleteSheet={onDismissAutocompleteSheet} hasError={hasError} key={name} />)(defaultImport8);
} else {
defaultImport7 = importDefault(11709) /* metro dependency 11709: AppLauncherTextInputOption */;
var defaultImport7Props = {style: styles.option, option: option, guildId: channel.guild_id};
current = optionValues.current;
name = option.name;
defaultImport7Props.initialValue = current[name]?.[0];
defaultImport7Props.onEndEditing = onEndEditing;
defaultImport7Props.onChangeText = onChangeText_89701;
defaultImport7Props.onFocus = onFocus;
defaultImport7Props.autoFocus = [AppLauncherOptionAutoFocusType.FIRST_REQUIRED_OPTION,
AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED].includes(autoFocusType);
defaultImport7Props.hasError = hasError;
defaultImport7Props.onPressIn = onPress;
name = option.name;
r7 = ((Component) => <Component {...defaultImport7Props} key={name} />)(defaultImport7);
}
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const ATTACHMENT = ApplicationCommandOptionType.ATTACHMENT;
if (ATTACHMENT === type) {
r7 = ((Component) => <Component style={styles.option} option={option} onSelectAttachment={function(a0) {
var onEndEditingBinding = onEndEditing;
var optionBinding = option;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, a0 != null ? [{type: 'text', text: a0}] : []);
}} channel={channel} autoFocus={autoFocusType === AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPressAttachmentOption} key={option.name} />)(importDefault(11712) /* metro dependency 11712: AppLauncherAttachmentOption */);
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const BOOLEAN = ApplicationCommandOptionType.BOOLEAN;
if (BOOLEAN === type) {
AppLauncherBooleanOption = importDefault(11714) /* metro dependency 11714: AppLauncherBooleanOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
name = option.name;
r7 = (
<AppLauncherBooleanOption
style={styles.option}
option={option}
initialValue={r10}
onPress={function(a0) {
onPress();
var onEndEditingBinding = onEndEditing;
var optionBinding = option;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: a0.toString()}]);
}}
hasError={hasError}
key={name}
/>
);
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const MENTIONABLE = ApplicationCommandOptionType.MENTIONABLE;
if (MENTIONABLE === type) {
r7 = ((Component) => <Component option={option} initialValue={optionValues.current[option.name]?.[0]} onMentionablePress={onMentionablePress} onActionSheetDismiss={function() {
return onEndEditing(option);
}} channel={channel} autoFocus={autoFocusType === AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPress} />)(importDefault(11715) /* metro dependency 11715: AppLauncherMentionableOption */);
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const ROLE = ApplicationCommandOptionType.ROLE;
if (ROLE === type) {
AppLauncherRoleOption = importDefault(11722) /* metro dependency 11722: AppLauncherRoleOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = (
<AppLauncherRoleOption
style={styles.option}
option={option}
initialValue={r10}
onRolePress={function({role}) {
onOptionValueChange(option, role == null ? [] : [{type: 'roleMention', roleId: role.id}]);
}}
onActionSheetDismiss={onActionSheetDismiss_89707}
channel={channel}
autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED}
hasError={hasError}
onPress={onPress}
key={name}
/>
);
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const USER = ApplicationCommandOptionType.USER;
if (USER === type) {
AppLauncherUserOption = importDefault(11723) /* metro dependency 11723: AppLauncherUserOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = (
<AppLauncherUserOption
style={styles.option}
option={option}
initialValue={r10}
onUserPress={function({user}) {
var r1;
var onOptionValueChangeBinding = onOptionValueChange;
var optionBinding = option;
if (user == null) {
r1 = [];
} else {
r1 = typeof user === 'string' ? user : user.id;
r1 = [{type: 'userMention', userId: r1}];
}
onOptionValueChangeBinding(optionBinding, r1);
}}
onActionSheetDismiss={onActionSheetDismiss_89709}
channel={channel}
autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED}
hasError={hasError}
onPress={onPress}
key={name}
/>
);
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
const CHANNEL = ApplicationCommandOptionType.CHANNEL;
if (CHANNEL === type) {
AppLauncherChannelOption = importDefault(11726) /* metro dependency 11726: AppLauncherChannelOption */;
current = optionValues.current;
name = option.name;
r7 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = (
<AppLauncherChannelOption
style={styles.option}
option={option}
initialValue={r7}
onChannelPress={function({channel}) {
onOptionValueChange(option, channel != null ? [{type: 'channelMention', channelId: channel.id}] : []);
}}
onActionSheetDismiss={onActionSheetDismiss}
channel={channel}
autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED}
hasError={hasError}
onPress={onPress}
key={name}
/>
);
return (
onDismiss == null
? r7
: (
<View style={styles.dismissableOptionWrapper}>
<View style={styles.optionViewContainer}>
{r7}
</View>
{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
</View>
)
);
}
return null;
function AppLauncherCommandOptionOnSelect(a0) { // fn#89694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1055, owner: AppLauncherCommandOption.onSelect, offset: 0x0201ace9, size: 85 bytes, params: 2, frame: 17
const onEndEditingBinding = onEndEditing;
const optionBinding = option;
const value2 = undefined;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: (a0 == null ? value2 : a0.displayName) ?? ''}]);
return value2;
}
function AppLauncherCommandOption({option, onStartEditing, onEndEditing, onOptionValueChange, onPress, onPressAttachmentOption, onDismiss, onFocus, channel, autoFocusType, command, optionValues, hasError}) { // fn#89693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:521, offset: 0x0201a55c, size: 1933 bytes, params: 2, frame: 33
var r7;
var r10;
var r1;
var AppLauncherChannelOption;
var current;
var name;
var OPTIONAL_OPTION_ADDED;
var AppLauncherUserOption;
var AppLauncherRoleOption;
var AppLauncherBooleanOption;
var defaultImport7;
var defaultImport8;
var defaultImport9;
const styles = useStyles();
const type = option.type;
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
const STRING = ApplicationCommandOptionType.STRING;
if (STRING === type) {
if (option.choices != null) {
defaultImport9 = importDefault(11701) /* metro dependency 11701: AppLauncherChoicesOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} option={option} initialValue={r10} onSelect={onSelect_89694} onOpenChoicesSheet={function() {
onPress();
onStartEditing(option);
}} onDismissChoicesSheet={onDismissChoicesSheet} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} key={name} />)(defaultImport9);
} else if (option.autocomplete) {
defaultImport8 = importDefault(11707) /* metro dependency 11707: AppLauncherAutocompleteOption */;
current = optionValues.current;
name = option.name;
r1 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} channel={channel} option={option} activeCommand={command} optionValues={optionValues} initialValue={r1} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} onSelect={onSelect} onOpenAutocompleteSheet={onOpenAutocompleteSheet} onDismissAutocompleteSheet={onDismissAutocompleteSheet} hasError={hasError} key={name} />)(defaultImport8);
} else {
defaultImport7 = importDefault(11709) /* metro dependency 11709: AppLauncherTextInputOption */;
var defaultImport7Props = {style: styles.option, option: option, guildId: channel.guild_id};
current = optionValues.current;
name = option.name;
defaultImport7Props.initialValue = current[name]?.[0];
defaultImport7Props.onEndEditing = onEndEditing;
defaultImport7Props.onChangeText = onChangeText;
defaultImport7Props.onFocus = onFocus;
defaultImport7Props.autoFocus = [AppLauncherOptionAutoFocusType.FIRST_REQUIRED_OPTION,
AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED].includes(autoFocusType);
defaultImport7Props.hasError = hasError;
defaultImport7Props.onPressIn = onPress;
name = option.name;
r7 = ((Component) => <Component {...defaultImport7Props} key={name} />)(defaultImport7);
}
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const INTEGER = ApplicationCommandOptionType.INTEGER;
if (INTEGER === type) {
if (option.choices != null) {
defaultImport9 = importDefault(11701) /* metro dependency 11701: AppLauncherChoicesOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} option={option} initialValue={r10} onSelect={onSelect_89694} onOpenChoicesSheet={function() {
onPress();
onStartEditing(option);
}} onDismissChoicesSheet={onDismissChoicesSheet} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} key={name} />)(defaultImport9);
} else if (option.autocomplete) {
defaultImport8 = importDefault(11707) /* metro dependency 11707: AppLauncherAutocompleteOption */;
current = optionValues.current;
name = option.name;
r1 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} channel={channel} option={option} activeCommand={command} optionValues={optionValues} initialValue={r1} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} onSelect={onSelect} onOpenAutocompleteSheet={onOpenAutocompleteSheet} onDismissAutocompleteSheet={onDismissAutocompleteSheet} hasError={hasError} key={name} />)(defaultImport8);
} else {
defaultImport7 = importDefault(11709) /* metro dependency 11709: AppLauncherTextInputOption */;
var defaultImport7Props = {style: styles.option, option: option, guildId: channel.guild_id};
current = optionValues.current;
name = option.name;
defaultImport7Props.initialValue = current[name]?.[0];
defaultImport7Props.onEndEditing = onEndEditing;
defaultImport7Props.onChangeText = onChangeText;
defaultImport7Props.onFocus = onFocus;
defaultImport7Props.autoFocus = [AppLauncherOptionAutoFocusType.FIRST_REQUIRED_OPTION,
AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED].includes(autoFocusType);
defaultImport7Props.hasError = hasError;
defaultImport7Props.onPressIn = onPress;
name = option.name;
r7 = ((Component) => <Component {...defaultImport7Props} key={name} />)(defaultImport7);
}
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const NUMBER = ApplicationCommandOptionType.NUMBER;
if (NUMBER === type) {
if (option.choices != null) {
defaultImport9 = importDefault(11701) /* metro dependency 11701: AppLauncherChoicesOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} option={option} initialValue={r10} onSelect={onSelect_89694} onOpenChoicesSheet={function() {
onPress();
onStartEditing(option);
}} onDismissChoicesSheet={onDismissChoicesSheet} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} key={name} />)(defaultImport9);
} else if (option.autocomplete) {
defaultImport8 = importDefault(11707) /* metro dependency 11707: AppLauncherAutocompleteOption */;
current = optionValues.current;
name = option.name;
r1 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = ((Component) => <Component style={styles.option} channel={channel} option={option} activeCommand={command} optionValues={optionValues} initialValue={r1} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} onSelect={onSelect} onOpenAutocompleteSheet={onOpenAutocompleteSheet} onDismissAutocompleteSheet={onDismissAutocompleteSheet} hasError={hasError} key={name} />)(defaultImport8);
} else {
defaultImport7 = importDefault(11709) /* metro dependency 11709: AppLauncherTextInputOption */;
var defaultImport7Props = {style: styles.option, option: option, guildId: channel.guild_id};
current = optionValues.current;
name = option.name;
defaultImport7Props.initialValue = current[name]?.[0];
defaultImport7Props.onEndEditing = onEndEditing;
defaultImport7Props.onChangeText = onChangeText;
defaultImport7Props.onFocus = onFocus;
defaultImport7Props.autoFocus = [AppLauncherOptionAutoFocusType.FIRST_REQUIRED_OPTION,
AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED].includes(autoFocusType);
defaultImport7Props.hasError = hasError;
defaultImport7Props.onPressIn = onPress;
name = option.name;
r7 = ((Component) => <Component {...defaultImport7Props} key={name} />)(defaultImport7);
}
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const ATTACHMENT = ApplicationCommandOptionType.ATTACHMENT;
if (ATTACHMENT === type) {
r7 = ((Component) => <Component style={styles.option} option={option} onSelectAttachment={function(a0) {
var onEndEditingBinding = onEndEditing;
var optionBinding = option;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, a0 != null ? [{type: 'text', text: a0}] : []);
}} channel={channel} autoFocus={autoFocusType === AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPressAttachmentOption} key={option.name} />)(importDefault(11712) /* metro dependency 11712: AppLauncherAttachmentOption */);
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const BOOLEAN = ApplicationCommandOptionType.BOOLEAN;
if (BOOLEAN === type) {
AppLauncherBooleanOption = importDefault(11714) /* metro dependency 11714: AppLauncherBooleanOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
name = option.name;
r7 = <AppLauncherBooleanOption style={styles.option} option={option} initialValue={r10} onPress={function(a0) {
onPress();
var onEndEditingBinding = onEndEditing;
var optionBinding = option;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: a0.toString()}]);
}} hasError={hasError} key={name} />;
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const MENTIONABLE = ApplicationCommandOptionType.MENTIONABLE;
if (MENTIONABLE === type) {
r7 = ((Component) => <Component option={option} initialValue={optionValues.current[option.name]?.[0]} onMentionablePress={onMentionablePress} onActionSheetDismiss={function() {
function onDismissChoicesSheet() { // fn#89696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1197, owner: AppLauncherCommandOption.onDismissChoicesSheet, offset: 0x02019d3f, size: 20 bytes, params: 1, frame: 11
return onEndEditing(option);
}} channel={channel} autoFocus={autoFocusType === AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPress} />)(importDefault(11715) /* metro dependency 11715: AppLauncherMentionableOption */);
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const ROLE = ApplicationCommandOptionType.ROLE;
if (ROLE === type) {
AppLauncherRoleOption = importDefault(11722) /* metro dependency 11722: AppLauncherRoleOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = <AppLauncherRoleOption style={styles.option} option={option} initialValue={r10} onRolePress={function({role}) {
onOptionValueChange(option, role == null ? [] : [{type: 'roleMention', roleId: role.id}]);
}} onActionSheetDismiss={onActionSheetDismiss_89707} channel={channel} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPress} key={name} />;
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const USER = ApplicationCommandOptionType.USER;
if (USER === type) {
AppLauncherUserOption = importDefault(11723) /* metro dependency 11723: AppLauncherUserOption */;
current = optionValues.current;
name = option.name;
r10 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = <AppLauncherUserOption style={styles.option} option={option} initialValue={r10} onUserPress={function({user}) {
var r1;
var onOptionValueChangeBinding = onOptionValueChange;
var optionBinding = option;
if (user == null) {
r1 = [];
}
function AppLauncherCommandOptionOnSelect_89697(a0) { // fn#89697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1472, owner: AppLauncherCommandOption.onSelect, offset: 0x0201ace9, size: 85 bytes, params: 2, frame: 17
const onEndEditingBinding = onEndEditing;
const optionBinding = option;
const value2 = undefined;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: (a0 == null ? value2 : a0.displayName) ?? ''}]);
return value2;
}
function onOpenAutocompleteSheet() { // fn#89698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1582, owner: AppLauncherCommandOption.onOpenAutocompleteSheet, offset: 0x0201ad3e, size: 28 bytes, params: 1, frame: 11
onPress();
onStartEditing(option);
}
function onDismissAutocompleteSheet() { // fn#89699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1624, owner: AppLauncherCommandOption.onDismissAutocompleteSheet, offset: 0x02019d3f, size: 20 bytes, params: 1, frame: 11
return onEndEditing(option);
}
function onEndEditing() { // fn#89700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1786, owner: AppLauncherCommandOption.onEndEditing, offset: 0x02019d3f, size: 20 bytes, params: 1, frame: 11
return onEndEditing(option);
}
function AppLauncherCommandOptionOnChangeText(a0) { // fn#89701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1808, owner: AppLauncherCommandOption.onChangeText, offset: 0x0201ad5a, size: 55 bytes, params: 2, frame: 14
const onStartEditingBinding = onStartEditing;
const optionBinding = option;
onStartEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: a0}]);
}
function onMentionablePress({mentionable}) { // fn#89704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:2586, owner: AppLauncherCommandOption.onMentionablePress, offset: 0x0201ae1f, size: 418 bytes, params: 2, frame: 16
var value;
var type;
const MentionableItemTypes = (AppLauncherMentionableListActionSheetModule).MentionableItemTypes;
var result;
var text;
if (mentionable != null) {
type = mentionable.type;
value = environment.__proto__;
if (MentionableItemTypes.USER === type) {
onOptionValueChange(option, [{type: 'userMention', userId: mentionable.result.user.id}]);
} else if (MentionableItemTypes.ROLE === type) {
onOptionValueChange(option, [{type: 'roleMention', roleId: mentionable.result.id}]);
} else if (MentionableItemTypes.GLOBAL === type) {
result = mentionable.result;
text = result.text;
value = importDefault(6589) /* metro dependency 6589: AutocompleteUtils */;
if (text === value.MENTION_EVERYONE().text) {
onOptionValueChange(option, [{'type': 'textMention', 'text': '@everyone'}]);
} else {
onOptionValueChange(option, [{type: 'text', text: result.text}]);
}
}
} else {
r1 = typeof user === 'string' ? user : user.id;
r1 = [{type: 'userMention', userId: r1}];
}
onOptionValueChangeBinding(optionBinding, r1);
}} onActionSheetDismiss={onActionSheetDismiss_89709} channel={channel} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPress} key={name} />;
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
const CHANNEL = ApplicationCommandOptionType.CHANNEL;
if (CHANNEL === type) {
AppLauncherChannelOption = importDefault(11726) /* metro dependency 11726: AppLauncherChannelOption */;
current = optionValues.current;
name = option.name;
r7 = current[name]?.[0];
OPTIONAL_OPTION_ADDED = AppLauncherOptionAutoFocusType.OPTIONAL_OPTION_ADDED;
name = option.name;
r7 = <AppLauncherChannelOption style={styles.option} option={option} initialValue={r7} onChannelPress={function({channel}) {
onOptionValueChange(option, channel != null ? [{type: 'channelMention', channelId: channel.id}] : []);
}} onActionSheetDismiss={onActionSheetDismiss} channel={channel} autoFocus={autoFocusType === OPTIONAL_OPTION_ADDED} hasError={hasError} onPress={onPress} key={name} />;
return onDismiss == null ? r7 : <View style={styles.dismissableOptionWrapper}><View style={styles.optionViewContainer}>{r7}</View>{((PressableOpacity) => <PressableOpacity style={styles.dismissButton} onPress={onPress_89712}>{((CircleXIcon) => <CircleXIcon size="md" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
}
return null;
}
function AppLauncherCommandOptionOnSelect(a0) { // fn#89694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1055, owner: AppLauncherCommandOption.onSelect, offset: 0x0201ace9, size: 85 bytes, params: 2, frame: 17
const onEndEditingBinding = onEndEditing;
const optionBinding = option;
const value2 = undefined;
onEndEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: (a0 == null ? value2 : a0.displayName) ?? ''}]);
return value2;
}
function AppLauncherCommandOptionOnChangeText(a0) { // fn#89701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:1808, owner: AppLauncherCommandOption.onChangeText, offset: 0x0201ad5a, size: 55 bytes, params: 2, frame: 14
const onStartEditingBinding = onStartEditing;
const optionBinding = option;
onStartEditingBinding(optionBinding);
onOptionValueChange(optionBinding, [{type: 'text', text: a0}]);
}
function onMentionablePress({mentionable}) { // fn#89704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:2586, owner: AppLauncherCommandOption.onMentionablePress, offset: 0x0201ae1f, size: 418 bytes, params: 2, frame: 16
var value;
var type;
const MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
var result;
var text;
if (mentionable != null) {
type = mentionable.type;
value = environment.__proto__;
if (MentionableItemTypes.USER === type) {
onOptionValueChange(option, [{type: 'userMention', userId: mentionable.result.user.id}]);
} else if (MentionableItemTypes.ROLE === type) {
onOptionValueChange(option, [{type: 'roleMention', roleId: mentionable.result.id}]);
} else if (MentionableItemTypes.GLOBAL === type) {
result = mentionable.result;
text = result.text;
value = importDefault(6589) /* metro dependency 6589: AutocompleteUtils */;
if (text === value.MENTION_EVERYONE().text) {
onOptionValueChange(option, [{'type': 'textMention', 'text': '@everyone'}]);
} else {
onOptionValueChange(option, [{type: 'text', text: result.text}]);
onOptionValueChange(option, []);
}
}
} else {
onOptionValueChange(option, []);
function AppLauncherCommandOptionOnActionSheetDismiss_89707() { // fn#89707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:3373, owner: AppLauncherCommandOption.onActionSheetDismiss, offset: 0x00d6a3a0, size: 20 bytes, params: 1, frame: 11
onEndEditing(option);
}
function AppLauncherCommandOptionOnActionSheetDismiss_89709() { // fn#89709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:3725, owner: AppLauncherCommandOption.onActionSheetDismiss, offset: 0x02019d3f, size: 20 bytes, params: 1, frame: 11
return onEndEditing(option);
}
function AppLauncherCommandOptionOnActionSheetDismiss_89711() { // fn#89711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:4069, owner: AppLauncherCommandOption.onActionSheetDismiss, offset: 0x00d6a3a0, size: 20 bytes, params: 1, frame: 11
onEndEditing(option);
}
function AppLauncherCommandOptionOnPress_89712() { // fn#89712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:4354, owner: AppLauncherCommandOption.onPress, offset: 0x0201b0a2, size: 20 bytes, params: 1, frame: 11
return onDismiss(option);
}
}
}
function AppLauncherCommandOptionOnPress_89712() { // fn#89712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11886:4354, owner: AppLauncherCommandOption.onPress, offset: 0x0201b0a2, size: 20 bytes, params: 1, frame: 11
return onDismiss(option);
}
global.__d(_fun89692, 11700, [31, 27, 1483, 33, 4501, 697, 1909, 11701, 11707, 11709, 11712, 11714, 11715, 11719,
6589, 11722, 11723, 11726, 5278, 6988,
2]) /* metro module 11700, dependencies: [31, 27, 1483, 33, 4501, 697, 1909, 11701, 11707, 11709, 11712, 11714, 11715, 11719, 6589, 11722, 11723, 11726, 5278, 6988, 2] */;
@@ -1,67 +1,83 @@
/* Metro module 11703; source: modules/app_launcher/native/options/AppLauncherCommandOptionActionSheet.tsx; dependencies: [31, 27, 1483, 33, 4501, 697, 6275, 6758, 6806, 4080, 1305, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as AppLauncherNativeConstantsModule from '../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BottomSheetTitleHeaderNativeModule from '../../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetCloseButtonNativeModule from '../../../../design/components/Sheet/native/ActionSheetCloseButton.native.tsx'; /* Metro dependency 6806 */
function _fun89730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11889:6, offset: 0x0201bd26, size: 308 bytes, params: 8, frame: 23
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 DEFAULT_CONTENT_PADDING = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).DEFAULT_CONTENT_PADDING;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
const env0_5 = Reflect.apply(createStyles, createStylesModule,
ReactModule;
const DEFAULT_CONTENT_PADDING = (AppLauncherNativeConstantsModule).DEFAULT_CONTENT_PADDING;
const createStyles = CreateStylesModule.createStyles;
const MOBILE_KEYBOARD_PANEL_BACKGROUND = (Native).colors.MOBILE_KEYBOARD_PANEL_BACKGROUND;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule,
[{actionSheetBackground: {backgroundColor: MOBILE_KEYBOARD_PANEL_BACKGROUND},
titleContainer: {backgroundColor: 'transparent'}, titleWrapper: {alignItems: 'center'},
subtitleWrapper: {'paddingHorizontal': 12, 'textAlign': 'center'},
contentContainer: {paddingHorizontal: DEFAULT_CONTENT_PADDING, paddingTop: DEFAULT_CONTENT_PADDING, flex: 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/AppLauncherCommandOptionActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/AppLauncherCommandOptionActionSheet.tsx');
exports.AppLauncherCommandOptionActionSheet = AppLauncherCommandOptionActionSheet;
}
function AppLauncherCommandOptionActionSheet(a0) { // fn#89731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11889:628, offset: 0x0201be5a, size: 431 bytes, params: 2, frame: 27
var environment;
const value = Object.create(environment);
const option = a0.option;
const children = a0.children;
const contentContainerStyles = a0.contentContainerStyles;
let scrollable = a0.scrollable;
scrollable = scrollable === undefined || scrollable;
let startExpanded = a0.startExpanded;
startExpanded = startExpanded === undefined || startExpanded;
let object2 = {'option': 0, 'children': 0, 'contentContainerStyles': 0, 'scrollable': 0, 'startExpanded': 0};
silentSetPrototypeOf(object2, null, undefined);
const value4 = copyDataProperties({}, a0, object2, value);
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const bottomSheetProps = {...value4};
bottomSheetProps['backgroundStyles'] = styles.actionSheetBackground;
bottomSheetProps['scrollable'] = scrollable;
bottomSheetProps['startExpanded'] = startExpanded;
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
object2 = {titleContainerStyle: styles.titleContainer, titleWrapperStyle: styles.titleWrapper,
subtitleStyle: styles.subtitleWrapper};
const ActionSheetCloseButton = (require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton;
object2.leading = <View style={{alignSelf: 'flex-start'}}><ActionSheetCloseButton onPress={onPress_89732} /></View>;
object2.title = option.displayName;
object2.subtitle = option.displayDescription;
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
object2.trailing = <Spacer size={24} />;
bottomSheetProps['header'] = <BottomSheetTitleHeader {...object2} />;
return (
<BottomSheet {...bottomSheetProps} key={option.name}>
<View style={[styles.contentContainer, contentContainerStyles]}>
{children}
function AppLauncherCommandOptionActionSheet(a0) { // fn#89731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11889:628, offset: 0x0201be5a, size: 431 bytes, params: 2, frame: 27
var environment;
const value = Object.create(environment);
const option = a0.option;
const children = a0.children;
const contentContainerStyles = a0.contentContainerStyles;
let scrollable = a0.scrollable;
scrollable = scrollable === undefined || scrollable;
let startExpanded = a0.startExpanded;
startExpanded = startExpanded === undefined || startExpanded;
let object = {'option': 0, 'children': 0, 'contentContainerStyles': 0, 'scrollable': 0, 'startExpanded': 0};
silentSetPrototypeOf(object, null, undefined);
const value4 = copyDataProperties({}, a0, object, value);
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const bottomSheetProps = {...value4};
bottomSheetProps['backgroundStyles'] = styles.actionSheetBackground;
bottomSheetProps['scrollable'] = scrollable;
bottomSheetProps['startExpanded'] = startExpanded;
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
object = {titleContainerStyle: styles.titleContainer, titleWrapperStyle: styles.titleWrapper,
subtitleStyle: styles.subtitleWrapper};
const ActionSheetCloseButton = (ActionSheetCloseButtonNativeModule).ActionSheetCloseButton;
object.leading = (
<View style={{alignSelf: 'flex-start'}}>
<ActionSheetCloseButton onPress={onPress_89732} />
</View>
</BottomSheet>
);
}
);
object.title = option.displayName;
object.subtitle = option.displayDescription;
const Spacer = (NativeModule).Spacer;
object.trailing = <Spacer size={24} />;
bottomSheetProps['header'] = <BottomSheetTitleHeader {...object} />;
return (
<BottomSheet {...bottomSheetProps} key={option.name}>
<View style={[styles.contentContainer, contentContainerStyles]}>
{children}
</View>
</BottomSheet>
);
function AppLauncherCommandOptionActionSheetOnPress() { // fn#89732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11889:1114, owner: AppLauncherCommandOptionActionSheet.onPress, offset: 0x0201c009, size: 70 bytes, params: 1, frame: 12
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
if (env0_0.onDismiss != null) {
env0_0.onDismiss();
}
}
function AppLauncherCommandOptionActionSheetOnPress() { // fn#89732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11889:1114, owner: AppLauncherCommandOptionActionSheet.onPress, offset: 0x0201c009, size: 70 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
if (env0_0.onDismiss != null) {
env0_0.onDismiss();
}
}
global.__d(_fun89730, 11703, [31, 27, 1483, 33, 4501, 697, 6275, 6758, 6806, 4080, 1305,
2]) /* metro module 11703, dependencies: [31, 27, 1483, 33, 4501, 697, 6275, 6758, 6806, 4080, 1305, 2] */;
@@ -1,84 +1,102 @@
/* Metro module 11712; source: modules/app_launcher/native/options/attachment/AppLauncherAttachmentOption.tsx; dependencies: [31, 27, 4645, 4644, 33, 4501, 697, 11143, 10968, 566, 7879, 11713, 4650, 11135, 2] */
import UploadAttachmentStore from '../../../../../stores/UploadAttachmentStore.tsx'; /* Metro dependency 4644 */
import UploadAttachmentActionCreators from '../../../../../actions/UploadAttachmentActionCreators.tsx'; /* Metro dependency 7879 */
import AttachmentPreview from '../../../../media/native/AttachmentPreview.tsx'; /* Metro dependency 11143 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as DraftStoreModule from '../../../../../stores/DraftStore.tsx'; /* Metro dependency 4645 */
import * as FileIconModule from '../../../../../design/components/Icon/native/redesign/generated/FileIcon.tsx'; /* Metro dependency 10968 */
function _fun89780(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:6, offset: 0x0201e21f, size: 355 bytes, params: 8, frame: 22
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
const uploadAttachmentStore = importDefault(4644) /* metro dependency 4644: UploadAttachmentStore */;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object5 = {'justifyContent': 'center', 'alignItems': 'center', 'backgroundColor': null, 'width': 32,
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'justifyContent': 'center', 'alignItems': 'center', 'backgroundColor': null, 'width': 32,
'height': 32};
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.lg;
object4.imageIconWrapper = object5;
const object6 = {'width': 32, 'height': 32};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object4.selectedImage = object6;
const env0_8 = Reflect.apply(createStyles, createStylesModule, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/attachment/AppLauncherAttachmentOption.tsx');
object2.backgroundColor = BACKGROUND_MOD_SUBTLE;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.imageIconWrapper = object2;
const object3 = {'width': 32, 'height': 32};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.selectedImage = object3;
const env0_8 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/attachment/AppLauncherAttachmentOption.tsx');
exports.default = AppLauncherAttachmentOption;
}
function AttachmentPreviewAppLauncher({uri, isImage, isVideo}) { // fn#89781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:421, offset: 0x0201e382, size: 162 bytes, params: 2, frame: 21
const styles = useStyles();
let selectedImage = styles.selectedImage;
const width = selectedImage.width;
const height = selectedImage.height;
const AttachmentPreview = importDefault(11143) /* metro dependency 11143: AttachmentPreview */;
selectedImage = styles.selectedImage;
const FileIcon = (require(10968) /* metro dependency 10968: FileIcon */).FileIcon;
return (
<AttachmentPreview
uri={uri}
isImage={isImage}
isVideo={isVideo}
width={width}
height={height}
style={selectedImage}
defaultPreview={<FileIcon size="sm" />}
/>
);
}
function AppLauncherAttachmentOption({option, channel, style, autoFocus, hasError, onPress, onSelectAttachment}) { // fn#89782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:792, offset: 0x0201e424, size: 517 bytes, params: 2, frame: 24
const styles = useStyles();
const upload = (require(566) /* metro dependency 566: flux */).useStateFromStores([UploadAttachmentStore],
function() {
return UploadAttachmentStore.getUpload(channel.id, option.name, DraftType.ApplicationLauncherCommand);
});
const binding = upload;
binding.useEffect(function() {
return _fun89785;
}, [channel.id, option.name]);
const env0_4 = binding.useRef(onSelectAttachment);
binding.useEffect(_fun89786);
binding.useEffect(_fun89787, [upload?.filename]);
return ((Component) => <Component style={style} hasError={hasError} option={option} selected={upload != null} selectedItemName={upload?.filename} leading={upload == null ? <View style={styles.imageIconWrapper}>{((ImageFileIcon) => <ImageFileIcon size="sm" color="interactive-text-default" />)((require(11135) /* metro dependency 11135: ImageFileIcon */).ImageFileIcon)}</View> : upload.item.platform === (require(4650) /* metro dependency 4650: Upload */).UploadPlatform.REACT_NATIVE ? <AttachmentPreviewAppLauncher uri={upload.item.uri} isImage={upload.isImage} isVideo={upload.isVideo} /> : <View style={styles.imageIconWrapper}>{((ImageFileIcon) => <ImageFileIcon size="sm" color="interactive-text-default" />)((require(11135) /* metro dependency 11135: ImageFileIcon */).ImageFileIcon)}</View>} onPress={onPress} autoFocus={autoFocus} />)(importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */);
}
function _fun89784() { // fn#89784, offset: 0x0201e65e, size: 11 bytes, params: 1, frame: 1
return function() {
return importDefault(dependencyMap[10]).remove(channel.id, option.name, DraftType.ApplicationLauncherCommand);
};
}
function _fun89787() { // fn#89787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:1183, offset: 0x0201e6b0, size: 73 bytes, params: 1, frame: 13
var binding;
const uploadBinding = upload;
const value2 = undefined;
if ((uploadBinding == null ? value2 : upload.filename) != null) {
if (env0_4.current != null) {
binding = env0_4;
binding.current(upload.filename);
}
function AttachmentPreviewAppLauncher({uri, isImage, isVideo}) { // fn#89781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:421, offset: 0x0201e382, size: 162 bytes, params: 2, frame: 21
const styles = useStyles();
let selectedImage = styles.selectedImage;
const width = selectedImage.width;
const height = selectedImage.height;
selectedImage = styles.selectedImage;
const FileIcon = (FileIconModule).FileIcon;
return (
<AttachmentPreview
uri={uri}
isImage={isImage}
isVideo={isVideo}
width={width}
height={height}
style={selectedImage}
defaultPreview={<FileIcon size="sm" />}
/>
);
}
return value2;
function AppLauncherAttachmentOption({option, channel, style, autoFocus, hasError, onPress, onSelectAttachment}) { // fn#89782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:792, offset: 0x0201e424, size: 517 bytes, params: 2, frame: 24
const styles = useStyles();
const upload = (require(566) /* metro dependency 566: flux */).useStateFromStores([UploadAttachmentStore],
function() {
return UploadAttachmentStore.getUpload(channel.id, option.name, DraftType.ApplicationLauncherCommand);
});
const binding = upload;
binding.useEffect(function() {
return _fun89785;
}, [channel.id, option.name]);
const env0_4 = binding.useRef(onSelectAttachment);
binding.useEffect(_fun89786);
binding.useEffect(_fun89787, [upload?.filename]);
return ((Component) => <Component style={style} hasError={hasError} option={option} selected={upload != null} selectedItemName={upload?.filename} leading={upload == null ? <View style={styles.imageIconWrapper}>{((ImageFileIcon) => <ImageFileIcon size="sm" color="interactive-text-default" />)((require(11135) /* metro dependency 11135: ImageFileIcon */).ImageFileIcon)}</View> : upload.item.platform === (require(4650) /* metro dependency 4650: Upload */).UploadPlatform.REACT_NATIVE ? <AttachmentPreviewAppLauncher uri={upload.item.uri} isImage={upload.isImage} isVideo={upload.isVideo} /> : <View style={styles.imageIconWrapper}>{((ImageFileIcon) => <ImageFileIcon size="sm" color="interactive-text-default" />)((require(11135) /* metro dependency 11135: ImageFileIcon */).ImageFileIcon)}</View>} onPress={onPress} autoFocus={autoFocus} />)(importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */);
function _fun89784() { // fn#89784, offset: 0x0201e65e, size: 11 bytes, params: 1, frame: 1
return function() {
return importDefault(dependencyMap[10]).remove(channel.id, option.name, DraftType.ApplicationLauncherCommand);
};
function _fun89785() { // fn#89785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:1034, offset: 0x0201e669, size: 71 bytes, params: 1, frame: 15
const defaultImport = UploadAttachmentActionCreators;
const remove = defaultImport.remove;
const id = channel.id;
const name = option.name;
const ApplicationLauncherCommand = DraftType.ApplicationLauncherCommand;
return Reflect.apply(remove, defaultImport, [id, name, ApplicationLauncherCommand]);
}
}
function _fun89786() { // fn#89786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:1150, offset: 0x0106353d, size: 21 bytes, params: 1, frame: 2
env0_4.current = onSelectAttachment;
}
function _fun89787() { // fn#89787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11898:1183, offset: 0x0201e6b0, size: 73 bytes, params: 1, frame: 13
var binding;
const uploadBinding = upload;
const value2 = undefined;
if ((uploadBinding == null ? value2 : upload.filename) != null) {
if (env0_4.current != null) {
binding = env0_4;
binding.current(upload.filename);
}
}
return value2;
}
}
}
global.__d(_fun89780, 11712, [31, 27, 4645, 4644, 33, 4501, 697, 11143, 10968, 566, 7879, 11713, 4650, 11135,
2]) /* metro module 11712, dependencies: [31, 27, 4645, 4644, 33, 4501, 697, 11143, 10968, 566, 7879, 11713, 4650, 11135, 2] */;
@@ -1,280 +1,330 @@
/* Metro module 11708; source: modules/app_launcher/native/options/autocomplete/AppLauncherAutocompleteActionSheet.tsx; dependencies: [57, 31, 27, 7167, 1867, 661, 5066, 33, 22, 8050, 4501, 697, 632, 4080, 11703, 11704, 1244, 44, 6238, 4242, 4573, 1305, 11705, 2] */
import Module00044 from '../../../../../by-id/module-00044.js'; /* Metro dependency 44 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildStore from '../../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ApplicationCommandAutocompleteStore from '../../../../application_commands/ApplicationCommandAutocompleteStore.tsx'; /* Metro dependency 7167 */
import ExecuteCommand from '../../../../application_commands/executeCommand.tsx'; /* Metro dependency 8050 */
import Module11705 from '../../../../../by-id/module-11705.js'; /* Metro dependency 11705 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseStateFromStoresModule from '../../../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as Module04242Module from '../../../../../by-id/module-04242.js'; /* Metro dependency 4242 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ApplicationCommandConstantsModule from '../../../../application_commands/ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
import * as TableRowNativeModule from '../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as AppLauncherCommandOptionActionSheetModule from '../AppLauncherCommandOptionActionSheet.tsx'; /* Metro dependency 11703 */
function _fun89747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:6, offset: 0x0201c96d, size: 475 bytes, params: 8, frame: 22
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 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const applicationCommandAutocompleteStore = importDefault(7167) /* metro dependency 7167: ApplicationCommandAutocompleteStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_8 = (require(661) /* metro dependency 661: Constants */).AutoCompleteResultTypes;
const AUTOCOMPLETE_OPTION_DEBOUNCE_TIME = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).AUTOCOMPLETE_OPTION_DEBOUNCE_TIME;
let value = require(33) /* metro dependency 33 */;
const AUTOCOMPLETE_OPTION_DEBOUNCE_TIME = (ApplicationCommandConstantsModule).AUTOCOMPLETE_OPTION_DEBOUNCE_TIME;
let value = JsxRuntimeModule;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = importDefault(22) /* metro dependency 22 */;
const env0_11 = value.debounce(importDefault(8050) /* metro dependency 8050: executeCommand */,
const env0_11 = value.debounce(ExecuteCommand,
AUTOCOMPLETE_OPTION_DEBOUNCE_TIME, {'leading': true, 'trailing': true});
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const object2 = {};
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object.backgroundColor = BACKGROUND_MOD_MUTED;
object.height = 16;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.alignSelf = 'flex-start';
object2.backgroundColor = BACKGROUND_MOD_MUTED;
object2.height = 16;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.alignSelf = 'flex-start';
const env0_12 = Reflect.apply(createStyles, value, [{commandChoiceLoadingContainer: {'flex': 1,
'justifyContent': 'center'}, commandChoiceLoadingItem: object, emptyState: {backgroundColor: 'transparent'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/autocomplete/AppLauncherAutocompleteActionSheet.tsx');
'justifyContent': 'center'}, commandChoiceLoadingItem: object2, emptyState: {backgroundColor: 'transparent'}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/autocomplete/AppLauncherAutocompleteActionSheet.tsx');
exports.default = AppLauncherAutocompleteActionSheet;
}
function Item({item, index, choices, onChoiceSelect}) { // fn#89748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:588, offset: 0x0201cb48, size: 352 bytes, params: 2, frame: 17
let env0_4 = undefined;
const defaultImport = importDefault(44) /* metro dependency 44 */;
const type = item.type;
let CHOICE = AutoCompleteResultTypes.CHOICE;
let r2 = type === CHOICE || item.type === AutoCompleteResultTypes.CHOICE_LOADING;
r2 = !r2 ? item.type === AutoCompleteResultTypes.LABEL : r2;
defaultImport(r2, 'Invalid autocomplete result type');
const env0_3 = useStyles();
env0_4 = env0_4.useMemo(function() {
var Math = global.Math;
return 100 * Math.random() + 50;
}, []);
const value5 = (require(4242) /* metro dependency 4242 */).match(item);
CHOICE = AutoCompleteResultTypes.CHOICE;
const value6 = value5.with({type: CHOICE}, _fun89751);
const LABEL = AutoCompleteResultTypes.LABEL;
const value7 = value6.with({type: LABEL}, _fun89753);
const CHOICE_LOADING = AutoCompleteResultTypes.CHOICE_LOADING;
return value7.with({type: CHOICE_LOADING}, _fun89755).exhaustive();
}
function AutocompleteFailedEmptyState() { // fn#89756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1610, offset: 0x0201cf40, size: 151 bytes, params: 1, frame: 18
const styles = useStyles();
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
const emptyStateProps2 = {style: styles.emptyState, lightSource: importDefault(11705) /* metro dependency 11705 */,
darkSource: importDefault(11705) /* metro dependency 11705 */};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
emptyStateProps2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rTAbPn);
return <EmptyState {...emptyStateProps2} />;
}
function AppLauncherAutocompleteActionSheet({option, initChoice, onChoiceSelect, onDismissAutocompleteSheet, channel, activeCommand, optionValues}) { // fn#89757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1930, offset: 0x0201cfd7, size: 763 bytes, params: 2, frame: 32
const env0_3 = activeCommand;
const env0_4 = optionValues;
const binding = env0_4;
const useState = binding.useState;
const value5 = env0_3(Reflect.apply(useState, binding, [initChoice?.name ?? '']), 2);
const property = value5[0];
const property2 = value5[1];
const value6 = env0_4.useRef(null);
const {autocompleteResults,
lastErrored} = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([ApplicationCommandAutocompleteStore],
_fun89758, [channel.id, option.name, property]);
const value8 = env0_4.useMemo(_fun89759, [property, autocompleteResults, lastErrored]);
let r7 = value8.length === 0 && !lastErrored;
env0_4.useEffect(_fun89761, [channel, option.name, activeCommand, optionValues, property]);
const value11 = env0_4.useCallback(_fun89762, [onChoiceSelect, value8]);
const value12 = env0_4.useCallback(_fun89763, [onChoiceSelect, property]);
const AppLauncherCommandOptionActionSheet = (require(11703) /* metro dependency 11703: AppLauncherCommandOptionActionSheet */).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Wuie9L = (require(1244) /* metro dependency 1244: indexNative */).t.Wuie9L;
const items2 = [<AppLauncherListSearchBar placeholder={Reflect.apply(string, intl,
[Wuie9L])} onChange={property2} autoFocus returnKeyType="done" onSubmitEditing={value12} />];
r7 = r7 && ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState);
items2[1] = r7;
const AppLauncherList = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList;
items2[2] = <AppLauncherList ref={value6} keyExtractor={keyExtractor_89764} data={value8} renderItem={value11} scrollEnabled />;
items2[3] = lastErrored && <AutocompleteFailedEmptyState />;
return (
<AppLauncherCommandOptionActionSheet option={option} onDismiss={onDismissAutocompleteSheet}>
{items2}
</AppLauncherCommandOptionActionSheet>
);
}
function ItemListItem({label, onPress}) { // fn#89750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:817, owner: Item.ListItem, offset: 0x0201ccca, size: 107 bytes, params: 2, frame: 16
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const indexBinding = index;
return (
<TableRow
label={label}
onPress={onPress}
start={indexBinding === 0}
end={indexBinding === choices.length - 1}
/>
);
}
function _fun89751(a0) { // fn#89751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:959, offset: 0x0201cd35, size: 110 bytes, params: 2, frame: 17
const env0_0 = a0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<ItemListItem
label={<Text lineClamp={1} variant="text-md/normal" color="mobile-text-heading-primary">{a0.choice.displayName}</Text>}
onPress={onPress_89752}
/>
);
}
function _fun89753(a0) { // fn#89753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1189, offset: 0x0201cded, size: 130 bytes, params: 2, frame: 19
const env0_0 = a0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<ItemListItem
label={<Text lineClamp={1} variant="text-md/normal" color="mobile-text-heading-primary">{'"'}{a0.label}{'"'}</Text>}
onPress={onPress_89754}
/>
);
}
function _fun89755() { // fn#89755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1465, offset: 0x0201ced0, size: 112 bytes, params: 1, frame: 20
return (
<ItemListItem
label={<View style={styles.commandChoiceLoadingContainer}><View style={[styles.commandChoiceLoadingItem,
{width: env0_4}]} /></View>}
/>
);
}
function _fun89758() { // fn#89758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2224, offset: 0x0201d2d2, size: 77 bytes, params: 1, frame: 17
const getAutocompleteChoices = ApplicationCommandAutocompleteStore.getAutocompleteChoices;
const channelBinding = channel;
const getLastErrored = ApplicationCommandAutocompleteStore.getLastErrored;
return {autocompleteResults: Reflect.apply(getAutocompleteChoices, ApplicationCommandAutocompleteStore,
[channelBinding.id, option.name, env0_5]), lastErrored: Reflect.apply(getLastErrored,
ApplicationCommandAutocompleteStore, [channelBinding.id])};
}
function _fun89759() { // fn#89759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2398, offset: 0x0201d31f, size: 231 bytes, params: 1, frame: 18
var environment;
var push;
var value2;
var array;
var fill;
var value3;
var CHOICE_LOADING;
var items2;
var items3;
const items4 = [];
var value;
if (env0_5 !== '') {
push = items4.push;
value2 = environment.__proto__;
Reflect.apply(push, items4, [{type: AutoCompleteResultTypes.LABEL, label: env0_5}]);
}
if (autocompleteResults != null) {
if (autocompleteResults != null) {
push = items4.push;
value = autocompleteResults.map(function(a0) {
return {type: AutoCompleteResultTypes.CHOICE, choice: a0};
});
items3 = [];
arraySpread(items3, value, 0, undefined);
apply(push, items3, items4, undefined);
function Item_89748({item, index, choices, onChoiceSelect}) { // fn#89748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:588, offset: 0x0201cb48, size: 352 bytes, params: 2, frame: 17
let env0_4 = undefined;
const defaultImport = Module00044;
const type = item.type;
let CHOICE = AutoCompleteResultTypes.CHOICE;
let r2 = type === CHOICE || item.type === AutoCompleteResultTypes.CHOICE_LOADING;
r2 = !r2 ? item.type === AutoCompleteResultTypes.LABEL : r2;
defaultImport(r2, 'Invalid autocomplete result type');
const env0_3 = useStyles();
env0_4 = env0_4.useMemo(function() {
var Math = global.Math;
return 100 * Math.random() + 50;
}, []);
const value5 = (Module04242Module).match(item);
CHOICE = AutoCompleteResultTypes.CHOICE;
const value6 = value5.with({type: CHOICE}, _fun89751);
const LABEL = AutoCompleteResultTypes.LABEL;
const value7 = value6.with({type: LABEL}, _fun89753);
const CHOICE_LOADING = AutoCompleteResultTypes.CHOICE_LOADING;
return value7.with({type: CHOICE_LOADING}, _fun89755).exhaustive();
function ListItem({label, onPress}) { // fn#89750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:817, owner: Item_89748.ListItem, offset: 0x0201ccca, size: 107 bytes, params: 2, frame: 16
const TableRow = (TableRowNativeModule).TableRow;
const indexBinding = index;
return (
<TableRow
label={label}
onPress={onPress}
start={indexBinding === 0}
end={indexBinding === choices.length - 1}
/>
);
}
} else if (lastErrored) {
if (autocompleteResults != null) {
push = items4.push;
value = autocompleteResults.map(_fun89760);
items3 = [];
arraySpread(items3, value, 0, undefined);
apply(push, items3, items4, undefined);
function _fun89751(a0) { // fn#89751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:959, offset: 0x0201cd35, size: 110 bytes, params: 2, frame: 17
const env0_0 = a0;
const Text = (TextModule).Text;
return (
<ListItem
label={<Text
lineClamp={1}
variant="text-md/normal"
color="mobile-text-heading-primary"
>
{a0.choice.displayName}
</Text>}
onPress={onPress_89752}
/>
);
function onPress_89752() { // fn#89752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1110, offset: 0x0201cda3, size: 74 bytes, params: 1, frame: 11
let value = environment.__proto__;
if (onChoiceSelect != null) {
onChoiceSelect(env0_0.choice);
}
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
}
} else {
push = items4.push;
array = new global.Array(4);
fill = array.fill;
value3 = environment.__proto__;
CHOICE_LOADING = AutoCompleteResultTypes.CHOICE_LOADING;
array = Reflect.apply(fill, array, [{type: CHOICE_LOADING}]);
items2 = [];
arraySpread(items2, array, 0, CHOICE_LOADING);
apply(push, items2, items4, CHOICE_LOADING);
}
return items4;
}
function _fun89761() { // fn#89761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2626, offset: 0x0201d423, size: 142 bytes, params: 1, frame: 14
const getGuild = GuildStore.getGuild;
const channelBinding = channel;
env1_11({command: activeCommand, optionValues: optionValues, context: {channel: channelBinding,
guild: Reflect.apply(getGuild, GuildStore, [channelBinding.guild_id]), autocomplete: {name: option.name,
query: env0_5}}});
const current = env0_6.current;
if (current != null) {
current.scrollToOffset({'offset': 0, 'animated': false});
}
}
function _fun89753(a0) { // fn#89753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1189, offset: 0x0201cded, size: 130 bytes, params: 2, frame: 19
const env0_0 = a0;
const Text = (TextModule).Text;
return (
<ListItem
label={<Text
lineClamp={1}
variant="text-md/normal"
color="mobile-text-heading-primary"
>
{'"'}
{a0.label}
{'"'}
</Text>}
onPress={onPress_89754}
/>
);
function onPress_89754() { // fn#89754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1337, offset: 0x0201ce6f, size: 97 bytes, params: 1, frame: 12
var object;
var binding;
var label;
let value = environment.__proto__;
let onChoiceSelectBinding = onChoiceSelect;
if (onChoiceSelectBinding != null) {
onChoiceSelectBinding = onChoiceSelect;
object = {};
binding = env0_0;
label = binding.label;
object.name = label;
label = binding.label;
object.value = label;
label = binding.label;
object.displayName = label;
onChoiceSelectBinding(object);
}
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function _fun89762({item, index}) { // fn#89762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2858, offset: 0x0201d4b1, size: 65 bytes, params: 2, frame: 14
return (
<Item
item={item}
index={index}
onChoiceSelect={onChoiceSelect}
choices={env0_9}
/>
);
}
function _fun89763() { // fn#89763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2955, offset: 0x0201d4f2, size: 101 bytes, params: 1, frame: 12
var value;
if (env0_5 !== '') {
if (onChoiceSelect != null) {
onChoiceSelect({name: env0_5, value: env0_5, displayName: env0_5});
}
value = environment.__proto__;
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
value.hideActionSheet();
function _fun89755() { // fn#89755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1465, offset: 0x0201ced0, size: 112 bytes, params: 1, frame: 20
return (
<ListItem
label={<View style={styles.commandChoiceLoadingContainer}>
<View style={[styles.commandChoiceLoadingItem, {width: env0_4}]} />
</View>}
/>
);
}
}
}
function AppLauncherAutocompleteActionSheetKeyExtractor(a0, a1) { // fn#89764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:3380, owner: AppLauncherAutocompleteActionSheet.keyExtractor, offset: 0x0201d557, size: 73 bytes, params: 3, frame: 15
const type = a0.type;
const value = environment.__proto__;
const CHOICE = AutoCompleteResultTypes.CHOICE;
return '' + (type !== CHOICE ? 'placeholder' : a0.choice.name) + '_' + a1;
}
function onPress_89752() { // fn#89752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1110, offset: 0x0201cda3, size: 74 bytes, params: 1, frame: 11
let value = environment.__proto__;
if (onChoiceSelect != null) {
onChoiceSelect(env0_0.choice);
function AutocompleteFailedEmptyState() { // fn#89756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1610, offset: 0x0201cf40, size: 151 bytes, params: 1, frame: 18
const styles = useStyles();
const EmptyState = (NativeModule).EmptyState;
const emptyStateProps2 = {style: styles.emptyState, lightSource: Module11705,
darkSource: Module11705};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
emptyStateProps2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rTAbPn);
return <EmptyState {...emptyStateProps2} />;
}
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function onPress_89754() { // fn#89754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1337, offset: 0x0201ce6f, size: 97 bytes, params: 1, frame: 12
var object2;
var binding;
var label;
let value = environment.__proto__;
let onChoiceSelectBinding = onChoiceSelect;
if (onChoiceSelectBinding != null) {
onChoiceSelectBinding = onChoiceSelect;
object2 = {};
binding = env0_0;
label = binding.label;
object2.name = label;
label = binding.label;
object2.value = label;
label = binding.label;
object2.displayName = label;
onChoiceSelectBinding(object2);
function AppLauncherAutocompleteActionSheet({option, initChoice, onChoiceSelect, onDismissAutocompleteSheet, channel, activeCommand, optionValues}) { // fn#89757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:1930, offset: 0x0201cfd7, size: 763 bytes, params: 2, frame: 32
const activeCommand2 = activeCommand;
const optionValues2 = optionValues;
const binding = optionValues2;
const useState = binding.useState;
const value5 = activeCommand2(Reflect.apply(useState, binding, [initChoice?.name ?? '']), 2);
const property = value5[0];
const property2 = value5[1];
const value6 = optionValues2.useRef(null);
const {autocompleteResults,
lastErrored} = (UseStateFromStoresModule).useStateFromStoresObject([ApplicationCommandAutocompleteStore],
_fun89758, [channel.id, option.name, property]);
const value8 = optionValues2.useMemo(_fun89759, [property, autocompleteResults, lastErrored]);
let r7 = value8.length === 0 && !lastErrored;
optionValues2.useEffect(_fun89761, [channel, option.name, activeCommand, optionValues, property]);
const value11 = optionValues2.useCallback(_fun89762, [onChoiceSelect, value8]);
const value12 = optionValues2.useCallback(_fun89763, [onChoiceSelect, property]);
const AppLauncherCommandOptionActionSheet = (AppLauncherCommandOptionActionSheetModule).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Wuie9L = (IndexNativeModule).t.Wuie9L;
const items2 = [
<AppLauncherListSearchBar
placeholder={Reflect.apply(string, intl, [Wuie9L])}
onChange={property2}
autoFocus
returnKeyType="done"
onSubmitEditing={value12}
/>,
];
r7 = r7 && ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState);
items2[1] = r7;
const AppLauncherList = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList;
items2[2] = (
<AppLauncherList
ref={value6}
keyExtractor={keyExtractor_89764}
data={value8}
renderItem={value11}
scrollEnabled
/>
);
items2[3] = lastErrored && <AutocompleteFailedEmptyState />;
return (
<AppLauncherCommandOptionActionSheet option={option} onDismiss={onDismissAutocompleteSheet}>
{items2}
</AppLauncherCommandOptionActionSheet>
);
function _fun89758() { // fn#89758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2224, offset: 0x0201d2d2, size: 77 bytes, params: 1, frame: 17
const applicationCommandAutocompleteStoreBinding = ApplicationCommandAutocompleteStore;
const getAutocompleteChoices = applicationCommandAutocompleteStoreBinding.getAutocompleteChoices;
const channelBinding = channel;
const getLastErrored = applicationCommandAutocompleteStoreBinding.getLastErrored;
return {autocompleteResults: Reflect.apply(getAutocompleteChoices, applicationCommandAutocompleteStoreBinding,
[channelBinding.id, option.name, ReactNativeModule.View]), lastErrored: Reflect.apply(getLastErrored,
applicationCommandAutocompleteStoreBinding, [channelBinding.id])};
}
function _fun89759() { // fn#89759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2398, offset: 0x0201d31f, size: 231 bytes, params: 1, frame: 18
var environment;
var push;
var value2;
var array;
var fill;
var value3;
var CHOICE_LOADING;
var items2;
var items3;
const items4 = [];
var value;
if (ReactNativeModule.View !== '') {
push = items4.push;
value2 = environment.__proto__;
Reflect.apply(push, items4, [{type: AutoCompleteResultTypes.LABEL, label: ReactNativeModule.View}]);
}
if (autocompleteResults != null) {
if (autocompleteResults != null) {
push = items4.push;
value = autocompleteResults.map(function(a0) {
return {type: AutoCompleteResultTypes.CHOICE, choice: a0};
});
items3 = [];
arraySpread(items3, value, 0, undefined);
apply(push, items3, items4, undefined);
}
} else if (lastErrored) {
if (autocompleteResults != null) {
push = items4.push;
value = autocompleteResults.map(_fun89760);
items3 = [];
arraySpread(items3, value, 0, undefined);
apply(push, items3, items4, undefined);
}
} else {
push = items4.push;
array = new global.Array(4);
fill = array.fill;
value3 = environment.__proto__;
CHOICE_LOADING = AutoCompleteResultTypes.CHOICE_LOADING;
array = Reflect.apply(fill, array, [{type: CHOICE_LOADING}]);
items2 = [];
arraySpread(items2, array, 0, CHOICE_LOADING);
apply(push, items2, items4, CHOICE_LOADING);
}
return items4;
function _fun89760(a0) { // fn#89760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2494, offset: 0x0201d406, size: 29 bytes, params: 2, frame: 2
const CHOICE = AutoCompleteResultTypes.CHOICE;
return {type: CHOICE, choice: a0};
}
}
function _fun89761() { // fn#89761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2626, offset: 0x0201d423, size: 142 bytes, params: 1, frame: 14
const guildStoreBinding = GuildStore;
const getGuild = guildStoreBinding.getGuild;
const channelBinding = channel;
env1_11({command: activeCommand, optionValues: optionValues, context: {channel: channelBinding,
guild: Reflect.apply(getGuild, guildStoreBinding, [channelBinding.guild_id]), autocomplete: {name: option.name,
query: ReactNativeModule.View}}});
const current = env0_6.current;
if (current != null) {
current.scrollToOffset({'offset': 0, 'animated': false});
}
}
function _fun89762({item, index}) { // fn#89762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2858, offset: 0x0201d4b1, size: 65 bytes, params: 2, frame: 14
return (
<Item_89748
item={item}
index={index}
onChoiceSelect={onChoiceSelect}
choices={env0_9}
/>
);
}
function _fun89763() { // fn#89763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2955, offset: 0x0201d4f2, size: 101 bytes, params: 1, frame: 12
var value;
if (ReactNativeModule.View !== '') {
if (onChoiceSelect != null) {
onChoiceSelect({name: ReactNativeModule.View, value: ReactNativeModule.View, displayName: ReactNativeModule.View});
}
value = environment.__proto__;
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
value.hideActionSheet();
}
}
function AppLauncherAutocompleteActionSheetKeyExtractor(a0, a1) { // fn#89764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:3380, owner: AppLauncherAutocompleteActionSheet.keyExtractor, offset: 0x0201d557, size: 73 bytes, params: 3, frame: 15
const type = a0.type;
const value = environment.__proto__;
const CHOICE = AutoCompleteResultTypes.CHOICE;
return '' + (type !== CHOICE ? 'placeholder' : a0.choice.name) + '_' + a1;
}
}
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function _fun89760(a0) { // fn#89760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11894:2494, offset: 0x0201d406, size: 29 bytes, params: 2, frame: 2
const CHOICE = AutoCompleteResultTypes.CHOICE;
return {type: CHOICE, choice: a0};
}
global.__d(_fun89747, 11708, [57, 31, 27, 7167, 1867, 661, 5066, 33, 22, 8050, 4501, 697, 632, 4080, 11703, 11704,
1244, 44, 6238, 4242, 4573, 1305, 11705,
2]) /* metro module 11708, dependencies: [57, 31, 27, 7167, 1867, 661, 5066, 33, 22, 8050, 4501, 697, 632, 4080, 11703, 11704, 1244, 44, 6238, 4242, 4573, 1305, 11705, 2] */;
@@ -1,82 +1,89 @@
/* Metro module 11707; source: modules/app_launcher/native/options/autocomplete/AppLauncherAutocompleteOption.tsx; dependencies: [57, 31, 661, 33, 4501, 697, 1848, 4080, 11708, 1962, 11706, 5278, 4573, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as UseAnimationDelayedAutoFocusModule from '../../hooks/useAnimationDelayedAutoFocus.tsx'; /* Metro dependency 11706 */
function _fun89742(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:6, offset: 0x0201c557, size: 370 bytes, params: 8, frame: 24
var object3;
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 */;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object5 = {'width': '100%', 'backgroundColor': null, 'borderRadius': null, 'padding': 12, 'borderWidth': 2,
const Fonts = (ConstantsModule).Fonts;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'width': '100%', 'backgroundColor': null, 'borderRadius': null, 'padding': 12, 'borderWidth': 2,
'borderColor': 'transparent', 'flexDirection': 'row', 'alignItems': 'center'};
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
object5.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.container = object5;
object2.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.container = object2;
const BORDER_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_FEEDBACK_CRITICAL;
object3.hasError = {borderColor: BORDER_FEEDBACK_CRITICAL, padding: 12};
const object6 = {'fontSize': 16, 'alignSelf': 'center'};
object.hasError = {borderColor: BORDER_FEEDBACK_CRITICAL, padding: 12};
const object4 = {'fontSize': 16, 'alignSelf': 'center'};
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
object6.fontFamily = PRIMARY_MEDIUM;
object4.fontFamily = PRIMARY_MEDIUM;
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object6.color = TEXT_DEFAULT;
object3.inputText = object6;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/autocomplete/AppLauncherAutocompleteOption.tsx');
object4.color = TEXT_DEFAULT;
object.inputText = object4;
const env0_6 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/autocomplete/AppLauncherAutocompleteOption.tsx');
exports.default = AppLauncherAutocompleteOption;
}
function AppLauncherAutocompleteOption({style, option, onSelect, onOpenAutocompleteSheet, onDismissAutocompleteSheet, channel, activeCommand, optionValues, initialValue, autoFocus, hasError}) { // fn#89743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:680, offset: 0x0201c6c9, size: 363 bytes, params: 2, frame: 21
const [property, env0_9] = onDismissAutocompleteSheet(channel.useState(function() {
if (initialValue != null) {
if (initialValue.type !== 'text') {
return undefined;
}
initialValueBinding = initialValue;
if (initialValueBinding.text !== '') {
function AppLauncherAutocompleteOption({style, option, onSelect, onOpenAutocompleteSheet, onDismissAutocompleteSheet, channel, activeCommand, optionValues, initialValue, autoFocus, hasError}) { // fn#89743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:680, offset: 0x0201c6c9, size: 363 bytes, params: 2, frame: 21
const [property, env0_9] = onDismissAutocompleteSheet(channel.useState(function() {
if (initialValue != null) {
if (initialValue.type !== 'text') {
return undefined;
}
initialValueBinding = initialValue;
return {displayName: initialValueBinding.text, name: initialValueBinding.text,
value: initialValueBinding.text};
if (initialValueBinding.text !== '') {
initialValueBinding = initialValue;
return {displayName: initialValueBinding.text, name: initialValueBinding.text,
value: initialValueBinding.text};
}
}
}), 2);
const styles = useStyles();
const onPress_897452 = onPress_89745;
(UseAnimationDelayedAutoFocusModule).useAnimationDelayedAutoFocus(autoFocus,
onPress_897452);
const PressableOpacity = (PressablesModule).PressableOpacity;
const items2 = [styles.container];
hasError = hasError && styles.hasError;
items2[1] = hasError;
items2[2] = style;
const Text = (TextModule).Text;
return (
<PressableOpacity onPress={onPress_897452} style={items2}>
<Text variant="text-md/normal" style={styles.inputText}>
{property != null ? property.displayName : ' '}
</Text>
</PressableOpacity>
);
function AppLauncherAutocompleteOptionOnPress() { // fn#89745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:1040, owner: AppLauncherAutocompleteOption.onPress, offset: 0x0201c88a, size: 199 bytes, params: 1, frame: 17
if (onOpenAutocompleteSheet != null) {
onOpenAutocompleteSheet();
}
require(dependencyMap[6]).dismissGlobalKeyboard();
const defaultImport = importDefault(dependencyMap[7]);
defaultImport.openLazy(require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths),
'AppLauncherAutocompleteActionSheet', {option: option, initChoice: env0_8, onChoiceSelect: onChoiceSelect_89746,
channel: channel, activeCommand: activeCommand, onDismissAutocompleteSheet: onDismissAutocompleteSheet,
optionValues: optionValues.current});
function onPressOnChoiceSelect(a0) { // fn#89746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:1204, owner: AppLauncherAutocompleteOption.onPress.onChoiceSelect, offset: 0x0201c951, size: 28 bytes, params: 2, frame: 12
env1_9(a0);
onSelect(a0);
}
}
}), 2);
const styles = useStyles();
const closure = onPress_89745;
(require(11706) /* metro dependency 11706: useAnimationDelayedAutoFocus */).useAnimationDelayedAutoFocus(autoFocus,
closure);
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const items2 = [styles.container];
hasError = hasError && styles.hasError;
items2[1] = hasError;
items2[2] = style;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<PressableOpacity onPress={closure} style={items2}>
<Text variant="text-md/normal" style={styles.inputText}>
{property != null ? property.displayName : ' '}
</Text>
</PressableOpacity>
);
}
function AppLauncherAutocompleteOptionOnPress() { // fn#89745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:1040, owner: AppLauncherAutocompleteOption.onPress, offset: 0x0201c88a, size: 199 bytes, params: 1, frame: 17
if (onOpenAutocompleteSheet != null) {
onOpenAutocompleteSheet();
}
require(dependencyMap[6]).dismissGlobalKeyboard();
const defaultImport = importDefault(dependencyMap[7]);
defaultImport.openLazy(require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths),
'AppLauncherAutocompleteActionSheet', {option: option, initChoice: env0_8, onChoiceSelect: onChoiceSelect_89746,
channel: channel, activeCommand: activeCommand, onDismissAutocompleteSheet: onDismissAutocompleteSheet,
optionValues: optionValues.current});
}
function onPressOnChoiceSelect(a0) { // fn#89746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11893:1204, owner: AppLauncherAutocompleteOption.onPress.onChoiceSelect, offset: 0x0201c951, size: 28 bytes, params: 2, frame: 12
env1_9(a0);
onSelect(a0);
}
global.__d(_fun89742, 11707, [57, 31, 661, 33, 4501, 697, 1848, 4080, 11708, 1962, 11706, 5278, 4573,
2]) /* metro module 11707, dependencies: [57, 31, 661, 33, 4501, 697, 1848, 4080, 11708, 1962, 11706, 5278, 4573, 2] */;
@@ -1,48 +1,53 @@
/* Metro module 11714; source: modules/app_launcher/native/options/boolean/AppLauncherBooleanOption.tsx; dependencies: [57, 31, 33, 4501, 697, 7972, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as NativeModule from '../../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
function _fun89791(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:6, offset: 0x0201e9a9, size: 255 bytes, params: 8, frame: 22
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 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'flexDirection': 'row', 'width': '100%', 'backgroundColor': null, 'borderRadius': null,
const createStyles = CreateStylesModule.createStyles;
const object2 = {'flexDirection': 'row', 'width': '100%', 'backgroundColor': null, 'borderRadius': null,
'alignItems': 'center'};
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_5 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/boolean/AppLauncherBooleanOption.tsx');
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/boolean/AppLauncherBooleanOption.tsx');
exports.default = AppLauncherBooleanOption;
function AppLauncherBooleanOption({style, option, initialValue, onPress, hasError}) { // fn#89792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:422, offset: 0x0201eaa8, size: 208 bytes, params: 2, frame: 20
const styles = useStyles();
const [property, env0_3] = Module00057(env0_3Binding.useState(_fun89793), 2);
const FormCheckboxRow = (NativeModule).FormCheckboxRow;
return (
<FormCheckboxRow
start
end
style={[styles.container, style]}
hasError={hasError}
label={option.displayName}
selected={property}
onPress={onPress_89794}
/>
);
function _fun89793() { // fn#89793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:536, offset: 0x0201eb78, size: 55 bytes, params: 1, frame: 4
return initialValue != null && initialValue.type === 'text' && initialValue.text === 'true';
}
function AppLauncherBooleanOptionOnPress() { // fn#89794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:729, owner: AppLauncherBooleanOption.onPress, offset: 0x0201ebaf, size: 35 bytes, params: 1, frame: 13
const binding = env0_3;
const value2 = !Module00057;
binding(value2);
onPress(value2);
}
}
}
function AppLauncherBooleanOption({style, option, initialValue, onPress, hasError}) { // fn#89792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:422, offset: 0x0201eaa8, size: 208 bytes, params: 2, frame: 20
const styles = useStyles();
const [property, env0_3] = env0_2(env0_3Binding.useState(_fun89793), 2);
const FormCheckboxRow = (require(7972) /* metro dependency 7972: native */).FormCheckboxRow;
return (
<FormCheckboxRow
start
end
style={[styles.container, style]}
hasError={hasError}
label={option.displayName}
selected={property}
onPress={onPress_89794}
/>
);
}
function _fun89793() { // fn#89793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:536, offset: 0x0201eb78, size: 55 bytes, params: 1, frame: 4
return initialValue != null && initialValue.type === 'text' && initialValue.text === 'true';
}
function AppLauncherBooleanOptionOnPress() { // fn#89794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11900:729, owner: AppLauncherBooleanOption.onPress, offset: 0x0201ebaf, size: 35 bytes, params: 1, frame: 13
const binding = env0_3;
const value2 = !env0_2;
binding(value2);
onPress(value2);
}
global.__d(_fun89791, 11714, [57, 31, 33, 4501, 697, 7972,
2]) /* metro module 11714, dependencies: [57, 31, 33, 4501, 697, 7972, 2] */;
@@ -1,95 +1,125 @@
/* Metro module 11727; source: modules/app_launcher/native/options/channel/AppLauncherChannelListActionSheet.tsx; dependencies: [57, 31, 1867, 33, 4501, 697, 6691, 6647, 11716, 6526, 4080, 11703, 11704, 4805, 6238, 4573, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GuildStore from '../../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseChannelName from '../../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowNativeModule from '../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as AppLauncherCommandOptionActionSheetModule from '../AppLauncherCommandOptionActionSheet.tsx'; /* Metro dependency 11703 */
function _fun89871(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:6, offset: 0x02021c57, size: 285 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = ChannelIcon;
const ChannelIcon2 = ChannelIcon;
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 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
const BACKGROUND_MOD_SUBTLE = (Native).colors.BACKGROUND_MOD_SUBTLE;
const env0_8 = Reflect.apply(createStyles, value, [{channelIconWrapper: {backgroundColor: BACKGROUND_MOD_SUBTLE}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/channel/AppLauncherChannelListActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/channel/AppLauncherChannelListActionSheet.tsx');
exports.default = AppLauncherChannelListActionSheet;
exports.APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY = 'AppLauncherChannelListActionSheet';
exports.ChannelIcon = closure;
}
exports.ChannelIcon = ChannelIcon2;
function ChannelIcon({channel, size, wrapperSize}) { // fn#89872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:291, offset: 0x02021d74, size: 246 bytes, params: 2, frame: 22
size = size === undefined ? 'sm' : size;
wrapperSize = wrapperSize === undefined ? 32 : wrapperSize;
const styles = useStyles();
const TextIcon = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
return ((Component) => <Component icon={((Component) => <Component size={size} color="interactive-text-default" />)(channel == null ? TextIcon : (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponentWithGuild(channel,
GuildStore.getGuild(channel.getGuildId())) ?? (require(6691) /* metro dependency 6691: TextIcon */).TextIcon)} wrapperStyle={styles.channelIconWrapper} wrapperSize={wrapperSize} />)(importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */);
}
function ChannelIcon({channel, size, wrapperSize}) { // fn#89872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:291, offset: 0x02021d74, size: 246 bytes, params: 2, frame: 22
size = size === undefined ? 'sm' : size;
wrapperSize = wrapperSize === undefined ? 32 : wrapperSize;
const styles = useStyles();
const TextIcon = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
return ((Component) => <Component icon={((Component) => <Component size={size} color="interactive-text-default" />)(channel == null ? TextIcon : (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponentWithGuild(channel,
GuildStore.getGuild(channel.getGuildId())) ?? (require(6691) /* metro dependency 6691: TextIcon */).TextIcon)} wrapperStyle={styles.channelIconWrapper} wrapperSize={wrapperSize} />)(importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */);
}
function ChannelListItem({channel, index, totalCount, onPress}) { // fn#89873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:627, offset: 0x02021e6a, size: 198 bytes, params: 2, frame: 23
const value2 = (UseChannelName)(channel);
const TableRow = (TableRowNativeModule).TableRow;
const object = {onPress: onPress};
const Text = (TextModule).Text;
object.label = (
<Text
lineClamp={1}
variant="text-md/semibold"
color="mobile-text-heading-primary"
>
{value2}
</Text>
);
object.icon = <ChannelIcon channel={channel} />;
object.start = index === 0;
object.end = index === totalCount - 1;
return <TableRow {...object} key={channel.id} />;
}
function ChannelListItem({channel, index, totalCount, onPress}) { // fn#89873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:627, offset: 0x02021e6a, size: 198 bytes, params: 2, frame: 23
const value2 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const object2 = {onPress: onPress};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
object2.label = <Text lineClamp={1} variant="text-md/semibold" color="mobile-text-heading-primary">{value2}</Text>;
object2.icon = <ChannelIcon channel={channel} />;
object2.start = index === 0;
object2.end = index === totalCount - 1;
return <TableRow {...object2} key={channel.id} />;
}
function AppLauncherChannelListActionSheet({onChannelPress, onActionSheetDismiss, channel, option}) { // fn#89874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1052, offset: 0x02021f30, size: 407 bytes, params: 2, frame: 24
const option2 = option;
let useState = ReactModule.useState;
const value2 = Reflect.apply(useState, ReactModule, ['']);
const binding2 = option2;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_5 = value3[1];
const value4 = ReactModule.useRef(null);
useState = ReactModule.useState;
const value5 = binding2(Reflect.apply(useState, ReactModule, [[]]), 2);
const property2 = value5[0];
const env0_8 = value5[1];
const length = property2.length;
ReactModule.useEffect(_fun89875, [property, channel, option]);
const handleChannelPress = function({channel}) {
onChannelPress({channel: channel});
importDefault(dependencyMap[10]).hideActionSheet('AppLauncherChannelListActionSheet');
onActionSheetDismiss();
};
const AppLauncherCommandOptionActionSheet = (AppLauncherCommandOptionActionSheetModule).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
return (
<AppLauncherCommandOptionActionSheet onDismiss={onActionSheetDismiss} option={option}>
<AppLauncherListSearchBar onChange={onChange_89877} />
{
length === 0
? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState)
: ((AppLauncherList) => <AppLauncherList ref={value4} data={property2} renderItem={renderItem_89878} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList)
}
</AppLauncherCommandOptionActionSheet>
);
function _fun89875() { // fn#89875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1286, offset: 0x020220c7, size: 103 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = Reflect.apply((importDefault(6526) /* metro dependency 6526: AutocompleteUtils */).queryApplicationCommandChannelResults,
value, [{query: ReactModule, channel: channel, channelTypes: option.channelTypes, limit: null,
allowSnowflake: true}]);
env0_8(value.channels);
}
function AppLauncherChannelListActionSheet({onChannelPress, onActionSheetDismiss, channel, option}) { // fn#89874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1052, offset: 0x02021f30, size: 407 bytes, params: 2, frame: 24
const env0_3 = option;
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_5 = value3[1];
const value4 = binding.useRef(null);
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property2 = value5[0];
const env0_8 = value5[1];
const length = property2.length;
binding.useEffect(_fun89875, [property, channel, option]);
const handleChannelPress = function({channel}) {
onChannelPress({channel: channel});
importDefault(dependencyMap[10]).hideActionSheet('AppLauncherChannelListActionSheet');
onActionSheetDismiss();
};
const AppLauncherCommandOptionActionSheet = (require(11703) /* metro dependency 11703: AppLauncherCommandOptionActionSheet */).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
return (
<AppLauncherCommandOptionActionSheet onDismiss={onActionSheetDismiss} option={option}>
<AppLauncherListSearchBar onChange={onChange_89877} />
{length === 0 ? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState) : ((AppLauncherList) => <AppLauncherList ref={value4} data={property2} renderItem={renderItem_89878} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList)}
</AppLauncherCommandOptionActionSheet>
);
}
function AppLauncherChannelListActionSheetOnChange(a0) { // fn#89877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1665, owner: AppLauncherChannelListActionSheet.onChange, offset: 0x0201f967, size: 65 bytes, params: 2, frame: 12
env0_5(a0.toLowerCase());
const current = env0_6.current;
if (current != null) {
current.scrollToOffset({'offset': 0, 'animated': false});
}
}
function _fun89875() { // fn#89875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1286, offset: 0x020220c7, size: 103 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = Reflect.apply((importDefault(6526) /* metro dependency 6526: AutocompleteUtils */).queryApplicationCommandChannelResults,
value, [{query: env0_4, channel: channel, channelTypes: option.channelTypes, limit: null,
allowSnowflake: true}]);
env0_8(value.channels);
}
function AppLauncherChannelListActionSheetRenderItem({item, index}) { // fn#89878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1854, owner: AppLauncherChannelListActionSheet.renderItem, offset: 0x0202217c, size: 78 bytes, params: 2, frame: 15
return (
<ChannelListItem
channel={item}
index={index}
totalCount={env0_7.length}
onPress={function() {
handleChannelPress({channel: item});
}}
/>
);
}
}
function AppLauncherChannelListActionSheetRenderItem({item, index}) { // fn#89878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11913:1854, owner: AppLauncherChannelListActionSheet.renderItem, offset: 0x0202217c, size: 78 bytes, params: 2, frame: 15
return (
<ChannelListItem
channel={item}
index={index}
totalCount={env0_7.length}
onPress={function() {
handleChannelPress({channel: item});
}}
/>
);
}
global.__d(_fun89871, 11727, [57, 31, 1867, 33, 4501, 697, 6691, 6647, 11716, 6526, 4080, 11703, 11704, 4805, 6238,
4573,
2]) /* metro module 11727, dependencies: [57, 31, 1867, 33, 4501, 697, 6691, 6647, 11716, 6526, 4080, 11703, 11704, 4805, 6238, 4573, 2] */;
@@ -1,69 +1,76 @@
/* Metro module 11726; source: modules/app_launcher/native/options/channel/AppLauncherChannelOption.tsx; dependencies: [57, 31, 1379, 33, 566, 4805, 11713, 11727, 4080, 11727, 1962, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelStore from '../../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseChannelName from '../../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import AppLauncherSelectOptionFormRow from '../../base_components/AppLauncherSelectOptionFormRow.tsx'; /* Metro dependency 11713 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as AppLauncherChannelListActionSheetModule from './AppLauncherChannelListActionSheet.tsx'; /* Metro dependency 11727 */
function _fun89864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:6, offset: 0x020218cd, size: 174 bytes, params: 8, frame: 19
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 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/channel/AppLauncherChannelOption.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/channel/AppLauncherChannelOption.tsx');
exports.default = AppLauncherChannelOption;
}
function AppLauncherChannelOption({style, option, initialValue, onChannelPress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:257, offset: 0x0202197b, size: 389 bytes, params: 2, frame: 26
const binding = channel;
const [property, env0_7] = onActionSheetDismiss(binding.useState(function() {
var initialValueBinding = initialValue;
var value2 = null;
return value2 != initialValueBinding ? initialValue.type !== 'channelMention' ? value2 : initialValue.channelId : value2;
}), 2);
const value5 = (FluxModule).useStateFromStores([ChannelStore], _fun89867,
[property]);
binding.useEffect(_fun89868, [onChannelPress, property, value5]);
const value6 = (UseChannelName)(value5);
const r7 = value5 != null ? value6 : undefined;
const ChannelIcon = (AppLauncherChannelListActionSheetModule).ChannelIcon;
return (
<AppLauncherSelectOptionFormRow
style={style}
option={option}
hasError={hasError}
selected={value5 != null}
selectedItemName={r7}
leading={<ChannelIcon channel={value5} />}
onPress={onPress_89869}
autoFocus={autoFocus}
/>
);
function _fun89867() { // fn#89867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:542, offset: 0x02021b30, size: 26 bytes, params: 1, frame: 11
return ChannelStore.getChannel(JsxRuntimeModule.jsx);
}
function AppLauncherChannelOption({style, option, initialValue, onChannelPress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:257, offset: 0x0202197b, size: 389 bytes, params: 2, frame: 26
const binding = channel;
const [property, env0_7] = onActionSheetDismiss(binding.useState(function() {
var initialValueBinding = initialValue;
var value2 = null;
return value2 != initialValueBinding ? initialValue.type !== 'channelMention' ? value2 : initialValue.channelId : value2;
}), 2);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun89867,
[property]);
binding.useEffect(_fun89868, [onChannelPress, property, value5]);
const value6 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(value5);
const AppLauncherSelectOptionFormRow = importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */;
const r7 = value5 != null ? value6 : undefined;
const ChannelIcon = (require(11727) /* metro dependency 11727: AppLauncherChannelListActionSheet */).ChannelIcon;
return (
<AppLauncherSelectOptionFormRow
style={style}
option={option}
hasError={hasError}
selected={value5 != null}
selectedItemName={r7}
leading={<ChannelIcon channel={value5} />}
onPress={onPress_89869}
autoFocus={autoFocus}
/>
);
}
function _fun89868() { // fn#89868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:581, offset: 0x02021b4a, size: 57 bytes, params: 1, frame: 12
if (JsxRuntimeModule.jsx != null && env0_8 == null) {
env0_7(null);
onChannelPress({channel: null});
}
}
function _fun89867() { // fn#89867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:542, offset: 0x02021b30, size: 26 bytes, params: 1, frame: 11
return ChannelStore.getChannel(env0_6);
}
function AppLauncherChannelOptionOnPress() { // fn#89869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:808, owner: AppLauncherChannelOption.onPress, offset: 0x02021b83, size: 157 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
const defaultImport = importDefault(dependencyMap[8]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths);
const APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY = require(dependencyMap[7]).APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onChannelPress: onChannelPress_89870, onActionSheetDismiss: onActionSheetDismiss}]);
function onPressOnChannelPress({channel}) { // fn#89870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:952, owner: AppLauncherChannelOption.onPress.onChannelPress, offset: 0x02021c20, size: 55 bytes, params: 2, frame: 14
env1_7(channel?.id);
onChannelPress({channel: channel});
}
}
function _fun89868() { // fn#89868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:581, offset: 0x02021b4a, size: 57 bytes, params: 1, frame: 12
if (env0_6 != null && env0_8 == null) {
env0_7(null);
onChannelPress({channel: null});
}
}
function AppLauncherChannelOptionOnPress() { // fn#89869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:808, owner: AppLauncherChannelOption.onPress, offset: 0x02021b83, size: 157 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
const defaultImport = importDefault(dependencyMap[8]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths);
const APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY = require(dependencyMap[7]).APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_CHANNEL_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onChannelPress: onChannelPress_89870, onActionSheetDismiss: onActionSheetDismiss}]);
}
function onPressOnChannelPress({channel}) { // fn#89870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11912:952, owner: AppLauncherChannelOption.onPress.onChannelPress, offset: 0x02021c20, size: 55 bytes, params: 2, frame: 14
env1_7(channel?.id);
onChannelPress({channel: channel});
}
global.__d(_fun89864, 11726, [57, 31, 1379, 33, 566, 4805, 11713, 11727, 4080, 11727, 1962,
2]) /* metro module 11726, dependencies: [57, 31, 1379, 33, 566, 4805, 11713, 11727, 4080, 11727, 1962, 2] */;
@@ -1,151 +1,189 @@
/* Metro module 11702; source: modules/app_launcher/native/options/choices/AppLauncherChoicesActionSheet.tsx; dependencies: [57, 31, 27, 1483, 33, 4501, 697, 4584, 3860, 8416, 1585, 477, 1478, 6526, 7972, 4080, 7556, 11703, 11704, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as AppLauncherNativeConstantsModule from '../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as UseFontScaleModule from '../../../../screen/native/useFontScale.tsx'; /* Metro dependency 4584 */
import * as NativeModule from '../../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as FlashListModule from '../../../../../external/discord_common/js/packages/flash-list/index.jsx'; /* Metro dependency 8416 */
import * as AppLauncherCommandOptionActionSheetModule from '../AppLauncherCommandOptionActionSheet.tsx'; /* Metro dependency 11703 */
function _fun89719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:6, offset: 0x0201b50e, size: 452 bytes, params: 8, frame: 22
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 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const env0_6 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).DEFAULT_CONTENT_PADDING;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.listItemContainer = {overflow: 'hidden'};
object = {};
object.listItemContainer = {overflow: 'hidden'};
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object2.listItem = {backgroundColor: CARD_BACKGROUND_DEFAULT};
const object3 = {};
object3.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object3.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object2.firstItem = object3;
const object6 = {};
object6.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object6.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object2.lastItem = object6;
object.listItem = {backgroundColor: CARD_BACKGROUND_DEFAULT};
const object4 = {};
object4.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object4.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object.firstItem = object4;
const object5 = {};
object5.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object5.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object.lastItem = object5;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.divider = {backgroundColor: BORDER_SUBTLE, marginLeft: 16};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/choices/AppLauncherChoicesActionSheet.tsx');
object.divider = {backgroundColor: BORDER_SUBTLE, marginLeft: 16};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/choices/AppLauncherChoicesActionSheet.tsx');
exports.default = AppLauncherChoicesActionSheet;
function FlashListWrapper(a0) { // fn#89720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:570, offset: 0x0201b6d2, size: 131 bytes, params: 2, frame: 17
const scrollable = a0.scrollable;
const value = Object.create(null);
value.scrollable = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
return (
scrollable
? (
<FlashListModule.BottomSheetFlashList preserveScrollMomentum {...value2} />
)
: (
<FlashListModule.FlashList scrollEnabled={false} {...value2} />
)
);
}
function AppLauncherChoicesActionSheet({option, initChoiceIndex, onChoiceSelect, onDismiss}) { // fn#89721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:858, offset: 0x0201b755, size: 861 bytes, params: 2, frame: 31
const env0_3 = undefined;
let env0_4 = undefined;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const r16 = PlatformUtilsModule.isIOS() ? bottom : bottom + DEFAULT_CONTENT_PADDING;
const width = (UseWindowDimensionsNative)().width;
const binding = env0_4;
let useState = binding.useState;
const value5 = Reflect.apply(useState, binding, [function() {
return _fun89723(option.choices);
}]);
const binding2 = env0_3;
const value6 = binding2(value5, 2);
const property = value6[0];
env0_4 = value6[1];
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [initChoiceIndex]), 2);
const property2 = value7[0];
const env0_6 = value7[1];
const value8 = binding.useCallback(_fun89725, [option.choices]);
const value9 = binding.useCallback(_fun89726, [onChoiceSelect, property2, styles, property]);
const value10 = binding.useCallback(_fun89728, [styles.divider]);
const r15 = option.choices != null && option.choices?.length >= ((importDefault(7556) /* metro dependency 7556: useIsWindowLarge */)() ? 10 : 5);
const value15 = (UseFontScaleModule).useFontScale();
let useToken = UseTokenModule.useToken;
const TABLE_ROW_HEIGHT = (Native).modules.mobile.TABLE_ROW_HEIGHT;
const value16 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_HEIGHT]);
useToken = UseTokenModule.useToken;
const TABLE_ROW_CONTENT_HEIGHT = (Native).modules.mobile.TABLE_ROW_CONTENT_HEIGHT;
const value17 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_CONTENT_HEIGHT]);
const Math = global.Math;
const value18 = value16 + Math.max(value15 * value17 - value17, 0);
const length = property.length;
const AppLauncherCommandOptionActionSheet = (AppLauncherCommandOptionActionSheetModule).AppLauncherCommandOptionActionSheet;
return (
<AppLauncherCommandOptionActionSheet
option={option}
startExpanded={r15}
onDismiss={onDismiss}
scrollable={r15}
>
{r15 && ((AppLauncherListSearchBar) => <AppLauncherListSearchBar onChange={value8} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar)}
{
length === 0
? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState)
: (
<FlashListWrapper
scrollable={r15}
contentContainerStyle={{paddingBottom: r16}}
scrollIndicatorInsets={{bottom: r16}}
keyExtractor={function(a0) {
return '' + a0.choice.name + '_' + a0.originalIndex;
}}
data={property}
renderItem={value9}
ItemSeparatorComponent={value10}
accessibilityRole="radiogroup"
estimatedItemSize={value18}
estimatedListSize={{height: value18 * property.length, width: width}}
/>
)
}
</AppLauncherCommandOptionActionSheet>
);
function _fun89722() { // fn#89722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1046, offset: 0x0201bab2, size: 31 bytes, params: 1, frame: 11
return ((a0) => (a0 ?? []).map(_fun89724))(option.choices);
function toChoicesWithIndex(a0) { // fn#89723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1050, offset: 0x0201bad1, size: 34 bytes, params: 2, frame: 11
return (a0 ?? []).map(function(a0, a1) {
return {choice: a0, originalIndex: a1};
});
}
}
function _fun89725(a0) { // fn#89725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1238, offset: 0x0201bb07, size: 89 bytes, params: 2, frame: 16
let value = environment.__proto__;
value = Reflect.apply((importDefault(6526) /* metro dependency 6526: AutocompleteUtils */).queryChoice, value,
[{query: a0, choices: option.choices ?? [], limit: null}]);
env0_4(value);
}
function _fun89726({item, index}) { // fn#89726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1363, offset: 0x0201bb60, size: 258 bytes, params: 2, frame: 22
let r5 = env0_3 != null && index === env0_3.length - 1;
const originalIndex = item.originalIndex;
const items2 = [styles.listItemContainer];
items2[1] = index === 0 && styles.firstItem;
r5 = r5 && styles.lastItem;
items2[2] = r5;
const FormRadioRow = (NativeModule).FormRadioRow;
return (
<View style={items2}>
<FormRadioRow
style={[styles.listItem]}
label={item.choice.displayName}
align="right"
selected={ReactNativeModule.View === originalIndex}
onPress={onPress_89727}
/>
</View>
);
function onPress_89727() { // fn#89727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1622, offset: 0x0201bc62, size: 84 bytes, params: 1, frame: 14
let value = environment.__proto__;
const binding = env1_6;
const itemBinding = item;
binding(itemBinding.originalIndex);
onChoiceSelect(itemBinding.choice, itemBinding.originalIndex);
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
}
function _fun89728() { // fn#89728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1736, offset: 0x0201bcb6, size: 62 bytes, params: 1, frame: 14
const FormDivider = (NativeModule).FormDivider;
return <FormDivider style={styles.divider} />;
}
}
}
function FlashListWrapper(a0) { // fn#89720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:570, offset: 0x0201b6d2, size: 131 bytes, params: 2, frame: 17
const scrollable = a0.scrollable;
const value = Object.create(null);
value.scrollable = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const flashListModule = require(8416) /* metro dependency 8416: flashList */;
return scrollable ? <flashListModule.BottomSheetFlashList preserveScrollMomentum {...value2} /> : <flashListModule.FlashList scrollEnabled={false} {...value2} />;
}
function AppLauncherChoicesActionSheet({option, initChoiceIndex, onChoiceSelect, onDismiss}) { // fn#89721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:858, offset: 0x0201b755, size: 861 bytes, params: 2, frame: 31
const env0_3 = undefined;
let env0_4 = undefined;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
const r16 = platformUtilsModule.isIOS() ? bottom : bottom + DEFAULT_CONTENT_PADDING;
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
const binding = env0_4;
let useState = binding.useState;
const value5 = Reflect.apply(useState, binding, [function() {
return _fun89723(option.choices);
}]);
const binding2 = env0_3;
const value6 = binding2(value5, 2);
const property = value6[0];
env0_4 = value6[1];
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [initChoiceIndex]), 2);
const property2 = value7[0];
const env0_6 = value7[1];
const value8 = binding.useCallback(_fun89725, [option.choices]);
const value9 = binding.useCallback(_fun89726, [onChoiceSelect, property2, styles, property]);
const value10 = binding.useCallback(_fun89728, [styles.divider]);
const r15 = option.choices != null && option.choices?.length >= ((importDefault(7556) /* metro dependency 7556: useIsWindowLarge */)() ? 10 : 5);
const value15 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
let useToken = useTokenModule.useToken;
const TABLE_ROW_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_HEIGHT;
const value16 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_HEIGHT]);
const moduleValue4 = useTokenModule;
useToken = moduleValue4.useToken;
const TABLE_ROW_CONTENT_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_CONTENT_HEIGHT;
const value17 = Reflect.apply(useToken, moduleValue4, [TABLE_ROW_CONTENT_HEIGHT]);
const Math = global.Math;
const value18 = value16 + Math.max(value15 * value17 - value17, 0);
const length = property.length;
const AppLauncherCommandOptionActionSheet = (require(11703) /* metro dependency 11703: AppLauncherCommandOptionActionSheet */).AppLauncherCommandOptionActionSheet;
return (
<AppLauncherCommandOptionActionSheet
option={option}
startExpanded={r15}
onDismiss={onDismiss}
scrollable={r15}
>
{r15 && ((AppLauncherListSearchBar) => <AppLauncherListSearchBar onChange={value8} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar)}
{length === 0 ? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState) : <FlashListWrapper scrollable={r15} contentContainerStyle={{paddingBottom: r16}} scrollIndicatorInsets={{bottom: r16}} keyExtractor={function(a0) {
return '' + a0.choice.name + '_' + a0.originalIndex;
}} data={property} renderItem={value9} ItemSeparatorComponent={value10} accessibilityRole="radiogroup" estimatedItemSize={value18} estimatedListSize={{height: value18 * property.length,
width: width}} />}
</AppLauncherCommandOptionActionSheet>
);
}
function _fun89722() { // fn#89722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1046, offset: 0x0201bab2, size: 31 bytes, params: 1, frame: 11
return ((a0) => (a0 ?? []).map(_fun89724))(option.choices);
}
function _fun89725(a0) { // fn#89725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1238, offset: 0x0201bb07, size: 89 bytes, params: 2, frame: 16
let value = environment.__proto__;
value = Reflect.apply((importDefault(6526) /* metro dependency 6526: AutocompleteUtils */).queryChoice, value,
[{query: a0, choices: option.choices ?? [], limit: null}]);
env0_4(value);
}
function _fun89726({item, index}) { // fn#89726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1363, offset: 0x0201bb60, size: 258 bytes, params: 2, frame: 22
let r5 = env0_3 != null && index === env0_3.length - 1;
const binding = env0_5;
const originalIndex = item.originalIndex;
const items2 = [styles.listItemContainer];
items2[1] = index === 0 && styles.firstItem;
r5 = r5 && styles.lastItem;
items2[2] = r5;
const FormRadioRow = (require(7972) /* metro dependency 7972: native */).FormRadioRow;
return (
<View style={items2}>
<FormRadioRow
style={[styles.listItem]}
label={item.choice.displayName}
align="right"
selected={binding === originalIndex}
onPress={onPress_89727}
/>
</View>
);
}
function _fun89728() { // fn#89728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1736, offset: 0x0201bcb6, size: 62 bytes, params: 1, frame: 14
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
return <FormDivider style={styles.divider} />;
}
function toChoicesWithIndex(a0) { // fn#89723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1050, offset: 0x0201bad1, size: 34 bytes, params: 2, frame: 11
return (a0 ?? []).map(function(a0, a1) {
return {choice: a0, originalIndex: a1};
});
}
function onPress_89727() { // fn#89727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1622, offset: 0x0201bc62, size: 84 bytes, params: 1, frame: 14
let value = environment.__proto__;
const binding = env1_6;
const itemBinding = item;
binding(itemBinding.originalIndex);
onChoiceSelect(itemBinding.choice, itemBinding.originalIndex);
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
function _fun89724(a0, a1) { // fn#89724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11888:1107, offset: 0x0201baf3, size: 20 bytes, params: 3, frame: 2
return {choice: a0, originalIndex: a1};
}
global.__d(_fun89719, 11702, [57, 31, 27, 1483, 33, 4501, 697, 4584, 3860, 8416, 1585, 477, 1478, 6526, 7972, 4080,
7556, 11703, 11704,
2]) /* metro module 11702, dependencies: [57, 31, 27, 1483, 33, 4501, 697, 4584, 3860, 8416, 1585, 477, 1478, 6526, 7972, 4080, 7556, 11703, 11704, 2] */;
@@ -1,91 +1,102 @@
/* Metro module 11701; source: modules/app_launcher/native/options/choices/AppLauncherChoicesOption.tsx; dependencies: [57, 31, 33, 4501, 697, 1848, 4080, 11702, 1962, 11706, 7972, 4573, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NativeModule from '../../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as UseAnimationDelayedAutoFocusModule from '../../hooks/useAnimationDelayedAutoFocus.tsx'; /* Metro dependency 11706 */
function _fun89713(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:6, offset: 0x0201b0b6, size: 255 bytes, params: 8, frame: 22
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 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {};
const createStyles = CreateStylesModule.createStyles;
const object2 = {};
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;
object.alignItems = 'center';
object.padding = 12;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/choices/AppLauncherChoicesOption.tsx');
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.alignItems = 'center';
object2.padding = 12;
const env0_6 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/choices/AppLauncherChoicesOption.tsx');
exports.default = AppLauncherChoicesOption;
}
function AppLauncherChoicesOption({style, option, initialValue, onSelect, onOpenChoicesSheet, onDismissChoicesSheet, autoFocus, hasError}) { // fn#89714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:401, offset: 0x0201b1b5, size: 502 bytes, params: 2, frame: 26
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const env0_3 = onOpenChoicesSheet;
const env0_4 = onDismissChoicesSheet;
const styles = useStyles();
const binding = env0_4;
const [property, env0_6] = env0_3(binding.useState(function() {
var r3;
var object;
if (initialValue != null) {
if (initialValue.type !== 'text') {
return undefined;
function AppLauncherChoicesOption({style, option, initialValue, onSelect, onOpenChoicesSheet, onDismissChoicesSheet, autoFocus, hasError}) { // fn#89714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:401, offset: 0x0201b1b5, size: 502 bytes, params: 2, frame: 26
const Text = (TextModule).Text;
const onOpenChoicesSheet2 = onOpenChoicesSheet;
const onDismissChoicesSheet2 = onDismissChoicesSheet;
const styles = useStyles();
const binding = onDismissChoicesSheet2;
const [property, env0_6] = onOpenChoicesSheet2(binding.useState(function() {
var r3;
var object;
if (initialValue != null) {
if (initialValue.type !== 'text') {
return undefined;
}
r3 = option.choices?.find(_fun89716);
if (r3 != null) {
object = {choice: r3};
object.index = option.choices.indexOf(r3);
return object;
}
}
r3 = option.choices?.find(_fun89716);
if (r3 != null) {
object = {choice: r3};
object.index = option.choices.indexOf(r3);
return object;
}), 2);
const value6 = binding.useCallback(_fun89717, [onDismissChoicesSheet, onOpenChoicesSheet, onSelect, option,
property?.index]);
(UseAnimationDelayedAutoFocusModule).useAnimationDelayedAutoFocus(autoFocus,
value6);
const FormRow = (NativeModule).FormRow;
const formRowProps2 = {'start': true, 'end': true, style: [styles.container, style], hasError: hasError,
label: <Text variant={property == null ? 'text-md/medium' : 'text-sm/medium'} color={property == null ? 'text-default' : 'interactive-text-default'} lineClamp={1}>{option.displayName}</Text>,
subLabel: property != null ? <Text variant="text-md/medium" color="text-default" lineClamp={1}>{property.choice.displayName}</Text> : null};
const FormArrow = (NativeModule).FormArrow;
formRowProps2.trailing = <FormArrow />;
formRowProps2.onPress = value6;
return <FormRow {...formRowProps2} />;
function _fun89715() { // fn#89715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:573, offset: 0x0201b3ab, size: 111 bytes, params: 1, frame: 14
var r3;
var object;
if (initialValue != null) {
if (initialValue.type !== 'text') {
return undefined;
}
r3 = option.choices?.find(function({displayName}) {
return displayName === initialValue.text;
});
if (r3 != null) {
object = {choice: r3};
object.index = option.choices.indexOf(r3);
return object;
}
}
function _fun89716({displayName}) { // fn#89716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:650, offset: 0x0201b41a, size: 26 bytes, params: 2, frame: 2
return displayName === initialValue.text;
}
}
}), 2);
const value6 = binding.useCallback(_fun89717, [onDismissChoicesSheet, onOpenChoicesSheet, onSelect, option,
property?.index]);
(require(11706) /* metro dependency 11706: useAnimationDelayedAutoFocus */).useAnimationDelayedAutoFocus(autoFocus,
value6);
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
const formRowProps2 = {'start': true, 'end': true, style: [styles.container, style], hasError: hasError,
label: <Text variant={property == null ? 'text-md/medium' : 'text-sm/medium'} color={property == null ? 'text-default' : 'interactive-text-default'} lineClamp={1}>{option.displayName}</Text>,
subLabel: property != null ? <Text variant="text-md/medium" color="text-default" lineClamp={1}>{property.choice.displayName}</Text> : null};
const FormArrow = (require(7972) /* metro dependency 7972: native */).FormArrow;
formRowProps2.trailing = <FormArrow />;
formRowProps2.onPress = value6;
return <FormRow {...formRowProps2} />;
}
function _fun89715() { // fn#89715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:573, offset: 0x0201b3ab, size: 111 bytes, params: 1, frame: 14
var r3;
var object2;
if (initialValue != null) {
if (initialValue.type !== 'text') {
return undefined;
}
r3 = option.choices?.find(function({displayName}) {
return displayName === initialValue.text;
});
if (r3 != null) {
object2 = {choice: r3};
object2.index = option.choices.indexOf(r3);
return object2;
function _fun89717() { // fn#89717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:777, offset: 0x0201b434, size: 176 bytes, params: 1, frame: 18
const onOpenChoicesSheetBinding = onOpenChoicesSheet;
const value2 = undefined;
onOpenChoicesSheetBinding();
require(dependencyMap[5]).dismissGlobalKeyboard();
const defaultImport = importDefault(dependencyMap[6]);
defaultImport.openLazy(require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths),
'AppLauncherChoicesActionSheet', {option: option, initChoiceIndex: JsxRuntimeModule.jsx == null ? value2 : JsxRuntimeModule.jsx.index,
onChoiceSelect: onChoiceSelect, onDismiss: onDismissChoicesSheet});
return value2;
function onChoiceSelect(a0, a1) { // fn#89718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:953, offset: 0x0201b4e4, size: 42 bytes, params: 3, frame: 13
env1_6({choice: a0, index: a1});
onSelect(a0);
}
}
}
}
function _fun89717() { // fn#89717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:777, offset: 0x0201b434, size: 176 bytes, params: 1, frame: 18
const onOpenChoicesSheetBinding = onOpenChoicesSheet;
const value2 = undefined;
onOpenChoicesSheetBinding();
require(dependencyMap[5]).dismissGlobalKeyboard();
const defaultImport = importDefault(dependencyMap[6]);
defaultImport.openLazy(require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths),
'AppLauncherChoicesActionSheet', {option: option, initChoiceIndex: env0_5 == null ? value2 : env0_5.index,
onChoiceSelect: onChoiceSelect, onDismiss: onDismissChoicesSheet});
return value2;
}
function onChoiceSelect(a0, a1) { // fn#89718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11887:953, offset: 0x0201b4e4, size: 42 bytes, params: 3, frame: 13
env1_6({choice: a0, index: a1});
onSelect(a0);
}
global.__d(_fun89713, 11701, [57, 31, 33, 4501, 697, 1848, 4080, 11702, 1962, 11706, 7972, 4573,
2]) /* metro module 11701, dependencies: [57, 31, 33, 4501, 697, 1848, 4080, 11702, 1962, 11706, 7972, 4573, 2] */;
@@ -1,143 +1,168 @@
/* Metro module 11719; source: modules/app_launcher/native/options/mentionable/AppLauncherMentionableListActionSheet.tsx; dependencies: [57, 31, 661, 33, 5065, 6526, 4080, 11703, 11704, 7707, 4573, 3995, 11720, 6589, 11716, 11717, 6238, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ApplicationCommandUtilsModule from '../../../../application_commands/ApplicationCommandUtils.tsx'; /* Metro dependency 5065 */
import * as AppLauncherCommandOptionActionSheetModule from '../AppLauncherCommandOptionActionSheet.tsx'; /* Metro dependency 11703 */
function _fun89809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:6, offset: 0x0201f56d, size: 243 bytes, params: 8, frame: 19
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 */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
const value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/mentionable/AppLauncherMentionableListActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/mentionable/AppLauncherMentionableListActionSheet.tsx');
exports.default = AppLauncherMentionableListActionSheet;
exports.APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY = 'AppLauncherMentionableListActionSheet';
exports.MentionableItemTypes = {USER: 'user', ROLE: 'role', GLOBAL: 'global'};
}
function AppLauncherMentionableListActionSheet({onMentionablePress, onActionSheetDismiss, channel, option}) { // fn#89810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:421, offset: 0x0201f660, size: 405 bytes, params: 2, frame: 24
const env0_3 = option;
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_5 = value3[1];
const value4 = binding.useRef(null);
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property2 = value5[0];
const env0_8 = value5[1];
const env0_9 = channel.guild_id;
const length = property2.length;
binding.useEffect(_fun89811, [property, option, channel]);
const AppLauncherCommandOptionActionSheet = (require(11703) /* metro dependency 11703: AppLauncherCommandOptionActionSheet */).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
return (
<AppLauncherCommandOptionActionSheet option={option} onDismiss={onActionSheetDismiss}>
<AppLauncherListSearchBar onChange={onChange_89815} />
{length === 0 ? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState) : ((AppLauncherList) => <AppLauncherList ref={value4} data={property2} renderItem={renderItem_89816} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList)}
</AppLauncherCommandOptionActionSheet>
);
}
function _fun89811() { // fn#89811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:683, offset: 0x0201f7f5, size: 283 bytes, params: 1, frame: 19
var environment;
let value = environment.__proto__;
const applicationCommandOptionQueryOptions = (require(5065) /* metro dependency 5065: ApplicationCommandUtils */).getApplicationCommandOptionQueryOptions(option);
value = Reflect.apply((importDefault(6526) /* metro dependency 6526: AutocompleteUtils */).queryMentionResults,
value, [{query: env0_4, channel: channel,
canMentionEveryone: applicationCommandOptionQueryOptions.canMentionEveryone,
canMentionHere: applicationCommandOptionQueryOptions.canMentionHere,
canMentionUsers: applicationCommandOptionQueryOptions.canMentionUsers,
canMentionRoles: applicationCommandOptionQueryOptions.canMentionRoles,
includeAllGuildUsers: applicationCommandOptionQueryOptions.canMentionAnyGuildUser,
includeNonMentionableRoles: applicationCommandOptionQueryOptions.canMentionNonMentionableRoles, request: true,
limit: 10, allowSnowflake: true}]);
const binding = env0_8;
const users = value.users;
const value4 = users.map(_fun89812);
items = [];
const value5 = arraySpread(items, value4, 0, undefined);
const roles = value.roles;
const value6 = arraySpread(items, roles.map(_fun89813), value5, roles);
const globals = value.globals;
arraySpread(items, globals.map(_fun89814), value6, roles);
binding(items);
}
function AppLauncherMentionableListActionSheetRenderItem({item, index}) { // fn#89816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1547, owner: AppLauncherMentionableListActionSheet.renderItem, offset: 0x0201f9a8, size: 659 bytes, params: 2, frame: 23
var r9;
var result;
var text;
var TableRow;
var object2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var user;
const object4 = {onPress: function() {
onMentionablePress({mentionable: item});
importDefault(dependencyMap[6]).hideActionSheet('AppLauncherMentionableListActionSheet');
onActionSheetDismiss();
}, start: index === 0};
var value;
object4.end = index === env0_7.length - 1;
const type = item.type;
const USER = env1_8.USER;
if (USER === type) {
result = item.result;
user = result.user;
return ((Component) => <Component type={RelationshipTypes.NONE} user={user} nickname={result.nick} guildId={guild_id} subLabel={<Text color="text-subtle" variant="text-xs/normal">{(require(3995) /* metro dependency 3995: UserUtils */).getUserTag(user)}</Text>} {...object4} key={user.id} />)(importDefault(7707) /* metro dependency 7707: UserRow */);
}
const ROLE = env1_8.ROLE;
if (ROLE === type) {
result = item.result;
const RoleRow = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleRow;
function AppLauncherMentionableListActionSheet({onMentionablePress, onActionSheetDismiss, channel, option}) { // fn#89810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:421, offset: 0x0201f660, size: 405 bytes, params: 2, frame: 24
const option2 = option;
let useState = ReactModule.useState;
const value2 = Reflect.apply(useState, ReactModule, ['']);
const binding2 = option2;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_5 = value3[1];
const value4 = ReactModule.useRef(null);
useState = ReactModule.useState;
const value5 = binding2(Reflect.apply(useState, ReactModule, [[]]), 2);
const property2 = value5[0];
const env0_8 = value5[1];
const env0_9 = channel.guild_id;
const length = property2.length;
ReactModule.useEffect(_fun89811, [property, option, channel]);
const AppLauncherCommandOptionActionSheet = (AppLauncherCommandOptionActionSheetModule).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
return (
<RoleRow
guildRole={result}
guildId={guild_id}
{...object4}
key={result.id}
/>
<AppLauncherCommandOptionActionSheet option={option} onDismiss={onActionSheetDismiss}>
<AppLauncherListSearchBar onChange={onChange_89815} />
{
length === 0
? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState)
: ((AppLauncherList) => <AppLauncherList ref={value4} data={property2} renderItem={renderItem_89816} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList)
}
</AppLauncherCommandOptionActionSheet>
);
}
const GLOBAL = env1_8.GLOBAL;
if (GLOBAL === type) {
result = item.result;
text = result.text;
value = importDefault(6589) /* metro dependency 6589: AutocompleteUtils */;
if (text === value.MENTION_EVERYONE().text) {
const RoleIcon = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleIcon;
r9 = <RoleIcon />;
} else {
value = importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */;
value = ((Component) => <Component icon={((UserCircleIcon) => <UserCircleIcon size="sm" color="interactive-text-default" />)((require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon)} />)(value);
r9 = value;
function _fun89811() { // fn#89811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:683, offset: 0x0201f7f5, size: 283 bytes, params: 1, frame: 19
var environment;
let value = environment.__proto__;
const applicationCommandOptionQueryOptions = (ApplicationCommandUtilsModule).getApplicationCommandOptionQueryOptions(option);
value = Reflect.apply((importDefault(6526) /* metro dependency 6526: AutocompleteUtils */).queryMentionResults,
value, [{query: ReactModule, channel: channel,
canMentionEveryone: applicationCommandOptionQueryOptions.canMentionEveryone,
canMentionHere: applicationCommandOptionQueryOptions.canMentionHere,
canMentionUsers: applicationCommandOptionQueryOptions.canMentionUsers,
canMentionRoles: applicationCommandOptionQueryOptions.canMentionRoles,
includeAllGuildUsers: applicationCommandOptionQueryOptions.canMentionAnyGuildUser,
includeNonMentionableRoles: applicationCommandOptionQueryOptions.canMentionNonMentionableRoles, request: true,
limit: 10, allowSnowflake: true}]);
const binding = env0_8;
const users = value.users;
const value4 = users.map(_fun89812);
items2 = [];
const value5 = arraySpread(items2, value4, 0, undefined);
const roles = value.roles;
const value6 = arraySpread(items2, roles.map(_fun89813), value5, roles);
const globals = value.globals;
arraySpread(items2, globals.map(_fun89814), value6, roles);
binding(items2);
function _fun89812(a0) { // fn#89812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1098, offset: 0x0201f910, size: 29 bytes, params: 2, frame: 2
const USER = env2_8.USER;
return {type: USER, result: a0};
}
function _fun89813(a0) { // fn#89813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1144, offset: 0x0201f92d, size: 29 bytes, params: 2, frame: 2
const ROLE = env2_8.ROLE;
return {type: ROLE, result: a0};
}
function _fun89814(a0) { // fn#89814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1192, offset: 0x0201f94a, size: 29 bytes, params: 2, frame: 2
const GLOBAL = env2_8.GLOBAL;
return {type: GLOBAL, result: a0};
}
}
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
object2 = {};
text = result.text;
object2.label = <Text lineClamp={1} variant="text-md/semibold" color="mobile-text-heading-primary">{text}</Text>;
object2.icon = r9;
copyDataProperties(object2, object4, undefined);
text = result.text;
return <TableRow {...object2} key={text} />;
function AppLauncherMentionableListActionSheetOnChange(a0) { // fn#89815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1360, owner: AppLauncherMentionableListActionSheet.onChange, offset: 0x0201f967, size: 65 bytes, params: 2, frame: 12
env0_5(a0.toLowerCase());
const current = JsxRuntimeModule.jsx.current;
if (current != null) {
current.scrollToOffset({'offset': 0, 'animated': false});
}
}
function AppLauncherMentionableListActionSheetRenderItem({item, index}) { // fn#89816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1547, owner: AppLauncherMentionableListActionSheet.renderItem, offset: 0x0201f9a8, size: 659 bytes, params: 2, frame: 23
var r9;
var result;
var text;
var TableRow;
var object;
const Text = (TextModule).Text;
var user;
const object3 = {onPress: function() {
onMentionablePress({mentionable: item});
importDefault(dependencyMap[6]).hideActionSheet('AppLauncherMentionableListActionSheet');
onActionSheetDismiss();
}, start: index === 0};
var value;
object3.end = index === JsxRuntimeModule.jsxs.length - 1;
const type = item.type;
const USER = env1_8.USER;
if (USER === type) {
result = item.result;
user = result.user;
return ((Component) => <Component type={RelationshipTypes.NONE} user={user} nickname={result.nick} guildId={guild_id} subLabel={<Text color="text-subtle" variant="text-xs/normal">{(require(3995) /* metro dependency 3995: UserUtils */).getUserTag(user)}</Text>} {...object3} key={user.id} />)(importDefault(7707) /* metro dependency 7707: UserRow */);
}
const ROLE = env1_8.ROLE;
if (ROLE === type) {
result = item.result;
const RoleRow = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleRow;
return (
<RoleRow
guildRole={result}
guildId={guild_id}
{...object3}
key={result.id}
/>
);
}
const GLOBAL = env1_8.GLOBAL;
if (GLOBAL === type) {
result = item.result;
text = result.text;
value = importDefault(6589) /* metro dependency 6589: AutocompleteUtils */;
if (text === value.MENTION_EVERYONE().text) {
const RoleIcon = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleIcon;
r9 = <RoleIcon />;
} else {
value = importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */;
value = ((Component) => <Component icon={((UserCircleIcon) => <UserCircleIcon size="sm" color="interactive-text-default" />)((require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon)} />)(value);
r9 = value;
}
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
object = {};
text = result.text;
object.label = (
<Text
lineClamp={1}
variant="text-md/semibold"
color="mobile-text-heading-primary"
>
{text}
</Text>
);
object.icon = r9;
copyDataProperties(object, object3, undefined);
text = result.text;
return <TableRow {...object} key={text} />;
}
}
}
}
function _fun89812(a0) { // fn#89812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1098, offset: 0x0201f910, size: 29 bytes, params: 2, frame: 2
const USER = env2_8.USER;
return {type: USER, result: a0};
}
function _fun89813(a0) { // fn#89813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1144, offset: 0x0201f92d, size: 29 bytes, params: 2, frame: 2
const ROLE = env2_8.ROLE;
return {type: ROLE, result: a0};
}
function _fun89814(a0) { // fn#89814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11905:1192, offset: 0x0201f94a, size: 29 bytes, params: 2, frame: 2
const GLOBAL = env2_8.GLOBAL;
return {type: GLOBAL, result: a0};
}
global.__d(_fun89809, 11719, [57, 31, 661, 33, 5065, 6526, 4080, 11703, 11704, 7707, 4573, 3995, 11720, 6589, 11716,
11717, 6238,
2]) /* metro module 11719, dependencies: [57, 31, 661, 33, 5065, 6526, 4080, 11703, 11704, 7707, 4573, 3995, 11720, 6589, 11716, 11717, 6238, 2] */;
@@ -1,156 +1,173 @@
/* Metro module 11715; source: modules/app_launcher/native/options/mentionable/AppLauncherMentionableOption.tsx; dependencies: [57, 31, 4502, 1938, 1878, 482, 33, 4501, 697, 566, 11716, 11717, 11719, 1305, 11720, 11721, 11713, 4080, 11719, 1962, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildRoleStore from '../../../../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import AppLauncherOptionIcon from '../../base_components/AppLauncherOptionIcon.tsx'; /* Metro dependency 11716 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as UserCircleIconModule from '../../../../../design/components/Icon/native/redesign/generated/UserCircleIcon.tsx'; /* Metro dependency 11717 */
import * as AppLauncherMentionableListActionSheetModule from './AppLauncherMentionableListActionSheet.tsx'; /* Metro dependency 11719 */
function _fun89795(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:6, offset: 0x0201ebd2, size: 301 bytes, params: 8, frame: 21
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 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_8 = (require(482) /* metro dependency 482: Constants */).StatusTypes;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
const env0_10 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_MOD_SUBTLE = (Native).colors.BACKGROUND_MOD_SUBTLE;
const env0_10 = Reflect.apply(createStyles, CreateStylesModule,
[{iconWrapper: {backgroundColor: BACKGROUND_MOD_SUBTLE}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/mentionable/AppLauncherMentionableOption.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/mentionable/AppLauncherMentionableOption.tsx');
exports.default = AppLauncherMentionableOption;
}
function MentionableIcon({mentionable, guildId}) { // fn#89796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:275, offset: 0x0201ecff, size: 423 bytes, params: 2, frame: 22
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const AppLauncherOptionIcon = importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */;
const UserCircleIcon = (require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon;
const appLauncherOptionIcon = <AppLauncherOptionIcon icon={<UserCircleIcon size="sm" color="interactive-text-default" />} wrapperStyle={styles.iconWrapper} />;
if (mentionable != null) {
var type = mentionable.type;
var MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
var USER = MentionableItemTypes.USER;
if (USER === type) {
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
user={mentionable.result.user}
guildId={guildId}
animate={!useReducedMotion}
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32}
/>
);
function MentionableIcon({mentionable, guildId}) { // fn#89796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:275, offset: 0x0201ecff, size: 423 bytes, params: 2, frame: 22
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const UserCircleIcon = (UserCircleIconModule).UserCircleIcon;
const appLauncherOptionIcon = (
<AppLauncherOptionIcon
icon={<UserCircleIcon size="sm" color="interactive-text-default" />}
wrapperStyle={styles.iconWrapper}
/>
);
if (mentionable != null) {
var type = mentionable.type;
var MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
var USER = MentionableItemTypes.USER;
if (USER === type) {
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
user={mentionable.result.user}
guildId={guildId}
animate={!useReducedMotion}
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32}
/>
);
}
MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
var ROLE = MentionableItemTypes.ROLE;
if (ROLE === type) {
const RoleIcon = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleIcon;
return <RoleIcon role={mentionable.result} />;
}
MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
MentionableItemTypes.GLOBAL;
}
MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
var ROLE = MentionableItemTypes.ROLE;
if (ROLE === type) {
const RoleIcon = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleIcon;
return <RoleIcon role={mentionable.result} />;
return appLauncherOptionIcon;
}
function AppLauncherMentionableOption({style, option, initialValue, onMentionablePress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:988, offset: 0x0201eea6, size: 344 bytes, params: 2, frame: 23
const channel2 = channel;
const guild_id = channel.guild_id;
const binding = channel2;
const [property, env0_8] = onActionSheetDismiss(binding.useState(_fun89799), 2);
binding.useEffect(_fun89800, [onMentionablePress, option.name, initialValue, property]);
return ((Component) => <Component style={style} option={option} hasError={hasError} selected={property != null} selectedItemName={property != null ? binding.useMemo(_fun89801,
[property,
guild_id]) : undefined} leading={<MentionableIcon mentionable={property} guildId={guild_id} />} onPress={onPress_89802} autoFocus={autoFocus} />)(importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */);
function _fun89799() { // fn#89799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:1179, offset: 0x0201effe, size: 359 bytes, params: 1, frame: 17
var object;
const MentionableItemTypes = (AppLauncherMentionableListActionSheetModule).MentionableItemTypes;
var value3;
var userStoreBinding;
var value4;
var guildRoleStoreBinding;
var value;
if (initialValue == null) {
return null;
}
if (initialValue.type === 'roleMention') {
value4 = environment.__proto__;
guildRoleStoreBinding = GuildRoleStore;
value = guildRoleStoreBinding.getRole(guild_id, initialValue.roleId);
if (value != null) {
return {type: MentionableItemTypes.ROLE, result: value};
}
return null;
}
if (initialValue.type === 'userMention') {
value3 = environment.__proto__;
userStoreBinding = UserStore;
value = userStoreBinding.getUser(initialValue.userId);
if (value == null) {
return null;
}
object = {};
object.type = MentionableItemTypes.USER;
object.result = {user: value, score: 0, status: StatusTypes.UNKNOWN, nick: ''};
} else {
if (initialValue.type !== 'textMention') {
return null;
}
object = {};
var GLOBAL = MentionableItemTypes.GLOBAL;
object.type = GLOBAL;
var object2 = {};
initialValueBinding = initialValue;
var text = initialValueBinding.text;
object2.text = text;
text = initialValueBinding.text;
object2.test = text;
object2.description = '';
object.result = object2;
}
return object;
}
MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
MentionableItemTypes.GLOBAL;
}
return appLauncherOptionIcon;
}
function AppLauncherMentionableOption({style, option, initialValue, onMentionablePress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:988, offset: 0x0201eea6, size: 344 bytes, params: 2, frame: 23
const env0_4 = channel;
const guild_id = channel.guild_id;
const binding = env0_4;
const [property, env0_8] = onActionSheetDismiss(binding.useState(_fun89799), 2);
binding.useEffect(_fun89800, [onMentionablePress, option.name, initialValue, property]);
return ((Component) => <Component style={style} option={option} hasError={hasError} selected={property != null} selectedItemName={property != null ? binding.useMemo(_fun89801,
[property,
guild_id]) : undefined} leading={<MentionableIcon mentionable={property} guildId={guild_id} />} onPress={onPress_89802} autoFocus={autoFocus} />)(importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */);
}
function _fun89799() { // fn#89799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:1179, offset: 0x0201effe, size: 359 bytes, params: 1, frame: 17
var object3;
const MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
var value3;
var value4;
var value;
if (initialValue == null) {
return null;
}
if (initialValue.type === 'roleMention') {
value4 = environment.__proto__;
value = GuildRoleStore.getRole(guild_id, initialValue.roleId);
if (value != null) {
return {type: MentionableItemTypes.ROLE, result: value};
function _fun89800() { // fn#89800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:1664, offset: 0x0201f165, size: 49 bytes, params: 1, frame: 12
if (initialValue != null && env0_7 == null) {
onMentionablePress({mentionable: null});
}
}
return null;
}
if (initialValue.type === 'userMention') {
value3 = environment.__proto__;
value = UserStore.getUser(initialValue.userId);
if (value == null) {
return null;
function _fun89801() { // fn#89801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:1744, offset: 0x0201f196, size: 231 bytes, params: 1, frame: 17
if (env0_7 == null) {
return null;
}
const type = env0_7.type;
const MentionableItemTypes = (AppLauncherMentionableListActionSheetModule).MentionableItemTypes;
const USER = MentionableItemTypes.USER;
if (USER === type) {
return ((Component) => <Component guildId={guild_id} user={env0_7.result.user} />)(importDefault(11721) /* metro dependency 11721: UsernameText */);
}
const ROLE = MentionableItemTypes.ROLE;
if (ROLE === type) {
return env0_7.result.name;
}
const GLOBAL = MentionableItemTypes.GLOBAL;
if (GLOBAL === type) {
return env0_7.result.text;
}
}
object3 = {};
object3.type = MentionableItemTypes.USER;
object3.result = {user: value, score: 0, status: StatusTypes.UNKNOWN, nick: ''};
} else {
if (initialValue.type !== 'textMention') {
return null;
function AppLauncherMentionableOptionOnPress() { // fn#89802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:2178, owner: AppLauncherMentionableOption.onPress, offset: 0x0201f27d, size: 157 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
const defaultImport = importDefault(dependencyMap[17]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths);
const APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY = require(dependencyMap[12]).APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onMentionablePress: onMentionablePress_89803, onActionSheetDismiss: onActionSheetDismiss}]);
function onPressOnMentionablePress({mentionable}) { // fn#89803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:2333, owner: AppLauncherMentionableOption.onPress.onMentionablePress, offset: 0x0201f31a, size: 41 bytes, params: 2, frame: 12
env1_8(mentionable);
onMentionablePress({mentionable: mentionable});
}
}
object3 = {};
var GLOBAL = MentionableItemTypes.GLOBAL;
object3.type = GLOBAL;
var object4 = {};
initialValueBinding = initialValue;
var text = initialValueBinding.text;
object4.text = text;
text = initialValueBinding.text;
object4.test = text;
object4.description = '';
object3.result = object4;
}
return object3;
}
function _fun89800() { // fn#89800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:1664, offset: 0x0201f165, size: 49 bytes, params: 1, frame: 12
if (initialValue != null && env0_7 == null) {
onMentionablePress({mentionable: null});
}
}
function _fun89801() { // fn#89801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:1744, offset: 0x0201f196, size: 231 bytes, params: 1, frame: 17
if (env0_7 == null) {
return null;
}
const type = env0_7.type;
const MentionableItemTypes = (require(11719) /* metro dependency 11719: AppLauncherMentionableListActionSheet */).MentionableItemTypes;
const USER = MentionableItemTypes.USER;
if (USER === type) {
return ((Component) => <Component guildId={guild_id} user={env0_7.result.user} />)(importDefault(11721) /* metro dependency 11721: UsernameText */);
}
const ROLE = MentionableItemTypes.ROLE;
if (ROLE === type) {
return env0_7.result.name;
}
const GLOBAL = MentionableItemTypes.GLOBAL;
if (GLOBAL === type) {
return env0_7.result.text;
}
}
function AppLauncherMentionableOptionOnPress() { // fn#89802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:2178, owner: AppLauncherMentionableOption.onPress, offset: 0x0201f27d, size: 157 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
const defaultImport = importDefault(dependencyMap[17]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths);
const APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY = require(dependencyMap[12]).APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_MENTIONABLE_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onMentionablePress: onMentionablePress_89803, onActionSheetDismiss: onActionSheetDismiss}]);
}
function onPressOnMentionablePress({mentionable}) { // fn#89803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11901:2333, owner: AppLauncherMentionableOption.onPress.onMentionablePress, offset: 0x0201f31a, size: 41 bytes, params: 2, frame: 12
env1_8(mentionable);
onMentionablePress({mentionable: mentionable});
}
global.__d(_fun89795, 11715, [57, 31, 4502, 1938, 1878, 482, 33, 4501, 697, 566, 11716, 11717, 11719, 1305, 11720,
11721, 11713, 4080, 11719, 1962,
2]) /* metro module 11715, dependencies: [57, 31, 4502, 1938, 1878, 482, 33, 4501, 697, 566, 11716, 11717, 11719, 1305, 11720, 11721, 11713, 4080, 11719, 1962, 2] */;
@@ -1,160 +1,183 @@
/* Metro module 11720; source: modules/app_launcher/native/options/role/AppLauncherRoleListActionSheet.tsx; dependencies: [57, 31, 6737, 1939, 1938, 661, 33, 11716, 9097, 566, 6738, 6238, 4573, 6699, 6590, 4080, 11703, 11704, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildRoleStore from '../../../../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
import GuildRoleMemberCountStore from '../../../../guild_settings/GuildRoleMemberCountStore.tsx'; /* Metro dependency 6737 */
import AppLauncherOptionIcon from '../../base_components/AppLauncherOptionIcon.tsx'; /* Metro dependency 11716 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as GuildRoleRecordModule from '../../../../../records/GuildRoleRecord.tsx'; /* Metro dependency 1939 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowNativeModule from '../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ShieldUserIconModule from '../../../../../design/components/Icon/native/redesign/generated/ShieldUserIcon.tsx'; /* Metro dependency 9097 */
import * as AppLauncherCommandOptionActionSheetModule from '../AppLauncherCommandOptionActionSheet.tsx'; /* Metro dependency 11703 */
function _fun89818(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:6, offset: 0x0201fc89, size: 304 bytes, params: 8, frame: 21
const env0_0 = require;
const getRoleColor = function(a0) {
return a0.colorString ?? DEFAULT_ROLE_COLOR_HEX;
};
const closure = RoleIcon_89820;
const RoleIcon_898202 = RoleIcon_89820;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const guildRoleMemberCountStore = importDefault(6737) /* metro dependency 6737: GuildRoleMemberCountStore */;
const env0_7 = (require(1939) /* metro dependency 1939: GuildRoleRecord */).isEveryoneRole;
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
const env0_9 = (require(661) /* metro dependency 661: Constants */).DEFAULT_ROLE_COLOR_HEX;
const value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
const closure2 = RoleRow;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/role/AppLauncherRoleListActionSheet.tsx');
const RoleRow2 = RoleRow;
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/role/AppLauncherRoleListActionSheet.tsx');
exports.default = AppLauncherRoleListActionSheet;
exports.APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY = 'AppLauncherRoleListActionSheet';
exports.RoleIcon = closure;
exports.RoleRow = closure2;
}
function RoleIcon_89820({role}) { // fn#89820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:324, offset: 0x0201fdd9, size: 151 bytes, params: 2, frame: 20
var r4;
let object2 = {};
if (role == null) {
r4 = object2;
} else {
object2 = {};
object2.backgroundColor = getRoleColor(role);
r4 = object2;
exports.RoleIcon = RoleIcon_898202;
exports.RoleRow = RoleRow2;
function RoleIcon_89820({role}) { // fn#89820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:324, offset: 0x0201fdd9, size: 151 bytes, params: 2, frame: 20
var r4;
let object = {};
if (role == null) {
r4 = object;
} else {
object = {};
object.backgroundColor = getRoleColor(role);
r4 = object;
}
const ShieldUserIcon = (ShieldUserIconModule).ShieldUserIcon;
return (
<AppLauncherOptionIcon
icon={<ShieldUserIcon size="sm" color={role != null ? 'white' : 'interactive-text-default'} />}
wrapperStyle={r4}
/>
);
}
const AppLauncherOptionIcon = importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */;
const ShieldUserIcon = (require(9097) /* metro dependency 9097: ShieldUserIcon */).ShieldUserIcon;
return (
<AppLauncherOptionIcon
icon={<ShieldUserIcon size="sm" color={role != null ? 'white' : 'interactive-text-default'} />}
wrapperStyle={r4}
/>
);
}
function RoleRow(a0) { // fn#89821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:547, offset: 0x0201fe70, size: 409 bytes, params: 2, frame: 25
var object2;
var r6;
const guildRole = a0.guildRole;
const guildId = a0.guildId;
let value = null;
const value2 = Object.create(value);
value2.guildRole = 0;
value2.guildId = 0;
const value3 = copyDataProperties({}, a0, value2, undefined);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleMemberCountStore],
function() {
return GuildRoleMemberCountStore.getRoleMemberCount(guildId)?.[guildRole.id];
});
const isEveryoneRole2 = isEveryoneRole(guildRole);
env0_5.useEffect(_fun89823, [guildId]);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
object2 = {};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
object2.label = <Text lineClamp={1} variant="text-md/semibold" color="mobile-text-heading-primary">{guildRole.name}</Text>;
object2.icon = <RoleIcon_89820 role={guildRole} />;
if (isEveryoneRole2) {
r6 = value;
} else if (value == value5) {
r6 = value;
} else {
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
value = <GroupIcon size="xxs" color="text-muted" />;
value = <Text variant="text-sm/normal" color="text-muted">{value}{' '}{value5}</Text>;
r6 = value;
function RoleRow(a0) { // fn#89821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:547, offset: 0x0201fe70, size: 409 bytes, params: 2, frame: 25
var r6;
const guildRole = a0.guildRole;
const guildId = a0.guildId;
let value = null;
const value2 = Object.create(value);
value2.guildRole = 0;
value2.guildId = 0;
const value3 = copyDataProperties({}, a0, value2, undefined);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleMemberCountStore],
function() {
return GuildRoleMemberCountStore.getRoleMemberCount(guildId)?.[guildRole.id];
});
const isEveryoneRole2 = isEveryoneRole(guildRole);
ReactModule.useEffect(_fun89823, [guildId]);
const TableRow = (TableRowNativeModule).TableRow;
object = {};
const Text = (TextModule).Text;
object.label = (
<Text
lineClamp={1}
variant="text-md/semibold"
color="mobile-text-heading-primary"
>
{guildRole.name}
</Text>
);
object.icon = <RoleIcon_89820 role={guildRole} />;
if (isEveryoneRole2) {
r6 = value;
} else if (value == value5) {
r6 = value;
} else {
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
value = <GroupIcon size="xxs" color="text-muted" />;
value = (
<Text variant="text-sm/normal" color="text-muted">
{value}
{' '}
{value5}
</Text>
);
r6 = value;
}
object.trailing = r6;
copyDataProperties(object, value3, value2);
return <TableRow {...object} key={guildRole.id} />;
function _fun89823() { // fn#89823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:715, offset: 0x0202003c, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = importAll(6738) /* metro dependency 6738: GuildRoleMemberActionCreators */;
value.fetchMemberCounts(guildId);
}
}
object2.trailing = r6;
copyDataProperties(object2, value3, value2);
return <TableRow {...object2} key={guildRole.id} />;
}
function AppLauncherRoleListActionSheet({onRolePress, onActionSheetDismiss, channel, option}) { // fn#89824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1212, offset: 0x02020069, size: 418 bytes, params: 2, frame: 24
const env0_2 = channel.guild_id;
const binding = env0_5;
const [property, env0_4] = env0_4Binding(binding.useState(''), 2);
const value4 = binding.useRef(null);
const value5 = binding.useMemo(function() {
return sortedRoles.filter(_fun89827);
}, [(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleStore], function() {
return GuildRoleStore.getSortedRoles(guild_id);
}), property]);
const length = value5.length;
const handleRolePress = function({role}) {
onRolePress({role: role});
importDefault(dependencyMap[15]).hideActionSheet('AppLauncherRoleListActionSheet');
onActionSheetDismiss();
};
const AppLauncherCommandOptionActionSheet = (require(11703) /* metro dependency 11703: AppLauncherCommandOptionActionSheet */).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
return (
<AppLauncherCommandOptionActionSheet option={option} onDismiss={onActionSheetDismiss}>
<AppLauncherListSearchBar onChange={onChange_89829} />
{length === 0 ? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState) : ((AppLauncherList) => <AppLauncherList ref={value4} data={value5} renderItem={renderItem_89830} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList)}
</AppLauncherCommandOptionActionSheet>
);
}
function AppLauncherRoleListActionSheet({onRolePress, onActionSheetDismiss, channel, option}) { // fn#89824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1212, offset: 0x02020069, size: 418 bytes, params: 2, frame: 24
const env0_2 = channel.guild_id;
const [property, env0_4] = env0_4Binding(ReactModule.useState(''), 2);
const value4 = ReactModule.useRef(null);
const value5 = ReactModule.useMemo(function() {
return sortedRoles.filter(_fun89827);
}, [(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildRoleStore], function() {
return GuildRoleStore.getSortedRoles(guild_id);
}), property]);
const length = value5.length;
const handleRolePress = function({role}) {
onRolePress({role: role});
importDefault(dependencyMap[15]).hideActionSheet('AppLauncherRoleListActionSheet');
onActionSheetDismiss();
};
const AppLauncherCommandOptionActionSheet = (AppLauncherCommandOptionActionSheetModule).AppLauncherCommandOptionActionSheet;
const AppLauncherListSearchBar = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListSearchBar;
return (
<AppLauncherCommandOptionActionSheet option={option} onDismiss={onActionSheetDismiss}>
<AppLauncherListSearchBar onChange={onChange_89829} />
{
length === 0
? ((AppLauncherListEmptyState) => <AppLauncherListEmptyState />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherListEmptyState)
: ((AppLauncherList) => <AppLauncherList ref={value4} data={value5} renderItem={renderItem_89830} />)((require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList)
}
</AppLauncherCommandOptionActionSheet>
);
function _fun89826() { // fn#89826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1458, offset: 0x02020226, size: 28 bytes, params: 1, frame: 11
return sortedRoles.filter(_fun89827);
function _fun89827(a0) { // fn#89827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1472, offset: 0x02020242, size: 84 bytes, params: 2, frame: 15
var r0;
var value3;
var defaultImport;
var name;
let value = environment.__proto__;
const value2 = env1_3 === a0.id;
if (value2) {
r0 = value2;
} else {
value3 = environment.__proto__.__proto__;
defaultImport = importDefault(6590) /* metro dependency 6590 */;
value = env1_3.trim();
name = a0.name;
value = defaultImport(value, name.toLowerCase());
r0 = value;
}
return r0;
}
function _fun89823() { // fn#89823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:715, offset: 0x0202003c, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = importAll(6738) /* metro dependency 6738: GuildRoleMemberActionCreators */;
value.fetchMemberCounts(guildId);
}
}
function _fun89826() { // fn#89826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1458, offset: 0x02020226, size: 28 bytes, params: 1, frame: 11
return sortedRoles.filter(_fun89827);
}
function AppLauncherRoleListActionSheetOnChange(a0) { // fn#89829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1756, owner: AppLauncherRoleListActionSheet.onChange, offset: 0x020202e6, size: 65 bytes, params: 2, frame: 12
env0_4(a0.toLowerCase());
const current = ReactModule.current;
if (current != null) {
current.scrollToOffset({'offset': 0, 'animated': false});
}
}
function AppLauncherRoleListActionSheetRenderItem({item, index}) { // fn#89830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1945, owner: AppLauncherRoleListActionSheet.renderItem, offset: 0x02020327, size: 103 bytes, params: 2, frame: 17
return (
<RoleRow
guildId={guild_id}
guildRole={item}
onPress={function() {
handleRolePress({role: item});
}}
start={index === 0}
end={index === GuildRoleRecordModule.isEveryoneRole.length - 1}
/>
);
}
function AppLauncherRoleListActionSheetOnChange(a0) { // fn#89829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1756, owner: AppLauncherRoleListActionSheet.onChange, offset: 0x020202e6, size: 65 bytes, params: 2, frame: 12
env0_4(a0.toLowerCase());
const current = env0_5.current;
if (current != null) {
current.scrollToOffset({'offset': 0, 'animated': false});
}
}
function AppLauncherRoleListActionSheetRenderItem({item, index}) { // fn#89830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1945, owner: AppLauncherRoleListActionSheet.renderItem, offset: 0x02020327, size: 103 bytes, params: 2, frame: 17
return (
<RoleRow
guildId={guild_id}
guildRole={item}
onPress={function() {
handleRolePress({role: item});
}}
start={index === 0}
end={index === env0_7.length - 1}
/>
);
}
function _fun89827(a0) { // fn#89827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11906:1472, offset: 0x02020242, size: 84 bytes, params: 2, frame: 15
var r0;
var value3;
var defaultImport;
var name;
let value = environment.__proto__;
const value2 = env1_3 === a0.id;
if (value2) {
r0 = value2;
} else {
value3 = environment.__proto__.__proto__;
defaultImport = importDefault(6590) /* metro dependency 6590 */;
value = env1_3.trim();
name = a0.name;
value = defaultImport(value, name.toLowerCase());
r0 = value;
}
return r0;
}
global.__d(_fun89818, 11720, [57, 31, 6737, 1939, 1938, 661, 33, 11716, 9097, 566, 6738, 6238, 4573, 6699, 6590,
4080, 11703, 11704,
2]) /* metro module 11720, dependencies: [57, 31, 6737, 1939, 1938, 661, 33, 11716, 9097, 566, 6738, 6238, 4573, 6699, 6590, 4080, 11703, 11704, 2] */;
@@ -1,63 +1,69 @@
/* Metro module 11722; source: modules/app_launcher/native/options/role/AppLauncherRoleOption.tsx; dependencies: [57, 31, 1938, 33, 632, 11713, 4080, 11720, 1962, 11720, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildRoleStore from '../../../../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
import AppLauncherSelectOptionFormRow from '../../base_components/AppLauncherSelectOptionFormRow.tsx'; /* Metro dependency 11713 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseStateFromStoresModule from '../../../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as AppLauncherRoleListActionSheetModule from './AppLauncherRoleListActionSheet.tsx'; /* Metro dependency 11720 */
function _fun89834(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:6, offset: 0x02020611, size: 174 bytes, params: 8, frame: 19
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 */;
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/role/AppLauncherRoleOption.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/role/AppLauncherRoleOption.tsx');
exports.default = AppLauncherRoleOption;
}
function AppLauncherRoleOption({style, option, initialValue, onRolePress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:251, offset: 0x020206bf, size: 384 bytes, params: 2, frame: 24
const channel2 = channel;
const env0_6 = channel.guild_id;
const binding = channel2;
const [property, env0_8] = onActionSheetDismiss(binding.useState(function() {
var initialValueBinding = initialValue;
var value2 = null;
return value2 != initialValueBinding ? initialValue.type !== 'roleMention' ? value2 : initialValue.roleId : value2;
}), 2);
const value5 = (UseStateFromStoresModule).useStateFromStores([GuildRoleStore],
_fun89837);
binding.useEffect(_fun89838, [onRolePress, option.name, value5, property]);
const defaultImportProps = {style: style, option: option, hasError: hasError, selected: value5 != null,
selectedItemName: value5?.name, onPress: onPress_89839};
const RoleIcon = (AppLauncherRoleListActionSheetModule).RoleIcon;
defaultImportProps.leading = <RoleIcon role={value5} />;
defaultImportProps.autoFocus = autoFocus;
return <AppLauncherSelectOptionFormRow {...defaultImportProps} />;
function _fun89837() { // fn#89837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:537, offset: 0x02020870, size: 59 bytes, params: 1, frame: 14
if (env0_7 != null) {
return guild_id != null ? GuildRoleStore.getRole(guild_id, env0_7) : undefined;
}
}
function AppLauncherRoleOption({style, option, initialValue, onRolePress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:251, offset: 0x020206bf, size: 384 bytes, params: 2, frame: 24
const env0_4 = channel;
const env0_6 = channel.guild_id;
const binding = env0_4;
const [property, env0_8] = onActionSheetDismiss(binding.useState(function() {
var initialValueBinding = initialValue;
var value2 = null;
return value2 != initialValueBinding ? initialValue.type !== 'roleMention' ? value2 : initialValue.roleId : value2;
}), 2);
const value5 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildRoleStore],
_fun89837);
binding.useEffect(_fun89838, [onRolePress, option.name, value5, property]);
const AppLauncherSelectOptionFormRow = importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */;
const defaultImportProps = {style: style, option: option, hasError: hasError, selected: value5 != null,
selectedItemName: value5?.name, onPress: onPress_89839};
const RoleIcon = (require(11720) /* metro dependency 11720: AppLauncherRoleListActionSheet */).RoleIcon;
defaultImportProps.leading = <RoleIcon role={value5} />;
defaultImportProps.autoFocus = autoFocus;
return <AppLauncherSelectOptionFormRow {...defaultImportProps} />;
}
function _fun89838() { // fn#89838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:613, offset: 0x020208ab, size: 49 bytes, params: 1, frame: 12
if (env0_7 != null && env0_9 == null) {
onRolePress({role: null});
}
}
function AppLauncherRoleOptionOnPress() { // fn#89839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:772, owner: AppLauncherRoleOption.onPress, offset: 0x020208dc, size: 157 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
const defaultImport = importDefault(dependencyMap[6]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths);
const APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY = require(dependencyMap[9]).APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onRolePress: onRolePress_89840, onActionSheetDismiss: onActionSheetDismiss}]);
function onPressOnRolePress({role}) { // fn#89840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:909, owner: AppLauncherRoleOption.onPress.onRolePress, offset: 0x02020979, size: 46 bytes, params: 2, frame: 13
env1_8(role.id);
onRolePress({role: role});
}
}
function _fun89837() { // fn#89837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:537, offset: 0x02020870, size: 59 bytes, params: 1, frame: 14
if (env0_7 != null) {
return guild_id != null ? GuildRoleStore.getRole(guild_id, env0_7) : undefined;
}
}
function _fun89838() { // fn#89838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:613, offset: 0x020208ab, size: 49 bytes, params: 1, frame: 12
if (env0_7 != null && env0_9 == null) {
onRolePress({role: null});
}
}
function AppLauncherRoleOptionOnPress() { // fn#89839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:772, owner: AppLauncherRoleOption.onPress, offset: 0x020208dc, size: 157 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
const defaultImport = importDefault(dependencyMap[6]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths);
const APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY = require(dependencyMap[9]).APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_ROLE_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onRolePress: onRolePress_89840, onActionSheetDismiss: onActionSheetDismiss}]);
}
function onPressOnRolePress({role}) { // fn#89840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11908:909, owner: AppLauncherRoleOption.onPress.onRolePress, offset: 0x02020979, size: 46 bytes, params: 2, frame: 13
env1_8(role.id);
onRolePress({role: role});
}
global.__d(_fun89834, 11722, [57, 31, 1938, 33, 632, 11713, 4080, 11720, 1962, 11720,
2]) /* metro module 11722, dependencies: [57, 31, 1938, 33, 632, 11713, 4080, 11720, 1962, 11720, 2] */;
@@ -1,167 +1,182 @@
/* Metro module 11709; source: modules/app_launcher/native/options/text_input/AppLauncherTextInputOption.tsx; dependencies: [57, 31, 27, 1881, 33, 4501, 697, 8774, 1909, 8535, 11706, 8048, 1305, 11710, 477, 11711, 1848, 8529, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as KeyboardManagerUtilsModule from '../../../../../utils/native/KeyboardManagerUtils.tsx'; /* Metro dependency 1848 */
import * as EmojiConstantsModule from '../../../../emojis/EmojiConstants.tsx'; /* Metro dependency 1881 */
import * as AppLauncherTypesModule from '../../../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
import * as OpenEmojiPickerActionSheetModule from '../../../../emoji_picker/native/openEmojiPickerActionSheet.tsx'; /* Metro dependency 8529 */
import * as AppLauncherContextModule from '../../AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as UseAnimationDelayedAutoFocusModule from '../../hooks/useAnimationDelayedAutoFocus.tsx'; /* Metro dependency 11706 */
function _fun89765(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:6, offset: 0x0201d5a0, size: 381 bytes, params: 8, frame: 22
var object3;
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 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const env0_6 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'width': '100%', 'backgroundColor': null, 'borderRadius': null, 'padding': 14, 'borderWidth': 2,
object = {};
const object2 = {'width': '100%', 'backgroundColor': null, 'borderRadius': null, 'padding': 14, 'borderWidth': 2,
'borderColor': 'transparent', 'flexDirection': 'row', 'alignItems': 'center'};
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
object4.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.container = object4;
object2.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.container = object2;
const BORDER_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_FEEDBACK_CRITICAL;
object3.hasError = {borderColor: BORDER_FEEDBACK_CRITICAL};
object3.stringOptionInput = {'maxHeight': 100, 'flex': 1, 'padding': 0, 'paddingTop': 0};
object3.expressionButton = {'marginVertical': -8, 'marginRight': -8};
const env0_9 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/text_input/AppLauncherTextInputOption.tsx');
object.hasError = {borderColor: BORDER_FEEDBACK_CRITICAL};
object.stringOptionInput = {'maxHeight': 100, 'flex': 1, 'padding': 0, 'paddingTop': 0};
object.expressionButton = {'marginVertical': -8, 'marginRight': -8};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/text_input/AppLauncherTextInputOption.tsx');
exports.default = AppLauncherTextInputOption;
}
function AppLauncherTextInputOption({option, onChangeText, onFocus, onEndEditing, guildId, style, autoFocus, initialValue, hasError, onPressIn}) { // fn#89766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:712, offset: 0x0201d71d, size: 892 bytes, params: 2, frame: 33
var r5;
var value;
const styles = useStyles();
const binding = env0_4;
var [property, env0_4] = env0_3(binding.useState(function() {
var initialValueBinding = initialValue;
var value2 = '';
return initialValueBinding != null ? initialValue.type !== 'text' ? value2 : initialValue.text : value2;
}), 2);
const appLauncherContextModule = require(8774) /* metro dependency 8774: AppLauncherContext */;
const useAppLauncherContext = appLauncherContextModule.useAppLauncherContext;
const entrypoint = Reflect.apply(useAppLauncherContext, appLauncherContextModule, []).entrypoint;
const env0_5 = binding.useRef({'start': 0, 'end': 0});
const value5 = binding.useRef(null);
let type = option.type;
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
let STRING = ApplicationCommandOptionType.STRING;
const value6 = type === STRING;
const value7 = binding.useCallback(_fun89768, [onChangeText]);
const env0_9 = binding.useCallback(_fun89769, [value7, property]);
const env0_10 = binding.useCallback(_fun89770, []);
binding.useEffect(_fun89771, [guildId, value6]);
(require(11706) /* metro dependency 11706: useAnimationDelayedAutoFocus */).useAnimationDelayedAutoFocus(autoFocus,
_fun89772);
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
const VOICE = AppLauncherEntrypoint.VOICE;
const r8 = entrypoint === VOICE ? (require(1305) /* metro dependency 1305: native */).TextInput : importDefault(11710) /* metro dependency 11710: BottomSheetTextInput */;
const items2 = [styles.container];
hasError = hasError && styles.hasError;
items2[1] = hasError;
items2[2] = style;
const r8Props = {ref: value5, autoFocus: false, value: property, style: styles.stringOptionInput};
type = option.type;
STRING = ApplicationCommandOptionType.STRING;
r8Props.maxLength = type !== STRING ? undefined : option.maxLength;
r8Props.autoComplete = 'off';
r8Props.onChangeText = value7;
r8Props.onSelectionChange = onSelectionChange_89773;
r8Props.onFocus = onFocus;
r8Props.onEndEditing = onEndEditing;
r8Props.textAlignVertical = 'center';
r8Props.returnKeyType = 'done';
r8Props.multiline = true;
type = option.type;
const INTEGER = ApplicationCommandOptionType.INTEGER;
r8Props.keyboardType = type === INTEGER ? (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'numeric' : 'numbers-and-punctuation' : option.type !== (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType.NUMBER ? 'default' : (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'numeric' : 'numbers-and-punctuation';
r8Props.onPressIn = onPressIn;
const value11 = ((Component) => <Component {...r8Props} />)(r8);
if (value6) {
value = importDefault(11711) /* metro dependency 11711: ChatInputExpressionButton */;
value = ((Component) => <Component style={styles.expressionButton} onPress={onPress_89774} />)(value);
r5 = value;
} else {
r5 = value6;
}
return (
<View style={items2}>
{value11}
{r5}
</View>
);
}
function _fun89768(a0) { // fn#89768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1118, offset: 0x0201dacf, size: 28 bytes, params: 2, frame: 12
env0_4(a0);
onChangeText(a0);
}
function _fun89769(a0) { // fn#89769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1156, offset: 0x0201daeb, size: 309 bytes, params: 2, frame: 21
var r8;
var length;
var surrogates;
let binding = env0_3;
const substring = binding.substring;
const binding2 = env0_5;
let current = binding2.current;
const value2 = Reflect.apply(substring, binding, [0, current.start]);
const value3 = binding.substring(binding2.current.end ?? env0_5.current.start);
env0_5.current.start;
if (a0.id != null) {
r8 = a0.uniqueName == null ? a0.name : a0.uniqueName !== '' ? a0.uniqueName : a0.name;
env0_8(value2 + (':' + r8 + ': ') + value3);
length = (value2 + (':' + r8 + ': ')).length;
} else {
surrogates = a0.surrogates;
if (surrogates != null) {
binding = env0_8;
surrogates = a0.surrogates;
binding(value2 + surrogates + value3);
surrogates = a0.surrogates;
length = (value2 + surrogates).length;
function AppLauncherTextInputOption({option, onChangeText, onFocus, onEndEditing, guildId, style, autoFocus, initialValue, hasError, onPressIn}) { // fn#89766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:712, offset: 0x0201d71d, size: 892 bytes, params: 2, frame: 33
var r5;
var value;
const styles = useStyles();
const binding = env0_4;
var [property, env0_4] = Module00057(binding.useState(function() {
var initialValueBinding = initialValue;
var value2 = '';
return initialValueBinding != null ? initialValue.type !== 'text' ? value2 : initialValue.text : value2;
}), 2);
const useAppLauncherContext = AppLauncherContextModule.useAppLauncherContext;
const entrypoint = Reflect.apply(useAppLauncherContext, AppLauncherContextModule, []).entrypoint;
const env0_5 = binding.useRef({'start': 0, 'end': 0});
const value5 = binding.useRef(null);
let type = option.type;
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
let STRING = ApplicationCommandOptionType.STRING;
const value6 = type === STRING;
const value7 = binding.useCallback(_fun89768, [onChangeText]);
const env0_9 = binding.useCallback(_fun89769, [value7, property]);
const env0_10 = binding.useCallback(_fun89770, []);
binding.useEffect(_fun89771, [guildId, value6]);
(UseAnimationDelayedAutoFocusModule).useAnimationDelayedAutoFocus(autoFocus,
_fun89772);
const AppLauncherEntrypoint = (AppLauncherTypesModule).AppLauncherEntrypoint;
const VOICE = AppLauncherEntrypoint.VOICE;
const r8 = entrypoint === VOICE ? (require(1305) /* metro dependency 1305: native */).TextInput : importDefault(11710) /* metro dependency 11710: BottomSheetTextInput */;
const items2 = [styles.container];
hasError = hasError && styles.hasError;
items2[1] = hasError;
items2[2] = style;
const r8Props = {ref: value5, autoFocus: false, value: property, style: styles.stringOptionInput};
type = option.type;
STRING = ApplicationCommandOptionType.STRING;
r8Props.maxLength = type !== STRING ? undefined : option.maxLength;
r8Props.autoComplete = 'off';
r8Props.onChangeText = value7;
r8Props.onSelectionChange = onSelectionChange_89773;
r8Props.onFocus = onFocus;
r8Props.onEndEditing = onEndEditing;
r8Props.textAlignVertical = 'center';
r8Props.returnKeyType = 'done';
r8Props.multiline = true;
type = option.type;
const INTEGER = ApplicationCommandOptionType.INTEGER;
r8Props.keyboardType = type === INTEGER ? (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'numeric' : 'numbers-and-punctuation' : option.type !== (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType.NUMBER ? 'default' : (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'numeric' : 'numbers-and-punctuation';
r8Props.onPressIn = onPressIn;
const value11 = ((Component) => <Component {...r8Props} />)(r8);
if (value6) {
value = importDefault(11711) /* metro dependency 11711: ChatInputExpressionButton */;
value = ((Component) => <Component style={styles.expressionButton} onPress={onPress_89774} />)(value);
r5 = value;
} else {
r8 = a0.uniqueName == null ? a0.name : a0.uniqueName !== '' ? a0.uniqueName : a0.name;
env0_8(value2 + (':' + r8 + ': ') + value3);
length = (value2 + (':' + r8 + ': ')).length;
r5 = value6;
}
return (
<View style={items2}>
{value11}
{r5}
</View>
);
function _fun89768(a0) { // fn#89768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1118, offset: 0x0201dacf, size: 28 bytes, params: 2, frame: 12
env0_4(a0);
onChangeText(a0);
}
function _fun89769(a0) { // fn#89769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1156, offset: 0x0201daeb, size: 309 bytes, params: 2, frame: 21
var r8;
var length;
var surrogates;
let binding = Module00057;
const substring = binding.substring;
const binding2 = env0_5;
let current = binding2.current;
const value2 = Reflect.apply(substring, binding, [0, current.start]);
const value3 = binding.substring(binding2.current.end ?? env0_5.current.start);
env0_5.current.start;
if (a0.id != null) {
r8 = a0.uniqueName == null ? a0.name : a0.uniqueName !== '' ? a0.uniqueName : a0.name;
env0_8(value2 + (':' + r8 + ': ') + value3);
length = (value2 + (':' + r8 + ': ')).length;
} else {
surrogates = a0.surrogates;
if (surrogates != null) {
binding = env0_8;
surrogates = a0.surrogates;
binding(value2 + surrogates + value3);
surrogates = a0.surrogates;
length = (value2 + surrogates).length;
} else {
r8 = a0.uniqueName == null ? a0.name : a0.uniqueName !== '' ? a0.uniqueName : a0.name;
env0_8(value2 + (':' + r8 + ': ') + value3);
length = (value2 + (':' + r8 + ': ')).length;
}
}
env0_5.current = {start: length, end: length};
current = EmojiConstantsModule.EmojiIntention.current;
if (current != null) {
current.focus();
}
}
function _fun89770() { // fn#89770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1548, offset: 0x0201dc20, size: 32 bytes, params: 1, frame: 9
const current = EmojiConstantsModule.EmojiIntention.current;
if (current != null) {
current.focus();
}
}
function _fun89771() { // fn#89771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1609, offset: 0x0201dc40, size: 54 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (result) {
value2 = environment.__proto__;
moduleValue = require(8535) /* metro dependency 8535: TopEmojisUtils */;
moduleValue.maybeFetchTopEmojisByGuild(guildId);
}
}
function _fun89772() { // fn#89772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1705, offset: 0x0201dc20, size: 32 bytes, params: 1, frame: 9
const current = EmojiConstantsModule.EmojiIntention.current;
if (current != null) {
current.focus();
}
}
function AppLauncherTextInputOptionOnSelectionChange({nativeEvent}) { // fn#89773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:2075, owner: AppLauncherTextInputOption.onSelectionChange, offset: 0x0201dc76, size: 32 bytes, params: 2, frame: 2
env0_5.current = nativeEvent.selection;
}
function AppLauncherTextInputOptionOnPress() { // fn#89774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:2450, owner: AppLauncherTextInputOption.onPress, offset: 0x0201dc96, size: 119 bytes, params: 1, frame: 14
(KeyboardManagerUtilsModule).dismissGlobalKeyboard();
const openEmojiPickerActionSheet = OpenEmojiPickerActionSheetModule.openEmojiPickerActionSheet;
const CHAT = EmojiIntention.CHAT;
Reflect.apply(openEmojiPickerActionSheet, OpenEmojiPickerActionSheetModule, [{'pickerIntention': null,
'autoFocus': false, 'startExpanded': false, pickerIntention: CHAT, onPressEmoji: env0_9, guildId: guildId,
onClose: env0_10}]);
}
}
env0_5.current = {start: length, end: length};
current = env0_6.current;
if (current != null) {
current.focus();
}
}
function _fun89770() { // fn#89770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1548, offset: 0x0201dc20, size: 32 bytes, params: 1, frame: 9
const current = env0_6.current;
if (current != null) {
current.focus();
}
}
function _fun89771() { // fn#89771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:1609, offset: 0x0201dc40, size: 54 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (result) {
value2 = environment.__proto__;
moduleValue = require(8535) /* metro dependency 8535: TopEmojisUtils */;
moduleValue.maybeFetchTopEmojisByGuild(guildId);
}
}
function AppLauncherTextInputOptionOnSelectionChange({nativeEvent}) { // fn#89773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:2075, owner: AppLauncherTextInputOption.onSelectionChange, offset: 0x0201dc76, size: 32 bytes, params: 2, frame: 2
env0_5.current = nativeEvent.selection;
}
function AppLauncherTextInputOptionOnPress() { // fn#89774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11895:2450, owner: AppLauncherTextInputOption.onPress, offset: 0x0201dc96, size: 119 bytes, params: 1, frame: 14
(require(1848) /* metro dependency 1848: KeyboardManagerUtils */).dismissGlobalKeyboard();
const openEmojiPickerActionSheetModule = require(8529) /* metro dependency 8529: openEmojiPickerActionSheet */;
const openEmojiPickerActionSheet = openEmojiPickerActionSheetModule.openEmojiPickerActionSheet;
const CHAT = EmojiIntention.CHAT;
Reflect.apply(openEmojiPickerActionSheet, openEmojiPickerActionSheetModule, [{'pickerIntention': null,
'autoFocus': false, 'startExpanded': false, pickerIntention: CHAT, onPressEmoji: env0_9, guildId: guildId,
onClose: env0_10}]);
}
global.__d(_fun89765, 11709, [57, 31, 27, 1881, 33, 4501, 697, 8774, 1909, 8535, 11706, 8048, 1305, 11710, 477,
11711, 1848, 8529,
2]) /* metro module 11709, dependencies: [57, 31, 27, 1881, 33, 4501, 697, 8774, 1909, 8535, 11706, 8048, 1305, 11710, 477, 11711, 1848, 8529, 2] */;
@@ -1,102 +1,120 @@
/* Metro module 11724; source: modules/app_launcher/native/options/user/AppLauncherUserListActionSheet.tsx; dependencies: [31, 1483, 33, 4501, 4080, 5065, 1305, 11705, 1244, 11703, 11725, 11382, 11704, 6238, 2] */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as AppLauncherNativeConstantsModule from '../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowNativeModule from '../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as AppLauncherCommandOptionActionSheetModule from '../AppLauncherCommandOptionActionSheet.tsx'; /* Metro dependency 11703 */
import * as AppLauncherListModule from '../../base_components/AppLauncherList.tsx'; /* Metro dependency 11704 */
function _fun89847(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:6, offset: 0x02020e22, size: 231 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 DEFAULT_CONTENT_PADDING = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).DEFAULT_CONTENT_PADDING;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emptyState: {paddingHorizontal: DEFAULT_CONTENT_PADDING,
const DEFAULT_CONTENT_PADDING = (AppLauncherNativeConstantsModule).DEFAULT_CONTENT_PADDING;
const env0_5 = (CreateStylesModule).createStyles({emptyState: {paddingHorizontal: DEFAULT_CONTENT_PADDING,
paddingTop: DEFAULT_CONTENT_PADDING, flex: 1}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/user/AppLauncherUserListActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/user/AppLauncherUserListActionSheet.tsx');
exports.default = AppLauncherUserListActionSheet;
exports.APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY = 'AppLauncherUserListActionSheet';
}
function EmptyStateWithSnowflakeQuery({query, onPressRow}) { // fn#89848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:268, offset: 0x02020f09, size: 129 bytes, params: 2, frame: 17
const styles = useStyles();
const AppLauncherList = (AppLauncherListModule).AppLauncherList;
return (
<AppLauncherList
contentContainerStyle={styles.emptyState}
data={[query]}
renderItem={renderItem_89849}
keyboardShouldPersistTaps="always"
keyboardDismissMode="on-drag"
/>
);
function EmptyStateWithSnowflakeQueryRenderItem({item}) { // fn#89849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:430, owner: EmptyStateWithSnowflakeQuery.renderItem, offset: 0x02020f8a, size: 82 bytes, params: 2, frame: 14
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
label={item}
start
end
onPress={onPressRow}
/>
);
}
function EmptyStateWithSnowflakeQuery({query, onPressRow}) { // fn#89848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:268, offset: 0x02020f09, size: 129 bytes, params: 2, frame: 17
const styles = useStyles();
const AppLauncherList = (require(11704) /* metro dependency 11704: AppLauncherList */).AppLauncherList;
return (
<AppLauncherList
contentContainerStyle={styles.emptyState}
data={[query]}
renderItem={renderItem_89849}
keyboardShouldPersistTaps="always"
keyboardDismissMode="on-drag"
/>
);
}
function AppLauncherUserListActionSheet({onUserPress, onActionSheetDismiss, channel, option}) { // fn#89850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:686, offset: 0x02020fdc, size: 350 bytes, params: 2, frame: 23
var r4;
const guild_id = channel.guild_id;
const id = channel.id;
var value;
const binding = env0_3;
const value3 = binding.useCallback(_fun89852, [binding.useCallback(_fun89851, [onActionSheetDismiss]), onUserPress]);
const value4 = binding.useCallback(_fun89853, [value3]);
const AppLauncherCommandOptionActionSheet = (require(11703) /* metro dependency 11703: AppLauncherCommandOptionActionSheet */).AppLauncherCommandOptionActionSheet;
if (channel.isPrivate()) {
value = importDefault(11725) /* metro dependency 11725: PrivateChannelUserList */;
value = ((Component) => <Component channelId={id} disableStickySections hideTitle headerShown={false} inActionSheet onUserPress={value3} opensUserProfileOnUserPress={false} />)(value);
r4 = value;
} else {
value = importDefault(11382) /* metro dependency 11382: GuildChannelUserList */;
value = ((Component) => <Component channelId={id} guildId={guild_id} searchable searchableEmptyState={value4} headerShown={false} opensUserProfileOnUserPress={false} onUserPress={value3} inActionSheet disableThemedGradient />)(value);
r4 = value;
}
return (
<AppLauncherCommandOptionActionSheet
onDismiss={onActionSheetDismiss}
option={option}
contentContainerStyles={{paddingHorizontal: 0}}
>
{r4}
</AppLauncherCommandOptionActionSheet>
);
}
function EmptyStateWithSnowflakeQueryRenderItem({item}) { // fn#89849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:430, owner: EmptyStateWithSnowflakeQuery.renderItem, offset: 0x02020f8a, size: 82 bytes, params: 2, frame: 14
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
label={item}
start
end
onPress={onPressRow}
/>
);
}
function AppLauncherUserListActionSheet({onUserPress, onActionSheetDismiss, channel, option}) { // fn#89850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:686, offset: 0x02020fdc, size: 350 bytes, params: 2, frame: 23
var r4;
const guild_id = channel.guild_id;
const id = channel.id;
var value;
const value3 = ReactModule.useCallback(_fun89852, [ReactModule.useCallback(_fun89851, [onActionSheetDismiss]), onUserPress]);
const value4 = ReactModule.useCallback(_fun89853, [value3]);
const AppLauncherCommandOptionActionSheet = (AppLauncherCommandOptionActionSheetModule).AppLauncherCommandOptionActionSheet;
if (channel.isPrivate()) {
value = importDefault(11725) /* metro dependency 11725: PrivateChannelUserList */;
value = ((Component) => <Component channelId={id} disableStickySections hideTitle headerShown={false} inActionSheet onUserPress={value3} opensUserProfileOnUserPress={false} />)(value);
r4 = value;
} else {
value = importDefault(11382) /* metro dependency 11382: GuildChannelUserList */;
value = ((Component) => <Component channelId={id} guildId={guild_id} searchable searchableEmptyState={value4} headerShown={false} opensUserProfileOnUserPress={false} onUserPress={value3} inActionSheet disableThemedGradient />)(value);
r4 = value;
}
return (
<AppLauncherCommandOptionActionSheet
onDismiss={onActionSheetDismiss}
option={option}
contentContainerStyles={{paddingHorizontal: 0}}
>
{r4}
</AppLauncherCommandOptionActionSheet>
);
function _fun89851() { // fn#89851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:826, offset: 0x0202113a, size: 55 bytes, params: 1, frame: 12
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet('AppLauncherUserListActionSheet');
onActionSheetDismiss();
}
function _fun89851() { // fn#89851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:826, offset: 0x0202113a, size: 55 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppLauncherUserListActionSheet');
onActionSheetDismiss();
}
function _fun89852({user}) { // fn#89852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:886, offset: 0x02021171, size: 38 bytes, params: 2, frame: 12
onUserPress({user: user});
env0_2();
}
function _fun89852({user}) { // fn#89852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:886, offset: 0x02021171, size: 38 bytes, params: 2, frame: 12
onUserPress({user: user});
env0_2();
}
function _fun89853(a0) { // fn#89853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:941, offset: 0x02021197, size: 270 bytes, params: 2, frame: 22
var environment;
var r0;
var EmptyState;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const env0_0 = a0;
const value = environment.__proto__;
if ((require(5065) /* metro dependency 5065: ApplicationCommandUtils */).isSnowflake(a0)) {
r0 = <EmptyStateWithSnowflakeQuery query={a0} onPressRow={onPressRow} />;
} else {
EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
r0 = (
<EmptyState
style={{paddingTop: 80}}
lightSource={importDefault(11705) /* metro dependency 11705 */}
darkSource={importDefault(11705) /* metro dependency 11705 */}
title={intl.string(t.vYocDz)}
body={intl.string(t.V6nAfF)}
/>
);
}
return r0;
function onPressRow() { // fn#89854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:1018, offset: 0x020212a5, size: 29 bytes, params: 1, frame: 11
return env1_3({user: env0_0});
}
}
function _fun89853(a0) { // fn#89853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:941, offset: 0x02021197, size: 270 bytes, params: 2, frame: 22
var environment;
var r0;
var EmptyState;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const env0_0 = a0;
const value = environment.__proto__;
if ((require(5065) /* metro dependency 5065: ApplicationCommandUtils */).isSnowflake(a0)) {
r0 = <EmptyStateWithSnowflakeQuery query={a0} onPressRow={onPressRow} />;
} else {
EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
r0 = <EmptyState style={{paddingTop: 80}} lightSource={importDefault(11705) /* metro dependency 11705 */} darkSource={importDefault(11705) /* metro dependency 11705 */} title={intl.string(t.vYocDz)} body={intl.string(t.V6nAfF)} />;
}
return r0;
}
function onPressRow() { // fn#89854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11910:1018, offset: 0x020212a5, size: 29 bytes, params: 1, frame: 11
return env1_3({user: env0_0});
}
global.__d(_fun89847, 11724, [31, 1483, 33, 4501, 4080, 5065, 1305, 11705, 1244, 11703, 11725, 11382, 11704, 6238,
2]) /* metro module 11724, dependencies: [31, 1483, 33, 4501, 4080, 5065, 1305, 11705, 1244, 11703, 11725, 11382, 11704, 6238, 2] */;
@@ -1,88 +1,98 @@
/* Metro module 11723; source: modules/app_launcher/native/options/user/AppLauncherUserOption.tsx; dependencies: [57, 31, 4502, 33, 4501, 697, 566, 11713, 1848, 4080, 11724, 1962, 11724, 1305, 11716, 11717, 11721, 4573, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import AppLauncherSelectOptionFormRow from '../../base_components/AppLauncherSelectOptionFormRow.tsx'; /* Metro dependency 11713 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun89841(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:6, offset: 0x020209a7, size: 236 bytes, params: 8, frame: 21
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 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
const env0_7 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_MOD_SUBTLE = (Native).colors.BACKGROUND_MOD_SUBTLE;
const env0_7 = Reflect.apply(createStyles, CreateStylesModule,
[{iconWrapper: {backgroundColor: BACKGROUND_MOD_SUBTLE}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/options/user/AppLauncherUserOption.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/options/user/AppLauncherUserOption.tsx');
exports.default = AppLauncherUserOption;
}
function AppLauncherUserOption({style, option, initialValue, onUserPress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:344, offset: 0x02020a93, size: 597 bytes, params: 2, frame: 28
var r5;
const channel2 = channel;
var value;
const styles = useStyles();
const guild_id = channel.guild_id;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const binding = channel2;
let useState = binding.useState;
let value2 = Reflect.apply(useState, binding, [function() {
var initialValueBinding = initialValue;
var value2 = null;
return value2 != initialValueBinding ? initialValue.type !== 'userMention' ? value2 : initialValue.userId : value2;
}]);
const binding2 = onActionSheetDismiss;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_6 = value3[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property2 = value5[0];
const env0_7 = value5[1];
const defaultImportProps = {style: style, option: option, hasError: hasError,
selected: property2 != null || property != null, onPress: onPress_89845,
leading: property2 != null ? ((Avatar) => <Avatar user={property2} guildId={guild_id} animate={!useReducedMotion} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32} />)((require(1305) /* metro dependency 1305: native */).Avatar) : ((Component) => <Component icon={((UserCircleIcon) => <UserCircleIcon size="sm" color="interactive-text-default" />)((require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon)} wrapperStyle={styles.iconWrapper} />)(importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */)};
if (property2 != null) {
value = importDefault(11721) /* metro dependency 11721: UsernameText */;
value = ((Component) => <Component guildId={guild_id} user={property2} />)(value);
r5 = value;
} else if (property != null) {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
r5 = (
<Text variant="text-md/medium" color="text-default">
{property}
</Text>
);
} else {
r5 = null;
}
defaultImportProps.selectedItemName = r5;
defaultImportProps.autoFocus = autoFocus;
return <AppLauncherSelectOptionFormRow {...defaultImportProps} />;
function AppLauncherUserOptionOnPress() { // fn#89845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:783, owner: AppLauncherUserOption.onPress, offset: 0x02020d1a, size: 179 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
require(dependencyMap[8]).dismissGlobalKeyboard();
const defaultImport = importDefault(dependencyMap[9]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[11])(dependencyMap[10], dependencyMap.paths);
const APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY = require(dependencyMap[12]).APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onUserPress: onUserPress_89846, onActionSheetDismiss: onActionSheetDismiss}]);
function onPressOnUserPress({user}) { // fn#89846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:955, owner: AppLauncherUserOption.onPress.onUserPress, offset: 0x02020dcd, size: 85 bytes, params: 2, frame: 13
var value;
if (typeof user === 'string') {
value = environment.__proto__;
env1_6(user);
} else {
value = environment.__proto__;
env1_6(user.id);
env1_7(user);
}
onUserPress({user: user});
}
}
function AppLauncherUserOption({style, option, initialValue, onUserPress, onActionSheetDismiss, channel, autoFocus, hasError, onPress}) { // fn#89842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:344, offset: 0x02020a93, size: 597 bytes, params: 2, frame: 28
var r5;
const env0_4 = channel;
var value;
const styles = useStyles();
const guild_id = channel.guild_id;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const binding = env0_4;
let useState = binding.useState;
let value2 = Reflect.apply(useState, binding, [function() {
var initialValueBinding = initialValue;
var value2 = null;
return value2 != initialValueBinding ? initialValue.type !== 'userMention' ? value2 : initialValue.userId : value2;
}]);
const binding2 = onActionSheetDismiss;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_6 = value3[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property2 = value5[0];
const env0_7 = value5[1];
const AppLauncherSelectOptionFormRow = importDefault(11713) /* metro dependency 11713: AppLauncherSelectOptionFormRow */;
const defaultImportProps = {style: style, option: option, hasError: hasError,
selected: property2 != null || property != null, onPress: onPress_89845,
leading: property2 != null ? ((Avatar) => <Avatar user={property2} guildId={guild_id} animate={!useReducedMotion} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32} />)((require(1305) /* metro dependency 1305: native */).Avatar) : ((Component) => <Component icon={((UserCircleIcon) => <UserCircleIcon size="sm" color="interactive-text-default" />)((require(11717) /* metro dependency 11717: UserCircleIcon */).UserCircleIcon)} wrapperStyle={styles.iconWrapper} />)(importDefault(11716) /* metro dependency 11716: AppLauncherOptionIcon */)};
if (property2 != null) {
value = importDefault(11721) /* metro dependency 11721: UsernameText */;
value = ((Component) => <Component guildId={guild_id} user={property2} />)(value);
r5 = value;
} else if (property != null) {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
r5 = <Text variant="text-md/medium" color="text-default">{property}</Text>;
} else {
r5 = null;
}
defaultImportProps.selectedItemName = r5;
defaultImportProps.autoFocus = autoFocus;
return <AppLauncherSelectOptionFormRow {...defaultImportProps} />;
}
function AppLauncherUserOptionOnPress() { // fn#89845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:783, owner: AppLauncherUserOption.onPress, offset: 0x02020d1a, size: 179 bytes, params: 1, frame: 19
if (onPress != null) {
onPress();
}
require(dependencyMap[8]).dismissGlobalKeyboard();
const defaultImport = importDefault(dependencyMap[9]);
const openLazy = defaultImport.openLazy;
const value3 = require(dependencyMap[11])(dependencyMap[10], dependencyMap.paths);
const APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY = require(dependencyMap[12]).APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY;
Reflect.apply(openLazy, defaultImport, [value3, APP_LAUNCHER_USER_LIST_ACTION_SHEET_KEY, {option: option,
channel: channel, onUserPress: onUserPress_89846, onActionSheetDismiss: onActionSheetDismiss}]);
}
function onPressOnUserPress({user}) { // fn#89846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11909:955, owner: AppLauncherUserOption.onPress.onUserPress, offset: 0x02020dcd, size: 85 bytes, params: 2, frame: 13
var value;
if (typeof user === 'string') {
value = environment.__proto__;
env1_6(user);
} else {
value = environment.__proto__;
env1_6(user.id);
env1_7(user);
}
onUserPress({user: user});
}
global.__d(_fun89841, 11723, [57, 31, 4502, 33, 4501, 697, 566, 11713, 1848, 4080, 11724, 1962, 11724, 1305, 11716,
11717, 11721, 4573,
2]) /* metro module 11723, dependencies: [57, 31, 4502, 33, 4501, 697, 566, 11713, 1848, 4080, 11724, 1962, 11724, 1305, 11716, 11717, 11721, 4573, 2] */;
@@ -1,241 +1,278 @@
/* 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] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as AppLauncherNativeConstantsModule from '../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ApplicationCommandTypesModule from '../../../../application_commands/ApplicationCommandTypes.tsx'; /* Metro dependency 5068 */
import * as PressablesModule from '../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ArrowLargeLeftIconModule from '../../../../../design/components/Icon/native/redesign/generated/ArrowLargeLeftIcon.tsx'; /* Metro dependency 5284 */
import * as AppLauncherContextModule from '../../AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as AppLauncherNativeUtilsModule from '../../AppLauncherNativeUtils.tsx'; /* Metro dependency 11592 */
import * as FrecencySectionModule from '../home/FrecencySection.tsx'; /* Metro dependency 11593 */
import * as UseBottomSheetFlashListBottomViewabilityInsetModule from '../../hooks/useBottomSheetFlashListBottomViewabilityInset.tsx'; /* Metro dependency 11639 */
import * as UseTrackAppLauncherItemImpressionOnFirstViewModule from '../../hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx'; /* Metro dependency 11642 */
import * as AppLauncherFlashListModule from '../../base_components/AppLauncherFlashList.tsx'; /* Metro dependency 11643 */
import * as AppDetailContentModule from '../application_view/app/AppDetailContent.tsx'; /* Metro dependency 11671 */
import * as AppLauncherBackButtonModule from '../../base_components/AppLauncherBackButton.tsx'; /* Metro dependency 11673 */
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 */;
let value = AppLauncherNativeConstantsModule;
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};
object = {bottom: 4};
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
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',
object.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,
object.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 object4 = {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',
object4.paddingBottom = PX_4;
object.list = object4;
const BACK_BUTTON_SIZE = (AppLauncherBackButtonModule).BACK_BUTTON_SIZE;
object.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');
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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();
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 applications2 = 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 useToken = UseTokenModule.useToken;
const TABLE_ROW_HEIGHT = (Native).modules.mobile.TABLE_ROW_HEIGHT;
const value2 = Reflect.apply(useToken, UseTokenModule, [TABLE_ROW_HEIGHT]);
const styles = useStyles();
const value3 = (UseSafeAreaInsetsNative)().bottom + DEFAULT_CONTENT_PADDING;
const {chatInputRef, keyboardCloseReasonRef,
entrypoint} = (AppLauncherContextModule).useRequiredAppLauncherContext();
const binding = applications2;
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} = (UseBottomSheetFlashListBottomViewabilityInsetModule).useBottomSheetFlashListBottomViewabilityInset();
const useTrackAppLauncherItemImpressionOnFirstView = UseTrackAppLauncherItemImpressionOnFirstViewModule.useTrackAppLauncherItemImpressionOnFirstView;
const trackAppLauncherItemImpressionOnFirstView = Reflect.apply(useTrackAppLauncherItemImpressionOnFirstView,
UseTrackAppLauncherItemImpressionOnFirstViewModule, []).trackAppLauncherItemImpressionOnFirstView;
const value13 = (AppLauncherFlashListModule).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 = (FrecencySectionModule).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();
}
}
}
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
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
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 = (PressablesModule).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 = (ArrowLargeLeftIconModule).ArrowLargeLeftIcon;
const INTERACTIVE_TEXT_DEFAULT = (Native).colors.INTERACTIVE_TEXT_DEFAULT;
const items2 = [
<PressableOpacity {...pressableOpacityProps}>
<ArrowLargeLeftIcon color={INTERACTIVE_TEXT_DEFAULT} />
</PressableOpacity>,
];
const Text = (TextModule).Text;
items2[1] = (
<Text
lineClamp={1}
variant="heading-lg/bold"
color="mobile-text-heading-primary"
>
{title}
</Text>
);
const Spacer = (NativeModule).Spacer;
const BACK_BUTTON_SIZE = (AppLauncherBackButtonModule).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 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 _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 = (AppDetailContentModule).CommandRow;
const commandRowProps = {command: item, onPressCommand: onPressCommand, onExecuteCommand: env0_19,
isFirstRow: index === 0, isLastRow: index === value6, context: context, section: r7};
const ApplicationCommandTriggerLocations = (ApplicationCommandTypesModule).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 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 _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 object = {};
const stylesBinding = styles;
copyDataProperties(object, stylesBinding.list, stylesBinding);
object['paddingBottom'] = env0_12;
return object;
}
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 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 _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 _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 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 _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});
}
}
}
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 _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});
function AppLauncherViewAllScreenKeyExtractor_89910(a0) { // fn#89910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11917:5003, owner: AppLauncherViewAllScreen.keyExtractor, offset: 0x00e46f8c, size: 10 bytes, params: 2, frame: 1
return a0.id;
}
global.__d(_fun89888, 11731, [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]) /* metro module 11731, 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] */;
@@ -1,127 +1,157 @@
/* 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] */
import ApplicationCommandIndexStore from '../../../../application_commands/ApplicationCommandIndexStore.tsx'; /* Metro dependency 7861 */
import UseNavigationTransitionEnded from '../../hooks/useNavigationTransitionEnded.tsx'; /* Metro dependency 11670 */
import AppDetailContent from './app/AppDetailContent.tsx'; /* Metro dependency 11671 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ApplicationCommandConstantsModule from '../../../../application_commands/ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
import * as UseGetOrFetchApplicationsModule from '../../../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
import * as AppLauncherContextModule from '../../AppLauncherContext.tsx'; /* Metro dependency 8774 */
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 */;
let value = ReactNativeModule;
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,
const env0_10 = (CreateStylesModule).createStyles({container: {backgroundColor: SCREEN_BACKGROUND_COLOR,
flex: 1}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/application_view/AppLauncherApplicationViewScreen.tsx');
(FileImportTrackerModule).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 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} = (AppLauncherContextModule).useRequiredAppLauncherContext();
const chatInputRef2 = chatInputRef;
const value3 = (UseNavigationTransitionEnded)();
const r18 = initiallyExpanded ?? (require(8046) /* metro dependency 8046: AppLauncherUtils */).isEmbeddedApp(application);
const value4 = chatInputRef2.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]);
chatInputRef2.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} />)(AppDetailContent);
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();
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 object2;
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 navigation = a0.navigation;
const value = undefined;
const value3 = (AppLauncherContextModule).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 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 = (ReanimatedRexportModule).useSharedValue(0);
navigation.useEffect(_fun89450, [r0, context, installOnDemand]);
if (value4 != r17) {
r4 = (
<AppLauncherApplicationViewScreenInner
context={context}
application={r17}
lockableScrollableContentOffsetY={value6}
initiallyExpanded={initiallyExpanded}
installOnDemand={installOnDemand}
sectionName={sectionName}
onPressBack={onPressBack_89451}
onActivityItemSelected={onActivityItemSelected}
entrypoint={entrypoint}
expandBottomSheet={expandBottomSheet}
onCommandExecuted={onCommandExecuted}
/>
);
} else {
object2 = {};
object2.paddingTop = (require(11672) /* metro dependency 11672: Header */).EXPANDED_HEADER_HEIGHT;
r4 = (
<View style={object2}>
<ActivityIndicator />
</View>
);
}
return (
<View style={styles.container}>
{r4}
</View>
);
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;
var applicationCommandIndexStoreBinding;
if (env0_6 != null && context.type === 'channel' && installOnDemand) {
value4 = environment.__proto__;
applicationCommandIndexStoreBinding = ApplicationCommandIndexStore;
applicationCommandIndexStoreBinding.queryInstallOnDemandApp(env0_6, context.channel.id);
}
}
function AppLauncherApplicationViewScreenOnPressBack() { // 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();
}
}
}
}
}
global.__d(_fun89445, 11669, [31, 27, 7861, 1483, 5066, 33, 4501, 8774, 11670, 8046, 1583, 11671, 6777, 4017, 11672,
2]) /* metro module 11669, dependencies: [31, 27, 7861, 1483, 5066, 33, 4501, 8774, 11670, 8046, 1583, 11671, 6777, 4017, 11672, 2] */;
@@ -1,14 +1,24 @@
/* 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] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import ReanimatedRexport from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import AppLauncherStore from '../../../AppLauncherStore.tsx'; /* Metro dependency 8047 */
import UseAvatarColor from '../../../../avatar/useAvatarColor.tsx'; /* Metro dependency 8372 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as AppLauncherNativeConstantsModule from '../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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 */;
ReactModule;
let value = AppLauncherNativeConstantsModule;
const DEFAULT_CONTENT_PADDING = value.DEFAULT_CONTENT_PADDING;
const SCREEN_BACKGROUND_COLOR = value.SCREEN_BACKGROUND_COLOR;
value = require(661) /* metro dependency 661: Constants */;
@@ -20,236 +30,262 @@ function _fun89480(global, require, importDefault, importAll, module, exports, d
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',
object = {headerContainer: {'position': 'absolute', 'top': -16, 'left': 0, 'right': 0, 'minHeight': 161}};
object.expandedHeaderBanner = {height: 105};
const object3 = {'position': 'absolute', 'padding': 4, 'bottom': -40, 'left': 16};
object3.backgroundColor = SCREEN_BACKGROUND_COLOR;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl + 4;
object.appIconMask = object3;
const object4 = {'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;
object4.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,
object4.paddingBottom = PX_12;
object.collapsedHeaderBanner = object4;
object.collapsedHeaderBannerOverlay = {'backgroundColor': 'black', 'position': 'absolute', 'top': 0, 'left': 0,
'right': 0, 'bottom': 0};
const object9 = {'height': 72, 'width': 72};
object9.borderRadius = xl;
const object5 = {'height': 72, 'width': 72};
object5.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,
object5.backgroundColor = BACKGROUND_MOD_MUTED;
object.loadingIcon = object5;
const object6 = {'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;
object6.gap = PX_16;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object10.right = PX_12;
object6.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');
object6.top = PX_12;
object.actionsWrapper = object6;
const env0_11 = Reflect.apply(createStyles, value, [object]);
object = {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')}]};}"};
object = {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')}]};}"};
object = {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')};}"};
object = {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')};}"};
(FileImportTrackerModule).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>;
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 object;
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 useToken = UseTokenModule.useToken;
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
const value5 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BASE_LOW]);
const defaultImport = 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 = (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 = (ReanimatedRexport).View;
const items4 = [styles.collapsedHeaderBanner];
items4[1] = {backgroundColor: value7};
items4[2] = value11.headerStyle;
const View4 = (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 = (ReanimatedRexport).View;
const nameStyle = value11.nameStyle;
const Heading = (TextModule).Heading;
items6[2] = (
<View5 style={nameStyle} pointerEvents="none">
<Heading variant="heading-lg/bold" color="white">
{r21}
</Heading>
</View5>
);
const Spacer = (NativeModule).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;
}
} 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 useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const n_894842 = n_89484;
const object2 = {};
object2.interpolate = ReanimatedRexportModule.interpolate;
object2.scrollOffsetY = scrollOffsetY;
object2.HEADER_SCROLL_RANGE = 105;
n_894842.__closure = object2;
n_894842.__workletHash = 2572905048492;
n_894842.__initData = env1_12;
return {style: Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [n_894842])};
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 _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 object = {};
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;
object.headerStyle = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = l_89487;
closure.__closure = {interpolate: interpolate, scrollOffsetY: scrollOffsetY, HEADER_SCROLL_RANGE: 105};
closure.__workletHash = 14190901941859;
closure.__initData = env1_14;
object.nameStyle = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
return object;
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 object = {};
let value = environment.__proto__.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const interpolate = value.interpolate;
const scrollOffsetYBinding = scrollOffsetY;
object.transform = [{translateY: Reflect.apply(interpolate, value, [scrollOffsetYBinding.get(), [52.5, 105], [16,
0], 'clamp'])}];
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
object.opacity = value.interpolate(scrollOffsetYBinding.get(), [52.5, 105], [0, 1], 'clamp');
return object;
}
}
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 useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const n_894892 = n_89489;
const object2 = {};
object2.interpolate = ReanimatedRexportModule.interpolate;
object2.scrollOffsetY = scrollOffsetY;
object2.HEADER_SCROLL_RANGE = 105;
n_894892.__closure = object2;
n_894892.__workletHash = 9589752719246;
n_894892.__initData = env1_15;
return {style: Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [n_894892])};
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')};
}
}
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 object = {};
let id = application.id;
object.application_id = id;
object.source = env0_1;
Reflect.apply(track, defaultImport, [APP_LAUNCHER_APPLICATION_LINK_COPIED, object]);
const moduleValue = require(dependencyMap[23]);
const copy = moduleValue.copy;
const binding = env0_2;
const moduleValue2 = require(dependencyMap[24]);
if (binding) {
getActivityLaunchURL = moduleValue2.getActivityLaunchURL;
object = {};
id = application.id;
object.applicationId = id;
id = env0_3 == null ? value2 : env0_3.id;
object.referrerId = id;
r2 = Reflect.apply(getActivityLaunchURL, moduleValue2, [object]);
} else {
getApplicationInstallURL = moduleValue2.getApplicationInstallURL;
object = {};
applicationBinding = application;
object.id = applicationBinding.id;
moduleValue3 = require(dependencyMap[15]);
copyDataProperties(object, moduleValue3.getInstallAppProps(applicationBinding), dependencyMap);
r2 = Reflect.apply(getApplicationInstallURL, moduleValue2, [object]);
}
Reflect.apply(copy, moduleValue, [r2]);
require(dependencyMap[25]).presentLinkCopied();
return value2;
}
}
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')};
}
global.__d(_fun89480, 11672, [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]) /* metro module 11672, 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] */;
@@ -1,86 +1,93 @@
/* 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] */
import AccessibilityStore from '../../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseEmbeddedActivityBackground from '../../../../../activities/utils/useEmbeddedActivityBackground.tsx'; /* Metro dependency 10718 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AppLauncherNativeConstantsModule from '../../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetConstantsModule from '../../../../../action_sheet/native/ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as UseGetOrFetchApplicationsModule from '../../../../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
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 useHeroMediaDimensions2 = 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');
ReactModule;
const env0_7 = (CreateStylesModule).createStyles({mediaBackground: {backgroundColor: 'black'}});
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/screens/application_view/activity/HeroMedia.tsx');
exports.default = HeroMedia_89189;
exports.useHeroMediaDimensions = closure;
}
exports.useHeroMediaDimensions = useHeroMediaDimensions2;
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 object = {width: value};
const Math = global.Math;
object.height = Math.floor(9 * value / 16);
return object;
}
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) {
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 r0;
var value9;
var Video;
var height;
var intl;
var mediaBackground;
var value;
const styles = useStyles();
const value3 = useHeroMediaDimensions({width: width});
const defaultImport = UseEmbeddedActivityBackground;
object = {applicationId: applicationId};
object.size = value3.width;
object.names = ['embedded_cover'];
const value4 = defaultImport(object);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.useReducedMotion;
}, []);
const value6 = (UseGetOrFetchApplicationsModule).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 {
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;
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;
}
return r0;
}
global.__d(_fun89187, 11625, [31, 4502, 1483, 6276, 33, 4501, 8775, 10718, 566, 6777, 11599, 9543, 1244,
2]) /* metro module 11625, dependencies: [31, 4502, 1483, 6276, 33, 4501, 8775, 10718, 566, 6777, 11599, 9543, 1244, 2] */;
@@ -1,429 +1,517 @@
/* 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] */
import Module00005 from '../../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import UseWindowDimensionsNative from '../../../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseKeyboardActionSheetHeight from '../../../../../action_sheet/native/useKeyboardActionSheetHeight.tsx'; /* Metro dependency 11577 */
import AppLauncherFlashList from '../../../base_components/AppLauncherFlashList.tsx'; /* Metro dependency 11643 */
import UseSortedSectionCommands from '../../../../hooks/useSortedSectionCommands.tsx'; /* Metro dependency 11675 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ServerModule from '../../../../../../flow/Server.tsx'; /* Metro dependency 1909 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseFontScaleModule from '../../../../../screen/native/useFontScale.tsx'; /* Metro dependency 4584 */
import * as ApplicationCommandConstantsModule from '../../../../../application_commands/ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
import * as TableRowNativeModule from '../../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ApplicationCommandIndexStoreModule from '../../../../../application_commands/ApplicationCommandIndexStore.tsx'; /* Metro dependency 7861 */
import * as ApplicationCommandQueryApiModule from '../../../../../application_commands/ApplicationCommandQueryApi.tsx'; /* Metro dependency 8060 */
import * as AppLauncherContextModule from '../../../AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as AppLauncherNativeUtilsModule from '../../../AppLauncherNativeUtils.tsx'; /* Metro dependency 11592 */
import * as UsePlaceholderSizeModule from '../../../hooks/usePlaceholderSize.tsx'; /* Metro dependency 11595 */
import * as AppLauncherFlashListModule from '../../../base_components/AppLauncherFlashList.tsx'; /* Metro dependency 11643 */
import * as HeaderModule from '../Header.tsx'; /* Metro dependency 11672 */
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 CommandRow_894582 = 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 */;
let value = ApplicationCommandIndexStoreModule;
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;
object = {};
const EXPANDED_HEADER_HEIGHT = (HeaderModule).EXPANDED_HEADER_HEIGHT;
const SHEET_HANDLE_CONTAINER_HEIGHT = (HeaderModule).SHEET_HANDLE_CONTAINER_HEIGHT;
object.headerSpacer = {height: EXPANDED_HEADER_HEIGHT - SHEET_HANDLE_CONTAINER_HEIGHT};
object.list = {paddingHorizontal: DEFAULT_CONTENT_PADDING};
object.commandsHeaderContainer = {'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center',
'marginBottom': 8};
object.commandsHeaderTextContainer = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 8};
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.viewContainerStyle = object4;
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object2.mainContainerStyle = {'backgroundColor': null, 'paddingHorizontal': 12, 'paddingVertical': 16,
object.mainContainerStyle = {'backgroundColor': null, 'paddingHorizontal': 12, 'paddingVertical': 16,
backgroundColor: CARD_BACKGROUND_DEFAULT};
object2.expandDescriptionCTAStyle = {'right': 16, 'bottom': 16};
object.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'};
object.monetizationDisclosureTextStyle = {marginLeft: PX_4};
const object7 = {'flexDirection': 'row', 'alignItems': 'center'};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object5.marginBottom = PX_24;
object7.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,
object7.gap = PX_16;
object.monetizationDisclosureContainerStyle = object7;
object.monetizationDisclosureStyle = {'flexDirection': 'row', 'alignItems': 'center'};
const object8 = {'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 = {};
object8.backgroundColor = BACKGROUND_MOD_SUBTLE;
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.loadingTextPlaceholder = object8;
const object9 = {};
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';
object9.backgroundColor = BACKGROUND_MOD_SUBTLE;
object9.height = 16;
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object9.alignSelf = 'flex-start';
object.loadingTextPlaceholderSmall = object9;
object.noCommandsTextContainer = {alignItems: 'center'};
const env0_16 = Reflect.apply(createStyles, value, [object]);
object = {PLACEHOLDER: 0};
object[0] = 'PLACEHOLDER';
object.COMMAND = 1;
object[1] = 'COMMAND';
const Array = global.Array;
const array = new Array(6);
const fill = array.fill;
const PLACEHOLDER = object2.PLACEHOLDER;
const PLACEHOLDER = object.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');
(FileImportTrackerModule).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) {
exports.CommandRow = CommandRow_894582;
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 = (UsePlaceholderSizeModule).usePlaceholderWidth(10, 50);
const value3 = (UsePlaceholderSizeModule).usePlaceholderWidth(30, 90);
const TableRow = (TableRowNativeModule).TableRow;
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}
<TableRow
label={<View style={[styles.loadingTextPlaceholder, {width: '' + value2 + '%'}]} />}
subLabel={<View style={[styles.loadingTextPlaceholderSmall, {width: '' + value3 + '%'}]} />}
subLabelLineClamp={1}
start={isFirstRow}
end={isLastRow}
/>
);
}
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;
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 useAppLauncherContext = AppLauncherContextModule.useAppLauncherContext;
const env0_6 = Reflect.apply(useAppLauncherContext, AppLauncherContextModule, []).entrypoint;
useUserIndexState(true, true);
useContextIndexState(context, true, true);
const TableRow = (TableRowNativeModule).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_89460} onExecuteCommand={onExecuteCommand} tryExecuteCommand={installOnDemand ? _fun89461() : undefined} sectionName={sectionName} />)(importDefault(11646) /* metro dependency 11646: CommandRowButton */)}
/>
);
function CommandRow_89458BeforeExecuteCommand() { // 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 object = {};
object.command = command;
object.location = location;
object.triggerSection = (require(5065) /* metro dependency 5065: ApplicationCommandUtils */).getCommandTriggerSection(section);
object.sectionName = sectionName;
return Reflect.apply(trackCommandSelected, value, [object]);
}
if (value5.isAuthorized) {
a0();
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* _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 _fun89464() { // fn#89464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11857:2921, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
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();
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 onCommandExecuted2 = onCommandExecuted;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const {chatInputRef,
keyboardCloseReasonRef} = (AppLauncherContextModule).useRequiredAppLauncherContext();
const value4 = (UseFontScaleModule).useFontScale();
const Math = global.Math;
const value6 = 60 + Math.max(36 * value4 - 36, 0);
const useDiscovery = ApplicationCommandQueryApiModule.useDiscovery;
const object = {context: context};
const ApplicationCommandType = (ServerModule).ApplicationCommandType;
const CHAT = ApplicationCommandType.CHAT;
object.filters = {commandTypes: [CHAT]};
object.options = {'placeholderCount': 0, 'limit': null, 'includeFrecency': true,
limit: DISCOVERY_COMMANDS_QUERY_LIMIT, allowApplicationState: installOnDemand, installOnDemand: installOnDemand,
applicationId: application.id};
object.allowFetch = true;
const {filterSection, commandsByActiveSection, sectionDescriptors, loading} = Reflect.apply(useDiscovery,
ApplicationCommandQueryApiModule, [object]);
const value8 = (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);
}
} 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);
const binding = onCommandExecuted2;
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 = (UseWindowDimensionsNative)().width;
const maximum = (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 = (AppLauncherFlashListModule).useAppLauncherFlashListProps();
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
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 = (NativeModule).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 _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 _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 _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__;
(AppLauncherNativeUtilsModule).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 object;
var stylesBinding;
var items3;
const Text = (TextModule).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) {
object = {};
stylesBinding = styles;
object.style = stylesBinding.monetizationDisclosureStyle;
const BillIcon = (require(11677) /* metro dependency 11677: BillIcon */).BillIcon;
items3 = [
<BillIcon size="sm" color="icon-muted" />,
];
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 {...object}>
{items3}
</View>
);
} else {
r6 = value4;
}
if (r3) {
object = {};
stylesBinding = styles;
object.style = stylesBinding.monetizationDisclosureStyle;
const ShopIcon = (require(10358) /* metro dependency 10358: ShopIcon */).ShopIcon;
items2 = [
<ShopIcon size="sm" color="icon-muted" />,
];
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 {...object}>
{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 object = {};
const stylesBinding = styles;
copyDataProperties(object, stylesBinding.list, stylesBinding);
object['paddingBottom'] = env0_19;
return object;
}
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 object = {};
const ApplicationCommandTriggerLocations = require(dependencyMap[23]).ApplicationCommandTriggerLocations;
const APP_LAUNCHER_APPLICATION_VIEW_MORE_MENU = ApplicationCommandTriggerLocations.APP_LAUNCHER_APPLICATION_VIEW_MORE_MENU;
object.location = APP_LAUNCHER_APPLICATION_VIEW_MORE_MENU;
object.application_id = application.id;
object.section_name = sectionName;
object.source = entrypoint;
if (installAppProps.customInstallUrl == null) {
moduleValue = require(dependencyMap[39]);
moduleValue.trackWithMetadata(AnalyticEvents.APP_LAUNCHER_OAUTH2_AUTHORIZE_OPENED, object);
}
value = require(dependencyMap[40]);
const installApplication = value.installApplication;
object = {};
copyDataProperties(object, installAppProps, dependencyMap);
object['source'] = 'app_launcher_app_details';
object['oauth2Callback'] = oauth2Callback;
Reflect.apply(installApplication, value, [object]);
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);
}
}
}
}
}
global.__d(_fun89456, 11671, [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]) /* metro module 11671, 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] */;
@@ -1,75 +1,86 @@
/* 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] */
import Module08639 from '../../../../../../by-id/module-08639.js'; /* Metro dependency 8639 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UserSettingsModule from '../../../../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as ToastUtilsModule from '../../../../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as AppLauncherUtilsModule from '../../../../utils/AppLauncherUtils.tsx'; /* Metro dependency 8046 */
import * as IconButtonNativeModule from '../../../../../../design/components/Button/native/IconButton.native.tsx'; /* Metro dependency 8341 */
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');
ReactModule;
(FileImportTrackerModule).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 object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var object2;
const installAppProps = (AppLauncherUtilsModule).getInstallAppProps(application);
const items2 = [];
if ((require(8063) /* metro dependency 8063: ApplicationInstallUtils */).canInstallApplication(installAppProps) && onAddAppMenuClick != null) {
push = items2.push;
object = {};
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.NgXl3C);
object.action = action_89495;
object.IconComponent = (require(10504) /* metro dependency 10504: CirclePlusIcon */).CirclePlusIcon;
Reflect.apply(push, items2, [object]);
}
const DeveloperMode = (UserSettingsModule).DeveloperMode;
const getSetting = DeveloperMode.getSetting;
if (Reflect.apply(getSetting, DeveloperMode, [])) {
push = items2.push;
object2 = {};
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+NP/b2']);
object2.action = action_89496;
object2.IconComponent = (require(8772) /* metro dependency 8772: IdIcon */).IdIcon;
Reflect.apply(push, items2, [object2]);
}
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);
(ToastUtilsModule).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 = (IconButtonNativeModule).IconButton;
const iconButtonProps2 = {'ref': null, 'size': 'sm', 'variant': 'secondary-overlay', ref: ref,
icon: Module08639, ...value2};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const PdRCRg = (IndexNativeModule).t.PdRCRg;
iconButtonProps2['accessibilityLabel'] = Reflect.apply(string, intl, [PdRCRg]);
iconButtonProps2['maxFontSizeMultiplier'] = 1.5;
return <IconButton {...iconButtonProps2} />;
}
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} />;
}
global.__d(_fun89493, 11674, [31, 33, 8046, 8063, 1244, 10504, 3829, 6797, 3856, 8772, 8811, 8341, 8639,
2]) /* metro module 11674, dependencies: [31, 33, 8046, 8063, 1244, 10504, 3829, 6797, 3856, 8772, 8811, 8341, 8639, 2] */;
@@ -1,284 +1,382 @@
/* 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] */
import Module00057 from '../../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ReanimatedRexport from '../../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import UsePrevious from '../../../../../../hooks/usePrevious.tsx'; /* Metro dependency 6266 */
import UseRefValue from '../../../../../../hooks/useRefValue.tsx'; /* Metro dependency 6619 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsIOSModule from '../../../../../../ConstantsIOS.tsx'; /* Metro dependency 676 */
import * as ColorUtilsModule from '../../../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as ReanimatedRexportModule from '../../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingPresetsModule from '../../../../../../design/animation/reanimated/timing/timingPresets.tsx'; /* Metro dependency 4507 */
import * as AppLauncherUtilsModule from '../../../../utils/AppLauncherUtils.tsx'; /* Metro dependency 8046 */
import * as UseIsScreenLandscapeNativeModule from '../../../../../screen/useIsScreenLandscape.native.tsx'; /* Metro dependency 8750 */
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,
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
object.animatedViewContainer = {overflow: 'hidden'};
object.container = {'position': 'relative', 'width': '100%'};
object.measuringContainer = {'width': '100%', 'position': 'absolute'};
object.descriptionContainer = {marginTop: 8};
object.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,
object.expandDescriptionCTA = {'backgroundColor': null, 'position': 'absolute', 'right': 16, 'bottom': 16,
'flexDirection': 'row', backgroundColor: CARD_BACKGROUND_DEFAULT};
object2.collapseDescriptionCTA = {marginTop: 4};
object.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};
object.nameContainer = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'overflow': 'hidden', gap: PX_4};
object.nameText = {flexShrink: 1};
const object4 = {'justifyContent': 'center', 'paddingVertical': 2};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.paddingHorizontal = PX_8;
object4.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);}'};
object4.backgroundColor = INTERACTIVE_BACKGROUND_ACTIVE;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.partnerLabelWrapper = object4;
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function DetailsHeaderTsx1(){const{height}=this.__closure;return{height:height.get()};}'};
object = {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');
(FileImportTrackerModule).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)];
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 = (ConstantsIOSModule).HorizontalGradient;
var object;
var items13;
var items14;
const styles = useStyles();
const isPartnerApplication2 = (AppLauncherUtilsModule).isPartnerApplication(application);
let binding = env0_4;
const value4 = binding.useRef(null);
let useState = binding.useState;
const value5 = Reflect.apply(useState, binding, [false]);
const binding2 = property22;
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 property22 = 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 = (AppLauncherUtilsModule).getSectionName(application);
const sectionDescription = (AppLauncherUtilsModule).getSectionDescription(application);
let r10 = sectionDescription != null && sectionDescription.trim().length > 0;
const [property3, env0_9] = property22(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;
let items2 = [ColorUtilsModule.hexOpacityToRgba(backgroundColor, 0)];
items2[1] = ColorUtilsModule.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 = property22;
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 = (UseIsScreenLandscapeNativeModule).useIsScreenLandscape();
binding.useEffect(_fun73252, [value26, (UsePrevious)(value26)]);
const onPress_732532 = onPress_73253;
const value28 = (UseRefValue)(value4);
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const View2 = (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 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])]);
var pressableBindingProps = {style: hideName ? value29 : styles.descriptionContainer, onPress: onPress_732532,
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 {
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)]);
r17 = r10;
}
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);
const view2 = (
<View {...viewBindingProps}>
{view}
{r17}
</View>
);
if (property) {
if (property2) {
r9 = null;
} else {
var pressableBindingProps = {style: [styles.expandDescriptionCTA, expandDescriptionCTAStyle],
onPress: onPress_732532, 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_73258}
>
{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 = (ReanimatedRexportModule).useSharedValue(null);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const useContainerAnimationT2 = useContainerAnimationT;
useContainerAnimationT2.__closure = {height: value2};
useContainerAnimationT2.__workletHash = 23826674246;
useContainerAnimationT2.__initData = env1_11;
return {containerStyle: Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [useContainerAnimationT2]),
containerHeight: value2};
function useContainerAnimationT() { // fn#73250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9578:1616, owner: DetailsHeader.useContainerAnimation.t, offset: 0x01d65181, size: 24 bytes, params: 1, frame: 10
const object = {};
object.height = env0_0.get();
return object;
}
}
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 == JsxRuntimeModule.jsx ? value2 : (require(8764) /* metro dependency 8764: BioMarkupUtils */).parseBioReactWithCachedAST(JsxRuntimeModule.jsx);
}
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 = (TimingPresetsModule).timingStandard;
var value3;
var moduleValue2;
var onPressT2;
var object;
if (env0_1) {
env0_5.current = false;
if (Module00057) {
containerHeightBinding = containerHeight;
set = containerHeightBinding.set;
value3 = environment.__proto__;
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue2.withTiming;
current = env0_10.current;
onPressT2 = onPressT;
object = {};
object.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
object.setShouldLineClamp = env0_12;
onPressT2.__closure = object;
onPressT2.__workletHash = 6050776164847;
onPressT2.__initData = env1_12;
Reflect.apply(set, containerHeightBinding, [Reflect.apply(withTiming, moduleValue2, [current,
timingStandard,
'respect-motion-settings', onPressT2])]);
} 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(!Module00057);
}
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);
}
}
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 (JsxRuntimeModule.jsxs == 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 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);
}
global.__d(_fun73247, 9392, [57, 31, 27, 33, 4501, 697, 4017, 8046, 4000, 8764, 8750, 6266, 4504, 4507, 6619, 4573,
1244, 4589, 676,
2]) /* metro module 9392, dependencies: [57, 31, 27, 33, 4501, 697, 4017, 8046, 4000, 8764, 8750, 6266, 4504, 4507, 6619, 4573, 1244, 4589, 676, 2] */;
@@ -1,89 +1,107 @@
/* 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] */
import UseFilterAndSortToOnlyFrecentCommands from '../../../../hooks/useFilterAndSortToOnlyFrecentCommands.tsx'; /* Metro dependency 11686 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ApplicationCommandTypesModule from '../../../../../application_commands/ApplicationCommandTypes.tsx'; /* Metro dependency 5068 */
import * as AppDetailContentModule from './AppDetailContent.tsx'; /* Metro dependency 11671 */
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 */;
let value = JsxRuntimeModule;
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 BETWEEN_SECTIONS_MARGIN = (AppDetailContentModule).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');
(FileImportTrackerModule).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 = (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 object;
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;
object = {};
object.num = env0_6.length;
object.section_name = sectionName;
object.location = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherLocations.APP_DETAIL;
Reflect.apply(trackWithMetadata, moduleValue, [APP_LAUNCHER_FRECENTS_SEEN, object]);
}
}
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 = (AppDetailContentModule).CommandRow;
const onPressCommandBinding = onPressCommand;
const length = env0_6.length;
const contextBinding = context;
const onExecuteCommandBinding = onExecuteCommand;
const installOnDemandBinding = installOnDemand;
const sectionBinding = section;
const ApplicationCommandTriggerLocations = (ApplicationCommandTypesModule).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}
/>
);
}
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}
/>
);
}
global.__d(_fun89545, 11685, [31, 27, 661, 33, 4501, 11671, 11686, 4863, 8048, 4573, 1244, 5068,
2]) /* metro module 11685, dependencies: [31, 27, 661, 33, 4501, 11671, 11686, 4863, 8048, 4573, 1244, 5068, 2] */;
@@ -1,61 +1,72 @@
/* 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] */
import Native from '../../../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BottomSheetNativeModule from '../../../../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BottomSheetTitleHeaderNativeModule from '../../../../../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as TableRadioRowNativeModule from '../../../../../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../../../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
import * as AppLauncherConstantsModule from '../../../../../AppLauncherConstants.tsx'; /* Metro dependency 11676 */
import * as ArrowsUpDownIconModule from '../../../../../../../design/components/Icon/native/redesign/generated/ArrowsUpDownIcon.tsx'; /* Metro dependency 11689 */
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');
ReactModule;
(FileImportTrackerModule).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 = (BottomSheetNativeModule).BottomSheet;
const object = {startExpanded: true};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const object2 = {};
const ArrowsUpDownIcon = (ArrowsUpDownIconModule).ArrowsUpDownIcon;
const TEXT_DEFAULT = (Native).colors.TEXT_DEFAULT;
object2.leading = <ArrowsUpDownIcon size="sm" color={TEXT_DEFAULT} />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.yeYaHf]);
object.header = <BottomSheetTitleHeader {...object2} />;
const TableRadioGroup = (TableRadioGroupNativeModule).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 object6 = {};
object6.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m8xsti);
const ALPHABETICAL = CommandListSortOrder.ALPHABETICAL;
object6.value = ALPHABETICAL;
items2[1] = object6;
return (
<BottomSheet {...object}>
<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 = (TableRadioRowNativeModule).TableRadioRow;
return (
<TableRadioRow
label={label}
value={value}
key={value}
/>
);
}
}
}
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}
/>
);
}
global.__d(_fun89561, 11688, [31, 11676, 33, 1244, 6275, 6758, 11689, 697, 7988, 7987,
2]) /* metro module 11688, dependencies: [31, 11676, 33, 1244, 6275, 6758, 11689, 697, 7988, 7987, 2] */;
@@ -1,65 +1,79 @@
/* 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] */
import Native from '../../../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../../../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FormConstantsModule from '../../../../../../../design/void/Form/native/FormConstants.tsx'; /* Metro dependency 1309 */
import * as TextModule from '../../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ChevronSmallDownIconModule from '../../../../../../../design/components/Icon/native/redesign/generated/ChevronSmallDownIcon.tsx'; /* Metro dependency 8708 */
import * as AppLauncherConstantsModule from '../../../../../AppLauncherConstants.tsx'; /* Metro dependency 11676 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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;
object = {};
const object2 = {overflow: 'hidden'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
object.container = object2;
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object3.button = {'gap': 4, 'flexDirection': 'row', 'alignItems': 'center', 'paddingHorizontal': 12,
object.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');
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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 = (PressablesModule).PressableOpacity;
const pressableOpacityProps = {'accessibilityRole': 'button', 'androidRippleConfig': null, 'activeOpacity': 0.8,
androidRippleConfig: ANDROID_FOREGROUND_RIPPLE, style: styles.container, onPress: onPress_89559};
const Text = (TextModule).Text;
const text = (
<Text variant="text-sm/medium" color="text-default">
{r11}
</Text>
);
const ChevronSmallDownIcon = (ChevronSmallDownIconModule).ChevronSmallDownIcon;
const TEXT_DEFAULT = (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__;
(ActionSheetActionCreators).hideActionSheet('CommandListSortActionSheet');
}
}
}
}
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');
}
global.__d(_fun89557, 11687, [31, 27, 11676, 1309, 33, 4501, 697, 1244, 5278, 4080, 11688, 1962, 4573, 8708,
2]) /* metro module 11687, dependencies: [31, 27, 11676, 1309, 33, 4501, 697, 1244, 5278, 4080, 11688, 1962, 4573, 8708, 2] */;
@@ -1,152 +1,175 @@
/* 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] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ReanimatedRexport from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as AppLauncherNativeConstantsModule from '../../AppLauncherNativeConstants.tsx'; /* Metro dependency 1483 */
import * as UseTokenModule from '../../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AppLauncherBackButtonModule from '../../base_components/AppLauncherBackButton.tsx'; /* Metro dependency 11673 */
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 */;
let value = AppLauncherNativeConstantsModule;
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;
const BACK_BUTTON_SIZE = (AppLauncherBackButtonModule).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',
const createStyles = CreateStylesModule.createStyles;
object = {};
object.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;
object.loadingHeaderContainer = {backgroundColor: BACKGROUND_BASE_LOWEST};
const object4 = {'position': 'absolute', 'padding': 4, 'bottom': -36, 'left': '50%'};
object4.backgroundColor = SCREEN_BACKGROUND_COLOR;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl + 4;
object.appIconMask = object4;
const object5 = {'width': 72, 'height': 72};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object.appIcon = object5;
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,
object.loadingIcon = {backgroundColor: BACKGROUND_MOD_MUTED};
object.appSmallName = {'textAlign': 'center', 'pointerEvents': 'none', 'flexGrow': 1, 'marginHorizontal': 8};
object.icon = {transform: [{rotate: '180deg'}]};
object.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');
const styles = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {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')}]};}"};
object = {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')};}"};
object = {code: "function AppLauncherCommandViewHeaderTsx3(){const{interpolate,scrollOffsetY,TOTAL_SCROLL_RANGE}=this.__closure;return{opacity:interpolate(scrollOffsetY.get(),[0,TOTAL_SCROLL_RANGE],[0,0.5],'clamp')};}"};
(FileImportTrackerModule).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
const styles = useStyles();
let binding = ReactModule;
const value3 = binding.useMemo(_fun89633, [section]);
let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
let closure = AppLauncherCommandViewHeaderA;
object = {interpolate: ReanimatedRexportModule.interpolate, scrollOffsetY: scrollOffsetY};
binding = env0_8;
object.TOTAL_SCROLL_RANGE = binding;
closure.__closure = object;
closure.__workletHash = 15596175827193;
closure.__initData = env0_10;
const value4 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = AppLauncherCommandViewHeaderE;
object = {'APP_ICON_SIZE': 72, 'APP_ICON_BORDER_WIDTH': 4};
object.DEFAULT_CONTENT_PADDING = DEFAULT_CONTENT_PADDING;
object.interpolate = ReanimatedRexportModule.interpolate;
object.scrollOffsetY = scrollOffsetY;
object.TOTAL_SCROLL_RANGE = binding;
closure.__closure = object;
closure.__workletHash = 13563524587234;
closure.__initData = env0_11;
const value5 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.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, ReanimatedRexportModule, [closure]);
const useToken = UseTokenModule.useToken;
const BACKGROUND_BASE_LOW = (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 = (ReanimatedRexport).View;
const items4 = [
<View2 style={[styles.headerBannerOverlay, value6]} />,
];
items4[1] = ((Component) => <Component onPress={onPressBack} />)(importDefault(11673) /* metro dependency 11673: AppLauncherBackButton */);
const Text = (TextModule).Text;
items4[2] = (
<Text
lineClamp={1}
animated
style={[styles.appSmallName, value4]}
variant="heading-lg/bold"
color="white"
>
{command?.displayName}
</Text>
);
const Spacer = (NativeModule).Spacer;
items4[3] = <Spacer size={32} />;
const View3 = (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 object = {};
let value = environment.__proto__;
const interpolate = ReanimatedRexportModule.interpolate;
const scrollOffsetYBinding = scrollOffsetY;
const value3 = scrollOffsetYBinding.get();
const binding = env1_8;
object.opacity = Reflect.apply(interpolate, ReanimatedRexportModule, [value3, [0, binding], [0, 1], 'clamp']);
value = ReanimatedRexportModule;
object.transform = [{translateY: value.interpolate(scrollOffsetYBinding.get(), [0, binding], [12, 0], 'clamp')}];
return object;
}
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 object = {};
let value = environment.__proto__;
const items2 = [{translateX: -40 + DEFAULT_CONTENT_PADDING}];
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')};
object.transform = items2;
value = ReanimatedRexportModule;
object.opacity = value.interpolate(scrollOffsetYBinding.get(), [0, binding], [1, 0], 'clamp');
return object;
}
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
return {opacity: ReanimatedRexportModule.interpolate(scrollOffsetY.get(), [0, env1_8], [0, 0.5], 'clamp')};
}
}
}
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')};
}
global.__d(_fun89631, 11692, [31, 27, 1483, 33, 11673, 4501, 697, 11592, 4017, 3860, 8372, 5475, 4573, 1305,
2]) /* metro module 11692, dependencies: [31, 27, 1483, 33, 11673, 4501, 697, 11592, 4017, 3860, 8372, 5475, 4573, 1305, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,16 +1,20 @@
/* 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] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ServerModule from '../../../../../flow/Server.tsx'; /* Metro dependency 1909 */
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;
ReactModule;
const Set = global.Set;
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
const ApplicationCommandOptionType = (ServerModule).ApplicationCommandOptionType;
let STRING = ApplicationCommandOptionType.STRING;
let INTEGER = ApplicationCommandOptionType.INTEGER;
const ATTACHMENT = ApplicationCommandOptionType.ATTACHMENT;
@@ -23,99 +27,127 @@ function _fun89667(global, require, importDefault, importAll, module, exports, d
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 ICON_FEEDBACK_CRITICAL = (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];
items2 = [STRING];
INTEGER = ApplicationCommandOptionType.INTEGER;
items[1] = INTEGER;
items2[1] = INTEGER;
NUMBER = ApplicationCommandOptionType.NUMBER;
items[2] = NUMBER;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/command_view/CommandOptionView.tsx');
items2[2] = NUMBER;
(FileImportTrackerModule).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;
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 object3;
var View2;
var object5;
var items2;
var View3;
var value;
const styles = useStyles();
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;
object3 = {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};
object5 = {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 {...object3}>
<View2 {...view2Props}>
<View {...object5}>
{items2}
</View>
</View2>
</AwaitAnimationContext>
</LayoutAnimationConfig>
);
}
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);
}
function CommandOptionViewOnFocus() { // fn#89672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11883:2392, owner: CommandOptionView.onFocus, offset: 0x02019d2b, size: 20 bytes, params: 1, frame: 11
return setFocusedOption(option);
}
function CommandOptionViewOnPress() { // fn#89673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11883:2409, owner: CommandOptionView.onPress, offset: 0x02019d3f, size: 20 bytes, params: 1, frame: 11
return onPressOption(option);
}
function onPressAttachmentOption() { // fn#89674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11883:2442, owner: CommandOptionView.onPressAttachmentOption, offset: 0x01c39198, size: 20 bytes, params: 1, frame: 11
return onPressAttachmentOption(option);
}
}
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);
}
global.__d(_fun89667, 11697, [31, 27, 4502, 33, 1909, 4501, 697, 566, 4017, 11698, 11699, 4573, 11700, 1305, 11077,
2]) /* metro module 11697, dependencies: [31, 27, 4502, 33, 1909, 4501, 697, 566, 4017, 11698, 11699, 4573, 11700, 1305, 11077, 2] */;
@@ -1,67 +1,98 @@
/* Metro module 11728; source: modules/app_launcher/native/screens/command_view/OptionalCommandOptionList.tsx; dependencies: [31, 27, 33, 4501, 697, 6238, 5278, 4573, 1244, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as TableRowNativeModule from '../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
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};
ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'overflow': 'hidden', 'borderWidth': 1};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object5.borderColor = BORDER_SUBTLE;
object2.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;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.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',
copyDataProperties(object2, SHADOW_BORDER, undefined);
object.container = object2;
const object3 = {'borderRadius': null, 'minWidth': 48, 'height': 32, 'justifyContent': 'center',
'alignItems': 'center', 'paddingHorizontal': 12};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.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;
object3.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object.addButton = object3;
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');
object.addButtonText = {color: REDESIGN_BUTTON_TERTIARY_TEXT};
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).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 _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 = (TableRowNativeModule).TableRow;
const tableRowProps = {onPress: onPress_89883, start: false, end: a1 === options.length - 1, label: a0.displayName,
subLabel: a0.displayDescription};
const PressableOpacity = (PressablesModule).PressableOpacity;
const object2 = {accessibilityRole: 'button'};
const stylesBinding = styles;
object2.style = stylesBinding.addButton;
object2.onPress = onPress_89884;
const Text = (TextModule).Text;
const addButtonText = stylesBinding.addButtonText;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const OYkgVk = (IndexNativeModule).t.OYkgVk;
tableRowProps.trailing = (
<PressableOpacity {...object2}>
<Text variant="text-sm/semibold" style={addButtonText}>
{Reflect.apply(string, intl, [OYkgVk])}
</Text>
</PressableOpacity>
);
return <TableRow {...tableRowProps} key={a0.name} />;
function onPress_89883() { // fn#89883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11914:796, offset: 0x01e3bae8, size: 23 bytes, params: 1, frame: 11
return onSelectOption(env0_0);
}
function onPress_89884() { // fn#89884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11914:973, offset: 0x01e3bae8, size: 23 bytes, params: 1, frame: 11
return onSelectOption(env0_0);
}
}
}
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 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} />;
}
global.__d(_fun89880, 11728, [31, 27, 33, 4501, 697, 6238, 5278, 4573, 1244,
2]) /* metro module 11728, dependencies: [31, 27, 33, 4501, 697, 6238, 5278, 4573, 1244, 2] */;
@@ -1,133 +1,137 @@
/* Metro module 11698; source: modules/app_launcher/native/screens/command_view/hooks/useOptionAnimations.tsx; dependencies: [57, 31, 4504, 4017, 2] */
import Module00057 from '../../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ReanimatedRexportModule from '../../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
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');
(FileImportTrackerModule).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 LayoutAnimation2 = LayoutAnimation;
const object = {};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
LayoutAnimation2.__closure = object;
LayoutAnimation2.__workletHash = 16804895997501;
LayoutAnimation2.__initData = env0_4;
return LayoutAnimation2;
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 object = {};
const value = environment.__proto__;
object.originY = (require(4504) /* metro dependency 4504: timing */).withTiming(targetOriginY, {duration: 300});
return {initialValues: {originY: currentOriginY}, animations: object};
}
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 _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 ExitingAnimation2 = ExitingAnimation;
const object = {};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
ExitingAnimation2.__closure = object;
ExitingAnimation2.__workletHash = 8977480282966;
ExitingAnimation2.__initData = env0_5;
return ExitingAnimation2;
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 object = {};
object.opacity = (require(4504) /* metro dependency 4504: timing */).withTiming(0, {duration: 300});
object.originX = (require(4504) /* metro dependency 4504: timing */).withTiming(value, {duration: 300});
return {initialValues: {originX: a0.currentOriginX, opacity: 1}, animations: object};
}
}
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
const value2 = (ReanimatedRexportModule).useSharedValue(false);
const env0_1 = ReactModule.useRef([]);
const env0_2 = ReactModule.useCallback(_fun89681, [value2]);
const value3 = ReactModule.useState(_fun89683);
object = {};
object.EnteringAnimation = env0_2(value3, 1)[0];
object.registerAnimationCompleteCallback = registerAnimationCompleteCallback;
return object;
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 n_896842 = n_89684;
const object = {};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
object.Easing = Easing;
object.OPTION_ENTRY_EXIT_LAYOUT_SHIFT_DURATION = 300;
object.withDelay = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay;
object.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
object.handleMountAnimationComplete = env0_2;
n_896842.__closure = object;
n_896842.__workletHash = 1048348699475;
n_896842.__initData = env1_6;
return n_896842;
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 = (TimingModule).withTiming;
const object = {duration: 250};
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
object.easing = Easing.bezier(0.25, 1.75, 0.25, 1.25);
value = Reflect.apply(withTiming, value, [1, object]);
const value2 = (TimingModule).withTiming(1, {duration: 200});
const object2 = {};
object2.opacity = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay(200, value2);
const object3 = {};
object3.scale = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay(200, value);
object2.transform = [object3];
return {animations: object2, 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)();
}
}
}
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)();
}
global.__d(_fun89675, 11698, [57, 31, 4504, 4017,
2]) /* metro module 11698, dependencies: [57, 31, 4504, 4017, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,33 +1,35 @@
/* Metro module 11629; source: modules/app_launcher/native/screens/home/AppLauncherHomeTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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;
object = {PLACEHOLDER: 0};
object[0] = 'PLACEHOLDER';
object.SECTION_HEADER = 1;
object[1] = 'SECTION_HEADER';
object.APP = 2;
object[2] = 'APP';
object.SHELF_ITEM = 3;
object[3] = 'SHELF_ITEM';
object.SHELF_ITEM_TUPLE = 4;
object[4] = 'SHELF_ITEM_TUPLE';
object.DIVIDER_ITEM = 5;
object[5] = 'DIVIDER_ITEM';
object.RECOMMENDATION_SECTION_HEADER = 6;
object[6] = 'RECOMMENDATION_SECTION_HEADER';
object.RECOMMENDATION_BANNER_CARD = 7;
object[7] = 'RECOMMENDATION_BANNER_CARD';
object.RECOMMENDATION_APP = 8;
object[8] = 'RECOMMENDATION_APP';
object.RECOMMENDATION_TUPLE = 9;
object[9] = 'RECOMMENDATION_TUPLE';
object.VIEW_ALL = 10;
object[10] = 'VIEW_ALL';
object.LEARN_MORE = 11;
object[11] = 'LEARN_MORE';
(FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/native/screens/home/AppLauncherHomeTypes.tsx');
exports.AppLauncherHomeListItemType = object;
}
global.__d(_fun89199, 11629, [2]) /* metro module 11629, dependencies: [2] */;
@@ -1,47 +1,57 @@
/* Metro module 11653; source: modules/app_launcher/native/screens/home/EmptyState.tsx; dependencies: [31, 27, 33, 4501, 697, 11592, 8048, 11654, 4573, 1244, 2] */
import HomeEmptyState from '../../images/HomeEmptyState.tsx'; /* Metro dependency 11654 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AppLauncherTypesModule from '../../../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
import * as AppLauncherNativeUtilsModule from '../../AppLauncherNativeUtils.tsx'; /* Metro dependency 11592 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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',
const object2 = {'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');
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_6 = Reflect.apply(createStyles, value, [{container: object2, textContainer: {textAlign: 'center'}}]);
(FileImportTrackerModule).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 useLogAppLauncherEmptyStateView = AppLauncherNativeUtilsModule.useLogAppLauncherEmptyStateView;
const AppLauncherEmptyStateType = (AppLauncherTypesModule).AppLauncherEmptyStateType;
const HOME_EMPTY = AppLauncherEmptyStateType.HOME_EMPTY;
Reflect.apply(useLogAppLauncherEmptyStateView, AppLauncherNativeUtilsModule, [HOME_EMPTY]);
let value = HomeEmptyState;
value = ((Component) => <Component />)(value);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={styles.container}>
{value}
<Text
style={styles.textContainer}
variant="text-md/semibold"
color="text-default"
>
{intl.string((IndexNativeModule).t['V7+xhH'])}
</Text>
</View>
);
}
}
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>
);
}
global.__d(_fun89359, 11653, [31, 27, 33, 4501, 697, 11592, 8048, 11654, 4573, 1244,
2]) /* metro module 11653, dependencies: [31, 27, 33, 4501, 697, 11592, 8048, 11654, 4573, 1244, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,76 +1,93 @@
/* Metro module 11594; source: modules/app_launcher/native/screens/home/FrecencySectionStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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;
const PersistedStore = (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');
(FileImportTrackerModule).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) {
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;
})();
}
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 _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 FrecencySectionStore2 = FrecencySectionStore;
Inherits(FrecencySectionStore2, a0);
return CreateClass(FrecencySectionStore2, [{key: 'initialize', value: value_88799}, {key: 'getState',
value: value_88800}, {key: 'getSelection', value: value_88801}]);
function FrecencySectionStore() { // fn#88798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11780:442, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, FrecencySectionStore);
const value3 = env1_3(FrecencySectionStore);
return env1_2(this, _isNativeReflectConstruct_88794() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
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_88800() { // fn#88800, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
return env1_6;
}
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;
}
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 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 object = {};
copyDataProperties(object, env0_6, undefined);
object['selection'] = selection;
}
}
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;
}
global.__d(_fun88793, 11594, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 11594, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,13 +1,17 @@
/* Metro module 11596; source: modules/app_launcher/native/screens/home/FrecencySectionStoreActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../../../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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
(Dispatcher).dispatch({type: 'FRECENCY_SECTION_SET_SELECTION',
selection: a0});
}
}
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});
}
global.__d(_fun88806, 11596, [694, 2]) /* metro module 11596, dependencies: [694, 2] */;
@@ -1,10 +1,19 @@
/* 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] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as GlobalUtilsModule from '../../../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NativeModule from '../../../../../design/components/experimental/native.tsx'; /* Metro dependency 8554 */
import * as AppLauncherNativeUtilsModule from '../../AppLauncherNativeUtils.tsx'; /* Metro dependency 11592 */
import * as AppLauncherHomeTypesModule from './AppLauncherHomeTypes.tsx'; /* Metro dependency 11629 */
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -12,122 +21,128 @@ function _fun89351(global, require, importDefault, importAll, module, exports, d
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const object2 = {};
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;
object2.backgroundColor = CARD_BACKGROUND_DEFAULT;
object2.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';
copyDataProperties(object2, SHADOW_LOW, undefined);
object2['paddingLeft'] = 12;
object2['paddingRight'] = 12;
object2['paddingVertical'] = 12;
object2['flexDirection'] = 'row';
object2['justifyContent'] = 'center';
object2['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');
appCardContainer: object2, iconContainer: {'marginEnd': 12, 'justifyContent': 'space-around'}}]);
(FileImportTrackerModule).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)}
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 = (AppLauncherNativeUtilsModule).getAppLauncherIconSource(application);
const PressableScale = (NativeModule).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 = (TextModule).Text;
return (
<PressableScale {...pressableScaleProps} key={application.id}>
{r7}
<Text
variant="text-md/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{application.name}
</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)}
</PressableScale>
);
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 object;
if (onAppSelected != null && application != null) {
onAppSelectedBinding = onAppSelected;
object = {};
object.application = application;
value = environment.__proto__;
object.sectionName = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherSectionName.APPS_IN_THIS_SERVER;
onAppSelectedBinding(object);
}
}
}
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((GlobalUtilsModule).isNotNullish);
const binding = env0_2;
const env0_4 = binding == null ? undefined : binding.applications.map(function(a0) {
return a0;
});
const Text = (TextModule).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>
<ScrollView
style={styles.scrollView}
contentContainerStyle={styles.scrollViewContentContainer}
horizontal
showsHorizontalScrollIndicator={false}
>
{value5}
</ScrollView>
</View>
);
}
);
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 = (AppLauncherHomeTypesModule).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();
}
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();
}
global.__d(_fun89351, 11652, [31, 27, 33, 4501, 697, 11629, 1360, 4573, 1244, 5278, 11592, 8554, 8048, 11597,
2]) /* metro module 11652, dependencies: [31, 27, 33, 4501, 697, 11629, 1360, 4573, 1244, 5278, 11592, 8554, 8048, 11597, 2] */;
@@ -1,82 +1,114 @@
/* 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] */
import TrackSectionHeader from './TrackSectionHeader.tsx'; /* Metro dependency 11637 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as AppLauncherTypesModule from '../../../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
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 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
object = {};
const object2 = {};
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';
object2.marginTop = PX_32;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.alignItems = 'center';
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object4.backgroundColor = BACKGROUND_MOD_MUTED;
object2.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'};
object2.paddingHorizontal = PX_64;
object.container = object2;
object.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,
object.divider = {height: PX_16};
const object5 = {'borderRadius': null, 'backgroundColor': null, 'paddingVertical': 12, 'paddingHorizontal': 16,
'minHeight': 48, 'justifyContent': 'center', 'alignItems': 'center'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object5.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;
object5.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');
copyDataProperties(object5, SHADOW_LOW, undefined);
object.linkButton = object5;
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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 = ReactModule.useCallback(function() {
importDefault(dependencyMap[6]).openURL(importDefault(dependencyMap[7]).getAppsSupportURL(HelpdeskArticles.APPS_LEARN_MORE));
}, []);
const intl = (IndexNativeModule).intl;
let string = intl.string;
const value3 = Reflect.apply(string, intl, [(IndexNativeModule).t['kw8/Ec']]);
string = intl.string;
const GZoV1O = (IndexNativeModule).t.GZoV1O;
const value4 = Reflect.apply(string, intl, [GZoV1O]);
const value5 = intl.formatToPlainString((IndexNativeModule).t.xx5Sug,
{sectionTitle: value3, sectionBody: value4});
const AppLauncherSectionName = (AppLauncherTypesModule).AppLauncherSectionName;
const NEW_TO_APPS = AppLauncherSectionName.NEW_TO_APPS;
const items2 = [
<View style={styles.divider} />,
];
const Text = (TextModule).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 = (PressablesModule).PressableHighlight;
string = intl.string;
const Ye51oT = (IndexNativeModule).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>
);
}
}
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>
);
}
global.__d(_fun89217, 11636, [31, 27, 661, 33, 4501, 697, 3853, 1948, 1244, 11637, 8048, 4573, 5278,
2]) /* metro module 11636, dependencies: [31, 27, 661, 33, 4501, 697, 3853, 1948, 1244, 11637, 8048, 4573, 5278, 2] */;
@@ -1,10 +1,14 @@
/* 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] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(33) /* metro dependency 33 */;
@@ -12,40 +16,48 @@ function _fun89363(global, require, importDefault, importAll, module, exports, d
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,
const object2 = {'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},
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_7 = Reflect.apply(createStyles, value, [{container: object2, textContainer: {flexShrink: 1},
image: {'width': 64, 'height': 64}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_launcher/native/screens/home/NoPermsState.tsx');
(FileImportTrackerModule).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>
);
}
}
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>
);
}
global.__d(_fun89363, 11655, [31, 27, 33, 4501, 697, 4002, 4048, 11656, 11657, 11592, 8048, 4573, 1244,
2]) /* metro module 11655, dependencies: [31, 27, 33, 4501, 697, 4002, 4048, 11656, 11657, 11592, 8048, 4573, 1244, 2] */;
@@ -1,45 +1,52 @@
/* Metro module 11601; source: modules/app_launcher/native/screens/home/SubmittingOverlay.tsx; dependencies: [33, 4501, 697, 4017, 4577, 4581, 4593, 2] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ReanimatedRexport from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SpringPresetsModule from '../../../../../design/animation/reanimated/spring/springPresets.tsx'; /* Metro dependency 4581 */
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,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_SCRIM = (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');
(FileImportTrackerModule).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 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 object = {};
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.submitting = submitting;
let SUBTLE_SPRING = (SpringPresetsModule).SUBTLE_SPRING;
object.SUBTLE_SPRING = SUBTLE_SPRING;
closure.__closure = object;
closure.__workletHash = 492443733468;
closure.__initData = env0_5;
const value2 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const View = (ReanimatedRexport).View;
return (
<View style={[style, styles.ellipsis, value2]}>
{submitting && ((Ellipsis) => <Ellipsis variant="active" size="md" />)((require(4593) /* metro dependency 4593: ButtonEllipsisNative */).Ellipsis)}
</View>
);
}
}
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>
);
}
global.__d(_fun88849, 11601, [33, 4501, 697, 4017, 4577, 4581, 4593,
2]) /* metro module 11601, dependencies: [33, 4501, 697, 4017, 4577, 4581, 4593, 2] */;
@@ -1,26 +1,31 @@
/* Metro module 11637; source: modules/app_launcher/native/screens/home/TrackSectionHeader.tsx; dependencies: [8047, 8742, 480, 2] */
import AppLauncherStore from '../../../AppLauncherStore.tsx'; /* Metro dependency 8047 */
import UseTrackImpression from '../../../../app_analytics/useTrackImpression.tsx'; /* Metro dependency 8742 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
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');
(FileImportTrackerModule).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 = UseTrackImpression;
const object = {};
const ImpressionTypes = (AnalyticsUtilsModule).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object.type = VIEW;
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const APP_LAUNCHER_SECTION = ImpressionNames.APP_LAUNCHER_SECTION;
object.name = APP_LAUNCHER_SECTION;
const object2 = {section_name: sectionName, num_items: numItems, num_visible_items: numVisibleItems};
object2.source = AppLauncherStore.entrypoint();
object.properties = object2;
defaultImport(object, {disableTrack: !viewed}, [viewed]);
return children;
}
}
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;
}
global.__d(_fun89220, 11637, [8047, 8742, 480, 2]) /* metro module 11637, dependencies: [8047, 8742, 480, 2] */;
@@ -1,73 +1,98 @@
/* 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] */
import AvatarUtils from '../../../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import UserRecord from '../../../../../../records/UserRecord.tsx'; /* Metro dependency 1885 */
import UserProfileBanner from '../../../../../user_profile/native/UserProfileBanner.tsx'; /* Metro dependency 8507 */
import UseEmbeddedActivityBackground from '../../../../../activities/utils/useEmbeddedActivityBackground.tsx'; /* Metro dependency 10718 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as AppLauncherContextModule from '../../../AppLauncherContext.tsx'; /* Metro dependency 8774 */
import * as HeroMediaModule from '../../application_view/activity/HeroMedia.tsx'; /* Metro dependency 11625 */
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%',
let value = ReactModule;
const env0_9 = (CreateStylesModule).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');
(FileImportTrackerModule).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 useRequiredAppLauncherContext = AppLauncherContextModule.useRequiredAppLauncherContext;
const value2 = (HeroMediaModule).useHeroMediaDimensions({width: Reflect.apply(useRequiredAppLauncherContext,
AppLauncherContextModule, []).width});
const {imageStyle, imageSource} = env0_3.useMemo(_fun89210, [value2,
(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 _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};
}
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 _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 userRecord2 = new UserRecord(applicationBot);
return <UserProfileBanner displayProfile={value3} user={userRecord2} />;
}
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,
'')}} />;
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 = (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;
}
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};
}
global.__d(_fun89208, 11633, [31, 27, 1885, 661, 33, 4501, 8774, 11625, 10718, 5475, 8490, 8507, 1423, 8372,
2]) /* metro module 11633, dependencies: [31, 27, 1885, 661, 33, 4501, 8774, 11625, 10718, 5475, 8490, 8507, 1423, 8372, 2] */;
@@ -1,134 +1,201 @@
/* 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] */
import AvatarUtils from '../../../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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 */;
let value = JsxRuntimeModule;
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;
object = {};
const object2 = {};
object2.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'};
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.width = '100%';
object2.overflow = 'hidden';
object.container = object2;
object.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',
object.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,
object.appDetails = {'marginLeft': null, 'flexDirection': 'column', 'flexGrow': 1, 'flexShrink': 1,
marginLeft: PX_16};
object3.appIconContainer = {flexShrink: 0};
const object5 = {'position': 'absolute', 'display': 'flex'};
object.appIconContainer = {flexShrink: 0};
const object6 = {'position': 'absolute', 'display': 'flex'};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object5.gap = PX_4;
object6.gap = PX_4;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.right = PX_8;
object6.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 = {};
object6.top = PX_8;
object6.alignItems = 'flex-end';
object.notifsContainer = object6;
object.badge = {};
const object7 = {};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object8.paddingVertical = PX_4;
object7.paddingVertical = PX_4;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.paddingHorizontal = PX_8;
object7.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');
object7.backgroundColor = CONTROL_SECONDARY_BACKGROUND_DEFAULT;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.promotedLabelWrapper = object7;
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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;
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 r15;
var r0;
var PressableOpacity;
var items2;
var items3;
const Text = (TextModule).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 useEffect = ReactModule.useEffect;
const bot = application.bot;
Reflect.apply(useEffect, ReactModule, [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 = AvatarUtils;
const getApplicationIconSource = defaultImport.getApplicationIconSource;
object = {id: application.id};
object.icon = application.icon;
object.bot = application.bot;
object.botIconFirst = true;
const value7 = Reflect.apply(getApplicationIconSource, defaultImport, [object]);
if (isLandscape) {
const BaseAppRow = (require(11623) /* metro dependency 11623: AppLauncherHomeScreen */).BaseAppRow;
r0 = (
<BaseAppRow
application={application}
iconSource={value7}
onPress={onPress}
isFirstRow={isFirst}
isLastRow={isLast}
/>
);
} 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>;
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
object = {};
r15 = isFirst ? 0 : 8;
object.style = [styles.container, {marginTop: r15, marginBottom: isLast ? 0 : 8}, style];
object.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 {...object}>
{items4}
</PressableOpacity>
);
r0 = value;
}
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;
}
return r0;
}
global.__d(_fun89205, 11632, [31, 27, 661, 33, 4501, 697, 8046, 8491, 1423, 11623, 5278, 11633, 1909, 11627, 4573,
1244, 11597, 6243,
2]) /* metro module 11632, dependencies: [31, 27, 661, 33, 4501, 697, 8046, 8491, 1423, 11623, 5278, 11633, 1909, 11627, 4573, 1244, 11597, 6243, 2] */;
@@ -1,216 +1,220 @@
/* Metro module 11641; source: modules/app_launcher/native/screens/home/useTrackAppLauncherHomeItemImpression.tsx; dependencies: [31, 11642, 11629, 7504, 483, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AppLauncherHomeTypesModule from './AppLauncherHomeTypes.tsx'; /* Metro dependency 11629 */
import * as UseTrackAppLauncherItemImpressionOnFirstViewModule from '../../hooks/useTrackAppLauncherItemImpressionOnFirstView.tsx'; /* Metro dependency 11642 */
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');
(FileImportTrackerModule).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;
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 useTrackAppLauncherItemImpressionOnFirstView = UseTrackAppLauncherItemImpressionOnFirstViewModule.useTrackAppLauncherItemImpressionOnFirstView;
const trackAppLauncherItemImpressionOnFirstView = Reflect.apply(useTrackAppLauncherItemImpressionOnFirstView,
UseTrackAppLauncherItemImpressionOnFirstViewModule, []).trackAppLauncherItemImpressionOnFirstView;
const useCallback = ReactModule.useCallback;
return {trackAppLauncherHomeItemImpression: Reflect.apply(useCallback, ReactModule, [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 object;
var sectionName;
let type = item.type;
let value = environment.__proto__.__proto__;
const AppLauncherHomeListItemType = (AppLauncherHomeTypesModule).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;
object = {};
sectionName = item.sectionName;
object.itemKey = 'sectionName:' + sectionName + ' applicationId:' + r6;
sectionName = item.sectionName;
object.sectionName = sectionName;
} else {
r3 = undefined;
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;
object = {};
sectionName = item.sectionName;
object.itemKey = 'sectionName:' + sectionName + ' applicationId:' + r6;
sectionName = item.sectionName;
object.sectionName = sectionName;
object.sectionPosition = r8;
object.sectionOverallPosition = item.sectionOverallPosition;
object.applicationId = r6;
object.applicationFlags = (importAll(483) /* metro dependency 483: BigFlagUtils */).asUintN(32, r16);
trackAppLauncherItemImpressionOnFirstViewBinding(object);
if (id != null && shelfItem2SectionPosition != null) {
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
object = {};
sectionName = item.sectionName;
object.itemKey = 'sectionName:' + sectionName + ' applicationId:' + id;
sectionName = item.sectionName;
object.sectionName = sectionName;
object.sectionPosition = shelfItem2SectionPosition;
object.sectionOverallPosition = item.sectionOverallPosition;
object.applicationId = id;
if (flags != null) {
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
value = value.asUintN(32, flags);
r3 = value;
} else {
r3 = undefined;
}
object.applicationFlags = r3;
trackAppLauncherItemImpressionOnFirstViewBinding(object);
}
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;
object = {};
sectionName = item.sectionName;
object.itemKey = 'sectionName:' + sectionName + ' applicationId:' + r6;
sectionName = item.sectionName;
object.sectionName = sectionName;
object.sectionPosition = r8;
object.sectionOverallPosition = item.sectionOverallPosition;
object.applicationId = r6;
object.applicationFlags = (importAll(483) /* metro dependency 483: BigFlagUtils */).asUintN(32, r16);
trackAppLauncherItemImpressionOnFirstViewBinding(object);
if (id != null && shelfItem2SectionPosition != null) {
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
object = {};
sectionName = item.sectionName;
object.itemKey = 'sectionName:' + sectionName + ' applicationId:' + id;
sectionName = item.sectionName;
object.sectionName = sectionName;
object.sectionPosition = shelfItem2SectionPosition;
object.sectionOverallPosition = item.sectionOverallPosition;
object.applicationId = id;
if (flags != null) {
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
value = value.asUintN(32, flags);
r3 = value;
} else {
r3 = undefined;
}
object.applicationFlags = r3;
trackAppLauncherItemImpressionOnFirstViewBinding(object);
}
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;
object = {};
object.itemKey = 'sectionName:' + item.sectionName + ' applicationId:' + r6;
object.sectionName = item.sectionName;
}
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;
object.sectionPosition = r8;
object.sectionOverallPosition = item.sectionOverallPosition;
object.applicationId = r6;
object.applicationFlags = (importAll(483) /* metro dependency 483: BigFlagUtils */).asUintN(32, r16);
trackAppLauncherItemImpressionOnFirstViewBinding(object);
if (id != null && shelfItem2SectionPosition != null) {
trackAppLauncherItemImpressionOnFirstViewBinding = trackAppLauncherItemImpressionOnFirstView;
object = {};
sectionName = item.sectionName;
object.itemKey = 'sectionName:' + sectionName + ' applicationId:' + id;
sectionName = item.sectionName;
object.sectionName = sectionName;
object.sectionPosition = shelfItem2SectionPosition;
object.sectionOverallPosition = item.sectionOverallPosition;
object.applicationId = id;
if (flags != null) {
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
value = value.asUintN(32, flags);
r3 = value;
} else {
r3 = undefined;
}
object.applicationFlags = r3;
trackAppLauncherItemImpressionOnFirstViewBinding(object);
}
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);
}
}
global.__d(_fun89236, 11641, [31, 11642, 11629, 7504, 483,
2]) /* metro module 11641, dependencies: [31, 11642, 11629, 7504, 483, 2] */;
@@ -1,74 +1,79 @@
/* Metro module 11628; source: modules/app_launcher/native/screens/home/useViewableAppLauncherHomeItems.tsx; dependencies: [31, 8047, 4017, 11629, 8742, 480, 2] */
import AppLauncherStore from '../../../AppLauncherStore.tsx'; /* Metro dependency 8047 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as AppLauncherHomeTypesModule from './AppLauncherHomeTypes.tsx'; /* Metro dependency 11629 */
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');
(FileImportTrackerModule).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 = (ReanimatedRexportModule).useSharedValue(false);
const value3 = (ReanimatedRexportModule).useSharedValue(false);
const value = ReactModule.useRef({});
const useCallback = ReactModule.useCallback;
return {handleViewableItemsChanged: Reflect.apply(useCallback, ReactModule, [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 object;
var object2;
let type = item.type;
const AppLauncherHomeListItemType = (AppLauncherHomeTypesModule).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;
object = {};
object.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
object.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_SECTION;
object2 = {};
sectionName = item.sectionName;
object2.section_name = sectionName;
object2.num_items = item.numItems;
object2.num_visible_items = item.numVisibleItems;
object2.source = AppLauncherStore.entrypoint();
object.properties = object2;
Reflect.apply(trackImpression, moduleValue, [object]);
}
}
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]);
}
}
global.__d(_fun89195, 11628, [31, 8047, 4017, 11629, 8742, 480,
2]) /* metro module 11628, dependencies: [31, 8047, 4017, 11629, 8742, 480, 2] */;
@@ -1,55 +1,64 @@
/* Metro module 11651; source: modules/app_launcher/native/screens/search/EmptyState.tsx; dependencies: [31, 27, 33, 4501, 11592, 8048, 1244, 3869, 4573, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as AccessibilityAnnouncerAndroidModule from '../../../../../external/discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx'; /* Metro dependency 3869 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AppLauncherTypesModule from '../../../AppLauncherTypes.tsx'; /* Metro dependency 8048 */
import * as AppLauncherNativeUtilsModule from '../../AppLauncherNativeUtils.tsx'; /* Metro dependency 11592 */
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',
const env0_5 = (CreateStylesModule).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');
(FileImportTrackerModule).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>
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 useLogAppLauncherEmptyStateView = AppLauncherNativeUtilsModule.useLogAppLauncherEmptyStateView;
const AppLauncherEmptyStateType = (AppLauncherTypesModule).AppLauncherEmptyStateType;
const SEARCH_EMPTY = AppLauncherEmptyStateType.SEARCH_EMPTY;
Reflect.apply(useLogAppLauncherEmptyStateView, AppLauncherNativeUtilsModule, [SEARCH_EMPTY, query]);
ReactModule.useEffect(_fun89350, [showsGenericMessage]);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).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>
</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 = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
const r4 = showsGenericMessageBinding ? Reflect.apply(string, intl, [t.aOkFv8]) : Reflect.apply(string, intl,
[t.LSNOYf]);
const AccessibilityAnnouncer = (AccessibilityAnnouncerAndroidModule).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(r4, 'polite');
}
}
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');
}
global.__d(_fun89348, 11651, [31, 27, 33, 4501, 11592, 8048, 1244, 3869, 4573,
2]) /* metro module 11651, dependencies: [31, 27, 33, 4501, 11592, 8048, 1244, 3869, 4573, 2] */;
@@ -1,52 +1,60 @@
/* Metro module 11638; source: modules/app_launcher/native/screens/search/SearchBarBottomBorder.tsx; dependencies: [31, 33, 4501, 697, 4017, 4577, 4581, 2] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ReanimatedRexport from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SpringModule from '../../../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */
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,
const createStyles = CreateStylesModule.createStyles;
const BORDER_SUBTLE = (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');
(FileImportTrackerModule).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
triggerScrollHeight = triggerScrollHeight === undefined ? 1 : triggerScrollHeight;
const styles = useStyles();
const value2 = (ReanimatedRexportModule).useSharedValue(0);
ReactModule.useEffect(_fun89224, [key, value2]);
const value3 = ReactModule.useCallback(_fun89225, [value2]);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const usePinnedSearchBarBottomBorderU2 = usePinnedSearchBarBottomBorderU;
usePinnedSearchBarBottomBorderU2.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
scrollPosition: value2, triggerScrollHeight: triggerScrollHeight,
springStandard: (require(4581) /* metro dependency 4581: springPresets */).springStandard};
usePinnedSearchBarBottomBorderU2.__workletHash = 5466161440826;
usePinnedSearchBarBottomBorderU2.__initData = env0_6;
const value4 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [usePinnedSearchBarBottomBorderU2]);
object = {scrollHandler: value3};
const View = (ReanimatedRexport).View;
object.bottomBorderComponent = <View style={[styles.border, value4]} key={key} />;
return object;
function _fun89224() { // fn#89224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11824:702, offset: 0x01b81419, size: 23 bytes, params: 1, frame: 11
env0_1.set(0);
}
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 object = {};
object.opacity = SpringModule.withSpring(env0_1.get() > triggerScrollHeight ? 1 : 0,
(require(4581) /* metro dependency 4581: springPresets */).springStandard);
return object;
}
}
}
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;
}
global.__d(_fun89222, 11638, [31, 33, 4501, 697, 4017, 4577, 4581,
2]) /* metro module 11638, dependencies: [31, 33, 4501, 697, 4017, 4577, 4581, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,75 +1,79 @@
/* Metro module 11648; source: modules/app_launcher/native/screens/search/useTrackSearchItems.tsx; dependencies: [31, 8774, 8742, 480, 5068, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AppLauncherContextModule from '../../AppLauncherContext.tsx'; /* Metro dependency 8774 */
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');
(FileImportTrackerModule).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]);
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 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 object;
var object2;
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;
object = {};
object.type = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes.VIEW;
object.name = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames.APP_LAUNCHER_SEARCH_RESULTS_ITEM;
object2 = {};
object2.location = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandTriggerLocations.APP_LAUNCHER_HOME_SEARCH;
object2.application_id = applicationId;
object2.command_id = commandId;
object2.search_results_position = a0.index;
object2.query = importDefault;
object2.source = entrypoint;
object.properties = object2;
Reflect.apply(trackImpression, moduleValue2, [object, false]);
}
}
}
}
}
}
}
global.__d(_fun89330, 11648, [31, 8774, 8742, 480, 5068,
2]) /* metro module 11648, dependencies: [31, 8774, 8742, 480, 5068, 2] */;