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,15 +1,16 @@
/* Metro module 15142; source: modules/group_dm/getGroupDMRecipientLimit.tsx; dependencies: [1878, 661, 2] */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun115460(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15339:6, offset: 0x0246155d, size: 138 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_1 = constantsModule.MAX_GROUP_DM_PARTICIPANTS;
const env0_2 = constantsModule.MAX_GROUP_DM_STAFF_PARTICIPANTS;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/getGroupDMRecipientLimit.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/getGroupDMRecipientLimit.tsx');
exports.default = function(a0) {
var value2 = UserStore.getCurrentUser();
return value2 == null ? a0 == null ? MAX_GROUP_DM_PARTICIPANTS : a0.userLimit > 0 ? a0.userLimit : MAX_GROUP_DM_PARTICIPANTS : value2.isStaff() ? MAX_GROUP_DM_STAFF_PARTICIPANTS : a0 == null ? MAX_GROUP_DM_PARTICIPANTS : a0.userLimit > 0 ? a0.userLimit : MAX_GROUP_DM_PARTICIPANTS;
};
}
global.__d(_fun115460, 15142, [1878, 661, 2]) /* metro module 15142, dependencies: [1878, 661, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,31 +1,39 @@
/* Metro module 9880; source: modules/group_dm/native/ChatGDMCustomizeActionSheet.tsx; dependencies: [31, 33, 9881, 9883, 1244, 9894, 2] */
import UseNavigatorConfirmChangesOnBack from '../../main_tabs_v2/native/utils/useNavigatorConfirmChangesOnBack.tsx'; /* Metro dependency 9881 */
import ModalStackNavigator from '../../main_tabs_v2/native/utils/ModalStackNavigator.tsx'; /* Metro dependency 9883 */
import ChatGDMCustomize from './ChatGDMCustomize.tsx'; /* Metro dependency 9894 */
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 */
function _fun77478(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:6, offset: 0x01dfdd5f, 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/group_dm/native/ChatGDMCustomizeActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/native/ChatGDMCustomizeActionSheet.tsx');
exports.default = ChatGDMCustomizeActionSheet;
function ChatGDMCustomizeActionSheet({channelId}) { // fn#77479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:217, offset: 0x01dfdde9, size: 166 bytes, params: 2, frame: 19
const value2 = (UseNavigatorConfirmChangesOnBack)();
const env0_1 = value2.onGoBack;
const env0_2 = value2.ref;
const intl = (IndexNativeModule).intl;
return (
<ModalStackNavigator
screenKey="kick"
title={intl.string((IndexNativeModule).t['1r5E+m'])}
render={render_77480}
/>
);
function ChatGDMCustomizeActionSheetRender() { // fn#77480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:395, owner: ChatGDMCustomizeActionSheet.render, offset: 0x01dfde8f, size: 67 bytes, params: 1, frame: 15
const value = environment.__proto__;
return ((Component) => <Component ref={ref} onFinish={onGoBack} channelId={channelId} />)(ChatGDMCustomize);
}
}
}
function ChatGDMCustomizeActionSheet({channelId}) { // fn#77479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:217, offset: 0x01dfdde9, size: 166 bytes, params: 2, frame: 19
const value2 = (importDefault(9881) /* metro dependency 9881: useNavigatorConfirmChangesOnBack */)();
const env0_1 = value2.onGoBack;
const env0_2 = value2.ref;
const ModalStackNavigator = importDefault(9883) /* metro dependency 9883: ModalStackNavigator */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ModalStackNavigator
screenKey="kick"
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1r5E+m'])}
render={render_77480}
/>
);
}
function ChatGDMCustomizeActionSheetRender() { // fn#77480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10066:395, owner: ChatGDMCustomizeActionSheet.render, offset: 0x01dfde8f, size: 67 bytes, params: 1, frame: 15
const value = environment.__proto__;
return ((Component) => <Component ref={ref} onFinish={onGoBack} channelId={channelId} />)(importDefault(9894) /* metro dependency 9894: ChatGDMCustomize */);
}
global.__d(_fun77478, 9880, [31, 33, 9881, 9883, 1244, 9894,
2]) /* metro module 9880, dependencies: [31, 33, 9881, 9883, 1244, 9894, 2] */;
@@ -1,108 +1,185 @@
/* Metro module 11389; source: modules/group_dm/native/ChatGDMUpsellActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277, 4573, 10227, 4056, 2] */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import FastImage from '../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
import Module11390 from '../../../by-id/module-11390.js'; /* Metro dependency 11390 */
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 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 LinkIconModule from '../../../design/components/Icon/native/redesign/generated/LinkIcon.tsx'; /* Metro dependency 4056 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as TimerIconModule from '../../../design/components/Icon/native/redesign/generated/TimerIcon.tsx'; /* Metro dependency 10227 */
function _fun87303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:6, offset: 0x01fb75db, size: 525 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(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.title = {marginBottom: PX_4, textAlign: 'center'};
const object4 = {};
object.title = {marginBottom: PX_4, textAlign: 'center'};
const object3 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
object3.backgroundColor = BACKGROUND_BASE_LOW;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.padding = PX_16;
object2.footer = object4;
object2.body = {textAlign: 'center'};
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.padding = PX_16;
object.footer = object3;
object.body = {textAlign: 'center'};
const object5 = {};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.marginVertical = PX_16;
object5.marginVertical = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.padding = PX_16;
object2.noticeContainer = object6;
object2.innerContainer = {'flexDirection': 'row', 'alignItems': 'center', 'paddingBottom': 16};
object2.secondInnerContainer = {'flexDirection': 'row', 'alignItems': 'center'};
object2.text = {flex: 1};
object2.titleImage = {'padding': 16, 'justifyContent': 'center', 'alignItems': 'center'};
object5.padding = PX_16;
object.noticeContainer = object5;
object.innerContainer = {'flexDirection': 'row', 'alignItems': 'center', 'paddingBottom': 16};
object.secondInnerContainer = {'flexDirection': 'row', 'alignItems': 'center'};
object.text = {flex: 1};
object.titleImage = {'padding': 16, 'justifyContent': 'center', 'alignItems': 'center'};
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object2.item = {'backgroundColor': null, 'marginRight': 16, 'height': 40, 'width': 40, 'borderRadius': 20,
object.item = {'backgroundColor': null, 'marginRight': 16, 'height': 40, 'width': 40, 'borderRadius': 20,
'alignItems': 'center', 'justifyContent': 'center', backgroundColor: BACKGROUND_MOD_STRONG};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.button = {paddingTop: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/native/ChatGDMUpsellActionSheet.tsx');
object.button = {paddingTop: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/native/ChatGDMUpsellActionSheet.tsx');
exports.default = ChatGDMUpsellActionSheet;
function ChatGDMUpsellActionSheet({onClick}) { // fn#87304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:968, offset: 0x01fb77e8, size: 1111 bytes, params: 2, frame: 32
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value2 = ReactModule.useCallback(_fun87305, [onClick]);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const bottomSheetProps = {'showGradient': true, 'scrollable': true, 'startExpanded': true,
header: <View style={styles.titleImage}>{((Component) => <Component source={Module11390} resizeMode="contain" />)(FastImage)}</View>};
const items2 = [styles.footer];
items2[1] = {padding: 16, paddingBottom: bottom + 16};
const Button = (ButtonNativeModule).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
bottomSheetProps.footer = (
<View style={items2}>
<Button
text={Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']])}
onPress={value2}
/>
<View style={styles.button}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
onPress={onPress_87306}
variant="tertiary"
/>
</View>
</View>
);
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
const Text = (TextModule).Text;
const items3 = [
<Text
style={styles.title}
variant="heading-lg/extrabold"
accessibilityRole="header"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['bkqux/'])}
</Text>,
];
string = intl.string;
const N6TdqN = (require(1244) /* metro dependency 1244: indexNative */).t.N6TdqN;
items3[1] = (
<Text
style={styles.body}
variant="text-md/medium"
color="text-muted"
>
{Reflect.apply(string, intl, [N6TdqN])}
</Text>
);
let item = styles.item;
const TimerIcon = (TimerIconModule).TimerIcon;
view = (
<View style={item}>
<TimerIcon size="sm" />
</View>
);
let text = styles.text;
string = intl.string;
const Fq3DJb = (require(1244) /* metro dependency 1244: indexNative */).t.Fq3DJb;
view = (
<View style={styles.innerContainer}>
{view}
<Text
style={text}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(string, intl, [Fq3DJb])}
</Text>
</View>
);
const items5 = [view];
item = styles.item;
const LinkIcon = (LinkIconModule).LinkIcon;
view = (
<View style={item}>
<LinkIcon size="sm" />
</View>
);
text = styles.text;
string = intl.string;
const XKbf2G = (require(1244) /* metro dependency 1244: indexNative */).t.XKbf2G;
items5[1] = (
<View style={styles.secondInnerContainer}>
{view}
<Text
style={text}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(string, intl, [XKbf2G])}
</Text>
</View>
);
items3[2] = (
<View style={styles.noticeContainer}>
{items5}
</View>
);
return (
<BottomSheet {...bottomSheetProps}>
<BottomSheetScrollView>
{items3}
</BottomSheetScrollView>
</BottomSheet>
);
function _fun87305() { // fn#87305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1061, offset: 0x01fb7c3f, size: 99 bytes, params: 1, frame: 15
const value = environment.__proto__;
const UNSAFE_markDismissibleContentAsDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_markDismissibleContentAsDismissed;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const GDM_INVITE_REMINDER = DismissibleContent.GDM_INVITE_REMINDER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, DismissibleContentUnsafeUtilsModule, [GDM_INVITE_REMINDER]);
(ActionSheetActionCreators).hideActionSheet();
onClick();
}
function ChatGDMUpsellActionSheetOnPress() { // fn#87306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1624, owner: ChatGDMUpsellActionSheet.onPress, offset: 0x01fb7ca2, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
}
}
function ChatGDMUpsellActionSheet({onClick}) { // fn#87304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:968, offset: 0x01fb77e8, size: 1111 bytes, params: 2, frame: 32
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value2 = env0_3.useCallback(_fun87305, [onClick]);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const bottomSheetProps = {'showGradient': true, 'scrollable': true, 'startExpanded': true,
header: <View style={styles.titleImage}>{((Component) => <Component source={importDefault(11390) /* metro dependency 11390 */} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>};
const items2 = [styles.footer];
items2[1] = {padding: 16, paddingBottom: bottom + 16};
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
bottomSheetProps.footer = <View style={items2}><Button text={Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']])} onPress={value2} /><View style={styles.button}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} onPress={onPress_87306} variant="tertiary" /></View></View>;
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items3 = [<Text style={styles.title} variant="heading-lg/extrabold" accessibilityRole="header">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['bkqux/'])}</Text>];
string = intl.string;
const N6TdqN = (require(1244) /* metro dependency 1244: indexNative */).t.N6TdqN;
items3[1] = <Text style={styles.body} variant="text-md/medium" color="text-muted">{Reflect.apply(string, intl,
[N6TdqN])}</Text>;
let item = styles.item;
const TimerIcon = (require(10227) /* metro dependency 10227: TimerIcon */).TimerIcon;
view = <View style={item}><TimerIcon size="sm" /></View>;
let text = styles.text;
string = intl.string;
const Fq3DJb = (require(1244) /* metro dependency 1244: indexNative */).t.Fq3DJb;
view = <View style={styles.innerContainer}>{view}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [Fq3DJb])}</Text></View>;
const items5 = [view];
item = styles.item;
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
view = <View style={item}><LinkIcon size="sm" /></View>;
text = styles.text;
string = intl.string;
const XKbf2G = (require(1244) /* metro dependency 1244: indexNative */).t.XKbf2G;
items5[1] = <View style={styles.secondInnerContainer}>{view}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [XKbf2G])}</Text></View>;
items3[2] = <View style={styles.noticeContainer}>{items5}</View>;
return (
<BottomSheet {...bottomSheetProps}>
<BottomSheetScrollView>
{items3}
</BottomSheetScrollView>
</BottomSheet>
);
}
function _fun87305() { // fn#87305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1061, offset: 0x01fb7c3f, size: 99 bytes, params: 1, frame: 15
const value = environment.__proto__;
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_markDismissibleContentAsDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_markDismissibleContentAsDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const GDM_INVITE_REMINDER = DismissibleContent.GDM_INVITE_REMINDER;
Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, dismissibleContentUnsafeUtilsModule, [GDM_INVITE_REMINDER]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
onClick();
}
function ChatGDMUpsellActionSheetOnPress() { // fn#87306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11575:1624, owner: ChatGDMUpsellActionSheet.onPress, offset: 0x01fb7ca2, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
global.__d(_fun87303, 11389, [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277,
4573, 10227, 4056,
2]) /* metro module 11389, dependencies: [31, 27, 33, 4501, 697, 1585, 3968, 1365, 4080, 6275, 5475, 11390, 4578, 1244, 6277, 4573, 10227, 4056, 2] */;
+142 -122
View File
@@ -1,154 +1,174 @@
/* Metro module 9719; source: modules/group_dm/native/GroupDMAvatar.tsx; dependencies: [31, 27, 1878, 33, 1305, 4501, 7599, 566, 1360, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as GlobalUtilsModule from '../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ClipViewModule from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
function _fun76366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:6, offset: 0x01dcc71f, size: 652 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const closure = FacepileGroupDMAvatar;
const FacepileGroupDMAvatar2 = FacepileGroupDMAvatar;
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
object2 = {};
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
object = {};
const AvatarSizes = (NativeModule).AvatarSizes;
const LARGE_48 = AvatarSizes.LARGE_48;
const SMALL = AvatarSizes.SMALL;
object2[LARGE_48] = SMALL;
object[LARGE_48] = SMALL;
const XLARGE = AvatarSizes.XLARGE;
let NORMAL = AvatarSizes.NORMAL;
object2[XLARGE] = NORMAL;
object[XLARGE] = NORMAL;
let XXLARGE = AvatarSizes.XXLARGE;
const LARGE = AvatarSizes.LARGE;
object2[XXLARGE] = LARGE;
object[XXLARGE] = LARGE;
const PROFILE = AvatarSizes.PROFILE;
XXLARGE = AvatarSizes.XXLARGE;
object2[PROFILE] = XXLARGE;
object[PROFILE] = XXLARGE;
const REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
const XSMALL_20 = AvatarSizes.XSMALL_20;
object2[REFRESH_MEDIUM_32] = XSMALL_20;
object[REFRESH_MEDIUM_32] = XSMALL_20;
let XSMALL = AvatarSizes.XSMALL;
let SIZE_16 = AvatarSizes.SIZE_16;
object2[XSMALL] = SIZE_16;
object[XSMALL] = SIZE_16;
SIZE_16 = AvatarSizes.SIZE_16;
const XXSMALL_10 = AvatarSizes.XXSMALL_10;
object2[SIZE_16] = XXSMALL_10;
object[SIZE_16] = XXSMALL_10;
NORMAL = AvatarSizes.NORMAL;
XSMALL = AvatarSizes.XSMALL;
object2[NORMAL] = XSMALL;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({firstFace: {'position': 'absolute',
object[NORMAL] = XSMALL;
const env0_8 = (CreateStylesModule).createStyles({firstFace: {'position': 'absolute',
'top': 0, 'left': 0}, secondFace: {'position': 'absolute', 'bottom': 0, 'right': 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/group_dm/native/GroupDMAvatar.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/native/GroupDMAvatar.tsx');
exports.default = GroupDMAvatar;
exports.FacepileGroupDMAvatar = closure;
}
function FacepileGroupDMAvatar({style, size, animate, users, sources, pileSizeOverride, status, accessible, accessibilityLabel}) { // fn#76367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:754, offset: 0x01dcc9ab, size: 526 bytes, params: 2, frame: 31
const styles = useStyles();
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const property = AVATAR_SIZE_MAP[size];
const value2 = env0_2.useMemo(_fun76368, [property]);
const r12 = pileSizeOverride ?? env0_7[size];
const value3 = env0_2.useMemo(_fun76369, [property, AVATAR_SIZE_MAP[r12]]);
const items2 = [value2, style];
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const avatar = <Avatar style={styles.firstFace} size={r12} guildId={undefined} cutout={value3} animate={animate} {...users == null ? {source: sources[0]} : {user: users[0]}} />;
const StatusSizes = (require(1305) /* metro dependency 1305: native */).StatusSizes;
const REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
return (
<View
style={items2}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
accessibilityElementsHidden
importantForAccessibility="no-hide-descendants"
>
{avatar}
exports.FacepileGroupDMAvatar = FacepileGroupDMAvatar2;
function FacepileGroupDMAvatar({style, size, animate, users, sources, pileSizeOverride, status, accessible, accessibilityLabel}) { // fn#76367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:754, offset: 0x01dcc9ab, size: 526 bytes, params: 2, frame: 31
const styles = useStyles();
const AVATAR_SIZE_MAP = (NativeModule).AVATAR_SIZE_MAP;
const property = AVATAR_SIZE_MAP[size];
const value2 = ReactModule.useMemo(_fun76368, [property]);
const r12 = pileSizeOverride ?? env0_7[size];
const value3 = ReactModule.useMemo(_fun76369, [property, AVATAR_SIZE_MAP[r12]]);
const items2 = [value2, style];
const Avatar = (NativeModule).Avatar;
const avatar = (
<Avatar
status={status}
statusSizeOverride={REFRESH_MEDIUM_10}
autoStatusCutout
style={styles.secondFace}
style={styles.firstFace}
size={r12}
guildId={undefined}
cutout={value3}
animate={animate}
{...users == null ? {source: sources[1]} : {user: users[1]}}
{...users == null ? {source: sources[0]} : {user: users[0]}}
/>
</View>
);
}
);
const StatusSizes = (NativeModule).StatusSizes;
const REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
return (
<View
style={items2}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
accessibilityElementsHidden
importantForAccessibility="no-hide-descendants"
>
{avatar}
<Avatar
status={status}
statusSizeOverride={REFRESH_MEDIUM_10}
autoStatusCutout
style={styles.secondFace}
size={r12}
guildId={undefined}
animate={animate}
{...users == null ? {source: sources[1]} : {user: users[1]}}
/>
</View>
);
function _fun76368() { // fn#76368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:945, offset: 0x01dccbb9, size: 19 bytes, params: 1, frame: 3
const binding = env0_0;
return {width: binding, height: binding};
}
function _fun76369() { // fn#76369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1035, offset: 0x01dccbcc, size: 241 bytes, params: 1, frame: 19
const value2 = env0_1 / 2;
const value3 = value2 + 3;
const value4 = 2 * value3;
let Math = global.Math;
let sqrt = Math.sqrt;
const Math2 = global.Math;
const value5 = Reflect.apply(sqrt, Math, [2 * Math2.pow(value3, 2)]);
const value7 = env0_0 - value2 - env0_1;
Math = global.Math;
sqrt = Math.sqrt;
const Math3 = global.Math;
const value8 = Reflect.apply(sqrt, Math, [2 * Math3.pow(value7, 2)]);
const value11 = -value5 - (value3 - value5) - value8 + (value8 - value7);
const CutoutShape = (ClipViewModule).CutoutShape;
const Circle = CutoutShape.Circle;
return {nativeCutouts: [{shape: Circle, x: env0_1 - value4 - value11, y: env0_1 - value4 - value11, size: value4}]};
}
function GroupDMAvatar({style, channel, size, animate, pileSizeOverride, status, accessible, accessibilityLabel}) { // fn#76370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1783, offset: 0x01dcccbd, size: 378 bytes, params: 2, frame: 25
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserStore], _fun76371);
if (channel.icon != null || channel.recipients.length === 0 || value2.length === 0) {
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
autoStatusCutout
status={status}
style={style}
size={size}
channel={channel}
animate={animate}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
/>
);
} else if (value2.length === 1) {
const Avatar2 = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar2
autoStatusCutout
status={status}
style={style}
size={size}
user={value2[0]}
guildId={undefined}
animate={animate}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
/>
);
} else {
return (
<FacepileGroupDMAvatar
status={status}
style={style}
size={size}
animate={animate}
users={value2}
pileSizeOverride={pileSizeOverride}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
/>
);
}
function GroupDMAvatar({style, channel, size, animate, pileSizeOverride, status, accessible, accessibilityLabel}) { // fn#76370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1783, offset: 0x01dcccbd, size: 378 bytes, params: 2, frame: 25
const value2 = (FluxModule).useStateFromStoresArray([UserStore], _fun76371);
if (channel.icon != null || channel.recipients.length === 0 || value2.length === 0) {
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
autoStatusCutout
status={status}
style={style}
size={size}
channel={channel}
animate={animate}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
/>
);
} else if (value2.length === 1) {
const Avatar2 = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar2
autoStatusCutout
status={status}
style={style}
size={size}
user={value2[0]}
guildId={undefined}
animate={animate}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
/>
);
} else {
return (
<FacepileGroupDMAvatar
status={status}
style={style}
size={size}
animate={animate}
users={value2}
pileSizeOverride={pileSizeOverride}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
/>
);
}
function _fun76371() { // fn#76371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1949, offset: 0x01dcce37, size: 75 bytes, params: 1, frame: 13
const value = channel.recipients.map(function(a0) {
return UserStore.getUser(a0);
});
return value.filter((GlobalUtilsModule).isNotNullish);
}
}
}
function _fun76369() { // fn#76369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1035, offset: 0x01dccbcc, size: 241 bytes, params: 1, frame: 19
const value2 = env0_1 / 2;
const value3 = value2 + 3;
const value4 = 2 * value3;
let Math = global.Math;
let sqrt = Math.sqrt;
const Math2 = global.Math;
const value5 = Reflect.apply(sqrt, Math, [2 * Math2.pow(value3, 2)]);
const value7 = env0_0 - value2 - env0_1;
Math = global.Math;
sqrt = Math.sqrt;
const Math3 = global.Math;
const value8 = Reflect.apply(sqrt, Math, [2 * Math3.pow(value7, 2)]);
const value11 = -value5 - (value3 - value5) - value8 + (value8 - value7);
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const Circle = CutoutShape.Circle;
return {nativeCutouts: [{shape: Circle, x: env0_1 - value4 - value11, y: env0_1 - value4 - value11, size: value4}]};
}
function _fun76371() { // fn#76371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9905:1949, offset: 0x01dcce37, size: 75 bytes, params: 1, frame: 13
const value = channel.recipients.map(function(a0) {
return UserStore.getUser(a0);
});
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
}
global.__d(_fun76366, 9719, [31, 27, 1878, 33, 1305, 4501, 7599, 566, 1360,
2]) /* metro module 9719, dependencies: [31, 27, 1878, 33, 1305, 4501, 7599, 566, 1360, 2] */;
@@ -1,18 +1,22 @@
/* Metro module 9879; source: modules/group_dm/native/showChatGDMCustomizeActionSheet.tsx; dependencies: [4080, 5080, 9880, 1962, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun77476(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10065:6, offset: 0x01dfdc82, size: 103 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/group_dm/native/showChatGDMCustomizeActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/native/showChatGDMCustomizeActionSheet.tsx');
exports.default = showChatGDMCustomizeActionSheet;
function showChatGDMCustomizeActionSheet(a0) { // fn#77477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10065:195, offset: 0x01dfdce9, size: 118 bytes, params: 2, frame: 18
importDefault(dependencyMap[0]).hideActionSheet();
const defaultImport2 = importDefault(dependencyMap[1]);
const pushLazy = defaultImport2.pushLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport2, [value, a0, 'customize-group-dm', {presentation: 'modal'}]);
}
}
function showChatGDMCustomizeActionSheet(a0) { // fn#77477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10065:195, offset: 0x01dfdce9, size: 118 bytes, params: 2, frame: 18
importDefault(dependencyMap[0]).hideActionSheet();
const defaultImport2 = importDefault(dependencyMap[1]);
const pushLazy = defaultImport2.pushLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport2, [value, a0, 'customize-group-dm', {presentation: 'modal'}]);
}
global.__d(_fun77476, 9879, [4080, 5080, 9880, 1962,
2]) /* metro module 9879, dependencies: [4080, 5080, 9880, 1962, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 11388; source: modules/group_dm/native/showChatGDMUpsellActionSheet.tsx; dependencies: [4080, 11389, 1962, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun87301(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11574:6, offset: 0x01fb7522, size: 103 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/group_dm/native/showChatGDMUpsellActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/group_dm/native/showChatGDMUpsellActionSheet.tsx');
exports.default = showChatGDMUpsellActionSheet;
function showChatGDMUpsellActionSheet(a0) { // fn#87302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11574:192, offset: 0x01fb7589, size: 82 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ChatGDMUpsellActionSheet', a0]);
}
}
function showChatGDMUpsellActionSheet(a0) { // fn#87302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11574:192, offset: 0x01fb7589, size: 82 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ChatGDMUpsellActionSheet', a0]);
}
global.__d(_fun87301, 11388, [4080, 11389, 1962, 2]) /* metro module 11388, dependencies: [4080, 11389, 1962, 2] */;