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,183 +1,265 @@
/* Metro module 11904; source: modules/chat_input/native/guard/ChatInputGuard.tsx; dependencies: [31, 27, 7729, 33, 4501, 697, 815, 7702, 11782, 7704, 477, 11790, 6238, 8341, 11905, 9898, 4573, 4578, 6261, 8554, 2] */
import UseIsUsingClientTheme from '../../../client_themes/native/useIsUsingClientTheme.tsx'; /* Metro dependency 7702 */
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 PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as GeneratedDefinitionsModule from '../../../../external/discord_common/js/packages/tokens/radii/generated/generated-definitions.tsx'; /* Metro dependency 815 */
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 ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as ButtonGroupNativeModule from '../../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as UseChatBottomManagerUIStoreModule from '../useChatBottomManagerUIStore.tsx'; /* Metro dependency 7729 */
function _fun91365(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:6, offset: 0x0205c9ec, size: 250 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 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.StyleSheet;
const env0_5 = value.View;
const env0_6 = (require(7729) /* metro dependency 7729: useChatBottomManagerUIStore */).updateChatInputContainerHeight;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun91366);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuard.tsx');
const env0_9 = (CreateStylesModule).createStyles(_fun91366);
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuard.tsx');
exports.default = ChatInputGuard;
exports.ChatInputGuardContainer = ChatInputGuardContainer;
}
function _fun91366(a0) { // fn#91366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:232, offset: 0x0205cae6, size: 561 bytes, params: 2, frame: 19
const object = {};
const object2 = {};
const value2 = undefined;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.paddingHorizontal = PX_12;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.paddingBottom = PX_8;
object.container = object2;
object.content = {borderRadius: a0 ? (importDefault(697) /* metro dependency 697: native */).radii.lg : value2,
overflow: a0 ? 'hidden' : value2};
const object4 = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object4.backgroundColor = BACKGROUND_BASE_LOWER;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const Radius = (GeneratedDefinitionsModule).Radius;
object4.height = PX_8 + Radius.lg;
copyDataProperties(object4, StyleSheet.absoluteFillObject, require);
object4['top'] = value2;
object.underlay = object4;
const object5 = {};
let BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object5.borderColor = BORDER_MUTED;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingHorizontal = PX_12;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingTop = PX_16;
let 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;
object5.borderWidth = 1;
object.wrapper = object5;
const object6 = {};
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
const TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object6.borderRadius = TABLE_ROW_BORDER_RADIUS;
BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object6.borderColor = BORDER_MUTED;
object6.borderWidth = 1;
object.floating = object6;
object.text = {textAlign: 'center'};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.subtext = {marginTop: PX_4, textAlign: 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.spacing = {marginTop: PX_8};
return object;
}
function _fun91366(a0) { // fn#91366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:232, offset: 0x0205cae6, size: 561 bytes, params: 2, frame: 19
const object3 = {};
const object7 = {};
const value2 = undefined;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object7.paddingHorizontal = PX_12;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object7.paddingBottom = PX_8;
object3.container = object7;
object3.content = {borderRadius: a0 ? (importDefault(697) /* metro dependency 697: native */).radii.lg : value2,
overflow: a0 ? 'hidden' : value2};
const object8 = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object8.backgroundColor = BACKGROUND_BASE_LOWER;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const Radius = (require(815) /* metro dependency 815: generatedDefinitions */).Radius;
object8.height = PX_8 + Radius.lg;
copyDataProperties(object8, StyleSheet.absoluteFillObject, require);
object8['top'] = value2;
object3.underlay = object8;
const object9 = {};
let BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object9.borderColor = BORDER_MUTED;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object9.paddingHorizontal = PX_12;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object9.paddingTop = PX_16;
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object9.backgroundColor = BACKGROUND_SURFACE_HIGH;
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object9.borderWidth = 1;
object3.wrapper = object9;
const object10 = {};
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object10.backgroundColor = BACKGROUND_SURFACE_HIGH;
const TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object10.borderRadius = TABLE_ROW_BORDER_RADIUS;
BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object10.borderColor = BORDER_MUTED;
object10.borderWidth = 1;
object3.floating = object10;
object3.text = {textAlign: 'center'};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.subtext = {marginTop: PX_4, textAlign: 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.spacing = {marginTop: PX_8};
return object3;
}
function ChatInputGuard(a0) { // fn#91367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:1070, offset: 0x0205cd17, size: 1050 bytes, params: 2, frame: 36
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
var r6;
var message;
var subtext;
var countdown;
var icon;
var actionIcon;
var actionLabel;
var actionOnPress;
var TableRow;
var value8;
var value;
const styles = useStyles((importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)());
if (a0.type === 'simple-action') {
icon = a0.icon;
function ChatInputGuard(a0) { // fn#91367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:1070, offset: 0x0205cd17, size: 1050 bytes, params: 2, frame: 36
const Text = (TextModule).Text;
const Button = (ButtonNativeModule).Button;
var r6;
var message;
var subtext;
var countdown;
var icon;
var actionIcon;
var actionLabel;
var actionOnPress;
var TableRow;
var value8;
var value;
const styles = useStyles((UseIsUsingClientTheme)());
if (a0.type === 'simple-action') {
icon = a0.icon;
message = a0.message;
countdown = a0.countdown;
subtext = a0.subtext;
actionIcon = a0.actionIcon;
actionLabel = a0.actionLabel;
actionOnPress = a0.actionOnPress;
var viewBindingProps = {style: styles.floating};
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
value8 = null;
return (
<View {...viewBindingProps}>
<TableRow
arrow={false}
accessibilityRole="button"
onPress={actionOnPress}
icon={icon}
start
end
trailing={value8 == actionLabel
? (
value8 != countdown
? ((Component) => <Component style={[styles.text,
styles.spacing]} deadline={countdown} />)(importDefault(9898) /* metro dependency 9898: CountDown */)
: value8
)
: (
value8 != actionOnPress
? ((IconButton) => <IconButton accessibilityLabel={actionLabel} icon={value8 != actionIcon ? actionIcon : ((ArrowSmallRightIcon) => <ArrowSmallRightIcon color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} />)((require(11905) /* metro dependency 11905: ArrowSmallRightIcon */).ArrowSmallRightIcon)} size="sm" onPress={actionOnPress} />)((require(8341) /* metro dependency 8341: IconButtonNative */).IconButton)
: (
value8 != countdown
? ((Component) => <Component style={[styles.text,
styles.spacing]} deadline={countdown} />)(importDefault(9898) /* metro dependency 9898: CountDown */)
: value8
)
)}
label={<Text variant="text-sm/semibold">
{message}
</Text>}
subLabel={subtext}
/>
</View>
);
}
message = a0.message;
countdown = a0.countdown;
subtext = a0.subtext;
actionIcon = a0.actionIcon;
actionLabel = a0.actionLabel;
actionOnPress = a0.actionOnPress;
var viewBindingProps = {style: styles.floating};
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
value8 = null;
const buttonPrimaryText = a0.buttonPrimaryText;
const buttonPrimaryOnPress = a0.buttonPrimaryOnPress;
const buttonPrimaryDisabled = a0.buttonPrimaryDisabled;
const buttonPrimaryLoading = a0.buttonPrimaryLoading;
const buttonPrimaryVariant = a0.buttonPrimaryVariant;
const buttonSecondaryText = a0.buttonSecondaryText;
const buttonSecondaryOnPress = a0.buttonSecondaryOnPress;
const buttonSecondaryDisabled = a0.buttonSecondaryDisabled;
const buttonSecondaryLoading = a0.buttonSecondaryLoading;
countdown = a0.countdown;
const button = (
<Button
disabled={buttonPrimaryDisabled}
loading={buttonPrimaryLoading}
text={buttonPrimaryText}
onPress={buttonPrimaryOnPress}
size="sm"
variant={buttonPrimaryVariant}
/>
);
const items2 = [
<Text style={styles.text} variant="text-sm/semibold">
{message}
</Text>,
];
const value5 = null;
items2[1] = (
value5 != subtext
? (
typeof subtext !== 'string'
? value5
: (
subtext.length > 0
? (
<Text
style={styles.subtext}
variant="text-xs/medium"
color="text-muted"
>
{subtext}
</Text>
)
: value5
)
)
: value5
);
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
items2[2] = (
<ButtonGroup>
{
value5 == buttonSecondaryText || value5 == buttonSecondaryOnPress
? button
: ((TwinButtons) => <TwinButtons>{button}<Button disabled={buttonSecondaryDisabled} loading={buttonSecondaryLoading} text={buttonSecondaryText} onPress={buttonSecondaryOnPress} variant="secondary" size="sm" /></TwinButtons>)((require(8554) /* metro dependency 8554: native */).TwinButtons)
}
</ButtonGroup>
);
if (value5 != countdown) {
value = importDefault(9898) /* metro dependency 9898: CountDown */;
value = ((Component) => <Component style={[styles.text, styles.spacing]} deadline={countdown} />)(value);
r6 = value;
} else {
r6 = value5;
}
items2[3] = r6;
return (
<View {...viewBindingProps}>
<TableRow
arrow={false}
accessibilityRole="button"
onPress={actionOnPress}
icon={icon}
start
end
trailing={value8 == actionLabel ? value8 != countdown ? ((Component) => <Component style={[styles.text,
styles.spacing]} deadline={countdown} />)(importDefault(9898) /* metro dependency 9898: CountDown */) : value8 : value8 != actionOnPress ? ((IconButton) => <IconButton accessibilityLabel={actionLabel} icon={value8 != actionIcon ? actionIcon : ((ArrowSmallRightIcon) => <ArrowSmallRightIcon color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} />)((require(11905) /* metro dependency 11905: ArrowSmallRightIcon */).ArrowSmallRightIcon)} size="sm" onPress={actionOnPress} />)((require(8341) /* metro dependency 8341: IconButtonNative */).IconButton) : value8 != countdown ? ((Component) => <Component style={[styles.text,
styles.spacing]} deadline={countdown} />)(importDefault(9898) /* metro dependency 9898: CountDown */) : value8}
label={<Text variant="text-sm/semibold">{message}</Text>}
subLabel={subtext}
/>
<View style={styles.wrapper}>
{items2}
</View>
);
}
message = a0.message;
subtext = a0.subtext;
const buttonPrimaryText = a0.buttonPrimaryText;
const buttonPrimaryOnPress = a0.buttonPrimaryOnPress;
const buttonPrimaryDisabled = a0.buttonPrimaryDisabled;
const buttonPrimaryLoading = a0.buttonPrimaryLoading;
const buttonPrimaryVariant = a0.buttonPrimaryVariant;
const buttonSecondaryText = a0.buttonSecondaryText;
const buttonSecondaryOnPress = a0.buttonSecondaryOnPress;
const buttonSecondaryDisabled = a0.buttonSecondaryDisabled;
const buttonSecondaryLoading = a0.buttonSecondaryLoading;
countdown = a0.countdown;
const button = <Button disabled={buttonPrimaryDisabled} loading={buttonPrimaryLoading} text={buttonPrimaryText} onPress={buttonPrimaryOnPress} size="sm" variant={buttonPrimaryVariant} />;
const items2 = [<Text style={styles.text} variant="text-sm/semibold">{message}</Text>];
const value5 = null;
items2[1] = value5 != subtext ? typeof subtext !== 'string' ? value5 : subtext.length > 0 ? <Text style={styles.subtext} variant="text-xs/medium" color="text-muted">{subtext}</Text> : value5 : value5;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
items2[2] = <ButtonGroup>{value5 == buttonSecondaryText || value5 == buttonSecondaryOnPress ? button : ((TwinButtons) => <TwinButtons>{button}<Button disabled={buttonSecondaryDisabled} loading={buttonSecondaryLoading} text={buttonSecondaryText} onPress={buttonSecondaryOnPress} variant="secondary" size="sm" /></TwinButtons>)((require(8554) /* metro dependency 8554: native */).TwinButtons)}</ButtonGroup>;
if (value5 != countdown) {
value = importDefault(9898) /* metro dependency 9898: CountDown */;
value = ((Component) => <Component style={[styles.text, styles.spacing]} deadline={countdown} />)(value);
r6 = value;
} else {
r6 = value5;
}
items2[3] = r6;
return (
<View style={styles.wrapper}>
{items2}
</View>
);
}
function ChatInputGuardContainer({screenIndex, channelId, onJumpToPresent, children}) { // fn#91368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:2653, offset: 0x0205d131, size: 407 bytes, params: 2, frame: 28
var r5;
var value;
const value2 = (importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)();
const styles = useStyles(value2);
const value3 = env0_3.useCallback(function(a0) {
updateChatInputContainerHeight(screenIndex, a0.nativeEvent.layout.height);
}, [screenIndex]);
const items3 = [styles.container];
items3[1] = (importDefault(11782) /* metro dependency 11782: getChatInputPositionStyle */)({isCreatingThread: false});
const items2 = [value2 ? null : <View style={styles.underlay} />];
items2[1] = <View style={styles.content}>{value2 ? ((Component) => <Component absolute wide tall mix />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */) : null}{children}</View>;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isIOS()) {
if (channelId != null) {
value = importDefault(11790) /* metro dependency 11790: JumpToPresentButton */;
value = ((Component) => <Component channelId={channelId} screenIndex={screenIndex} onJumpToPresent={onJumpToPresent} />)(value);
r5 = value;
function ChatInputGuardContainer({screenIndex, channelId, onJumpToPresent, children}) { // fn#91368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12090:2653, offset: 0x0205d131, size: 407 bytes, params: 2, frame: 28
var r5;
var value;
const value2 = (UseIsUsingClientTheme)();
const styles = useStyles(value2);
const value3 = ReactModule.useCallback(function(a0) {
updateChatInputContainerHeight(screenIndex, a0.nativeEvent.layout.height);
}, [screenIndex]);
const items3 = [styles.container];
items3[1] = (importDefault(11782) /* metro dependency 11782: getChatInputPositionStyle */)({isCreatingThread: false});
const items2 = [
value2
? null
: (
<View style={styles.underlay} />
),
];
items2[1] = (
<View style={styles.content}>
{
value2
? ((Component) => <Component absolute wide tall mix />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)
: null
}
{children}
</View>
);
if (PlatformUtilsModule.isIOS()) {
if (channelId != null) {
value = importDefault(11790) /* metro dependency 11790: JumpToPresentButton */;
value = ((Component) => <Component channelId={channelId} screenIndex={screenIndex} onJumpToPresent={onJumpToPresent} />)(value);
r5 = value;
} else {
r5 = null;
}
} else {
r5 = null;
}
} else {
r5 = null;
items2[2] = r5;
return (
<View
style={items3}
onLayout={value3}
collapsable={false}
>
{items2}
</View>
);
}
items2[2] = r5;
return (
<View
style={items3}
onLayout={value3}
collapsable={false}
>
{items2}
</View>
);
}
global.__d(_fun91365, 11904, [31, 27, 7729, 33, 4501, 697, 815, 7702, 11782, 7704, 477, 11790, 6238, 8341, 11905,
9898, 4573, 4578, 6261, 8554,
2]) /* metro module 11904, dependencies: [31, 27, 7729, 33, 4501, 697, 815, 7702, 11782, 7704, 477, 11790, 6238, 8341, 11905, 9898, 4573, 4578, 6261, 8554, 2] */;
@@ -1,62 +1,70 @@
/* Metro module 11922; source: modules/chat_input/native/guard/ChatInputGuardAutomodUserProfileQuarantine.tsx; dependencies: [31, 1226, 1945, 3772, 33, 566, 3790, 11453, 1244, 11904, 11923, 2] */
import AuthenticationStore from '../../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import GuildMemberStore from '../../../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 GuildMemberConstantsModule from '../../../guild_member/GuildMemberConstants.tsx'; /* Metro dependency 3772 */
import * as AutomodPermissionUtilsModule from '../../../guild_automod/AutomodPermissionUtils.tsx'; /* Metro dependency 3790 */
import * as ChatXIconModule from '../../../../design/components/Icon/native/redesign/generated/ChatXIcon.tsx'; /* Metro dependency 11923 */
function _fun91431(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:6, offset: 0x02064147, size: 206 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
const env0_6 = (require(3772) /* metro dependency 3772: GuildMemberConstants */).GuildMemberFlags;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ChatInputGuardAutomodUserProfileQuarantine);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardAutomodUserProfileQuarantine.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardAutomodUserProfileQuarantine.tsx');
exports.default = value;
}
function ChatInputGuardAutomodUserProfileQuarantine({guildId}) { // fn#91432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:181, offset: 0x02064215, size: 487 bytes, params: 2, frame: 21
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = (FluxModule).useStateFromStores([AuthenticationStore,
GuildMemberStore], _fun91433, [guildId]);
const value3 = env0_3.useCallback(_fun91434, [guildId]);
const automodReason = (AutomodPermissionUtilsModule).getAutomodReason(value2);
let AUTOMOD_QUARANTINED_SERVER_TAG = GuildMemberFlags.AUTOMOD_QUARANTINED_SERVER_TAG;
const r6 = automodReason === AUTOMOD_QUARANTINED_SERVER_TAG ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Viksoo) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/PGQf0']);
AUTOMOD_QUARANTINED_SERVER_TAG = GuildMemberFlags.AUTOMOD_QUARANTINED_SERVER_TAG;
const r4 = automodReason === AUTOMOD_QUARANTINED_SERVER_TAG ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ml72ZU) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8HW7r9']);
const ChatXIcon = (ChatXIconModule).ChatXIcon;
return (
<ChatInputGuard
type="simple-action"
actionOnPress={value3}
actionLabel={r6}
icon={<ChatXIcon />}
message={r4}
/>
);
function _fun91433() { // fn#91433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:286, offset: 0x020643fc, size: 115 bytes, params: 1, frame: 15
var Set;
var set;
var value;
if (guildId == null) {
Set = global.Set;
value = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
return set instanceof Object ? set : value;
}
const id = AuthenticationStore.getId();
const getAutomodQuarantinedGuildMemberFlags = AutomodPermissionUtilsModule.getAutomodQuarantinedGuildMemberFlags;
const guildMemberStoreBinding = GuildMemberStore;
const getMember = guildMemberStoreBinding.getMember;
return Reflect.apply(getAutomodQuarantinedGuildMemberFlags, AutomodPermissionUtilsModule, [Reflect.apply(getMember,
guildMemberStoreBinding, [guildId, id])]);
}
function ChatInputGuardAutomodUserProfileQuarantine({guildId}) { // fn#91432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:181, offset: 0x02064215, size: 487 bytes, params: 2, frame: 21
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore,
GuildMemberStore], _fun91433, [guildId]);
const value3 = env0_3.useCallback(_fun91434, [guildId]);
const automodReason = (require(3790) /* metro dependency 3790: AutomodPermissionUtils */).getAutomodReason(value2);
let AUTOMOD_QUARANTINED_SERVER_TAG = GuildMemberFlags.AUTOMOD_QUARANTINED_SERVER_TAG;
const r6 = automodReason === AUTOMOD_QUARANTINED_SERVER_TAG ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Viksoo) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/PGQf0']);
AUTOMOD_QUARANTINED_SERVER_TAG = GuildMemberFlags.AUTOMOD_QUARANTINED_SERVER_TAG;
const r4 = automodReason === AUTOMOD_QUARANTINED_SERVER_TAG ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ml72ZU) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8HW7r9']);
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const ChatXIcon = (require(11923) /* metro dependency 11923: ChatXIcon */).ChatXIcon;
return (
<ChatInputGuard
type="simple-action"
actionOnPress={value3}
actionLabel={r6}
icon={<ChatXIcon />}
message={r4}
/>
);
}
function _fun91434() { // fn#91434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:428, offset: 0x0206446f, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(11453) /* metro dependency 11453: GuildAutomodActionActionCreatorsNative */;
value.openAutomodProfileQuarantineAlert(guildId);
}
function _fun91433() { // fn#91433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:286, offset: 0x020643fc, size: 115 bytes, params: 1, frame: 15
var Set;
var set;
var value;
if (guildId == null) {
Set = global.Set;
value = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
return set instanceof Object ? set : value;
}
const id = AuthenticationStore.getId();
const automodPermissionUtilsModule = require(3790) /* metro dependency 3790: AutomodPermissionUtils */;
const getAutomodQuarantinedGuildMemberFlags = automodPermissionUtilsModule.getAutomodQuarantinedGuildMemberFlags;
const getMember = GuildMemberStore.getMember;
return Reflect.apply(getAutomodQuarantinedGuildMemberFlags, automodPermissionUtilsModule, [Reflect.apply(getMember,
GuildMemberStore, [guildId, id])]);
}
function _fun91434() { // fn#91434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12108:428, offset: 0x0206446f, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(11453) /* metro dependency 11453: GuildAutomodActionActionCreatorsNative */;
value.openAutomodProfileQuarantineAlert(guildId);
}
global.__d(_fun91431, 11922, [31, 1226, 1945, 3772, 33, 566, 3790, 11453, 1244, 11904, 11923,
2]) /* metro module 11922, dependencies: [31, 1226, 1945, 3772, 33, 566, 3790, 11453, 1244, 11904, 11923, 2] */;
@@ -1,36 +1,43 @@
/* Metro module 11919; source: modules/chat_input/native/guard/ChatInputGuardGuildCommunicationDisabled.tsx; dependencies: [31, 1947, 33, 11920, 11904, 10317, 1244, 2] */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 GuildDisableCommunicationConstantsModule from '../../../guild_communication_disabled/GuildDisableCommunicationConstants.tsx'; /* Metro dependency 1947 */
import * as ClockWarningIconModule from '../../../../design/components/Icon/native/redesign/generated/ClockWarningIcon.tsx'; /* Metro dependency 10317 */
import * as UseCommunicationDisabledCountdownCleanupModule from '../../../guild_communication_disabled/useCommunicationDisabledCountdownCleanup.tsx'; /* Metro dependency 11920 */
function _fun91413(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12105:6, offset: 0x02063858, size: 170 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(1947) /* metro dependency 1947: GuildDisableCommunicationConstants */).GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(CommunicationDisabledNoticeForGuild);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardGuildCommunicationDisabled.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardGuildCommunicationDisabled.tsx');
exports.default = value;
}
function CommunicationDisabledNoticeForGuild({guildMember}) { // fn#91414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12105:187, offset: 0x02063902, size: 317 bytes, params: 2, frame: 21
var date;
(require(11920) /* metro dependency 11920: useCommunicationDisabledCountdownCleanup */).useCommunicationDisabledCountdownCleanup(guildMember);
const communicationDisabledUntil = guildMember.communicationDisabledUntil;
if (communicationDisabledUntil == null) {
date = new global.Date();
} else {
date = new global.Date(communicationDisabledUntil);
function CommunicationDisabledNoticeForGuild({guildMember}) { // fn#91414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12105:187, offset: 0x02063902, size: 317 bytes, params: 2, frame: 21
var date;
(UseCommunicationDisabledCountdownCleanupModule).useCommunicationDisabledCountdownCleanup(guildMember);
const communicationDisabledUntil = guildMember.communicationDisabledUntil;
if (communicationDisabledUntil == null) {
date = new global.Date();
} else {
date = new global.Date(communicationDisabledUntil);
}
const object = {type: 'simple-action'};
const ClockWarningIcon = (ClockWarningIconModule).ClockWarningIcon;
object.icon = <ClockWarningIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const VSpdzK = (require(1244) /* metro dependency 1244: indexNative */).t.VSpdzK;
object.message = Reflect.apply(string, intl, [VSpdzK]);
object.subtext = intl.format((require(1244) /* metro dependency 1244: indexNative */).t['4ZwD5G'],
{link: GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK});
object.countdown = undefined;
return <ChatInputGuard {...object} />;
}
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const object2 = {type: 'simple-action'};
const ClockWarningIcon = (require(10317) /* metro dependency 10317: ClockWarningIcon */).ClockWarningIcon;
object2.icon = <ClockWarningIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const VSpdzK = (require(1244) /* metro dependency 1244: indexNative */).t.VSpdzK;
object2.message = Reflect.apply(string, intl, [VSpdzK]);
object2.subtext = intl.format((require(1244) /* metro dependency 1244: indexNative */).t['4ZwD5G'],
{link: GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK});
object2.countdown = undefined;
return <ChatInputGuard {...object2} />;
}
global.__d(_fun91413, 11919, [31, 1947, 33, 11920, 11904, 10317, 1244,
2]) /* metro module 11919, dependencies: [31, 1947, 33, 11920, 11904, 10317, 1244, 2] */;
@@ -1,103 +1,111 @@
/* Metro module 11914; source: modules/chat_input/native/guard/ChatInputGuardGuildMemberVerification.tsx; dependencies: [31, 27, 4502, 11529, 661, 33, 4501, 8936, 3972, 11915, 1244, 4863, 8926, 11916, 5312, 8919, 566, 11904, 6760, 11917, 2] */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import AppAnalyticsUtils from '../../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
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 MemberVerificationAlertActionCreatorsModule from '../../../guild_member_verification/native/MemberVerificationAlertActionCreators.tsx'; /* Metro dependency 8926 */
import * as ChatInputConstantsModule from '../ChatInputConstants.tsx'; /* Metro dependency 11529 */
function _fun91401(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:6, offset: 0x0205e5cc, size: 292 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_3 = (require(27) /* metro dependency 27 */).Image;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_5 = (require(11529) /* metro dependency 11529: ChatInputConstants */).TextAreaCta;
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({noticeIcon: {'height': 36,
let value = ReactModule;
const env0_8 = (CreateStylesModule).createStyles({noticeIcon: {'height': 36,
'width': 36, 'resizeMode': 'contain'}, lottieAnimation: {'height': 36, 'width': 36}});
value = value.memo(ChatInputGuardGuildMemberVerification);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardGuildMemberVerification.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardGuildMemberVerification.tsx');
exports.default = value;
}
function ChatInputGuardGuildMemberVerification({guildId}) { // fn#91402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:323, offset: 0x0205e6f0, size: 688 bytes, params: 2, frame: 26
var r4;
var r6;
var r7;
var r12;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value4;
var defaultImport;
var xSmallIcon;
var value6;
var defaultImport2;
var value7;
const styles = useStyles();
const applicationStatus = (require(8936) /* metro dependency 8936: useCurrentUserGuildJoinRequest */).useCurrentUserGuildJoinRequest(guildId)?.applicationStatus;
const GuildJoinRequestApplicationStatuses = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses;
const REJECTED = GuildJoinRequestApplicationStatuses.REJECTED;
if (REJECTED === applicationStatus) {
defaultImport2 = importDefault(11915) /* metro dependency 11915 */;
value7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lk30cY);
r4 = ChatInputGuardGuildMemberVerificationA;
r6 = undefined;
r7 = value7;
r12 = defaultImport2;
} else if ((require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.SUBMITTED === applicationStatus) {
defaultImport = importDefault(11916) /* metro dependency 11916 */;
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
xSmallIcon = <XSmallIcon />;
value6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5iLvSx']);
r4 = ChatInputGuardGuildMemberVerificationA_91404;
r6 = xSmallIcon;
r7 = value6;
r12 = defaultImport;
} else {
value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rEBKvg);
r4 = ChatInputGuardGuildMemberVerificationA_91405;
r6 = undefined;
r7 = value4;
r12 = undefined;
}
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
return ((Component) => <Component type="simple-action" icon={r12 != null ? <Image style={styles.noticeIcon} source={r12} /> : ((Component) => <Component style={styles.lottieAnimation} source={require(11917) /* metro dependency 11917 */} autoPlay={!useReducedMotion} />)(importDefault(6760) /* metro dependency 6760: LottieAnimationView */)} message={r7} actionIcon={r6} actionLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['r8/DT+'])} actionOnPress={r4} />)(importDefault(11904) /* metro dependency 11904: ChatInputGuard */);
function ChatInputGuardGuildMemberVerificationA() { // fn#91403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:609, owner: ChatInputGuardGuildMemberVerification.A, offset: 0x0205e9a0, size: 113 bytes, params: 1, frame: 17
const value = environment.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const MEMBER_VERIFICATION_REJECTED = TextAreaCta.MEMBER_VERIFICATION_REJECTED;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: MEMBER_VERIFICATION_REJECTED}]);
(MemberVerificationAlertActionCreatorsModule).openMemberVerificationRejectedAlert({guildId: guildId,
canWithdraw: false});
}
function ChatInputGuardGuildMemberVerificationA_91404() { // fn#91404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:933, owner: ChatInputGuardGuildMemberVerification.A, offset: 0x0205ea11, size: 160 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const MEMBER_VERIFICATION_CONFIRMED = TextAreaCta.MEMBER_VERIFICATION_CONFIRMED;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: MEMBER_VERIFICATION_CONFIRMED}]);
value = require(8926) /* metro dependency 8926: MemberVerificationAlertActionCreators */;
const openMemberVerificationCancelPendingAlert = value.openMemberVerificationCancelPendingAlert;
object = {};
object.guildId = guildId;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.subtitleText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13tjTU']);
Reflect.apply(openMemberVerificationCancelPendingAlert, value, [object]);
}
function ChatInputGuardGuildMemberVerificationA_91405() { // fn#91405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:1211, owner: ChatInputGuardGuildMemberVerification.A, offset: 0x0205eab1, size: 100 bytes, params: 1, frame: 17
let value = environment.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const MEMBER_VERIFICATION = TextAreaCta.MEMBER_VERIFICATION;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: MEMBER_VERIFICATION}]);
value = require(8919) /* metro dependency 8919: MemberVerificationModalActionCreators */;
value.openMemberVerificationModal(guildId);
}
function ChatInputGuardGuildMemberVerification({guildId}) { // fn#91402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:323, offset: 0x0205e6f0, size: 688 bytes, params: 2, frame: 26
var r4;
var r6;
var r7;
var r12;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value4;
var defaultImport;
var xSmallIcon;
var value6;
var defaultImport2;
var value7;
const styles = useStyles();
const applicationStatus = (require(8936) /* metro dependency 8936: useCurrentUserGuildJoinRequest */).useCurrentUserGuildJoinRequest(guildId)?.applicationStatus;
const GuildJoinRequestApplicationStatuses = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses;
const REJECTED = GuildJoinRequestApplicationStatuses.REJECTED;
if (REJECTED === applicationStatus) {
defaultImport2 = importDefault(11915) /* metro dependency 11915 */;
value7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lk30cY);
r4 = ChatInputGuardGuildMemberVerificationA;
r6 = undefined;
r7 = value7;
r12 = defaultImport2;
} else if ((require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses.SUBMITTED === applicationStatus) {
defaultImport = importDefault(11916) /* metro dependency 11916 */;
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
xSmallIcon = <XSmallIcon />;
value6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5iLvSx']);
r4 = ChatInputGuardGuildMemberVerificationA_91404;
r6 = xSmallIcon;
r7 = value6;
r12 = defaultImport;
} else {
value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rEBKvg);
r4 = ChatInputGuardGuildMemberVerificationA_91405;
r6 = undefined;
r7 = value4;
r12 = undefined;
}
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
return ((Component) => <Component type="simple-action" icon={r12 != null ? <Image style={styles.noticeIcon} source={r12} /> : ((Component) => <Component style={styles.lottieAnimation} source={require(11917) /* metro dependency 11917 */} autoPlay={!useReducedMotion} />)(importDefault(6760) /* metro dependency 6760: LottieAnimationView */)} message={r7} actionIcon={r6} actionLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['r8/DT+'])} actionOnPress={r4} />)(importDefault(11904) /* metro dependency 11904: ChatInputGuard */);
}
function ChatInputGuardGuildMemberVerificationA() { // fn#91403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:609, owner: ChatInputGuardGuildMemberVerification.A, offset: 0x0205e9a0, size: 113 bytes, params: 1, frame: 17
const value = environment.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const MEMBER_VERIFICATION_REJECTED = TextAreaCta.MEMBER_VERIFICATION_REJECTED;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: MEMBER_VERIFICATION_REJECTED}]);
(require(8926) /* metro dependency 8926: MemberVerificationAlertActionCreators */).openMemberVerificationRejectedAlert({guildId: guildId,
canWithdraw: false});
}
function ChatInputGuardGuildMemberVerificationA_91404() { // fn#91404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:933, owner: ChatInputGuardGuildMemberVerification.A, offset: 0x0205ea11, size: 160 bytes, params: 1, frame: 18
var object2;
let value = environment.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const MEMBER_VERIFICATION_CONFIRMED = TextAreaCta.MEMBER_VERIFICATION_CONFIRMED;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: MEMBER_VERIFICATION_CONFIRMED}]);
value = require(8926) /* metro dependency 8926: MemberVerificationAlertActionCreators */;
const openMemberVerificationCancelPendingAlert = value.openMemberVerificationCancelPendingAlert;
object2 = {};
object2.guildId = guildId;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.subtitleText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13tjTU']);
Reflect.apply(openMemberVerificationCancelPendingAlert, value, [object2]);
}
function ChatInputGuardGuildMemberVerificationA_91405() { // fn#91405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12100:1211, owner: ChatInputGuardGuildMemberVerification.A, offset: 0x0205eab1, size: 100 bytes, params: 1, frame: 17
let value = environment.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const MEMBER_VERIFICATION = TextAreaCta.MEMBER_VERIFICATION;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: MEMBER_VERIFICATION}]);
value = require(8919) /* metro dependency 8919: MemberVerificationModalActionCreators */;
value.openMemberVerificationModal(guildId);
}
global.__d(_fun91401, 11914, [31, 27, 4502, 11529, 661, 33, 4501, 8936, 3972, 11915, 1244, 4863, 8926, 11916, 5312,
8919, 566, 11904, 6760, 11917,
2]) /* metro module 11914, dependencies: [31, 27, 4502, 11529, 661, 33, 4501, 8936, 3972, 11915, 1244, 4863, 8926, 11916, 5312, 8919, 566, 11904, 6760, 11917, 2] */;
@@ -1,127 +1,143 @@
/* Metro module 11913; source: modules/chat_input/native/guard/ChatInputGuardLurking.tsx; dependencies: [31, 3785, 1379, 11529, 661, 33, 566, 1230, 4863, 11261, 6927, 1314, 6946, 6593, 11904, 1244, 2] */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import LurkingStore from '../../../lurker_mode/LurkingStore.tsx'; /* Metro dependency 3785 */
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ChatInputConstantsModule from '../ChatInputConstants.tsx'; /* Metro dependency 11529 */
function _fun91395(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:6, offset: 0x0205df8d, size: 242 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 lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_7 = (require(11529) /* metro dependency 11529: ChatInputConstants */).TextAreaCta;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_8 = constantsModule.AnalyticEvents;
const env0_9 = constantsModule.JoinGuildSources;
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ChatInputGuardLurking);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardLurking.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardLurking.tsx');
exports.default = value;
}
function ChatInputGuardLurking({channel, isReadonlyAnnouncementsChannel}) { // fn#91396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:226, offset: 0x0205e07f, size: 822 bytes, params: 2, frame: 26
var r9;
var r0;
var ChatInputGuard;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var ChatInputGuard2;
let value = channel.getGuildId();
const {isLurking,
lurkingSource} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([LurkingStore],
_fun91397, [value]);
const binding = env0_4;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun91398, []]);
useCallback = binding.useCallback;
object = [value];
object[1] = channel.id;
const value6 = Reflect.apply(useCallback, binding, [_fun91399, object]);
value = binding.useCallback(_fun91400, [value]);
const type = lurkingSource?.type;
const DIRECTORY_ENTRY = JoinGuildSources.DIRECTORY_ENTRY;
if (type === DIRECTORY_ENTRY) {
ChatInputGuard2 = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
value = <ChatInputGuard2 type="button-action" message={intl.string(t.G42YmG)} buttonSecondaryText={intl.string(t.GlKb5i)} buttonSecondaryOnPress={value5} buttonPrimaryText={intl.string(t.RLch70)} buttonPrimaryOnPress={value} />;
r0 = value;
} else {
ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
if (isReadonlyAnnouncementsChannel) {
object = {type: 'button-action'};
object.message = intl.string(t.Hl0Mqh);
r9 = isLurking ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VJlc0S) : undefined;
object.buttonSecondaryText = r9;
r9 = isLurking ? value : undefined;
object.buttonSecondaryOnPress = r9;
object.buttonPrimaryText = intl.string(t['3aOv+h']);
object.buttonPrimaryOnPress = value6;
r0 = object;
function ChatInputGuardLurking({channel, isReadonlyAnnouncementsChannel}) { // fn#91396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:226, offset: 0x0205e07f, size: 822 bytes, params: 2, frame: 26
var r9;
var r0;
var ChatInputGuard;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var ChatInputGuard2;
let value = channel.getGuildId();
const {isLurking,
lurkingSource} = (FluxModule).useStateFromStoresObject([LurkingStore],
_fun91397, [value]);
const binding = env0_4;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun91398, []]);
useCallback = binding.useCallback;
object = [value];
object[1] = channel.id;
const value6 = Reflect.apply(useCallback, binding, [_fun91399, object]);
value = binding.useCallback(_fun91400, [value]);
const type = lurkingSource?.type;
const DIRECTORY_ENTRY = JoinGuildSources.DIRECTORY_ENTRY;
if (type === DIRECTORY_ENTRY) {
ChatInputGuard2 = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
value = (
<ChatInputGuard2
type="button-action"
message={intl.string(t.G42YmG)}
buttonSecondaryText={intl.string(t.GlKb5i)}
buttonSecondaryOnPress={value5}
buttonPrimaryText={intl.string(t.RLch70)}
buttonPrimaryOnPress={value}
/>
);
r0 = value;
} else {
object = {type: 'button-action'};
object.message = intl.string(t.G42YmG);
object.buttonPrimaryText = intl.string(t.RLch70);
object.buttonPrimaryOnPress = value;
r0 = object;
ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
if (isReadonlyAnnouncementsChannel) {
object = {type: 'button-action'};
object.message = intl.string(t.Hl0Mqh);
r9 = isLurking ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VJlc0S) : undefined;
object.buttonSecondaryText = r9;
r9 = isLurking ? value : undefined;
object.buttonSecondaryOnPress = r9;
object.buttonPrimaryText = intl.string(t['3aOv+h']);
object.buttonPrimaryOnPress = value6;
r0 = object;
} else {
object = {type: 'button-action'};
object.message = intl.string(t.G42YmG);
object.buttonPrimaryText = intl.string(t.RLch70);
object.buttonPrimaryOnPress = value;
r0 = object;
}
value = <ChatInputGuard {...r0} />;
r0 = value;
}
return r0;
function _fun91397() { // fn#91397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:364, offset: 0x0205e3b5, size: 74 bytes, params: 1, frame: 14
const object = {};
object.isLurking = env0_1 != null && LurkingStore.isLurking(env0_1);
object.lurkingSource = LurkingStore.getLurkingSourceForGuild(env0_1);
return object;
}
value = <ChatInputGuard {...r0} />;
r0 = value;
}
return r0;
}
function _fun91397() { // fn#91397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:364, offset: 0x0205e3b5, size: 74 bytes, params: 1, frame: 14
const object2 = {};
object2.isLurking = env0_1 != null && LurkingStore.isLurking(env0_1);
object2.lurkingSource = LurkingStore.getLurkingSourceForGuild(env0_1);
return object2;
}
function _fun91398() { // fn#91398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:505, offset: 0x0205e3ff, size: 47 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(1230) /* metro dependency 1230: router_utils */;
value = value.getHistory();
value.goBack();
}
function _fun91398() { // fn#91398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:505, offset: 0x0205e3ff, size: 47 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(1230) /* metro dependency 1230: router_utils */;
value = value.getHistory();
value.goBack();
}
function _fun91399() { // fn#91399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:563, offset: 0x0205e42e, size: 122 bytes, params: 1, frame: 18
var value2;
var defaultImport;
var moduleValue;
if (env0_1 != null) {
value2 = environment.__proto__;
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
defaultImport.trackWithMetadata(AnalyticEvents.TEXT_AREA_CTA_CLICKED,
{cta_type: TextAreaCta.FOLLOW_ANNOUNCEMENT});
moduleValue = require(11261) /* metro dependency 11261: showChannelFollowingActionSheet */;
moduleValue.showChannelFollowingActionSheet(channel.id, env0_1);
}
}
function _fun91400() { // fn#91400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:740, offset: 0x0205e4a8, size: 292 bytes, params: 1, frame: 19
var value2;
var lurkingSourceForGuild;
var value5;
var moduleValue;
var moduleValue2;
var trackGuildJoinClicked;
var binding;
var value;
if (env0_1 != null) {
value2 = environment.__proto__;
lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(env0_1);
if (lurkingSourceForGuild?.type === JoinGuildSources.DIRECTORY_ENTRY) {
value5 = ChannelStore.getChannel(lurkingSourceForGuild.directoryChannelId);
if (value5 != null) {
moduleValue = require(6927) /* metro dependency 6927: HubProgressActionCreators */;
moduleValue.setHubProgressActionComplete(value5.getGuildId(),
(require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep.JOIN_GUILD);
function _fun91399() { // fn#91399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:563, offset: 0x0205e42e, size: 122 bytes, params: 1, frame: 18
var value2;
var defaultImport;
var moduleValue;
if (env0_1 != null) {
value2 = environment.__proto__;
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
defaultImport.trackWithMetadata(AnalyticEvents.TEXT_AREA_CTA_CLICKED,
{cta_type: TextAreaCta.FOLLOW_ANNOUNCEMENT});
moduleValue = require(11261) /* metro dependency 11261: showChannelFollowingActionSheet */;
moduleValue.showChannelFollowingActionSheet(channel.id, env0_1);
}
}
moduleValue2 = importAll(6946) /* metro dependency 6946: GuildDiscoveryUtils */;
trackGuildJoinClicked = moduleValue2.trackGuildJoinClicked;
binding = env0_1;
Reflect.apply(trackGuildJoinClicked, moduleValue2, [binding]);
value = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
value.trackWithMetadata(AnalyticEvents.TEXT_AREA_CTA_CLICKED, {cta_type: TextAreaCta.JOIN_GUILD});
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
value.joinGuild(binding, {source: JoinGuildSources.CHAT_INPUT_BLOCKER});
function _fun91400() { // fn#91400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12099:740, offset: 0x0205e4a8, size: 292 bytes, params: 1, frame: 19
var value2;
var lurkingSourceForGuild;
var channelStoreBinding;
var value5;
var moduleValue;
var moduleValue2;
var trackGuildJoinClicked;
var binding;
var value;
if (env0_1 != null) {
value2 = environment.__proto__;
lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(env0_1);
if (lurkingSourceForGuild?.type === JoinGuildSources.DIRECTORY_ENTRY) {
channelStoreBinding = ChannelStore;
value5 = channelStoreBinding.getChannel(lurkingSourceForGuild.directoryChannelId);
if (value5 != null) {
moduleValue = require(6927) /* metro dependency 6927: HubProgressActionCreators */;
moduleValue.setHubProgressActionComplete(value5.getGuildId(),
(require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep.JOIN_GUILD);
}
}
moduleValue2 = importAll(6946) /* metro dependency 6946: GuildDiscoveryUtils */;
trackGuildJoinClicked = moduleValue2.trackGuildJoinClicked;
binding = env0_1;
Reflect.apply(trackGuildJoinClicked, moduleValue2, [binding]);
value = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
value.trackWithMetadata(AnalyticEvents.TEXT_AREA_CTA_CLICKED, {cta_type: TextAreaCta.JOIN_GUILD});
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
value.joinGuild(binding, {source: JoinGuildSources.CHAT_INPUT_BLOCKER});
}
}
}
}
global.__d(_fun91395, 11913, [31, 3785, 1379, 11529, 661, 33, 566, 1230, 4863, 11261, 6927, 1314, 6946, 6593, 11904,
1244,
2]) /* metro module 11913, dependencies: [31, 3785, 1379, 11529, 661, 33, 566, 1230, 4863, 11261, 6927, 1314, 6946, 6593, 11904, 1244, 2] */;
@@ -1,101 +1,138 @@
/* Metro module 11894; source: modules/chat_input/native/guard/ChatInputGuardLurkingPreviewBar.tsx; dependencies: [31, 27, 1867, 11529, 661, 33, 4501, 697, 566, 4080, 9300, 1962, 4863, 5278, 6819, 4573, 6915, 1305, 6818, 1244, 9321, 2] */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
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 TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ChatInputConstantsModule from '../ChatInputConstants.tsx'; /* Metro dependency 11529 */
function _fun91297(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12080:6, offset: 0x0205a6bf, size: 642 bytes, params: 8, frame: 25
var object3;
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 guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_6 = (require(11529) /* metro dependency 11529: ChatInputConstants */).TextAreaCta;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_7 = constantsModule.AnalyticEvents;
const env0_8 = constantsModule.JoinGuildSources;
const value3 = require(33) /* metro dependency 33 */;
const env0_9 = value3.jsx;
const env0_10 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object5 = {};
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {};
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
object5.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
object2.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
const TABLE_ROW_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_BORDER_RADIUS;
object5.borderRadius = TABLE_ROW_BORDER_RADIUS;
object2.borderRadius = TABLE_ROW_BORDER_RADIUS;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingHorizontal = PX_12;
object2.paddingHorizontal = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingVertical = PX_12;
object2.paddingVertical = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.gap = PX_12;
object2.gap = PX_12;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object5.borderColor = BORDER_SUBTLE;
object5.borderWidth = 1;
object2.borderColor = BORDER_SUBTLE;
object2.borderWidth = 1;
const SHADOW_HIGH = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_HIGH;
copyDataProperties(object5, SHADOW_HIGH, undefined);
object3.cardContainer = object5;
copyDataProperties(object2, SHADOW_HIGH, undefined);
object.cardContainer = object2;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.headerRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_12};
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.guildIcon = object6;
object3.textColumn = {'flex': 1, 'flexShrink': 1, 'minWidth': 0};
object.headerRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_12};
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.guildIcon = object4;
object.textColumn = {'flex': 1, 'flexShrink': 1, 'minWidth': 0};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.nameRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
object3.chevron = {marginLeft: -2};
object3.badge = {flexShrink: 0};
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object3]);
object.nameRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
object.chevron = {marginLeft: -2};
object.badge = {flexShrink: 0};
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(ChatInputGuardLurkingPreviewBar);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardLurkingPreviewBar.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardLurkingPreviewBar.tsx');
exports.default = value;
}
function ChatInputGuardLurkingPreviewBar({guildId}) { // fn#91298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12080:868, offset: 0x0205a941, size: 729 bytes, params: 2, frame: 34
var r0;
var PressableOpacity;
var name;
var items2;
const Text = (TextModule).Text;
var items4;
var intl;
const styles = useStyles();
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
}, [guildId]);
const binding = env0_3;
if (value2 == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.cardContainer};
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {style: styles.headerRow, onPress: binding.useCallback(_fun91300, [guildId]),
accessibilityRole: 'button'};
name = value2.name;
pressableOpacityProps.accessibilityLabel = name;
items2 = [
((Component) => <Component guild={value2} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} style={styles.guildIcon} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */),
];
var viewBindingProps2 = {style: styles.textColumn};
name = value2.name;
items4 = [
<View style={styles.nameRow}>
<Text
variant="text-md/semibold"
color="text-default"
lineClamp={1}
>
{name}
</Text>
{((Component) => <Component size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} guild={value2} style={styles.badge} />)(importDefault(6915) /* metro dependency 6915: GuildBadgeV2 */)}
{((ChevronSmallRightIcon) => <ChevronSmallRightIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED} style={styles.chevron} />)((require(6818) /* metro dependency 6818: ChevronSmallRightIcon */).ChevronSmallRightIcon)}
</View>,
];
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4[1] = (
<Text
variant="text-sm/normal"
color="text-muted"
lineClamp={1}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BRSnEj)}
</Text>
);
items2[1] = (
<View {...viewBindingProps2}>
{items4}
</View>
);
r0 = (
<View {...viewBindingProps}>
<PressableOpacity {...pressableOpacityProps}>
{items2}
</PressableOpacity>
{((Component) => <Component guildId={guildId} joinSource={JoinGuildSources.CHAT_INPUT_BLOCKER} onBeforeJoin={binding.useCallback(function() {
var defaultImport = importDefault(dependencyMap[12]);
var TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
defaultImport.trackWithMetadata(TEXT_AREA_CTA_CLICKED, {cta_type: TextAreaCta.JOIN_GUILD});
}, [])} />)(importDefault(9321) /* metro dependency 9321: LurkerServerPreviewJoinButton */)}
</View>
);
}
return r0;
function _fun91300() { // fn#91300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12080:1007, offset: 0x0205ac1a, size: 111 bytes, params: 1, frame: 17
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[9]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[11]);
value = value(dependencyMap[10], dependencyMap.paths);
const guildIdBinding = guildId;
Reflect.apply(openLazy, defaultImport, [value, 'GuildProfileActionSheet:' + guildIdBinding,
{guildId: guildIdBinding}]);
}
function ChatInputGuardLurkingPreviewBar({guildId}) { // fn#91298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12080:868, offset: 0x0205a941, size: 729 bytes, params: 2, frame: 34
var r0;
var PressableOpacity;
var name;
var items2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items4;
var intl;
const styles = useStyles();
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
}, [guildId]);
const binding = env0_3;
if (value2 == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.cardContainer};
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {style: styles.headerRow, onPress: binding.useCallback(_fun91300, [guildId]),
accessibilityRole: 'button'};
name = value2.name;
pressableOpacityProps.accessibilityLabel = name;
items2 = [((Component) => <Component guild={value2} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} style={styles.guildIcon} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)];
var viewBindingProps2 = {style: styles.textColumn};
name = value2.name;
items4 = [<View style={styles.nameRow}><Text variant="text-md/semibold" color="text-default" lineClamp={1}>{name}</Text>{((Component) => <Component size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} guild={value2} style={styles.badge} />)(importDefault(6915) /* metro dependency 6915: GuildBadgeV2 */)}{((ChevronSmallRightIcon) => <ChevronSmallRightIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED} style={styles.chevron} />)((require(6818) /* metro dependency 6818: ChevronSmallRightIcon */).ChevronSmallRightIcon)}</View>];
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4[1] = <Text variant="text-sm/normal" color="text-muted" lineClamp={1}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BRSnEj)}</Text>;
items2[1] = <View {...viewBindingProps2}>{items4}</View>;
r0 = <View {...viewBindingProps}><PressableOpacity {...pressableOpacityProps}>{items2}</PressableOpacity>{((Component) => <Component guildId={guildId} joinSource={JoinGuildSources.CHAT_INPUT_BLOCKER} onBeforeJoin={binding.useCallback(function() {
var defaultImport = importDefault(dependencyMap[12]);
var TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
defaultImport.trackWithMetadata(TEXT_AREA_CTA_CLICKED, {cta_type: TextAreaCta.JOIN_GUILD});
}, [])} />)(importDefault(9321) /* metro dependency 9321: LurkerServerPreviewJoinButton */)}</View>;
}
return r0;
}
function _fun91300() { // fn#91300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12080:1007, offset: 0x0205ac1a, size: 111 bytes, params: 1, frame: 17
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[9]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[11]);
value = value(dependencyMap[10], dependencyMap.paths);
const guildIdBinding = guildId;
Reflect.apply(openLazy, defaultImport, [value, 'GuildProfileActionSheet:' + guildIdBinding,
{guildId: guildIdBinding}]);
}
global.__d(_fun91297, 11894, [31, 27, 1867, 11529, 661, 33, 4501, 697, 566, 4080, 9300, 1962, 4863, 5278, 6819,
4573, 6915, 1305, 6818, 1244, 9321,
2]) /* metro module 11894, dependencies: [31, 27, 1867, 11529, 661, 33, 4501, 697, 566, 4080, 9300, 1962, 4863, 5278, 6819, 4573, 6915, 1305, 6818, 1244, 9321, 2] */;
@@ -1,95 +1,114 @@
/* Metro module 11895; source: modules/chat_input/native/guard/ChatInputGuardMessageRequest.tsx; dependencies: [5, 31, 1878, 33, 1484, 11896, 566, 11898, 3857, 1244, 8947, 4601, 11904, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseIsMessageRequestRestrictedViewerModule from '../../../message_request/hooks/useIsMessageRequestRestrictedViewer.tsx'; /* Metro dependency 11896 */
function _fun91302(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:6, offset: 0x0205accb, size: 180 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
let value = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ChatInputGuardMessageRequest);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardMessageRequest.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardMessageRequest.tsx');
exports.default = value;
}
function ChatInputGuardMessageRequest({channel}) { // fn#91303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:156, offset: 0x0205ad7f, size: 636 bytes, params: 2, frame: 29
var object2;
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const value2 = (require(11896) /* metro dependency 11896: useIsMessageRequestRestrictedViewer */).useIsMessageRequestRestrictedViewer('ChatInputGuardMessageRequest');
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(channel.getRecipientId());
});
const value3 = (require(11898) /* metro dependency 11898: useMessageRequestActions */).useMessageRequestActions({user: user,
onError: function() {
var defaultImport = importDefault(dependencyMap[8]);
var object = {key: 'MESSAGE_REQUEST_REQUEST_ERROR_ALERT_TITLE'};
object.content = require(dependencyMap[9]).intl.string(require(dependencyMap[9]).t['EDYbS+']);
object.icon = importDefault(dependencyMap[10]);
defaultImport.open(object);
}, onRejectSuccess: onRejectSuccess});
const env0_2 = value3.acceptMessageRequest;
const env0_3 = value3.rejectMessageRequest;
const isAcceptLoading = value3.isAcceptLoading;
const isRejectLoading = value3.isRejectLoading;
const isUserProfileLoading = value3.isUserProfileLoading;
const isOptimisticAccepted = value3.isOptimisticAccepted;
const isOptimisticRejected = value3.isOptimisticRejected;
let r6 = isAcceptLoading || isRejectLoading;
r6 = !r6 ? isUserProfileLoading : r6;
r6 = !r6 ? isOptimisticAccepted : r6;
r6 = !r6 ? isOptimisticRejected : r6;
const value4 = _fun91307();
const value5 = _fun91311();
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
object2 = {type: 'button-action'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.message = Reflect.apply(string, intl, [t['e/eQVB']]);
object2.subtext = intl.string(value2 ? t.YQ0uUE : t.HcVzGI);
string = intl.string;
const Kz8Pwr = (require(1244) /* metro dependency 1244: indexNative */).t.Kz8Pwr;
object2.buttonPrimaryText = Reflect.apply(string, intl, [Kz8Pwr]);
object2.buttonPrimaryOnPress = value4;
object2.buttonPrimaryDisabled = r6;
let r9 = isAcceptLoading || isUserProfileLoading;
r9 = !r9 ? isOptimisticAccepted : r9;
object2.buttonPrimaryLoading = r9;
object2.buttonSecondaryText = intl.string(value2 ? t.BVN4pL : t.B2nygW);
object2.buttonSecondaryOnPress = value5;
object2.buttonSecondaryDisabled = r6;
object2.buttonSecondaryLoading = isRejectLoading || isOptimisticRejected;
return <ChatInputGuard {...object2} />;
}
function _fun91307() { // fn#91307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:784, offset: 0x0205b099, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun91309);
return _fun91310;
}
function _fun91311() { // fn#91311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:967, offset: 0x0205b13b, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun91313);
return _fun91314;
}
function* _fun91309(a0) { // fn#91309, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:804, offset: 0x0205b0c8, size: 115 bytes, params: 2, frame: 17
if (true) {
a0.stopPropagation();
value = environment.__proto__.__proto__;
yield dependencyMap(require.id);
if (false) {
return undefined;
function ChatInputGuardMessageRequest({channel}) { // fn#91303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:156, offset: 0x0205ad7f, size: 636 bytes, params: 2, frame: 29
const env0_1 = (UseNavigationNativeModule).useNavigation();
const value2 = (UseIsMessageRequestRestrictedViewerModule).useIsMessageRequestRestrictedViewer('ChatInputGuardMessageRequest');
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(channel.getRecipientId());
});
const value3 = (require(11898) /* metro dependency 11898: useMessageRequestActions */).useMessageRequestActions({user: user,
onError: function() {
var defaultImport = importDefault(dependencyMap[8]);
var object = {key: 'MESSAGE_REQUEST_REQUEST_ERROR_ALERT_TITLE'};
object.content = require(dependencyMap[9]).intl.string(require(dependencyMap[9]).t['EDYbS+']);
object.icon = importDefault(dependencyMap[10]);
defaultImport.open(object);
}, onRejectSuccess: onRejectSuccess});
const env0_2 = value3.acceptMessageRequest;
const env0_3 = value3.rejectMessageRequest;
const isAcceptLoading = value3.isAcceptLoading;
const isRejectLoading = value3.isRejectLoading;
const isUserProfileLoading = value3.isUserProfileLoading;
const isOptimisticAccepted = value3.isOptimisticAccepted;
const isOptimisticRejected = value3.isOptimisticRejected;
let r6 = isAcceptLoading || isRejectLoading;
r6 = !r6 ? isUserProfileLoading : r6;
r6 = !r6 ? isOptimisticAccepted : r6;
r6 = !r6 ? isOptimisticRejected : r6;
const value4 = _fun91307();
const value5 = _fun91311();
object = {type: 'button-action'};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.message = Reflect.apply(string, intl, [t['e/eQVB']]);
object.subtext = intl.string(value2 ? t.YQ0uUE : t.HcVzGI);
string = intl.string;
const Kz8Pwr = (IndexNativeModule).t.Kz8Pwr;
object.buttonPrimaryText = Reflect.apply(string, intl, [Kz8Pwr]);
object.buttonPrimaryOnPress = value4;
object.buttonPrimaryDisabled = r6;
let r9 = isAcceptLoading || isUserProfileLoading;
r9 = !r9 ? isOptimisticAccepted : r9;
object.buttonPrimaryLoading = r9;
object.buttonSecondaryText = intl.string(value2 ? t.BVN4pL : t.B2nygW);
object.buttonSecondaryOnPress = value5;
object.buttonSecondaryDisabled = r6;
object.buttonSecondaryLoading = isRejectLoading || isOptimisticRejected;
return <ChatInputGuard {...object} />;
function onRejectSuccess() { // fn#91306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:585, owner: ChatInputGuardMessageRequest.onRejectSuccess, offset: 0x011b3f85, size: 21 bytes, params: 1, frame: 9
env0_1.pop();
}
var value6 = env3_0(env3_2[11]);
value6.transitionToChannel(require.id, {navigationReplace: true});
}
}
function* _fun91313(a0) { // fn#91313, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:987, offset: 0x0205b16a, size: 62 bytes, params: 2, frame: 12
if (true) {
a0.stopPropagation();
value = environment.__proto__.__proto__;
yield env2_3(require.id);
function _fun91307() { // fn#91307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:784, offset: 0x0205b099, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun91309);
return _fun91310;
function* _fun91309(a0) { // fn#91309, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:804, offset: 0x0205b0c8, size: 115 bytes, params: 2, frame: 17
if (true) {
a0.stopPropagation();
value = environment.__proto__.__proto__;
yield dependencyMap(require.id);
if (false) {
return undefined;
}
var value6 = env3_0(env3_2[11]);
value6.transitionToChannel(require.id, {navigationReplace: true});
}
}
function _fun91310() { // fn#91310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:919, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function _fun91311() { // fn#91311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:967, offset: 0x0205b13b, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun91313);
return _fun91314;
function* _fun91313(a0) { // fn#91313, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:987, offset: 0x0205b16a, size: 62 bytes, params: 2, frame: 12
if (true) {
a0.stopPropagation();
value = environment.__proto__.__proto__;
yield env2_3(require.id);
}
}
function _fun91314() { // fn#91314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12081:1044, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
}
global.__d(_fun91302, 11895, [5, 31, 1878, 33, 1484, 11896, 566, 11898, 3857, 1244, 8947, 4601, 11904,
2]) /* metro module 11895, dependencies: [5, 31, 1878, 33, 1484, 11896, 566, 11898, 3857, 1244, 8947, 4601, 11904, 2] */;
@@ -1,28 +1,35 @@
/* Metro module 11909; source: modules/chat_input/native/guard/ChatInputGuardQuarantineDM.tsx; dependencies: [31, 11910, 33, 11904, 11911, 1244, 2] */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 QuarantineConstantsModule from '../../../quarantine/QuarantineConstants.tsx'; /* Metro dependency 11910 */
import * as ChatWarningIconModule from '../../../../design/components/Icon/native/redesign/generated/ChatWarningIcon.tsx'; /* Metro dependency 11911 */
function _fun91388(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12095:6, offset: 0x0205dae9, size: 170 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(11910) /* metro dependency 11910: QuarantineConstants */).QUARANTINE_APPEAL_LINK;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ChatInputGuardQuarantineDM);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardQuarantineDM.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardQuarantineDM.tsx');
exports.default = value;
function ChatInputGuardQuarantineDM() { // fn#91389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12095:167, offset: 0x0205db93, size: 197 bytes, params: 1, frame: 20
const object = {type: 'simple-action'};
const ChatWarningIcon = (ChatWarningIconModule).ChatWarningIcon;
object.icon = <ChatWarningIcon />;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const EouHwv = (IndexNativeModule).t.EouHwv;
object.message = Reflect.apply(string, intl, [EouHwv]);
const format = intl.format;
const PThBel = (IndexNativeModule).t.PThBel;
object.subtext = Reflect.apply(format, intl, [PThBel, {appealLink: QUARANTINE_APPEAL_LINK}]);
return <ChatInputGuard {...object} />;
}
}
function ChatInputGuardQuarantineDM() { // fn#91389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12095:167, offset: 0x0205db93, size: 197 bytes, params: 1, frame: 20
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const object2 = {type: 'simple-action'};
const ChatWarningIcon = (require(11911) /* metro dependency 11911: ChatWarningIcon */).ChatWarningIcon;
object2.icon = <ChatWarningIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const EouHwv = (require(1244) /* metro dependency 1244: indexNative */).t.EouHwv;
object2.message = Reflect.apply(string, intl, [EouHwv]);
const format = intl.format;
const PThBel = (require(1244) /* metro dependency 1244: indexNative */).t.PThBel;
object2.subtext = Reflect.apply(format, intl, [PThBel, {appealLink: QUARANTINE_APPEAL_LINK}]);
return <ChatInputGuard {...object2} />;
}
global.__d(_fun91388, 11909, [31, 11910, 33, 11904, 11911, 1244,
2]) /* metro module 11909, dependencies: [31, 11910, 33, 11904, 11911, 1244, 2] */;
@@ -1,4 +1,24 @@
/* Metro module 11925; source: modules/chat_input/native/guard/ChatInputGuardReadonly.tsx; dependencies: [31, 1383, 1379, 1935, 3784, 4605, 3793, 1878, 11529, 661, 33, 11810, 566, 1360, 1244, 4805, 4863, 1230, 21, 11904, 2] */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildChannelStore from '../../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import PermissionStore from '../../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import RelationshipStore from '../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import ReadStateStore from '../../../../stores/ReadStateStore.tsx'; /* Metro dependency 4605 */
import AppAnalyticsUtils from '../../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as Router_utilsModule from '../../../routing/router_utils.tsx'; /* Metro dependency 1230 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ChannelRecordModule from '../../../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
import * as GuildChannelStoreModule from '../../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as ChatInputConstantsModule from '../ChatInputConstants.tsx'; /* Metro dependency 11529 */
import * as MemberActionUtilsModule from '../../../guild_onboarding_home/MemberActionUtils.tsx'; /* Metro dependency 11810 */
function _fun91438(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:6, offset: 0x0206456c, size: 350 bytes, params: 8, frame: 19
const env0_0 = require;
const sortChannelsByLastMessageId = function(a0, a1) {
@@ -7,144 +27,130 @@ function _fun91438(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(1383) /* metro dependency 1383: ChannelRecord */).isTextChannel;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_6 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_SELECTABLE_CHANNELS_KEY;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_11 = (require(11529) /* metro dependency 11529: ChatInputConstants */).TextAreaCta;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_12 = constantsModule.AnalyticEvents;
const env0_13 = constantsModule.Permissions;
const env0_14 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ChatInputGuardReadonly);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardReadonly.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardReadonly.tsx');
exports.default = value;
}
function ChatInputGuardReadonly(a0) { // fn#91440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:437, offset: 0x0206471f, size: 155 bytes, params: 2, frame: 19
const {text, handlePress} = useNotice(a0.guildId, a0.channel);
const intl = (IndexNativeModule).intl;
return (
<ChatInputGuard
type="simple-action"
actionOnPress={handlePress}
actionLabel={intl.string((IndexNativeModule).t['9cs5LM'])}
message={text}
/>
);
function useNotice(a0, a1) { // fn#91441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:498, owner: ChatInputGuardReadonly.useNotice, offset: 0x020647ba, size: 610 bytes, params: 3, frame: 25
var environment;
var r6;
var r0;
const intl = (IndexNativeModule).intl;
var formatToPlainString;
const t = (IndexNativeModule).t;
var q1krfU;
var moduleValue6;
var moduleValue7;
const env0_0 = a0;
const value = environment.__proto__;
const value2 = undefined;
const useMemberActionsForChannel = MemberActionUtilsModule.useMemberActionsForChannel;
const channelAction = Reflect.apply(useMemberActionsForChannel, MemberActionUtilsModule, [a0, a1]).channelAction;
const env0_1 = MemberActionUtilsModule.useNextMemberAction(a0,
channelAction == null ? value2 : channelAction.channelId);
const useStateFromStores = FluxModule.useStateFromStores;
let object = [ChannelStore];
const channel = Reflect.apply(useStateFromStores, FluxModule, [object, _fun91442]);
const value4 = FluxModule.useStateFromStoresArray([PermissionStore], _fun91445,
[FluxModule.useStateFromStoresArray([GuildChannelStore], _fun91443)]);
if (channel != null) {
formatToPlainString = intl.formatToPlainString;
q1krfU = t.q1krfU;
moduleValue7 = require(4805) /* metro dependency 4805: useChannelName */;
r0 = {text: Reflect.apply(formatToPlainString, intl, [q1krfU,
{channelName: moduleValue7.computeChannelName(channel,
UserStore, RelationshipStore)}]), handlePress: handlePress_91448};
} else if (value4.length === 0) {
object = {};
object.text = intl.string(t['gHD/nZ']);
object.handlePress = handlePress_91449;
r0 = object;
} else {
formatToPlainString = intl.formatToPlainString;
q1krfU = t.q1krfU;
if (value4[0] != null) {
moduleValue6 = require(4805) /* metro dependency 4805: useChannelName */;
r6 = moduleValue6.computeChannelName(value4[0], UserStore, RelationshipStore);
} else {
r6 = '';
}
r0 = {text: Reflect.apply(formatToPlainString, intl, [q1krfU, {channelName: r6}]),
handlePress: handlePress_91450};
}
return r0;
function _fun91442() { // fn#91442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:679, offset: 0x02064a1c, size: 46 bytes, params: 1, frame: 13
return ChannelStore.getChannel(env0_1?.channelId);
}
function ChatInputGuardReadonly(a0) { // fn#91440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:437, offset: 0x0206471f, size: 155 bytes, params: 2, frame: 19
const {text, handlePress} = useNotice(a0.guildId, a0.channel);
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ChatInputGuard
type="simple-action"
actionOnPress={handlePress}
actionLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9cs5LM'])}
message={text}
/>
);
}
function _fun91443() { // fn#91443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:766, offset: 0x02064a4a, size: 69 bytes, params: 1, frame: 12
const value4 = GuildChannelStore.getChannels(env0_0)[GUILD_SELECTABLE_CHANNELS_KEY].map(function(a0) {
return a0.channel;
});
return value4.sort(sortChannelsByLastMessageId);
}
function _fun91445() { // fn#91445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:886, offset: 0x02064a8f, size: 86 bytes, params: 1, frame: 14
var environment;
const filter = ChannelRecordModule.isTextChannel.filter;
let value = environment.__proto__.__proto__;
value = Reflect.apply(filter, ChannelRecordModule.isTextChannel, [(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
value = value.filter(function(a0) {
return isTextChannel(a0.type);
});
return value.filter(function(a0) {
return PermissionStore.can(Permissions.SEND_MESSAGES, a0);
});
}
function useNoticeHandlePress() { // fn#91448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:1124, owner: ChatInputGuardReadonly.useNotice.handlePress, offset: 0x02064b1f, size: 110 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const CHANNEL_LINK = TextAreaCta.CHANNEL_LINK;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: CHANNEL_LINK}]);
value = require(1230) /* metro dependency 1230: router_utils */;
value.transitionToGuild(env0_0, channel.id);
}
function useNoticeHandlePress_91449() { // fn#91449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:1318, owner: ChatInputGuardReadonly.useNotice.handlePress, offset: 0x02064b8d, size: 101 bytes, params: 1, frame: 17
const value = environment.__proto__.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const CHANNEL_LIST = TextAreaCta.CHANNEL_LIST;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: CHANNEL_LIST}]);
(Router_utilsModule).transitionToGuild(env0_0, undefined);
}
function useNoticeHandlePress_91450() { // fn#91450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:1577, owner: ChatInputGuardReadonly.useNotice.handlePress, offset: 0x02064bf2, size: 116 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const CHANNEL_LINK = TextAreaCta.CHANNEL_LINK;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: CHANNEL_LINK}]);
value = require(1230) /* metro dependency 1230: router_utils */;
value.transitionToGuild(env0_0, env0_4[0].id);
}
function useNotice(a0, a1) { // fn#91441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:498, owner: ChatInputGuardReadonly.useNotice, offset: 0x020647ba, size: 610 bytes, params: 3, frame: 25
var environment;
var r6;
var r0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var q1krfU;
var moduleValue6;
var object2;
const env0_0 = a0;
const value = environment.__proto__;
const value2 = undefined;
const memberActionUtilsModule = require(11810) /* metro dependency 11810: MemberActionUtils */;
const useMemberActionsForChannel = memberActionUtilsModule.useMemberActionsForChannel;
const channelAction = Reflect.apply(useMemberActionsForChannel, memberActionUtilsModule, [a0, a1]).channelAction;
const env0_1 = memberActionUtilsModule.useNextMemberAction(a0,
channelAction == null ? value2 : channelAction.channelId);
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
let object = [ChannelStore];
const channel = Reflect.apply(useStateFromStores, fluxModule, [object, _fun91442]);
const value4 = fluxModule.useStateFromStoresArray([PermissionStore], _fun91445,
[fluxModule.useStateFromStoresArray([GuildChannelStore], _fun91443)]);
if (channel != null) {
formatToPlainString = intl.formatToPlainString;
q1krfU = t.q1krfU;
object2 = {};
object2.channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel,
UserStore, RelationshipStore);
r0 = {text: Reflect.apply(formatToPlainString, intl, [q1krfU, object2]), handlePress: handlePress_91448};
} else if (value4.length === 0) {
object = {};
object.text = intl.string(t['gHD/nZ']);
object.handlePress = handlePress_91449;
r0 = object;
} else {
formatToPlainString = intl.formatToPlainString;
q1krfU = t.q1krfU;
if (value4[0] != null) {
moduleValue6 = require(4805) /* metro dependency 4805: useChannelName */;
r6 = moduleValue6.computeChannelName(value4[0], UserStore, RelationshipStore);
} else {
r6 = '';
}
r0 = {text: Reflect.apply(formatToPlainString, intl, [q1krfU, {channelName: r6}]),
handlePress: handlePress_91450};
}
return r0;
}
function _fun91442() { // fn#91442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:679, offset: 0x02064a1c, size: 46 bytes, params: 1, frame: 13
return ChannelStore.getChannel(env0_1?.channelId);
}
function _fun91443() { // fn#91443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:766, offset: 0x02064a4a, size: 69 bytes, params: 1, frame: 12
const value4 = GuildChannelStore.getChannels(env0_0)[GUILD_SELECTABLE_CHANNELS_KEY].map(function(a0) {
return a0.channel;
});
return value4.sort(sortChannelsByLastMessageId);
}
function _fun91445() { // fn#91445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:886, offset: 0x02064a8f, size: 86 bytes, params: 1, frame: 14
var environment;
const binding = env0_3;
const filter = binding.filter;
let value = environment.__proto__.__proto__;
value = Reflect.apply(filter, binding, [(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
value = value.filter(function(a0) {
return isTextChannel(a0.type);
});
return value.filter(function(a0) {
return PermissionStore.can(Permissions.SEND_MESSAGES, a0);
});
}
function useNoticeHandlePress() { // fn#91448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:1124, owner: ChatInputGuardReadonly.useNotice.handlePress, offset: 0x02064b1f, size: 110 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const CHANNEL_LINK = TextAreaCta.CHANNEL_LINK;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: CHANNEL_LINK}]);
value = require(1230) /* metro dependency 1230: router_utils */;
value.transitionToGuild(env0_0, channel.id);
}
function useNoticeHandlePress_91449() { // fn#91449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:1318, owner: ChatInputGuardReadonly.useNotice.handlePress, offset: 0x02064b8d, size: 101 bytes, params: 1, frame: 17
const value = environment.__proto__.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const CHANNEL_LIST = TextAreaCta.CHANNEL_LIST;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: CHANNEL_LIST}]);
(require(1230) /* metro dependency 1230: router_utils */).transitionToGuild(env0_0, undefined);
}
function useNoticeHandlePress_91450() { // fn#91450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12111:1577, owner: ChatInputGuardReadonly.useNotice.handlePress, offset: 0x02064bf2, size: 116 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const TEXT_AREA_CTA_CLICKED = AnalyticEvents.TEXT_AREA_CTA_CLICKED;
const CHANNEL_LINK = TextAreaCta.CHANNEL_LINK;
Reflect.apply(trackWithMetadata, defaultImport, [TEXT_AREA_CTA_CLICKED, {cta_type: CHANNEL_LINK}]);
value = require(1230) /* metro dependency 1230: router_utils */;
value.transitionToGuild(env0_0, env0_4[0].id);
}
global.__d(_fun91438, 11925, [31, 1383, 1379, 1935, 3784, 4605, 3793, 1878, 11529, 661, 33, 11810, 566, 1360, 1244,
4805, 4863, 1230, 21, 11904,
2]) /* metro module 11925, dependencies: [31, 1383, 1379, 1935, 3784, 4605, 3793, 1878, 11529, 661, 33, 11810, 566, 1360, 1244, 4805, 4863, 1230, 21, 11904, 2] */;
@@ -1,46 +1,51 @@
/* Metro module 11918; source: modules/chat_input/native/guard/ChatInputGuardRequiredLobbyApplicationAuthorization.tsx; dependencies: [31, 27, 33, 4501, 697, 11904, 1244, 3853, 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 _fun91410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12104:6, offset: 0x020635cb, size: 243 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 */).Image;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'height': 40, 'width': 40, 'resizeMode': 'contain'};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{icon: object}]);
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {'height': 40, 'width': 40, 'resizeMode': 'contain'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{icon: object2}]);
value = value.memo(ChatInputGuardRequiredLobbyApplicationAuthorization);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardRequiredLobbyApplicationAuthorization.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardRequiredLobbyApplicationAuthorization.tsx');
exports.default = value;
}
function ChatInputGuardRequiredLobbyApplicationAuthorization({showLinkedLobbyApplicationLoadingIndicator, requiredLinkedLobbyApplication}) { // fn#91411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12104:253, offset: 0x020636be, size: 365 bytes, params: 2, frame: 24
const styles = useStyles();
if (showLinkedLobbyApplicationLoadingIndicator) {
return ((Component) => <Component type="simple-action" message="" />)(importDefault(11904) /* metro dependency 11904: ChatInputGuard */);
}
if (requiredLinkedLobbyApplication == null) {
return ((Component) => <Component type="simple-action" message="" />)(importDefault(11904) /* metro dependency 11904: ChatInputGuard */);
}
const iconSource = requiredLinkedLobbyApplication.getIconSource(80);
const connectionEntrypointUrl = requiredLinkedLobbyApplication.connectionEntrypointUrl;
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const defaultImportProps = {type: 'simple-action',
icon: iconSource != null ? <Image style={styles.icon} source={iconSource} /> : undefined};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const EvDn1D = (require(1244) /* metro dependency 1244: indexNative */).t.EvDn1D;
defaultImportProps.message = Reflect.apply(format, intl, [EvDn1D, {name: requiredLinkedLobbyApplication.name}]);
defaultImportProps.actionLabel = connectionEntrypointUrl != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.S0W8Z5) : undefined;
defaultImportProps.actionOnPress = connectionEntrypointUrl != null ? _fun91412 : undefined;
return <ChatInputGuard {...defaultImportProps} />;
function _fun91412() { // fn#91412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12104:760, offset: 0x0206382b, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = importDefault(3853) /* metro dependency 3853: Linking */;
return value.openURLExternally(connectionEntrypointUrl);
}
function ChatInputGuardRequiredLobbyApplicationAuthorization({showLinkedLobbyApplicationLoadingIndicator, requiredLinkedLobbyApplication}) { // fn#91411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12104:253, offset: 0x020636be, size: 365 bytes, params: 2, frame: 24
const styles = useStyles();
if (showLinkedLobbyApplicationLoadingIndicator) {
return ((Component) => <Component type="simple-action" message="" />)(importDefault(11904) /* metro dependency 11904: ChatInputGuard */);
}
if (requiredLinkedLobbyApplication == null) {
return ((Component) => <Component type="simple-action" message="" />)(importDefault(11904) /* metro dependency 11904: ChatInputGuard */);
}
const iconSource = requiredLinkedLobbyApplication.getIconSource(80);
const connectionEntrypointUrl = requiredLinkedLobbyApplication.connectionEntrypointUrl;
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const defaultImportProps = {type: 'simple-action',
icon: iconSource != null ? <Image style={styles.icon} source={iconSource} /> : undefined};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const EvDn1D = (require(1244) /* metro dependency 1244: indexNative */).t.EvDn1D;
defaultImportProps.message = Reflect.apply(format, intl, [EvDn1D, {name: requiredLinkedLobbyApplication.name}]);
defaultImportProps.actionLabel = connectionEntrypointUrl != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.S0W8Z5) : undefined;
defaultImportProps.actionOnPress = connectionEntrypointUrl != null ? _fun91412 : undefined;
return <ChatInputGuard {...defaultImportProps} />;
}
function _fun91412() { // fn#91412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12104:760, offset: 0x0206382b, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = importDefault(3853) /* metro dependency 3853: Linking */;
return value.openURLExternally(connectionEntrypointUrl);
}
global.__d(_fun91410, 11918, [31, 27, 33, 4501, 697, 11904, 1244, 3853,
2]) /* metro module 11918, dependencies: [31, 27, 33, 4501, 697, 11904, 1244, 3853, 2] */;
@@ -1,47 +1,55 @@
/* Metro module 11912; source: modules/chat_input/native/guard/ChatInputGuardReturnToGameProfile.tsx; dependencies: [31, 27, 33, 4501, 697, 11904, 1423, 1244, 10207, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 ArrowSmallLeftIconModule from '../../../../design/components/Icon/native/redesign/generated/ArrowSmallLeftIcon.tsx'; /* Metro dependency 10207 */
function _fun91393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12098:6, offset: 0x0205dd36, size: 243 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 */).Image;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'height': 40, 'width': 40, 'resizeMode': 'contain'};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{icon: object}]);
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {'height': 40, 'width': 40, 'resizeMode': 'contain'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{icon: object2}]);
value = value.memo(ChatInputGuardReturnToGameProfile);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardReturnToGameProfile.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardReturnToGameProfile.tsx');
exports.default = value;
}
function ChatInputGuardReturnToGameProfile({pendingGameProfileReturn}) { // fn#91394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12098:253, offset: 0x0205de29, size: 356 bytes, params: 2, frame: 23
var r5;
var moduleValue;
const styles = useStyles();
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const object2 = {type: 'simple-action'};
if (pendingGameProfileReturn.gameIconUrl != null) {
var imageBindingProps = {style: styles.icon};
moduleValue = require(1423) /* metro dependency 1423: AvatarUtils */;
imageBindingProps.source = moduleValue.makeSource(pendingGameProfileReturn.gameIconUrl);
r5 = <Image {...imageBindingProps} />;
} else {
r5 = undefined;
function ChatInputGuardReturnToGameProfile({pendingGameProfileReturn}) { // fn#91394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12098:253, offset: 0x0205de29, size: 356 bytes, params: 2, frame: 23
var r5;
var moduleValue;
const styles = useStyles();
const object = {type: 'simple-action'};
if (pendingGameProfileReturn.gameIconUrl != null) {
var imageBindingProps = {style: styles.icon};
moduleValue = require(1423) /* metro dependency 1423: AvatarUtils */;
imageBindingProps.source = moduleValue.makeSource(pendingGameProfileReturn.gameIconUrl);
r5 = <Image {...imageBindingProps} />;
} else {
r5 = undefined;
}
object.icon = r5;
const intl = (IndexNativeModule).intl;
const format = intl.format;
const HRHaSF = (IndexNativeModule).t.HRHaSF;
object.message = Reflect.apply(format, intl, [HRHaSF, {gameName: pendingGameProfileReturn.gameName}]);
const string = intl.string;
const DjifDP = (IndexNativeModule).t.DjifDP;
object.actionLabel = Reflect.apply(string, intl, [DjifDP]);
const ArrowSmallLeftIcon = (ArrowSmallLeftIconModule).ArrowSmallLeftIcon;
const WHITE = (Native).colors.WHITE;
object.actionIcon = <ArrowSmallLeftIcon color={WHITE} />;
object.actionOnPress = pendingGameProfileReturn.onReturnToGameProfile;
return <ChatInputGuard {...object} />;
}
object2.icon = r5;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const HRHaSF = (require(1244) /* metro dependency 1244: indexNative */).t.HRHaSF;
object2.message = Reflect.apply(format, intl, [HRHaSF, {gameName: pendingGameProfileReturn.gameName}]);
const string = intl.string;
const DjifDP = (require(1244) /* metro dependency 1244: indexNative */).t.DjifDP;
object2.actionLabel = Reflect.apply(string, intl, [DjifDP]);
const ArrowSmallLeftIcon = (require(10207) /* metro dependency 10207: ArrowSmallLeftIcon */).ArrowSmallLeftIcon;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.actionIcon = <ArrowSmallLeftIcon color={WHITE} />;
object2.actionOnPress = pendingGameProfileReturn.onReturnToGameProfile;
return <ChatInputGuard {...object2} />;
}
global.__d(_fun91393, 11912, [31, 27, 33, 4501, 697, 11904, 1423, 1244, 10207,
2]) /* metro module 11912, dependencies: [31, 27, 33, 4501, 697, 11904, 1423, 1244, 10207, 2] */;
@@ -1,73 +1,83 @@
/* Metro module 11907; source: modules/chat_input/native/guard/ChatInputGuardSpamMessageRequest.tsx; dependencies: [31, 1878, 33, 1484, 566, 11908, 11898, 3857, 1244, 8947, 11904, 4601, 2] */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import ChatInputGuard from './ChatInputGuard.tsx'; /* Metro dependency 11904 */
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 UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseLongestChannelMessageBeforeReplyModule from '../../../messages/useLongestChannelMessageBeforeReply.tsx'; /* Metro dependency 11908 */
function _fun91373(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:6, offset: 0x0205d3c4, size: 168 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ChatInputGuardSpamMessageRequest);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardSpamMessageRequest.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/chat_input/native/guard/ChatInputGuardSpamMessageRequest.tsx');
exports.default = value;
function ChatInputGuardSpamMessageRequest({channel}) { // fn#91374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:146, offset: 0x0205d46c, size: 586 bytes, params: 2, frame: 25
const value2 = (UseNavigationNativeModule).useNavigation();
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(channel.getRecipientId());
});
const useLongestChannelMessageBeforeReply = UseLongestChannelMessageBeforeReplyModule.useLongestChannelMessageBeforeReply;
const id = channel.id;
const getRecipientId = channel.getRecipientId;
const env0_2 = Reflect.apply(useLongestChannelMessageBeforeReply, UseLongestChannelMessageBeforeReplyModule, [id,
Reflect.apply(getRecipientId, channel, [])]);
const value4 = (require(11898) /* metro dependency 11898: useMessageRequestActions */).useMessageRequestActions({user: user,
onError: function() {
var defaultImport = importDefault(dependencyMap[7]);
var object = {key: 'MESSAGE_REQUEST_REQUEST_ERROR_ALERT_TITLE'};
object.content = require(dependencyMap[8]).intl.string(require(dependencyMap[8]).t['EDYbS+']);
object.icon = importDefault(dependencyMap[9]);
defaultImport.open(object);
}, onRejectSuccess: rejectMessageRequest.useCallback(_fun91376, [value2])});
var rejectMessageRequest = value4.rejectMessageRequest;
const isRejectLoading = value4.isRejectLoading;
const isUserProfileLoading = value4.isUserProfileLoading;
const isOptimisticRejected = value4.isOptimisticRejected;
const env0_4 = value4.markAsNotSpam;
let r5 = isRejectLoading || isUserProfileLoading;
r5 = !r5 ? isOptimisticRejected : r5;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ChatInputGuard
type="button-action"
message={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fS08qB)}
subtext={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8U5OXE'])}
buttonPrimaryText={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
buttonPrimaryOnPress={function(a0) {
a0.stopPropagation();
rejectMessageRequest(channel.id);
}}
buttonPrimaryDisabled={r5}
buttonPrimaryLoading={isRejectLoading || isOptimisticRejected}
buttonPrimaryVariant="destructive"
buttonSecondaryText={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.olZgw5)}
buttonSecondaryOnPress={buttonSecondaryOnPress}
buttonSecondaryDisabled={r5}
buttonSecondaryLoading={isUserProfileLoading}
/>
);
function _fun91376() { // fn#91376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:389, offset: 0x011b3f85, size: 21 bytes, params: 1, frame: 9
env0_1.pop();
}
function buttonSecondaryOnPress(a0) { // fn#91379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:1146, owner: ChatInputGuardSpamMessageRequest.buttonSecondaryOnPress, offset: 0x0205d755, size: 48 bytes, params: 2, frame: 15
a0.stopPropagation();
markAsNotSpam(channel, env0_2, _fun91380);
function _fun91380() { // fn#91380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:1177, offset: 0x0205d785, size: 60 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = require(4601) /* metro dependency 4601: transitionToChannel */;
return value.transitionToChannel(channel.id, {navigationReplace: true});
}
}
}
}
function ChatInputGuardSpamMessageRequest({channel}) { // fn#91374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:146, offset: 0x0205d46c, size: 586 bytes, params: 2, frame: 25
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(channel.getRecipientId());
});
const useLongestChannelMessageBeforeReplyModule = require(11908) /* metro dependency 11908: useLongestChannelMessageBeforeReply */;
const useLongestChannelMessageBeforeReply = useLongestChannelMessageBeforeReplyModule.useLongestChannelMessageBeforeReply;
const id = channel.id;
const getRecipientId = channel.getRecipientId;
const env0_2 = Reflect.apply(useLongestChannelMessageBeforeReply, useLongestChannelMessageBeforeReplyModule, [id,
Reflect.apply(getRecipientId, channel, [])]);
const value4 = (require(11898) /* metro dependency 11898: useMessageRequestActions */).useMessageRequestActions({user: user,
onError: function() {
var defaultImport = importDefault(dependencyMap[7]);
var object = {key: 'MESSAGE_REQUEST_REQUEST_ERROR_ALERT_TITLE'};
object.content = require(dependencyMap[8]).intl.string(require(dependencyMap[8]).t['EDYbS+']);
object.icon = importDefault(dependencyMap[9]);
defaultImport.open(object);
}, onRejectSuccess: env0_3.useCallback(_fun91376, [value2])});
var env0_3 = value4.rejectMessageRequest;
const isRejectLoading = value4.isRejectLoading;
const isUserProfileLoading = value4.isUserProfileLoading;
const isOptimisticRejected = value4.isOptimisticRejected;
const env0_4 = value4.markAsNotSpam;
let r5 = isRejectLoading || isUserProfileLoading;
r5 = !r5 ? isOptimisticRejected : r5;
const ChatInputGuard = importDefault(11904) /* metro dependency 11904: ChatInputGuard */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ChatInputGuard
type="button-action"
message={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fS08qB)}
subtext={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8U5OXE'])}
buttonPrimaryText={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
buttonPrimaryOnPress={function(a0) {
a0.stopPropagation();
rejectMessageRequest(channel.id);
}}
buttonPrimaryDisabled={r5}
buttonPrimaryLoading={isRejectLoading || isOptimisticRejected}
buttonPrimaryVariant="destructive"
buttonSecondaryText={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.olZgw5)}
buttonSecondaryOnPress={buttonSecondaryOnPress}
buttonSecondaryDisabled={r5}
buttonSecondaryLoading={isUserProfileLoading}
/>
);
}
function buttonSecondaryOnPress(a0) { // fn#91379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:1146, owner: ChatInputGuardSpamMessageRequest.buttonSecondaryOnPress, offset: 0x0205d755, size: 48 bytes, params: 2, frame: 15
a0.stopPropagation();
markAsNotSpam(channel, env0_2, _fun91380);
}
function _fun91380() { // fn#91380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12093:1177, offset: 0x0205d785, size: 60 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = require(4601) /* metro dependency 4601: transitionToChannel */;
return value.transitionToChannel(channel.id, {navigationReplace: true});
}
global.__d(_fun91373, 11907, [31, 1878, 33, 1484, 566, 11908, 11898, 3857, 1244, 8947, 11904, 4601,
2]) /* metro module 11907, dependencies: [31, 1878, 33, 1484, 566, 11908, 11898, 3857, 1244, 8947, 11904, 4601, 2] */;
File diff suppressed because it is too large. Load diff