Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/* Metro module 7721; source: modules/voice_chat/VoiceChatHooks.tsx; dependencies: [1226, 4297, 566, 2] */
|
||||
function _fun61769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:6, offset: 0x01b4a3e2, size: 145 bytes, params: 8, frame: 20
|
||||
let env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([VoiceStateStore, AuthenticationStore], _fun61771);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_chat/VoiceChatHooks.tsx');
|
||||
exports.useIsConnectedToVoiceChannel = useIsConnectedToVoiceChannel;
|
||||
exports.useIsConnectedToVoiceChannelForId = closure;
|
||||
}
|
||||
|
||||
function useIsConnectedToVoiceChannelForId(a0) { // fn#61770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:116, offset: 0x01b4a473, size: 72 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([VoiceStateStore, AuthenticationStore],
|
||||
_fun61771);
|
||||
}
|
||||
|
||||
function useIsConnectedToVoiceChannel(a0) { // fn#61772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:338, offset: 0x01b4a4e5, size: 35 bytes, params: 2, frame: 13
|
||||
return useIsConnectedToVoiceChannelForId(a0?.id);
|
||||
}
|
||||
|
||||
function _fun61771() { // fn#61771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:203, offset: 0x01b4a4bb, size: 42 bytes, params: 1, frame: 14
|
||||
const isInChannel = VoiceStateStore.isInChannel;
|
||||
const binding = env0_0;
|
||||
const getId = AuthenticationStore.getId;
|
||||
return Reflect.apply(isInChannel, VoiceStateStore, [binding, Reflect.apply(getId, AuthenticationStore, [])]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 10665; source: modules/voice_chat/native/VoiceChatModalContext.tsx; dependencies: [31, 2] */
|
||||
function _fun82042(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10851:6, offset: 0x01ee899f, size: 129 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
value = value.createContext(null);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_chat/native/VoiceChatModalContext.tsx');
|
||||
exports.VoiceChatNavigationContext = value;
|
||||
exports.useVoiceChatNavigationContext = useVoiceChatNavigationContext;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
/* Metro module 10831; source: modules/voice_chat/native/components/VoiceChatHeaderIcon.tsx; dependencies: [31, 27, 4605, 661, 33, 4501, 697, 5314, 566, 10772, 22, 3868, 5278, 1305, 2] */
|
||||
function _fun83075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11017:6, offset: 0x01f0c68c, size: 461 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
let 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 readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).ThemeTypes;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'width': 32, 'height': 32, 'borderRadius': null, 'alignSelf': 'center', 'padding': 6};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const REDESIGN_BUTTON_TERTIARY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_BACKGROUND;
|
||||
object4.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
|
||||
object3.headerButton = object4;
|
||||
object3.disabledOpacity = {opacity: 0.6};
|
||||
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
|
||||
object3.chatIconContainer = {'marginRight': 12, 'height': null, 'flexDirection': 'row', 'alignItems': 'center',
|
||||
height: NAV_BAR_HEIGHT};
|
||||
object3.chatIcon = {'marginHorizontal': 0, 'width': 32, 'height': 32};
|
||||
const ICON_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.ICON_STRONG;
|
||||
object3.badge = {backgroundColor: ICON_STRONG};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_chat/native/components/VoiceChatHeaderIcon.tsx');
|
||||
exports.default = VoiceChatHeaderIcon;
|
||||
exports.useVoiceChatMentions = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[8]).useStateFromStoresObject([ReadStateStore], _fun83079, [a0]);
|
||||
};
|
||||
exports.VoiceChatCallScreenHeaderIcon = VoiceChatCallScreenHeaderIcon;
|
||||
}
|
||||
|
||||
function VoiceChatCallScreenHeaderIconInner({children, source, onPress, accessibilityLabel}) { // fn#83076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11017:597, offset: 0x01f0c859, size: 159 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.chatIconContainer}>
|
||||
{((Component) => <Component containerStyle={styles.chatIcon} accessibilityLabel={accessibilityLabel} source={source} onPress={onPress ?? (importDefault(22) /* metro dependency 22 */).noop}>{children}</Component>)(importDefault(10772) /* metro dependency 10772: ChannelCallNavigatorIcon */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function VoiceChatHeaderIcon({accessibilityLabel, onPress, source, children, disabled}) { // fn#83077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11017:971, offset: 0x01f0c8f8, size: 240 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const items2 = [styles.headerButton];
|
||||
items2[1] = disabled && styles.disabledOpacity;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const backgroundColor = styles.badge.backgroundColor;
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const SMALL_20 = Sizes.SMALL_20;
|
||||
return (
|
||||
<PressableOpacity
|
||||
disabled={disabled}
|
||||
activeOpacity={0.5}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={accessibilityLabel}
|
||||
onPress={onPress}
|
||||
style={items2}
|
||||
>
|
||||
<Icon
|
||||
source={source}
|
||||
color={backgroundColor}
|
||||
size={SMALL_20}
|
||||
/>
|
||||
{children}
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function useVoiceChatMentions(a0) { // fn#83078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11017:1372, offset: 0x01f0c9e8, size: 76 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ReadStateStore], _fun83079, [a0]);
|
||||
}
|
||||
|
||||
function VoiceChatCallScreenHeaderIcon(a0) { // fn#83080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11017:1563, offset: 0x01f0ca66, size: 89 bytes, params: 2, frame: 17
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
const DARK = ThemeTypes.DARK;
|
||||
return (
|
||||
<ThemeContextProvider theme={DARK}>
|
||||
<VoiceChatCallScreenHeaderIconInner {...a0} />
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun83079() { // fn#83079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11017:1450, offset: 0x01f0ca34, size: 50 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
const getUnreadCount = ReadStateStore.getUnreadCount;
|
||||
const binding = env0_0;
|
||||
object2.unreadCount = Reflect.apply(getUnreadCount, ReadStateStore, [binding]);
|
||||
object2.mentionCount = ReadStateStore.getMentionCount(binding);
|
||||
return object2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user