Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,27 @@
/* Metro module 12747; source: design/void/AccessibilityFocusView/native/AccessibilityFocusView.tsx; dependencies: [31, 27, 33, 477, 12748, 2] */
function _fun97498(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12937:6, offset: 0x021848f0, size: 196 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const requireNativeComponent = (require(27) /* metro dependency 27 */).requireNativeComponent;
const env0_0 = (require(33) /* metro dependency 33 */).jsx;
let value = require(477) /* metro dependency 477: PlatformUtils */;
if (value.isAndroid()) {
value = importDefault(12748) /* metro dependency 12748: AccessibilityFocusNativeComponent */;
} else {
value = requireNativeComponent('AccessibilityFocusView');
}
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/AccessibilityFocusView/native/AccessibilityFocusView.tsx');
exports.default = AccessibilityFocusView;
}
function AccessibilityFocusView(a0) { // fn#97499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12937:321, offset: 0x021849b4, size: 92 bytes, params: 2, frame: 16
const onAccessibilityFocus = a0.onAccessibilityFocus;
const onAccessibilityBlur = a0.onAccessibilityBlur;
const value = Object.create(null);
value.onAccessibilityFocus = 0;
value.onAccessibilityBlur = 0;
return ((Component) => <Component {...copyDataProperties({}, a0, value,
onAccessibilityFocus)} {...{['onAccessibilityFocus']: onAccessibilityFocus}} {...{['onAccessibilityBlur']: onAccessibilityBlur}} />)(env0_1);
}
@@ -0,0 +1,14 @@
/* Metro module 12758; source: design/void/Atoms/native/Atoms.tsx; dependencies: [27, 2, 8002, 12759] */
function _fun97520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12948:6, offset: 0x02185a29, size: 161 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const TextInput = (require(27) /* metro dependency 27 */).TextInput;
const TextInputProps = (require(27) /* metro dependency 27 */).TextInputProps;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Atoms/native/Atoms.tsx');
exports.RNTextInput = TextInput;
exports.TextInputProps = TextInputProps;
exports.LegacyText = importDefault(8002) /* metro dependency 8002: LegacyText */;
const Text = (require(12759) /* metro dependency 12759: native */).Text;
exports.Text = Text;
}
@@ -0,0 +1,289 @@
/* Metro module 12745; source: design/void/Avatar/native/Avatar.tsx; dependencies: [31, 27, 661, 1306, 33, 4501, 697, 10252, 12734, 12735, 7599, 8396, 12746, 7598, 12736, 4580, 10695, 10696, 2] */
function _fun97486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12935:6, offset: 0x0218357c, size: 321 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = getStatusSize_97487;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(661) /* metro dependency 661: Constants */).StatusTypes;
const statusConstantsModule = require(1306) /* metro dependency 1306: StatusConstants */;
const env0_6 = statusConstantsModule.STATUS_PADDING;
const env0_7 = statusConstantsModule.StatusSizes;
const value3 = require(33) /* metro dependency 33 */;
const env0_8 = value3.jsx;
const env0_9 = value3.jsxs;
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun97489);
value = value.memo(_fun97490);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Avatar/native/Avatar.tsx');
exports.default = value;
const AvatarSizes = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AvatarSizes;
exports.AvatarSizes = AvatarSizes;
exports.getStatusSize = closure;
}
function getStatusSize_97487(a0) { // fn#97487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12935:795, offset: 0x021836bd, size: 555 bytes, params: 2, frame: 14
const AvatarSizes = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AvatarSizes;
const XXSMALL = AvatarSizes.XXSMALL;
if (XXSMALL === a0) {
return StatusSizes.SMALL;
}
const XSMALL = AvatarSizes.XSMALL;
if (XSMALL === a0) {
return StatusSizes.SMALL;
}
const XSMALL_20 = AvatarSizes.XSMALL_20;
if (XSMALL_20 === a0) {
return StatusSizes.SMALL;
}
const SMALL = AvatarSizes.SMALL;
if (SMALL === a0) {
return StatusSizes.SMALL;
}
const REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
if (REFRESH_MEDIUM_32 === a0) {
return StatusSizes.REFRESH_MEDIUM_10;
}
const NORMAL = AvatarSizes.NORMAL;
if (NORMAL === a0) {
return StatusSizes.MEDIUM;
}
const TABS_22 = AvatarSizes.TABS_22;
if (TABS_22 === a0) {
return StatusSizes.MEDIUM;
}
const LARGE = AvatarSizes.LARGE;
if (LARGE === a0) {
return StatusSizes.MEDIUM;
}
const LARGE_48 = AvatarSizes.LARGE_48;
if (LARGE_48 === a0) {
return StatusSizes.MEDIUM;
}
const XLARGE = AvatarSizes.XLARGE;
if (XLARGE === a0) {
return StatusSizes.LARGE;
}
const XLARGE_72 = AvatarSizes.XLARGE_72;
if (XLARGE_72 === a0) {
return StatusSizes.LARGE;
}
const XXLARGE = AvatarSizes.XXLARGE;
if (XXLARGE === a0) {
return StatusSizes.LARGE;
}
const PROFILE = AvatarSizes.PROFILE;
if (PROFILE === a0) {
return StatusSizes.LARGE;
}
const YOUBAR_60 = AvatarSizes.YOUBAR_60;
if (YOUBAR_60 === a0) {
return StatusSizes.LARGE;
}
return null;
}
function getAvatarDecorationMargin(a0) { // fn#97488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12935:1397, offset: 0x021838e8, size: 79 bytes, params: 2, frame: 14
let value = require(8396) /* metro dependency 8396: AvatarDecorationUtils */;
value = value.getDecorationSizeForAvatarSize(a0);
const styles = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).styles;
return (value - styles[a0].width) / 2;
}
function _fun97489(a0) { // fn#97489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12935:239, offset: 0x02183937, size: 232 bytes, params: 2, frame: 18
const object2 = {status: {'position': 'absolute', 'right': -3, 'bottom': -3}};
const STATUS_SPEAKING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_SPEAKING;
object2.speaking = {'position': 'absolute', 'right': -2, 'bottom': -2, 'backgroundColor': 'transparent',
'borderWidth': 4, borderColor: STATUS_SPEAKING};
object2.stageSpeaking = {'position': 'absolute', 'right': -2, 'bottom': -2};
const object5 = {'width': 24, 'height': 24, 'justifyContent': 'center', 'alignItems': 'center',
'backgroundColor': null, 'borderRadius': null, 'right': 0, 'bottom': 0};
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object5.backgroundColor = RED_400;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object2.voiceStatus = object5;
const object6 = {position: 'absolute'};
const getAvatarDecorationMarginBinding = getAvatarDecorationMargin;
object6.top = -getAvatarDecorationMarginBinding(a0);
object6.left = -getAvatarDecorationMarginBinding(a0);
object2.decoration = object6;
object2.container = {position: 'relative'};
return object2;
}
function _fun97490({channel, streaming, isMobileOnline, isVROnline, status, size = require(dependencyMap[7]).AvatarSizes.NORMAL, animate, speaking, avatarDecoration, mute, deaf, statusStyle, avatarStyle, style, cutout, autoStatusCutout, isStageCall, source, user, guildId, disablePlaceholder, needsOffscreenAlphaCompositing, accessible, accessibilityLabel, typing, statusSizeOverride}) { // fn#97490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12935:1526, offset: 0x02183a1f, size: 1543 bytes, params: 2, frame: 47
var r23;
var r7;
var r16;
var value14;
var object;
streaming = !(streaming === undefined) && streaming;
isMobileOnline = !(isMobileOnline === undefined) && isMobileOnline;
isVROnline = !(isVROnline === undefined) && isVROnline;
const env0_3 = size;
animate = !(animate === undefined) && animate;
speaking = !(speaking === undefined) && speaking;
isStageCall = !(isStageCall === undefined) && isStageCall;
needsOffscreenAlphaCompositing = !(needsOffscreenAlphaCompositing === undefined) && needsOffscreenAlphaCompositing;
typing = !(typing === undefined) && typing;
const styles = useStyles(size);
const {cutout, decorationCutout} = env0_3.useMemo(_fun97491, [cutoutBinding, autoStatusCutout, isMobileOnline,
isVROnline, size, status, typing, statusSizeOverride, styles]);
const items2 = [(require(10252) /* metro dependency 10252: CutoutableAvatarImage */).styles[size]];
items2[1] = styles.container;
items2[2] = style;
if (speaking) {
value14 = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AVATAR_SIZE_MAP[size] + 4;
r23 = isStageCall ? ((Component) => <Component style={[styles.stageSpeaking, {width: value14, height: value14,
borderRadius: value14 / 2}]} />)(importDefault(12746) /* metro dependency 12746: SpeakerPulse */) : <View style={[styles.speaking,
{width: value14, height: value14, borderRadius: value14 / 2}]} />;
} else {
r23 = null;
}
const items4 = [r23];
items4[1] = source != null || user != null ? source != null ? ((Component) => <Component source={source} size={size} animate={animate} disablePlaceholder={disablePlaceholder} style={avatarStyle} cutout={cutoutBinding} />)(importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */) : user != null ? ((Component) => <Component user={user} guildId={guildId} size={size} animate={animate} disablePlaceholder={disablePlaceholder} style={avatarStyle} cutout={cutoutBinding} />)(importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */) : channel != null ? ((Component) => <Component channel={channel} size={size} animate={animate} disablePlaceholder={disablePlaceholder} style={avatarStyle} cutout={cutoutBinding} />)(importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */) : undefined : channel == null ? null : source != null ? ((Component) => <Component source={source} size={size} animate={animate} disablePlaceholder={disablePlaceholder} style={avatarStyle} cutout={cutoutBinding} />)(importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */) : user != null ? ((Component) => <Component user={user} guildId={guildId} size={size} animate={animate} disablePlaceholder={disablePlaceholder} style={avatarStyle} cutout={cutoutBinding} />)(importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */) : channel != null ? ((Component) => <Component channel={channel} size={size} animate={animate} disablePlaceholder={disablePlaceholder} style={avatarStyle} cutout={cutoutBinding} />)(importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */) : undefined;
items4[2] = avatarDecoration == null ? null : ((Component) => <Component size={(require(8396) /* metro dependency 8396: AvatarDecorationUtils */).getDecorationSizeForAvatarSize(size)} avatarDecoration={avatarDecoration} decorationStyle={styles.decoration} animate={animate} cutout={decorationCutout} key={avatarDecoration.asset} />)(importDefault(7598) /* metro dependency 7598: CutoutableAvatarDecoration */);
if (status == null) {
r7 = null;
} else if (status === StatusTypes.UNKNOWN) {
r7 = null;
} else {
size = statusSizeOverride ?? getStatusSize_97487(size);
if (size != null) {
object = {size: size, isMobileOnline: isMobileOnline, isVROnline: isVROnline, status: status,
streaming: streaming};
status = styles.status;
object.style = [status, statusStyle];
r16 = object;
} else {
r16 = null;
}
if (r16 == null) {
r7 = null;
} else if (typing && user != null) {
const StatusWithTyping = (require(12736) /* metro dependency 12736: Status */).StatusWithTyping;
r7 = <StatusWithTyping {...r16} {...{['typing']: typing}} {...{['userId']: user.id}} />;
} else {
r7 = ((Component) => <Component {...r16} />)(importDefault(12736) /* metro dependency 12736: Status */);
}
}
items4[3] = r7;
items4[4] = deaf ? <View style={[styles.status,
styles.voiceStatus]}>{((Component) => <Component size={(importDefault(4580) /* metro dependency 4580: Icon */).Sizes.REFRESH_SMALL_16} source={importDefault(10695) /* metro dependency 10695 */} color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE} />)(importDefault(4580) /* metro dependency 4580: Icon */)}</View> : mute ? <View style={[styles.status,
styles.voiceStatus]}>{((Component) => <Component size={(importDefault(4580) /* metro dependency 4580: Icon */).Sizes.REFRESH_SMALL_16} source={importDefault(10696) /* metro dependency 10696 */} color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE} />)(importDefault(4580) /* metro dependency 4580: Icon */)}</View> : undefined;
return (
<View
style={items2}
needsOffscreenAlphaCompositing={needsOffscreenAlphaCompositing}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
>
{items4}
</View>
);
}
function _fun97491() { // fn#97491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12935:1959, offset: 0x02184026, size: 947 bytes, params: 1, frame: 29
var r6;
var r0;
var r4;
var object2;
var padding;
var avatarSize;
var userStatus;
var isMobileOnline2;
var isVROnline2;
var typing2;
var statusSizeOverride2;
var value3;
var value4;
var property;
var value7;
var value8;
var value10;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
var mobileStatusContainerRect;
var width;
var height;
var vRStatusContainerRect;
var statusTypingDimensions;
var value16;
var value17;
var object3;
var value18;
var moduleValue4;
if (autoStatusCutout != null) {
object2 = {avatarSize: env0_3};
object2.userStatus = status;
object2.isMobileOnline = isMobileOnline;
object2.isVROnline = isVROnline;
object2.padding = autoStatusCutout === true ? STATUS_PADDING : autoStatusCutout.padding;
object2.typing = typing;
object2.statusSizeOverride = statusSizeOverride;
avatarSize = object2.avatarSize;
userStatus = object2.userStatus;
isMobileOnline2 = object2.isMobileOnline;
isVROnline2 = object2.isVROnline;
padding = object2.padding;
typing2 = object2.typing;
statusSizeOverride2 = object2.statusSizeOverride;
value3 = undefined;
if (userStatus != null) {
value4 = environment.__proto__;
if (userStatus === StatusTypes.UNKNOWN) {
r0 = value3;
} else {
property = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AVATAR_SIZE_MAP[avatarSize];
r6 = statusSizeOverride2 ?? getStatusSize_97487(avatarSize) ?? 0;
value7 = r6 / 4;
if (typing2) {
statusTypingDimensions = (require(12734) /* metro dependency 12734: StatusUtils */).getStatusTypingDimensions(r6);
width = statusTypingDimensions.width;
height = statusTypingDimensions.height;
value16 = (importDefault(12735) /* metro dependency 12735: getStatusContainerStyle */)(r6,
isMobileOnline2 != null && isMobileOnline2, isVROnline2 != null && isVROnline2);
value17 = height + 2 * STATUS_PADDING;
object3 = {};
object3.shape = CutoutShape.RoundedRect;
value18 = property - width - STATUS_PADDING;
moduleValue4 = require(12734) /* metro dependency 12734: StatusUtils */;
object3.x = value18 + moduleValue4.getAnimatedTypingTranslateX(value16.width);
object3.y = property - height - STATUS_PADDING;
object3.width = width + 2 * STATUS_PADDING;
object3.height = value17;
object3.cornerRadius = value17 / 2;
r0 = {nativeCutouts: [object3]};
} else if (isVROnline2) {
vRStatusContainerRect = (require(12734) /* metro dependency 12734: StatusUtils */).getVRStatusContainerRect(r6);
width = vRStatusContainerRect.width;
height = vRStatusContainerRect.height;
r0 = {nativeCutouts: [{shape: CutoutShape.RoundedRect, x: property - width + value7,
y: property - height + value7,
width: width, height: height, cornerRadius: vRStatusContainerRect.cornerRadius}]};
} else if (isMobileOnline2) {
mobileStatusContainerRect = (require(12734) /* metro dependency 12734: StatusUtils */).getMobileStatusContainerRect(r6);
width = mobileStatusContainerRect.width;
height = mobileStatusContainerRect.height;
r0 = {nativeCutouts: [{shape: CutoutShape.RoundedRect, x: property - width + value7,
y: property - height + value7,
width: width, height: height, cornerRadius: mobileStatusContainerRect.cornerRadius}]};
} else {
value8 = r6 / 2 + padding;
value10 = property - value8 - 2 * value7;
r0 = {nativeCutouts: [{shape: CutoutShape.Circle, x: value10, y: value10, size: 2 * value8}]};
}
}
} else {
r0 = value3;
}
r4 = r0;
} else {
r4 = cutout;
}
object2 = {cutout: r4};
object2.decorationCutout = (require(8396) /* metro dependency 8396: AvatarDecorationUtils */).getDecorationCutoutForAvatarCutout(r4,
-styles.decoration.top);
return object2;
}
+211
View File
@@ -0,0 +1,211 @@
/* Metro module 12810; source: design/void/Badge/native/Badge.tsx; dependencies: [31, 27, 1949, 661, 1307, 33, 4501, 697, 477, 566, 8002, 1856, 2] */
function _fun97686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13000:6, offset: 0x0218d77a, size: 721 bytes, params: 8, frame: 29
var object2;
const env0_0 = require;
const closure = Badge_97687;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = undefined;
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const badgeConstantsModule = require(1307) /* metro dependency 1307: BadgeConstants */;
const env0_6 = badgeConstantsModule.BADGE_MASK_SIZE;
const env0_7 = badgeConstantsModule.BADGE_MASK_UNREAD_SIZE;
const BADGE_PADDING = badgeConstantsModule.BADGE_PADDING;
const BADGE_SIZE = badgeConstantsModule.BADGE_SIZE;
const env0_9 = badgeConstantsModule.BADGE_SIZE_UNREAD;
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
object2.badgeMask = {position: 'absolute', bottom: -BADGE_PADDING, right: -BADGE_PADDING, padding: BADGE_PADDING,
zIndex: 1};
const object5 = {'paddingLeft': null, 'paddingRight': null, 'borderRadius': null, 'justifyContent': 'center',
'alignItems': 'center', 'overflow': 'hidden'};
object5.paddingLeft = BADGE_PADDING;
object5.paddingRight = BADGE_PADDING;
let space = (importDefault(697) /* metro dependency 697: native */).space;
const PX_8 = space.PX_8;
object5.borderRadius = PX_8;
const value4 = 'center';
object2.badge = object5;
const object6 = {minWidth: BADGE_SIZE - 2 * BADGE_PADDING};
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object6.color = WHITE;
object6.fontSize = 12;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
const isAndroid2 = platformUtilsModule.isAndroid();
space = (importDefault(697) /* metro dependency 697: native */).space;
object6.lineHeight = isAndroid2 ? space.PX_12 : space.PX_16;
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
object6.fontFamily = PRIMARY_BOLD;
object6.textAlign = value4;
const value6 = platformUtilsModule;
object6.textAlignVertical = value6.isAndroid() ? value4 : value;
object2.badgeText = object6;
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.noCount = {'width': 5, 'height': 5, 'borderRadius': 2.5, backgroundColor: WHITE};
const MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT;
object2.unread = {backgroundColor: MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT};
const BACKGROUND_FEEDBACK_NOTIFICATION = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_NOTIFICATION;
object2.mention = {backgroundColor: BACKGROUND_FEEDBACK_NOTIFICATION};
let BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object2.lowImportanceMention = {backgroundColor: BACKGROUND_MOD_STRONG};
BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object2.eventsMentionBadge = {backgroundColor: BACKGROUND_MOD_STRONG};
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Badge/native/Badge.tsx');
exports.default = closure;
exports.MaskedBadge = MaskedBadge_97690;
return value;
}
function Badge_97687({value, style, dotStyle, textStyle, accessible, accessibilityLabel, accessibilityElementsHidden, importantForAccessibility, hideCount, maxValue, unreadIndicator, eventsMentionBadge, isMentionLowImportance}) { // fn#97687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13000:1127, offset: 0x0218da4b, size: 512 bytes, params: 2, frame: 31
var r6;
var r5;
var r0;
var defaultImport;
var moduleValue2;
var humanizeValue;
var Math;
accessibilityElementsHidden = !(accessibilityElementsHidden === undefined) && accessibilityElementsHidden;
importantForAccessibility = importantForAccessibility === undefined ? 'auto' : importantForAccessibility;
hideCount = !(hideCount === undefined) && hideCount;
maxValue = maxValue === undefined ? Infinity : maxValue;
unreadIndicator = !(unreadIndicator === undefined) && unreadIndicator;
eventsMentionBadge = !(eventsMentionBadge === undefined) && eventsMentionBadge;
const env0_3 = eventsMentionBadge;
isMentionLowImportance = !(isMentionLowImportance === undefined) && isMentionLowImportance;
const styles = useStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
let object = [LocaleStore];
const locale = Reflect.apply(useStateFromStores, fluxModule, [object, function() {
return LocaleStore.locale;
}]);
const value10 = env0_3.useMemo(_fun97689, [styles, style, unreadIndicator, value, eventsMentionBadge,
isMentionLowImportance]);
if (value > 0) {
object = {pointerEvents: 'none', style: value10, accessible: accessible, accessibilityLabel: accessibilityLabel,
accessibilityElementsHidden: accessibilityElementsHidden,
importantForAccessibility: importantForAccessibility};
if (unreadIndicator) {
if (value === 0) {
r5 = null;
} else {
if (hideCount) {
r6 = <View style={[styles.noCount, dotStyle]} />;
} else {
defaultImport = importDefault(8002) /* metro dependency 8002: LegacyText */;
var defaultImportProps = {'style': null, 'numberOfLines': 1, 'allowFontScaling': false,
style: [styles.badgeText,
textStyle]};
moduleValue2 = require(1856) /* metro dependency 1856: NumberUtils */;
humanizeValue = moduleValue2.humanizeValue;
Math = global.Math;
value = ((Component) => <Component {...defaultImportProps}>{Reflect.apply(humanizeValue,
moduleValue2,
[Math.min(value, maxValue), locale])}</Component>)(defaultImport);
r6 = value;
}
r5 = r6;
}
} else {
if (hideCount) {
r6 = <View style={[styles.noCount, dotStyle]} />;
} else {
defaultImport = importDefault(8002) /* metro dependency 8002: LegacyText */;
var defaultImportProps = {'style': null, 'numberOfLines': 1, 'allowFontScaling': false,
style: [styles.badgeText,
textStyle]};
moduleValue2 = require(1856) /* metro dependency 1856: NumberUtils */;
humanizeValue = moduleValue2.humanizeValue;
Math = global.Math;
value = ((Component) => <Component {...defaultImportProps}>{Reflect.apply(humanizeValue, moduleValue2,
[Math.min(value, maxValue), locale])}</Component>)(defaultImport);
r6 = value;
}
r5 = r6;
}
value = <View {...object}>{r5}</View>;
r0 = value;
} else if (unreadIndicator) {
object = {pointerEvents: 'none', style: value10, accessible: accessible, accessibilityLabel: accessibilityLabel,
accessibilityElementsHidden: accessibilityElementsHidden,
importantForAccessibility: importantForAccessibility};
if (unreadIndicator) {
if (value === 0) {
r5 = null;
} else {
if (hideCount) {
r6 = <View style={[styles.noCount, dotStyle]} />;
} else {
defaultImport = importDefault(8002) /* metro dependency 8002: LegacyText */;
var defaultImportProps = {'style': null, 'numberOfLines': 1, 'allowFontScaling': false,
style: [styles.badgeText,
textStyle]};
moduleValue2 = require(1856) /* metro dependency 1856: NumberUtils */;
humanizeValue = moduleValue2.humanizeValue;
Math = global.Math;
value = ((Component) => <Component {...defaultImportProps}>{Reflect.apply(humanizeValue,
moduleValue2,
[Math.min(value, maxValue), locale])}</Component>)(defaultImport);
r6 = value;
}
r5 = r6;
}
} else {
if (hideCount) {
r6 = <View style={[styles.noCount, dotStyle]} />;
} else {
defaultImport = importDefault(8002) /* metro dependency 8002: LegacyText */;
var defaultImportProps = {'style': null, 'numberOfLines': 1, 'allowFontScaling': false,
style: [styles.badgeText,
textStyle]};
moduleValue2 = require(1856) /* metro dependency 1856: NumberUtils */;
humanizeValue = moduleValue2.humanizeValue;
Math = global.Math;
value = ((Component) => <Component {...defaultImportProps}>{Reflect.apply(humanizeValue, moduleValue2,
[Math.min(value, maxValue), locale])}</Component>)(defaultImport);
r6 = value;
}
r5 = r6;
}
value = <View {...object}>{r5}</View>;
r0 = value;
} else {
r0 = null;
}
return r0;
}
function MaskedBadge_97690({style, maskStyle, dotStyle, textStyle, value, maxValue, accessibilityLabel, accessibilityElementsHidden, importantForAccessibility, onLayout, hideCount, unreadIndicator, isMentionLowImportance}) { // fn#97690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13000:2038, offset: 0x0218dce9, size: 280 bytes, params: 2, frame: 29
var r0;
unreadIndicator = !(unreadIndicator === undefined) && unreadIndicator;
const styles = useStyles();
const value4 = styles.useMemo(function() {
var r4;
r4 = unreadIndicator && value === 0 ? BADGE_MASK_UNREAD_SIZE : BADGE_MASK_SIZE;
return [styles.badgeMask, {minWidth: r4, height: r4, borderRadius: r4 / 2}, maskStyle];
}, [styles, maskStyle, unreadIndicator, view]);
if (view > 0) {
view = <View pointerEvents="none" style={value4} onLayout={onLayout}><Badge_97687 style={style} textStyle={textStyle} dotStyle={dotStyle} value={view} maxValue={maxValue} hideCount={hideCount} unreadIndicator={unreadIndicator} accessibilityLabel={accessibilityLabel} accessibilityElementsHidden={accessibilityElementsHidden} importantForAccessibility={importantForAccessibility} isMentionLowImportance={isMentionLowImportance} /></View>;
r0 = view;
} else if (unreadIndicator) {
view = <View pointerEvents="none" style={value4} onLayout={onLayout}><Badge_97687 style={style} textStyle={textStyle} dotStyle={dotStyle} value={view} maxValue={maxValue} hideCount={hideCount} unreadIndicator={unreadIndicator} accessibilityLabel={accessibilityLabel} accessibilityElementsHidden={accessibilityElementsHidden} importantForAccessibility={importantForAccessibility} isMentionLowImportance={isMentionLowImportance} /></View>;
r0 = view;
} else {
r0 = null;
}
return r0;
}
function _fun97689() { // fn#97689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13000:1461, offset: 0x0218dc4b, size: 158 bytes, params: 1, frame: 5
const r3 = unreadIndicator && value === 0 ? BADGE_SIZE_UNREAD : BADGE_SIZE;
return [styles.badge, {height: r3, minWidth: r3},
unreadIndicator && value === 0 ? styles.unread : isMentionLowImportance ? styles.lowImportanceMention : styles.mention,
eventsMentionBadge && styles.eventsMentionBadge, style];
}
@@ -0,0 +1,16 @@
/* Metro module 1307; source: design/void/BadgeConstants/native/BadgeConstants.tsx; dependencies: [697, 2] */
function _fun14422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1434:6, offset: 0x00e058c2, size: 161 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
const value = PX_16 + 6;
const value2 = PX_12 + 6;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/BadgeConstants/native/BadgeConstants.tsx');
exports.BADGE_SIZE = PX_16;
exports.BADGE_SIZE_UNREAD = PX_12;
exports.BADGE_PADDING = 3;
exports.BADGE_MASK_SIZE = value;
exports.BADGE_MASK_UNREAD_SIZE = value2;
}
@@ -0,0 +1,53 @@
/* Metro module 12823; source: design/void/Badges/native/Badges.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 2] */
function _fun97872(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13013:6, offset: 0x02195271, size: 516 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
let value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
object3 = {};
const object4 = {'borderRadius': null, 'paddingHorizontal': 4, 'paddingVertical': 2};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.base = object4;
const BADGE_NOTIFICATION_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_NOTIFICATION_BACKGROUND;
object3.danger = {backgroundColor: BADGE_NOTIFICATION_BACKGROUND};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object3.info = {backgroundColor: BACKGROUND_BRAND};
const BRAND_260 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_260;
object3.brand = {backgroundColor: BRAND_260};
const env0_4 = Reflect.apply(createStyles, value, [object3]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
object3 = {text: {'textAlign': 'center', 'textTransform': 'uppercase'}};
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object3.dangerText = {color: WHITE};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object3.infoText = {color: WHITE};
const BRAND_560 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_560;
object3.brandText = {color: BRAND_560};
const env0_5 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Badges/native/Badges.tsx');
exports.BadgeColors = {DANGER: 'danger', INFO: 'info', BRAND: 'brand', NORMAL: 'normal'};
exports.TextBadge = TextBadge;
}
function TextBadge({color = env0_6.DANGER, style, text, textStyle}) { // fn#97873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13013:819, offset: 0x02195475, size: 217 bytes, params: 2, frame: 22
const styles = useStyles();
const styles2 = useStyles();
const property = styles[color];
const property2 = styles2['' + color + 'Text'];
const items2 = [styles.base, property, style];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2}>
<Text variant="text-xs/bold" style={[styles2.text, property2, textStyle]}>
{text}
</Text>
</View>
);
}
@@ -0,0 +1,38 @@
/* Metro module 7900; source: design/void/BetaTag/native/BetaTag.tsx; dependencies: [31, 27, 7047, 33, 4501, 697, 4589, 676, 4573, 1244, 2] */
function _fun63272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8078:6, offset: 0x01b785cc, size: 327 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(7047) /* metro dependency 7047: ColorConstants */).Gradients;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'backgroundColor': null, 'borderRadius': null, 'marginLeft': 8, 'paddingHorizontal': 8,
'justifyContent': 'center'};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object.backgroundColor = BACKGROUND_BRAND;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: object,
text: {textTransform: 'uppercase'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/BetaTag/native/BetaTag.tsx');
exports.default = BetaTag;
exports.BetaSizes = {SMALL: 'small', MEDIUM: 'medium'};
}
function BetaTag({style, textStyle, size = env0_7.MEDIUM, gradient}) { // fn#63273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8078:504, offset: 0x01b78713, size: 511 bytes, params: 2, frame: 25
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const HorizontalGradient = (require(676) /* metro dependency 676: ConstantsIOS */).HorizontalGradient;
gradient = !(gradient === undefined) && gradient;
const styles = useStyles();
const SMALL = env0_7.SMALL;
const r9 = SMALL === size ? 'text-xs/bold' : env0_7.MEDIUM !== size ? undefined : 'text-sm/bold';
return gradient ? ((Component) => <Component style={[styles.container,
style]} start={HorizontalGradient.START} end={HorizontalGradient.END} colors={Gradients.PREMIUM_TIER_2_TRI_COLOR}><Text variant={r9} color="always-white" style={[styles.text,
textStyle]}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oW0eUd)}</Text></Component>)(importDefault(4589) /* metro dependency 4589 */) : <View style={[styles.container,
style]}><Text variant={r9} color="always-white" style={[styles.text,
textStyle]}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oW0eUd)}</Text></View>;
}
@@ -0,0 +1,433 @@
/* Metro module 1308; source: design/void/Button/native/Button.tsx; dependencies: [31, 27, 661, 1309, 33, 4501, 697, 4000, 6235, 477, 11977, 8002, 4002, 6748, 4578, 2] */
function _fun14423(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:6, offset: 0x00e05963, size: 2372 bytes, params: 8, frame: 34
var object2;
const env0_0 = require;
const closure = getButtonStyles;
const closure2 = ButtonText;
const closure3 = getRedesignVariant;
const closure4 = getRedesignSize;
const closure5 = Button_14432;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.ActivityIndicator;
const env0_5 = value.Pressable;
const env0_6 = value.View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_7 = (require(1309) /* metro dependency 1309: FormConstants */).getThemedRippleConfig;
value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.Fragment;
const env0_10 = value.jsxs;
const createStyles = (require(4501) /* metro dependency 4501: createStyles */).createStyles;
object2 = {button: {'flexDirection': 'row', 'flexGrow': 1, 'justifyContent': 'center', 'alignItems': 'center',
'alignSelf': 'stretch', 'borderRadius': 3}, buttonShrink: {'flexGrow': 0, 'alignSelf': 'flex-start',
'paddingHorizontal': 10}};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object2.buttonBrandDefault = {backgroundColor: BACKGROUND_BRAND};
let BRAND_600 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_600;
object2.buttonBrandDarkDefault = {backgroundColor: BRAND_600};
let RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object2.buttonRedDefault = {backgroundColor: RED_400};
let RED_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_500;
object2.buttonRedDarkDefault = {backgroundColor: RED_500};
const CONTROL_CONNECTED_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_CONNECTED_BACKGROUND_DEFAULT;
object2.buttonGreenDefault = {backgroundColor: CONTROL_CONNECTED_BACKGROUND_DEFAULT};
let GREEN_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_500;
object2.buttonGreenDarkDefault = {backgroundColor: GREEN_500};
let PRIMARY_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_500;
object2.buttonGreyDarkDefault = {backgroundColor: PRIMARY_500};
PRIMARY_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_500;
object2.buttonLightgreyDefault = {backgroundColor: PRIMARY_500};
PRIMARY_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_500;
object2.buttonLightgreyDarkDefault = {backgroundColor: PRIMARY_500};
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
let hexWithOpacity = colorUtilsModule.hexWithOpacity;
const BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
object2.buttonBrandDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, colorUtilsModule, [BRAND_500, 0.5])};
const value3 = colorUtilsModule;
hexWithOpacity = value3.hexWithOpacity;
BRAND_600 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_600;
object2.buttonBrandDarkDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value3, [BRAND_600, 0.5])};
const value4 = colorUtilsModule;
hexWithOpacity = value4.hexWithOpacity;
RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object2.buttonRedDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value4, [RED_400, 0.5])};
const value5 = colorUtilsModule;
hexWithOpacity = value5.hexWithOpacity;
RED_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_500;
object2.buttonRedDarkDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value5, [RED_500, 0.5])};
const value6 = colorUtilsModule;
hexWithOpacity = value6.hexWithOpacity;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object2.buttonGreenDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value6, [GREEN_360, 0.5])};
const value7 = colorUtilsModule;
hexWithOpacity = value7.hexWithOpacity;
GREEN_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_500;
object2.buttonGreenDarkDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value7, [GREEN_500, 0.5])};
const value8 = colorUtilsModule;
hexWithOpacity = value8.hexWithOpacity;
PRIMARY_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_500;
object2.buttonGreyDarkDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value8, [PRIMARY_500, 0.5])};
const value9 = colorUtilsModule;
hexWithOpacity = value9.hexWithOpacity;
PRIMARY_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_500;
object2.buttonLightgreyDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value9, [PRIMARY_500, 0.5])};
const value10 = colorUtilsModule;
hexWithOpacity = value10.hexWithOpacity;
PRIMARY_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_500;
object2.buttonLightgreyDarkDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value10, [PRIMARY_500, 0.5])};
object2.buttonTransparentDefault = {backgroundColor: 'transparent'};
object2.buttonTransparentDarkDefault = {backgroundColor: 'transparent'};
object2.buttonTransparentDisabled = {backgroundColor: 'transparent'};
object2.buttonTransparentDarkDisabled = {backgroundColor: 'transparent'};
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.buttonWhiteDefault = {backgroundColor: WHITE};
const value11 = colorUtilsModule;
hexWithOpacity = value11.hexWithOpacity;
WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object2.buttonWhiteDisabled = {backgroundColor: Reflect.apply(hexWithOpacity, value11, [WHITE, 0.5])};
object2.buttonFilled = {};
object2.buttonLink = {};
object2.buttonLinkDefault = {};
const BUTTON_OUTLINED_BORDER = (require(6235) /* metro dependency 6235: LegacyTokens */).BUTTON_OUTLINED_BORDER;
object2.buttonOutlined = {'backgroundColor': 'transparent', 'borderWidth': 1, 'borderStyle': 'solid',
borderColor: BUTTON_OUTLINED_BORDER};
object2.buttonXsmall = {minHeight: 24};
object2.buttonSmall = {minHeight: 32};
object2.buttonMedium = {minHeight: 40};
object2.buttonLarge = {minHeight: 46};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object2.text = {color: WHITE, fontFamily: PRIMARY_SEMIBOLD, flexShrink: 1};
object2.textXsmall = {fontSize: 12};
object2.textSmall = {fontSize: 14};
object2.textMedium = {fontSize: 14};
object2.textLarge = {fontSize: 20};
object2.textDisabled = {opacity: 0.6};
object2.textDefault = {opacity: 1};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.textBrand = {color: WHITE};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.textRed = {color: WHITE};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.textGreen = {color: WHITE};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.textGrey = {color: WHITE};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.textLightgrey = {color: WHITE};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.textWhite = {color: WHITE};
object2.textFilled = {};
const DARK_PRIMARY_100_LIGHT_PRIMARY_500 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_100_LIGHT_PRIMARY_500;
object2.textOutlined = {color: DARK_PRIMARY_100_LIGHT_PRIMARY_500};
object2.faded = {opacity: 0.5};
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object2.buttonWhiteDarkDefault = {backgroundColor: WHITE};
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
object2.textLink = {color: TEXT_LINK};
object2.buttonPrimaryDefault = {backgroundColor: DARK_PRIMARY_100_LIGHT_PRIMARY_500};
object2.buttonPrimaryDarkDefault = {backgroundColor: DARK_PRIMARY_100_LIGHT_PRIMARY_500};
const DARK_PRIMARY_500_LIGHT_PRIMARY_430 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_500_LIGHT_PRIMARY_430;
object2.buttonGreyDefault = {backgroundColor: DARK_PRIMARY_500_LIGHT_PRIMARY_430};
const DARK_PRIMARY_500_LIGHT_PRIMARY_100 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_500_LIGHT_PRIMARY_100;
object2.textPrimary = {color: DARK_PRIMARY_500_LIGHT_PRIMARY_100};
object2.textTransparent = {color: DARK_PRIMARY_100_LIGHT_PRIMARY_500};
const BUTTON_PRIMARY_DISABLED_BACKGROUND = (require(6235) /* metro dependency 6235: LegacyTokens */).BUTTON_PRIMARY_DISABLED_BACKGROUND;
object2.buttonPrimaryDisabled = {backgroundColor: BUTTON_PRIMARY_DISABLED_BACKGROUND};
object2.buttonPrimaryDarkDisabled = {backgroundColor: BUTTON_PRIMARY_DISABLED_BACKGROUND};
const BUTTON_GREY_DISABLED_BACKGROUND = (require(6235) /* metro dependency 6235: LegacyTokens */).BUTTON_GREY_DISABLED_BACKGROUND;
object2.buttonGreyDisabled = {backgroundColor: BUTTON_GREY_DISABLED_BACKGROUND};
value = Reflect.apply(createStyles, value, [object2]);
object2 = {FILLED: 'filled', LINK: 'link', OUTLINED: 'outlined'};
const object3 = {BRAND: 'brand', RED: 'red', GREEN: 'green', PRIMARY: 'primary', TRANSPARENT: 'transparent',
GREY: 'grey', LIGHTGREY: 'lightgrey', WHITE: 'white', LINK: 'link'};
const env0_14 = {DEFAULT: 'Default', DISABLED: 'Disabled'};
const object4 = {XSMALL: 'xsmall', SMALL: 'small', MEDIUM: 'medium', LARGE: 'large'};
closure5.Looks = object2;
closure5.Colors = object3;
closure5.Sizes = object4;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Button/native/Button.tsx');
exports.default = closure5;
exports.BUTTON_CORNER_RADIUS = 3;
exports.useButtonStyles = value;
exports.ButtonLooks = object2;
exports.ButtonColors = object3;
exports.ButtonSizes = object4;
exports.getButtonStyles = closure;
exports.ButtonText = closure2;
exports.getRedesignVariant = closure3;
exports.getRedesignSize = closure4;
}
function getButtonColorsToTextStyles({textBrand, textRed, textGreen, textPrimary, textTransparent, textGrey, textLightgrey, textWhite, textLink}) { // fn#14424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:4472, offset: 0x00e062a7, size: 199 bytes, params: 2, frame: 5
const BRAND = env0_13.BRAND;
const RED = env0_13.RED;
const GREEN = env0_13.GREEN;
const PRIMARY = env0_13.PRIMARY;
const TRANSPARENT = env0_13.TRANSPARENT;
const GREY = env0_13.GREY;
const LIGHTGREY = env0_13.LIGHTGREY;
const WHITE = env0_13.WHITE;
const LINK = env0_13.LINK;
return {[BRAND]: textBrand, [RED]: textRed, [GREEN]: textGreen, [PRIMARY]: textPrimary,
[TRANSPARENT]: textTransparent, [GREY]: textGrey, [LIGHTGREY]: textLightgrey, [WHITE]: textWhite,
[LINK]: textLink};
}
function getButtonSizesToTextStyles({textXsmall, textSmall, textMedium, textLarge}) { // fn#14425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:4734, offset: 0x00e0636e, size: 94 bytes, params: 2, frame: 5
const XSMALL = env0_15.XSMALL;
const SMALL = env0_15.SMALL;
const MEDIUM = env0_15.MEDIUM;
const LARGE = env0_15.LARGE;
return {[XSMALL]: textXsmall, [SMALL]: textSmall, [MEDIUM]: textMedium, [LARGE]: textLarge};
}
function getButtonLooksToTextStyles({textFilled, textLink, textOutlined}) { // fn#14426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:4873, offset: 0x00e063cc, size: 73 bytes, params: 2, frame: 5
const FILLED = env0_12.FILLED;
const LINK = env0_12.LINK;
const OUTLINED = env0_12.OUTLINED;
return {[FILLED]: textFilled, [LINK]: textLink, [OUTLINED]: textOutlined};
}
function getTextStyles({color, look, size, disabled}, a1) { // fn#14427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:4992, offset: 0x00e06415, size: 125 bytes, params: 3, frame: 17
disabled = !(disabled === undefined) && disabled;
const items2 = [a1.text];
items2[1] = getButtonColorsToTextStyles(a1)[color];
items2[2] = getButtonLooksToTextStyles(a1)[look];
items2[3] = disabled ? a1.textDisabled : a1.textDefault;
items2[4] = getButtonSizesToTextStyles(a1)[size];
return items2;
}
function getButtonStyles({color, size, look, disabled, shrink, pressed, darkenOnPress, style}, a1) { // fn#14428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:5202, offset: 0x00e06492, size: 366 bytes, params: 3, frame: 28
var r15;
var faded;
var moduleValue;
var moduleValue5;
disabled = !(disabled === undefined) && disabled;
shrink = !(shrink === undefined) && shrink;
pressed = !(pressed === undefined) && pressed;
darkenOnPress = !(darkenOnPress === undefined) && darkenOnPress;
const binding = env0_14;
const r16 = disabled ? binding.DISABLED : binding.DEFAULT;
if (pressed) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
r15 = moduleValue.isAndroid() ? color : '' + color + 'Dark';
} else {
r15 = color;
}
const items2 = [a1.button];
items2[1] = shrink ? a1.buttonShrink : null;
const stylesheetUtilsModule = require(11977) /* metro dependency 11977: StylesheetUtils */;
let getClass = stylesheetUtilsModule.getClass;
items2[2] = Reflect.apply(getClass, stylesheetUtilsModule, [a1, 'button', r15, r16]);
const moduleValue3 = stylesheetUtilsModule;
getClass = moduleValue3.getClass;
items2[3] = Reflect.apply(getClass, moduleValue3, [a1, 'button', size]);
const moduleValue4 = stylesheetUtilsModule;
getClass = moduleValue4.getClass;
items2[4] = Reflect.apply(getClass, moduleValue4, [a1, 'button', look]);
if (darkenOnPress) {
faded = undefined;
} else {
moduleValue5 = require(477) /* metro dependency 477: PlatformUtils */;
faded = moduleValue5.isAndroid() ? undefined : pressed ? a1.faded : undefined;
}
items2[5] = faded;
items2[6] = style;
return items2;
}
function ButtonText({children, color, look, size, disabled, style}) { // fn#14429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:5569, offset: 0x00e06600, size: 227 bytes, params: 2, frame: 25
var r0;
var jsxRuntimeEnv0_9Binding;
var LegacyText;
var value;
const styles = useStyles();
if (typeof children !== 'function') {
LegacyText = importDefault(8002) /* metro dependency 8002: LegacyText */;
value = getTextStyles({color: color, look: look, size: size, disabled: disabled}, styles);
value = <LegacyText maxFontSizeMultiplier={2} numberOfLines={1} style={[value, style]}>{children}</LegacyText>;
r0 = value;
} else {
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
value = getTextStyles({color: color, look: look, size: size, disabled: disabled}, styles);
value = <>{children({style: [value, style]})}</>;
r0 = value;
}
return r0;
}
function getRedesignVariant(a0) { // fn#14430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:5891, offset: 0x00e066e3, size: 124 bytes, params: 2, frame: 3
const GREEN = env0_13.GREEN;
if (GREEN === a0) {
return 'active';
}
const RED = env0_13.RED;
if (RED === a0) {
return 'destructive';
}
const GREY = env0_13.GREY;
if (GREY === a0) {
return 'secondary';
}
const LIGHTGREY = env0_13.LIGHTGREY;
if (LIGHTGREY === a0) {
return 'secondary';
}
const TRANSPARENT = env0_13.TRANSPARENT;
if (TRANSPARENT === a0) {
return 'secondary';
}
const WHITE = env0_13.WHITE;
if (WHITE === a0) {
return 'primary-overlay';
}
return 'primary';
}
function getRedesignSize(a0) { // fn#14431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:6119, offset: 0x00e0675f, size: 84 bytes, params: 2, frame: 3
const LARGE = env0_15.LARGE;
if (LARGE === a0) {
return 'lg';
}
const MEDIUM = env0_15.MEDIUM;
if (MEDIUM === a0) {
return 'md';
}
const SMALL = env0_15.SMALL;
if (SMALL === a0) {
return 'sm';
}
const XSMALL = env0_15.XSMALL;
if (XSMALL === a0) {
return 'sm';
}
}
function Button_14432({look = env0_12.FILLED, color = env0_13.BRAND, size = env0_15.MEDIUM, text, shrink, disabled, loading, loadingColorDark = importDefault(dependencyMap[6]).unsafe_rawColors.WHITE, loadingColorLight = importDefault(dependencyMap[6]).unsafe_rawColors.PRIMARY_500, textStyle, style, accessibilityRole, accessibilityLabel, accessibilityHint, accessibilityState, accessibilityActions, onAccessibilityAction, accessibilityValue, darkenOnPress, renderIcon, renderRightIcon, renderShine, renderLinearGradient, testID, onPress, onPressIn, onPressOut, onTouchStart, onTouchEnd, onLongPress, foregroundRipple, cornerRadius}) { // fn#14432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:6245, offset: 0x00e067b3, size: 1182 bytes, params: 2, frame: 52
var r3;
var r26;
var r27;
var r7;
var r13;
var r0;
var value16;
var items2;
var Button;
var value21;
let value = undefined;
const env0_3 = text;
shrink = !(shrink === value) && shrink;
disabled = !(disabled === value) && disabled;
loading = !(loading === value) && loading;
accessibilityRole = accessibilityRole === value ? 'button' : accessibilityRole;
const styles = useStyles();
const sharedModule = require(4002) /* metro dependency 4002: shared */;
const useThemeContext = sharedModule.useThemeContext;
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
let binding = env0_3;
const useMemo = binding.useMemo;
let object = [color, disabled, loading, look, size, text, textStyle, loadingColorDark, loadingColorLight, theme];
const value12 = Reflect.apply(useMemo, binding, [_fun14433, object]);
const value13 = env0_3.useMemo(function() {
var r2;
var object = {};
copyDataProperties(object, accessibilityState, r2);
object['disabled'] = disabled;
return object;
}, [disabled, accessibilityState]);
const value14 = env0_3.useCallback(_fun14435, [color, darkenOnPress, size, look, disabled, shrink, style, styles]);
const value15 = env0_3.useMemo(function() {
return getThemedRippleConfig({foreground: foregroundRipple, cornerRadius: cornerRadius ?? 3});
}, [foregroundRipple, cornerRadius]);
binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
if (look !== env0_12.LINK) {
object = {style: style};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
var buttonProps = {text: text, variant: getRedesignVariant(color), size: getRedesignSize(size),
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction,
onPress: onPress,
onPressIn: onPressIn, onPressOut: onPressOut, onTouchStart: onTouchStart,
disabled: disabled || loading};
value21 = null;
r13 = value21 == renderIcon ? value : renderIcon();
r13 = value21 == r13 ? value21 == renderRightIcon ? value : renderRightIcon() : r13;
buttonProps.icon = value21 != r13 ? r13 : value21;
buttonProps.iconPosition = value21 != renderIcon ? 'start' : value21 != renderRightIcon ? 'end' : value;
buttonProps.grow = !shrink;
value = <View {...object}><Button {...buttonProps} /></View>;
r0 = value;
} else {
var pressableBindingProps = {accessibilityRole: accessibilityRole, accessibilityState: value13,
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction,
accessibilityValue: accessibilityValue, onPress: onPress, onPressIn: onPressIn, onPressOut: onPressOut,
onTouchStart: onTouchStart, onTouchEnd: onTouchEnd, onLongPress: onLongPress,
disabled: disabled || loading,
android_ripple: value15, testID: testID, style: value14};
value16 = null;
r3 = value16 == renderLinearGradient ? value : renderLinearGradient();
r26 = value16 != r3 ? r3 : value16;
items2 = [r26];
r27 = value16 == renderIcon ? value : renderIcon();
r26 = value16 != r27 ? r27 : value16;
items2[1] = r26;
items2[2] = value12;
r26 = value16 == renderRightIcon ? value : renderRightIcon();
r7 = value16 != r26 ? r26 : value16;
items2[3] = r7;
r7 = value16 == renderShine ? value : renderShine();
items2[4] = value16 != r7 ? r7 : value16;
value = <Pressable {...pressableBindingProps}>{items2}</Pressable>;
r0 = value;
}
} else {
var pressableBindingProps = {accessibilityRole: accessibilityRole, accessibilityState: value13,
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction,
accessibilityValue: accessibilityValue, onPress: onPress, onPressIn: onPressIn, onPressOut: onPressOut,
onTouchStart: onTouchStart, onTouchEnd: onTouchEnd, onLongPress: onLongPress, disabled: disabled || loading,
android_ripple: value15, testID: testID, style: value14};
value16 = null;
r3 = value16 == renderLinearGradient ? value : renderLinearGradient();
r26 = value16 != r3 ? r3 : value16;
items2 = [r26];
r27 = value16 == renderIcon ? value : renderIcon();
r26 = value16 != r27 ? r27 : value16;
items2[1] = r26;
items2[2] = value12;
r26 = value16 == renderRightIcon ? value : renderRightIcon();
r7 = value16 != r26 ? r26 : value16;
items2[3] = r7;
r7 = value16 == renderShine ? value : renderShine();
items2[4] = value16 != r7 ? r7 : value16;
value = <Pressable {...pressableBindingProps}>{items2}</Pressable>;
r0 = value;
}
return r0;
}
function _fun14433() { // fn#14433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:6923, offset: 0x00e06c51, size: 150 bytes, params: 1, frame: 18
var r0;
var moduleValue;
if (loading) {
moduleValue = require(4002) /* metro dependency 4002: shared */;
r0 = <ActivityIndicator color={moduleValue.isThemeDark(theme) ? env0_7 : env0_8} />;
} else {
r0 = <ButtonText color={env0_1} look={env0_0} size={env0_2} disabled={disabled} style={textStyle}>{text}</ButtonText>;
}
return r0;
}
function _fun14435({pressed}) { // fn#14435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1435:7128, offset: 0x00e06d06, size: 99 bytes, params: 2, frame: 14
return getButtonStyles({color: env0_1, size: env0_2, disabled: disabled, look: env0_0, shrink: shrink,
pressed: pressed, darkenOnPress: darkenOnPress, style: style}, styles);
}
@@ -0,0 +1,47 @@
/* Metro module 8001; source: design/void/CardSection/native/CardSection.tsx; dependencies: [31, 27, 661, 33, 4501, 6597, 697, 8002, 2] */
function _fun63583(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8179:6, offset: 0x01b8671a, size: 361 bytes, params: 8, frame: 26
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
let value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {container: {'paddingTop': 16, 'paddingHorizontal': 16}};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
object3.title = textStyles(DISPLAY_EXTRABOLD, TEXT_SUBTLE, 12, {'uppercase': true, 'marginBottom': 6});
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object4.overflow = 'hidden';
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
object3.card = object4;
const env0_5 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/CardSection/native/CardSection.tsx');
exports.default = CardSection;
}
function CardSection({title, children, headerComponent, titleStyle, cardStyle, style, accessibilityRole, accessibilityLabel}) { // fn#63584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8179:445, offset: 0x01b86883, size: 265 bytes, params: 2, frame: 27
const styles = useStyles();
const items2 = [styles.container, style];
const items3 = [title != null ? ((Component) => <Component style={[styles.title,
titleStyle]} accessibilityRole="header">{title}</Component>)(importDefault(8002) /* metro dependency 8002: LegacyText */) : null];
items3[1] = headerComponent ?? null;
items3[2] = children != null ? <View style={[styles.card, cardStyle]}>{children}</View> : null;
return (
<View
style={items2}
accessibilityRole={accessibilityRole}
accessibilityLabel={accessibilityLabel}
>
{items3}
</View>
);
}
@@ -0,0 +1,91 @@
/* Metro module 12811; source: design/void/CarouselPagination/native/CarouselPagination.tsx; dependencies: [31, 27, 33, 4501, 697, 4017, 4504, 12751, 12812, 2] */
function _fun97692(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13001:6, offset: 0x0218de5b, size: 330 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object3 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginHorizontal': 4};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const ICON_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.ICON_STRONG;
object3.backgroundColor = ICON_STRONG;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{container: {'position': 'relative', 'top': -16,
'marginBottom': -16}, dot: object3}]);
object = {code: "function CarouselPaginationTsx1(){const{withTiming,active,STANDARD_EASING}=this.__closure;return withTiming(active?1:0,{duration:250,easing:STANDARD_EASING},'animate-always');}"};
object = {code: 'function CarouselPaginationTsx2(){const{interpolate,progress,interpolateColor,backgroundColor,brand500}=this.__closure;return{width:interpolate(progress.get(),[0,1],[8,16]),backgroundColor:interpolateColor(progress.get(),[0,1],[backgroundColor,brand500]),opacity:interpolate(progress.get(),[0,1],[0.3,1])};}'};
const env0_8 = value.memo(_fun97693);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/CarouselPagination/native/CarouselPagination.tsx');
exports.default = CarouselPagination;
}
function _fun97693({active}) { // fn#97693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13001:850, offset: 0x0218dfa5, size: 366 bytes, params: 2, frame: 24
const styles = useStyles();
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useDerivedValue = reanimatedRexportModule.useDerivedValue;
let closure = function() {
var r2;
var moduleValue = require(dependencyMap[6]);
var withTiming = moduleValue.withTiming;
r2 = active ? 1 : 0;
var object = {duration: 250};
object.easing = require(dependencyMap[7]).STANDARD_EASING;
return Reflect.apply(withTiming, moduleValue, [r2, object, 'animate-always']);
};
const object2 = {};
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.active = active;
const STANDARD_EASING = (require(12751) /* metro dependency 12751: Easing */).STANDARD_EASING;
object2.STANDARD_EASING = STANDARD_EASING;
closure.__closure = object2;
closure.__workletHash = 5885711729227;
closure.__initData = env0_6;
const value2 = Reflect.apply(useDerivedValue, reanimatedRexportModule, [closure]);
const BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
const backgroundColor = styles.dot.backgroundColor;
const moduleValue2 = reanimatedRexportModule;
const useAnimatedStyle = moduleValue2.useAnimatedStyle;
closure = c_97695;
closure.__closure = {interpolate: reanimatedRexportModule.interpolate, progress: value2,
interpolateColor: reanimatedRexportModule.interpolateColor, backgroundColor: backgroundColor,
brand500: BRAND_500};
closure.__workletHash = 7804335337011;
closure.__initData = env0_7;
const value3 = Reflect.apply(useAnimatedStyle, moduleValue2, [closure]);
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return <View style={[styles.dot, value3]} />;
}
function CarouselPagination({numberOfItems, currentIndex, containerStyle}) { // fn#97696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13001:1760, offset: 0x0218e241, size: 143 bytes, params: 2, frame: 20
const styles = useStyles();
const env0_82 = ((Component) => <Component />)(env0_8);
const items2 = [styles.container, containerStyle];
const Pagination = (require(12812) /* metro dependency 12812 */).Pagination;
return (
<View style={items2}>
<Pagination
dotElement={env0_82}
inactiveDotElement={env0_82}
dotsLength={numberOfItems}
activeDotIndex={currentIndex}
/>
</View>
);
}
function c_97695() { // fn#97695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13001:1256, offset: 0x0218e177, size: 202 bytes, params: 1, frame: 22
const object2 = {};
let value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const interpolate = value.interpolate;
const binding = env0_1;
object2.width = Reflect.apply(interpolate, value, [binding.get(), [0, 1], [8, 16]]);
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
object2.backgroundColor = value.interpolateColor(binding.get(), [0, 1], [backgroundColor, BRAND_500]);
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
object2.opacity = value.interpolate(binding.get(), [0, 1], [0.3, 1]);
return object2;
}
@@ -0,0 +1,21 @@
/* Metro module 12717; source: design/void/Checkbox/native/Checkbox.tsx; dependencies: [31, 27, 33, 12718, 12719, 2] */
function _fun97391(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12907:6, offset: 0x0217eb9c, size: 156 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).Image;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Checkbox/native/Checkbox.tsx');
exports.default = Checkbox_97392;
}
function Checkbox_97392({style, selected}) { // fn#97392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12907:140, offset: 0x0217ec38, size: 96 bytes, params: 2, frame: 16
const object2 = {style: style};
if (selected) {
object2.source = importDefault(12718) /* metro dependency 12718 */;
} else {
object2.source = importDefault(12719) /* metro dependency 12719 */;
}
return <Image {...object2} />;
}
@@ -0,0 +1,37 @@
/* Metro module 12720; source: design/void/CloseIcon/native/CloseIcon.tsx; dependencies: [31, 33, 7744, 2] */
function _fun97395(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12910:6, offset: 0x0217ed24, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/CloseIcon/native/CloseIcon.tsx');
exports.default = Close;
}
function Close(a0) { // fn#97396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12910:204, offset: 0x0217eda7, size: 209 bytes, params: 2, frame: 21
let width = a0.width;
width = width === undefined ? 24 : width;
let height = a0.height;
height = height === undefined ? 24 : height;
let color = a0.color;
color = color === undefined ? 'currentColor' : color;
const object2 = {'width': 0, 'height': 0, 'color': 0};
silentSetPrototypeOf(object2, null, undefined);
const value = copyDataProperties({}, a0, object2, width);
const Svg = (require(7744) /* metro dependency 7744 */).Svg;
const svgProps = {...value};
svgProps['width'] = width;
svgProps['height'] = height;
svgProps['viewBox'] = '0 0 24 24';
const Path = (require(7744) /* metro dependency 7744 */).Path;
return (
<Svg {...svgProps}>
<Path
fill={color}
d="M18.4 4L12 10.4L5.6 4L4 5.6L10.4 12L4 18.4L5.6 20L12 13.6L18.4 20L20 18.4L13.6 12L20 5.6L18.4 4Z"
/>
</Svg>
);
}
@@ -0,0 +1,87 @@
/* Metro module 12727; source: design/void/Collapsible/native/Collapsible.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 4017, 4577, 2] */
function _fun97433(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12917:6, offset: 0x02180ecf, size: 299 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = {'stiffness': 150, 'overshootClamping': true};
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
const env0_9 = Reflect.apply(createStyles, value, [{collapsible: {'position': 'relative', 'overflow': 'hidden'},
collapsibleContent: {backgroundColor: BACKGROUND_SURFACE_HIGH}}]);
object = {code: 'function CollapsibleTsx1(){const{withSpring,totalHeight,EXPAND_SPRING}=this.__closure;return{height:withSpring(totalHeight,EXPAND_SPRING)};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Collapsible/native/Collapsible.tsx');
exports.default = Collapsible;
}
function Collapsible({children, collapsibleContent, isExpanded, style}) { // fn#97434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12917:593, offset: 0x02180ffa, size: 573 bytes, params: 2, frame: 31
let env0_3 = undefined;
let env0_4 = undefined;
const styles = useStyles();
let binding = env0_4;
let useState = binding.useState;
const value3 = env0_3(Reflect.apply(useState, binding, [false]), 2);
const property = value3[0];
const property2 = value3[1];
const r6 = isExpanded ?? property;
binding = env0_4;
const value6 = binding.useState(0);
const binding2 = env0_3;
const value7 = binding2(value6, 2);
const property3 = value7[0];
env0_3 = value7[1];
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [0]), 2);
const property4 = value8[0];
env0_4 = property4;
const env0_5 = value8[1];
const value9 = binding.useCallback(_fun97435, [property3]);
const value10 = binding.useCallback(_fun97436, [property4]);
const value11 = property3 + (r6 ? property4 : 0);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = CollapsibleS;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
totalHeight: value11, EXPAND_SPRING: env0_8};
closure.__workletHash = 1072657539267;
closure.__initData = env0_10;
const value12 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const value13 = env0_4.useCallback(_fun97438, [property, property2]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View style={style}>
<View2 style={[styles.collapsible, value11 > 0 ? value12 : null]}>
<View onLayout={value9}>
{children({onPress: value13})}
</View>
<View style={styles.collapsibleContent} onLayout={value10}>
{collapsibleContent}
</View>
</View2>
</View>
);
}
function _fun97435(a0) { // fn#97435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12917:831, offset: 0x02181237, size: 48 bytes, params: 2, frame: 11
if (env0_2 === 0) {
env0_3(a0.nativeEvent.layout.height);
}
}
function _fun97436(a0) { // fn#97436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12917:897, offset: 0x02181267, size: 48 bytes, params: 2, frame: 11
if (env0_4 === 0) {
env0_5(a0.nativeEvent.layout.height);
}
}
function CollapsibleS() { // fn#97437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12917:989, owner: Collapsible.S, offset: 0x02181297, size: 55 bytes, params: 1, frame: 14
const springModule = require(4577) /* metro dependency 4577: spring */;
return {height: springModule.withSpring(env0_6, env1_8)};
}
@@ -0,0 +1,513 @@
/* Metro module 10252; source: design/void/CutoutableAvatarImage/native/CutoutableAvatarImage.tsx; dependencies: [31, 27, 10253, 33, 3, 1423, 10254, 4017, 7599, 4577, 5475, 10255, 491, 7744, 628, 2] */
function _fun79619(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10438:6, offset: 0x01e5a4ad, size: 2022 bytes, params: 8, frame: 26
var object2;
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_3 = value2.StyleSheet;
const env0_4 = value2.View;
const env0_5 = (require(10253) /* metro dependency 10253: ChannelAnimationConstants */).CHANNEL_SPRING_CONFIG;
const value3 = require(33) /* metro dependency 33 */;
const env0_6 = value3.jsx;
const env0_7 = value3.jsxs;
const value6 = new (importDefault(3) /* metro dependency 3: Logger */)('UIKit - AvatarImage');
object2 = {XXSMALL: 'xxsmall', XSMALL: 'xsmall', SMALL: 'small', NORMAL: 'normal', LARGE: 'large', XLARGE: 'xlarge',
XLARGE_72: 'xlarge72', XXLARGE: 'xxlarge', PROFILE: 'profile', REFRESH_MEDIUM_32: 'refreshMedium32',
XXSMALL_10: 'xsmall10', XSMALL_20: 'xsmall20', SIZE_16: 'size16', LARGE_48: 'large48',
EDIT_AVATAR_DECORATION: 'editAvatarDecoration', GIFT_START: 'giftStart', GIFT_SUCCESS: 'giftSuccess',
YOUBAR_60: 'youBar60', TABS_22: 'tabs22'};
Object = global.Object;
const freeze = Object.freeze;
let XXSMALL_10 = object2.XXSMALL_10;
let SIZE_16 = object2.SIZE_16;
let XXSMALL = object2.XXSMALL;
let XSMALL_20 = object2.XSMALL_20;
let XSMALL = object2.XSMALL;
let SMALL = object2.SMALL;
let NORMAL = object2.NORMAL;
let LARGE_48 = object2.LARGE_48;
let LARGE = object2.LARGE;
let XLARGE = object2.XLARGE;
let XLARGE_72 = object2.XLARGE_72;
let XXLARGE = object2.XXLARGE;
let PROFILE = object2.PROFILE;
let EDIT_AVATAR_DECORATION = object2.EDIT_AVATAR_DECORATION;
let GIFT_START = object2.GIFT_START;
let GIFT_SUCCESS = object2.GIFT_SUCCESS;
let REFRESH_MEDIUM_32 = object2.REFRESH_MEDIUM_32;
let YOUBAR_60 = object2.YOUBAR_60;
let TABS_22 = object2.TABS_22;
const value8 = Reflect.apply(freeze, Object, [{[XXSMALL_10]: 10, [SIZE_16]: 16, [XXSMALL]: 18, [XSMALL_20]: 20,
[XSMALL]: 24, [SMALL]: 30, [NORMAL]: 40, [LARGE_48]: 48, [LARGE]: 50, [XLARGE]: 64, [XLARGE_72]: 72,
[XXLARGE]: 80, [PROFILE]: 128, [EDIT_AVATAR_DECORATION]: 144, [GIFT_START]: 184, [GIFT_SUCCESS]: 236,
[REFRESH_MEDIUM_32]: 32, [YOUBAR_60]: 60, [TABS_22]: 22}]);
const object25 = {image: {'width': '100%', 'height': '100%'}};
const object26 = {};
XXSMALL = object2.XXSMALL;
object26.width = value8[XXSMALL];
XXSMALL = object2.XXSMALL;
object26.height = value8[XXSMALL];
XXSMALL = object2.XXSMALL;
object26.borderRadius = value8[XXSMALL] / 2;
object25.xxsmall = object26;
const object27 = {};
XXSMALL_10 = object2.XXSMALL_10;
object27.width = value8[XXSMALL_10];
XXSMALL_10 = object2.XXSMALL_10;
object27.height = value8[XXSMALL_10];
XXSMALL_10 = object2.XXSMALL_10;
object27.borderRadius = value8[XXSMALL_10] / 2;
object25.xsmall10 = object27;
const object28 = {};
XSMALL_20 = object2.XSMALL_20;
object28.width = value8[XSMALL_20];
XSMALL_20 = object2.XSMALL_20;
object28.height = value8[XSMALL_20];
XSMALL_20 = object2.XSMALL_20;
object28.borderRadius = value8[XSMALL_20] / 2;
object25.xsmall20 = object28;
const object29 = {};
XSMALL = object2.XSMALL;
object29.width = value8[XSMALL];
XSMALL = object2.XSMALL;
object29.height = value8[XSMALL];
XSMALL = object2.XSMALL;
object29.borderRadius = value8[XSMALL] / 2;
object25.xsmall = object29;
const object30 = {};
SMALL = object2.SMALL;
object30.width = value8[SMALL];
SMALL = object2.SMALL;
object30.height = value8[SMALL];
SMALL = object2.SMALL;
object30.borderRadius = value8[SMALL] / 2;
object25.small = object30;
const object31 = {};
NORMAL = object2.NORMAL;
object31.width = value8[NORMAL];
NORMAL = object2.NORMAL;
object31.height = value8[NORMAL];
NORMAL = object2.NORMAL;
object31.borderRadius = value8[NORMAL] / 2;
object25.normal = object31;
const object32 = {};
LARGE = object2.LARGE;
object32.width = value8[LARGE];
LARGE = object2.LARGE;
object32.height = value8[LARGE];
LARGE = object2.LARGE;
object32.borderRadius = value8[LARGE] / 2;
object25.large = object32;
const object33 = {};
XLARGE = object2.XLARGE;
object33.width = value8[XLARGE];
XLARGE = object2.XLARGE;
object33.height = value8[XLARGE];
XLARGE = object2.XLARGE;
object33.borderRadius = value8[XLARGE] / 2;
object25.xlarge = object33;
const object34 = {};
XLARGE_72 = object2.XLARGE_72;
object34.width = value8[XLARGE_72];
XLARGE_72 = object2.XLARGE_72;
object34.height = value8[XLARGE_72];
XLARGE_72 = object2.XLARGE_72;
object34.borderRadius = value8[XLARGE_72] / 2;
object25.xlarge72 = object34;
const object35 = {};
XXLARGE = object2.XXLARGE;
object35.width = value8[XXLARGE];
XXLARGE = object2.XXLARGE;
object35.height = value8[XXLARGE];
XXLARGE = object2.XXLARGE;
object35.borderRadius = value8[XXLARGE] / 2;
object25.xxlarge = object35;
const object36 = {};
REFRESH_MEDIUM_32 = object2.REFRESH_MEDIUM_32;
object36.width = value8[REFRESH_MEDIUM_32];
REFRESH_MEDIUM_32 = object2.REFRESH_MEDIUM_32;
object36.height = value8[REFRESH_MEDIUM_32];
REFRESH_MEDIUM_32 = object2.REFRESH_MEDIUM_32;
object36.borderRadius = value8[REFRESH_MEDIUM_32] / 2;
object25.refreshMedium32 = object36;
const object37 = {};
PROFILE = object2.PROFILE;
object37.width = value8[PROFILE];
PROFILE = object2.PROFILE;
object37.height = value8[PROFILE];
PROFILE = object2.PROFILE;
object37.borderRadius = value8[PROFILE] / 2;
object25.profile = object37;
const object38 = {};
SIZE_16 = object2.SIZE_16;
object38.width = value8[SIZE_16];
SIZE_16 = object2.SIZE_16;
object38.height = value8[SIZE_16];
SIZE_16 = object2.SIZE_16;
object38.borderRadius = value8[SIZE_16] / 2;
object25.size16 = object38;
const object39 = {};
LARGE_48 = object2.LARGE_48;
object39.width = value8[LARGE_48];
LARGE_48 = object2.LARGE_48;
object39.height = value8[LARGE_48];
LARGE_48 = object2.LARGE_48;
object39.borderRadius = value8[LARGE_48] / 2;
object25.large48 = object39;
const object40 = {};
EDIT_AVATAR_DECORATION = object2.EDIT_AVATAR_DECORATION;
object40.width = value8[EDIT_AVATAR_DECORATION];
EDIT_AVATAR_DECORATION = object2.EDIT_AVATAR_DECORATION;
object40.height = value8[EDIT_AVATAR_DECORATION];
EDIT_AVATAR_DECORATION = object2.EDIT_AVATAR_DECORATION;
object40.borderRadius = value8[EDIT_AVATAR_DECORATION] / 2;
object25.editAvatarDecoration = object40;
const object41 = {};
GIFT_START = object2.GIFT_START;
object41.width = value8[GIFT_START];
GIFT_START = object2.GIFT_START;
object41.height = value8[GIFT_START];
GIFT_START = object2.GIFT_START;
object41.borderRadius = value8[GIFT_START] / 2;
object25.giftStart = object41;
const object42 = {};
GIFT_SUCCESS = object2.GIFT_SUCCESS;
object42.width = value8[GIFT_SUCCESS];
GIFT_SUCCESS = object2.GIFT_SUCCESS;
object42.height = value8[GIFT_SUCCESS];
GIFT_SUCCESS = object2.GIFT_SUCCESS;
object42.borderRadius = value8[GIFT_SUCCESS] / 2;
object25.giftSuccess = object42;
const object43 = {};
YOUBAR_60 = object2.YOUBAR_60;
object43.width = value8[YOUBAR_60];
YOUBAR_60 = object2.YOUBAR_60;
object43.height = value8[YOUBAR_60];
YOUBAR_60 = object2.YOUBAR_60;
object43.borderRadius = value8[YOUBAR_60] / 2;
object25.youBar60 = object43;
const object44 = {};
TABS_22 = object2.TABS_22;
object44.width = value8[TABS_22];
TABS_22 = object2.TABS_22;
object44.height = value8[TABS_22];
TABS_22 = object2.TABS_22;
object44.borderRadius = value8[TABS_22] / 2;
object25.tabs22 = object44;
const object45 = {RIGHT: 0};
object45[0] = 'RIGHT';
object45.BOTTOM_RIGHT = 1;
object45[1] = 'BOTTOM_RIGHT';
object45.BOTTOM_LEFT = 2;
object45[2] = 'BOTTOM_LEFT';
const object46 = {RECTANGULAR: 0};
object46[0] = 'RECTANGULAR';
object46.CIRCULAR = 1;
object46[1] = 'CIRCULAR';
const env0_13 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(importDefault(7599) /* metro dependency 7599: ClipView */);
const env0_14 = {code: "function CutoutableAvatarImageTsx1(){const{animate,cutout,CutoutShape,withSpring,CHANNEL_SPRING_CONFIG}=this.__closure;const animated=!animate?'animate-never':undefined;const animatedCutout=cutout.shape===CutoutShape.RoundedRect?{shape:CutoutShape.RoundedRect,x:withSpring(cutout.x,CHANNEL_SPRING_CONFIG,animated),y:withSpring(cutout.y,CHANNEL_SPRING_CONFIG,animated),width:withSpring(cutout.width,CHANNEL_SPRING_CONFIG,animated),height:withSpring(cutout.height,CHANNEL_SPRING_CONFIG,animated),cornerRadius:withSpring(cutout.cornerRadius,CHANNEL_SPRING_CONFIG,animated)}:{shape:CutoutShape.Circle,x:withSpring(cutout.x,CHANNEL_SPRING_CONFIG,animated),y:withSpring(cutout.y,CHANNEL_SPRING_CONFIG,animated),size:withSpring(cutout.size,CHANNEL_SPRING_CONFIG,animated)};return{cutouts:[animatedCutout]};}"};
value = value.memo(_fun79623, customShallowEqual);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/CutoutableAvatarImage/native/CutoutableAvatarImage.tsx');
exports.default = value;
exports.AvatarSizes = object2;
exports.AVATAR_SIZE_MAP = value8;
exports.styles = object25;
exports.CutoutDirection = object45;
exports.CutoutType = object46;
}
function NativeCutoutAvatarImage({animate, cutout, source, style}) { // fn#79620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10438:3747, offset: 0x01e5ac93, size: 282 bytes, params: 2, frame: 21
animate = !(animate === undefined) && animate;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedProps = reanimatedRexportModule.useAnimatedProps;
const closure = NativeCutoutAvatarImageH;
const object2 = {animate: animate, cutout: cutout};
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
object2.CutoutShape = CutoutShape;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.CHANNEL_SPRING_CONFIG = CHANNEL_SPRING_CONFIG;
closure.__closure = object2;
closure.__workletHash = 11368409055559;
closure.__initData = env0_14;
return ((Component) => <Component style={style} animatedProps={Reflect.apply(useAnimatedProps,
reanimatedRexportModule,
[closure])}>{((Component) => <Component style={env0_10.image} source={(importDefault(10255) /* metro dependency 10255: getReactNativeSVGImageSource */)(source)} usesSmallCache />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</Component>)(env0_13);
}
function CutoutAvatarImage({cutout, size, source, style}) { // fn#79622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10438:4604, offset: 0x01e5af76, size: 1183 bytes, params: 2, frame: 39
var r28;
var r9;
var r8;
var value7;
var value9;
const Rect = (require(7744) /* metro dependency 7744 */).Rect;
var color;
let value = size / 2;
const r26 = cutout.radius ?? value;
const r2 = cutout.inset ?? 0;
const r11 = cutout.imageType ?? env0_12.CIRCULAR;
const value5 = size - r2;
let CIRCULAR = env0_12.CIRCULAR;
let r27 = r11 !== CIRCULAR ? size : value;
const direction = cutout.direction;
const BOTTOM_RIGHT = env0_11.BOTTOM_RIGHT;
if (BOTTOM_RIGHT === direction) {
value9 = size - r26 - r2;
r27 = size - r26 - r2;
r28 = value9;
} else if (env0_11.BOTTOM_LEFT !== direction) {
r28 = value5;
} else {
value7 = r26 + r2;
r27 = size - r26 - r2;
r28 = value7;
}
const value11 = (require(491) /* metro dependency 491 */).v4();
const tintColor = StyleSheet.flatten(style).tintColor;
if (source == null) {
const Image = (require(7744) /* metro dependency 7744 */).Image;
r9 = <Image x="0" y="0" height="100%" width="100%" href={(importDefault(10255) /* metro dependency 10255: getReactNativeSVGImageSource */)(source)} mask={'url(#' + value11 + ')'} />;
} else if (tintColor != null) {
const ForeignObject = (require(7744) /* metro dependency 7744 */).ForeignObject;
r9 = <ForeignObject x="0" y="0" height="100%" width="100%" mask={'url(#' + value11 + ')'}>{((Component) => <Component style={{tintColor: tintColor}} source={(importDefault(10255) /* metro dependency 10255: getReactNativeSVGImageSource */)(source)} usesSmallCache />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</ForeignObject>;
} else {
const Image2 = (require(7744) /* metro dependency 7744 */).Image;
r9 = <Image2 x="0" y="0" height="100%" width="100%" href={(importDefault(10255) /* metro dependency 10255: getReactNativeSVGImageSource */)(source)} mask={'url(#' + value11 + ')'} />;
}
const defaultImport2 = importDefault(7744) /* metro dependency 7744 */;
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
const Mask = (require(7744) /* metro dependency 7744 */).Mask;
CIRCULAR = env0_12.CIRCULAR;
const r23 = r11 === CIRCULAR ? <Circle cx={value} cy={value} r={value} fill="white" /> : <Rect x={0} y={0} height={size} width={size} fill="white" />;
var Circle = (require(7744) /* metro dependency 7744 */).Circle;
const items2 = [<Defs><Mask width={size} height={size} id={value11}>{r23}<Circle cx={r28} cy={r27} r={r26} fill="black" /></Mask></Defs>,
r9];
let border = cutout.border;
if (border != null) {
if (r11 === env0_12.CIRCULAR) {
border = cutout.border;
color = border.color;
border = cutout.border;
value = <Circle cx={value} cy={value} r={value} fill="none" mask={'url(#' + value11 + ')'} stroke={color} strokeWidth={border.width} />;
r9 = value;
} else {
border = cutout.border;
color = border.color;
border = cutout.border;
r9 = <Rect x={0} y={0} height={size} width={size} fill="none" mask={'url(#' + value11 + ')'} stroke={color} strokeWidth={border.width} />;
}
r8 = r9;
} else {
r8 = null;
}
items2[2] = r8;
return (
<View style={style}>
{((Component) => <Component height="100%" width="100%">{items2}</Component>)(defaultImport2)}
</View>
);
}
function _fun79623(a0) { // fn#79623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10438:5839, offset: 0x01e5b415, size: 632 bytes, params: 2, frame: 28
var r8;
var r12;
var r1;
var defaultImport;
var makeSource;
var defaultImport2;
var nativeCutouts;
const animate = a0.animate;
const cutout = a0.cutout;
let size = a0.size;
const style = a0.style;
let value = typeof size === 'number';
const r5 = value ? size : env0_9[size];
const r7 = value ? [{width: size, height: size}, style] : [env0_10[size], style];
const object2 = {};
copyDataProperties(object2, a0, undefined);
object2['animate'] = animate === true && cutout == null;
object2['size'] = r5;
const source = object2.source;
let user = object2.user;
const channel = object2.channel;
const guildId = object2.guildId;
const animate2 = object2.animate;
size = object2.size;
if (source != null) {
r8 = typeof source !== 'function' ? source : source(animate2);
} else if (user != null) {
r8 = user.getAvatarSource(guildId, animate2, size);
} else if (channel != null) {
value = require(10254) /* metro dependency 10254: getChannelIcon */;
value = value.getChannelIconURL(channel, size);
r8 = typeof value === 'number' || value == null ? value : {uri: value};
} else {
env0_8.warn('No image found from provided data');
r8 = undefined;
}
if (r8 == null) {
return null;
}
user = object2.user;
const disablePlaceholder = object2.disablePlaceholder;
value = undefined;
if (user == null) {
r12 = value;
} else if (disablePlaceholder) {
r12 = value;
} else {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
makeSource = defaultImport.makeSource;
defaultImport2 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
r12 = Reflect.apply(makeSource, defaultImport, [defaultImport2.getDefaultAvatarURL(user.id,
user.discriminator)]);
}
if (cutout != null) {
nativeCutouts = cutout.nativeCutouts;
r1 = (nativeCutouts == null ? value : nativeCutouts.length) === 1 ? <NativeCutoutAvatarImage animate={animate} cutout={cutout.nativeCutouts[0]} source={r8} style={r7} /> : <CutoutAvatarImage style={r7} size={r5} animate={animate} cutout={cutout} source={r8} />;
} else {
value = ((Component) => <Component style={r7} source={r8} placeholder={typeof r12 !== 'number' ? value : r12} usesSmallCache key="image" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
r1 = value;
}
return r1;
}
function customShallowEqual(a0, a1) { // fn#79624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10438:6829, offset: 0x01e5b68d, size: 280 bytes, params: 3, frame: 20
var r0;
var r1;
var source;
var source2;
var value2;
var value3;
var Array;
var value4;
var value5;
var length;
var length2;
var value6;
var defaultImport2;
var property;
var value7;
let value = environment;
if ((importDefault(628) /* metro dependency 628: shallowEqual */)(a0, a1, ['source'])) {
source = a0.source;
source2 = a1.source;
if (source === source2) {
return true;
}
value2 = typeof source2;
if (value2 === 'number') {
reducibleJoin5: while (true) {
if (typeof source === 'number') {
return false;
}
break reducibleJoin5;
}
}
value3 = typeof source;
if (value2 !== value3) {
return false;
}
Array = global.Array;
if (Array.isArray(source2)) {
Array = global.Array;
reducibleJoin8: while (true) {
if (Array.isArray(source)) {
length = source.length;
length2 = source2.length;
if (length !== length2) {
return false;
}
length = source.length;
value6 = 0;
if (value6 < length) {
r1 = value6;
reducibleLoop15: while (true) {
defaultImport2 = importDefault(628) /* metro dependency 628: shallowEqual */;
property = source[r1];
if (!defaultImport2(property, source2[r1])) {
return false;
}
value7 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = source.length;
if (!(value7 < length)) {
return true;
}
r1 = value7;
continue reducibleLoop15;
}
}
return true;
}
break reducibleJoin8;
}
}
value4 = value2 !== 'object';
reducibleJoin10: while (true) {
if (value4) {
r0 = value4;
break reducibleJoin10;
}
value5 = value3 !== 'object';
r0 = value5;
break reducibleJoin10;
}
reducibleJoin12: while (true) {
if (r0) {
break reducibleJoin12;
}
value = (importDefault(628) /* metro dependency 628: shallowEqual */)(source2, source);
r0 = value;
break reducibleJoin12;
}
return r0;
}
return false;
}
function NativeCutoutAvatarImageH() { // fn#79621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10438:3859, owner: NativeCutoutAvatarImage.h, offset: 0x01e5adad, size: 457 bytes, params: 1, frame: 25
var r2;
var object;
var moduleValue;
var withSpring;
var object4;
var moduleValue2;
var value;
const r7 = animate ? undefined : 'animate-never';
const shape = cutout.shape;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const RoundedRect = CutoutShape.RoundedRect;
if (shape === RoundedRect) {
object4 = {};
object4.shape = CutoutShape.RoundedRect;
moduleValue2 = require(4577) /* metro dependency 4577: spring */;
withSpring = moduleValue2.withSpring;
cutoutBinding = cutout;
object4.x = Reflect.apply(withSpring, moduleValue2, [cutoutBinding.x, CHANNEL_SPRING_CONFIG, r7]);
value = require(4577) /* metro dependency 4577: spring */;
object4.y = value.withSpring(cutoutBinding.y, CHANNEL_SPRING_CONFIG, r7);
value = require(4577) /* metro dependency 4577: spring */;
object4.width = value.withSpring(cutoutBinding.width, CHANNEL_SPRING_CONFIG, r7);
value = require(4577) /* metro dependency 4577: spring */;
object4.height = value.withSpring(cutoutBinding.height, CHANNEL_SPRING_CONFIG, r7);
value = require(4577) /* metro dependency 4577: spring */;
object4.cornerRadius = value.withSpring(cutoutBinding.cornerRadius, CHANNEL_SPRING_CONFIG, r7);
r2 = object4;
} else {
object = {};
object.shape = CutoutShape.Circle;
moduleValue = require(4577) /* metro dependency 4577: spring */;
withSpring = moduleValue.withSpring;
cutoutBinding = cutout;
object.x = Reflect.apply(withSpring, moduleValue, [cutoutBinding.x, CHANNEL_SPRING_CONFIG, r7]);
value = require(4577) /* metro dependency 4577: spring */;
object.y = value.withSpring(cutoutBinding.y, CHANNEL_SPRING_CONFIG, r7);
value = require(4577) /* metro dependency 4577: spring */;
object.size = value.withSpring(cutoutBinding.size, CHANNEL_SPRING_CONFIG, r7);
r2 = object;
}
return {cutouts: [r2]};
}
@@ -0,0 +1,12 @@
/* Metro module 12751; source: design/void/Easing/native/Easing.tsx; dependencies: [4017, 2] */
function _fun97506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12941:6, offset: 0x02184ca8, size: 173 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
const value = Easing.bezier(0.4, 0, 0.2, 1);
const value2 = Easing.bezier(0, 0, 0.2, 1);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Easing/native/Easing.tsx');
exports.STANDARD_EASING = value;
exports.DECELERATED_EASING = value2;
}
@@ -0,0 +1,136 @@
/* Metro module 12721; source: design/void/Ellipsis/native/Ellipsis.tsx; dependencies: [31, 27, 33, 4501, 697, 4017, 4504, 2] */
function _fun97397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:6, offset: 0x0217ee78, size: 336 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object3 = {'backgroundColor': null, 'borderRadius': null, 'marginRight': 2, 'height': 6, 'width': 6};
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object3.backgroundColor = TEXT_DEFAULT;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{typingIndicator: {'justifyContent': 'center',
'alignItems': 'center', 'flexDirection': 'row', 'marginRight': 4}, typingIndicatorDot: object3}]);
object = {code: 'function EllipsisTsx1(value,fromValue,toValue){const{withRepeat,withSequence,withDelay,sequenceStartDelay,withTiming,delay,animationTimeMs,sequenceEndDelay}=this.__closure;value.set(withRepeat(withSequence(withDelay(sequenceStartDelay,withTiming(fromValue,{duration:0})),withDelay(delay,withSequence(withTiming(toValue,{duration:animationTimeMs}),withTiming(fromValue,{duration:animationTimeMs}))),withDelay(sequenceEndDelay,withTiming(fromValue,{duration:0}))),-1));}'};
object = {code: 'function EllipsisTsx2(){const{opacityValue,disableScale,scaleValue}=this.__closure;return{opacity:opacityValue.get(),transform:disableScale?undefined:[{scale:scaleValue.get()}]};}'};
value = value.memo(Ellipsis_97403);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Ellipsis/native/Ellipsis.tsx');
exports.default = value;
}
function EllipsisDot({dotStyle, disableScale, delay, sequenceStartDelay, sequenceEndDelay}) { // fn#97398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:1102, offset: 0x0217efc8, size: 329 bytes, params: 2, frame: 26
const env0_3 = sequenceEndDelay;
const styles = useStyles();
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0.4);
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0.75);
env0_3.useEffect(_fun97399, [delay, sequenceStartDelay, sequenceEndDelay, disableScale, value2, value3]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = EllipsisDotS;
closure.__closure = {opacityValue: value2, disableScale: disableScale, scaleValue: value3};
closure.__workletHash = 5071157079925;
closure.__initData = env0_8;
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return <View style={[styles.typingIndicatorDot, dotStyle, value4]} />;
}
function Ellipsis_97403({dotStyle, style, disableScale}) { // fn#97403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:2231, offset: 0x0217f3ba, size: 119 bytes, params: 2, frame: 17
const styles = useStyles();
return (
<View style={[styles.typingIndicator, style]} collapsable={false}>
{[0, 1, 2].map(_fun97404)}
</View>
);
}
function _fun97399() { // fn#97399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:1282, offset: 0x0217f111, size: 244 bytes, params: 1, frame: 19
const closure = i_97400;
const object2 = {};
object2.withRepeat = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withRepeat;
object2.withSequence = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withSequence;
object2.withDelay = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withDelay;
object2.sequenceStartDelay = sequenceStartDelay;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.delay = delay;
object2.animationTimeMs = 350;
object2.sequenceEndDelay = sequenceEndDelay;
closure.__closure = object2;
closure.__workletHash = 377125103421;
closure.__initData = env1_7;
closure(env0_4, 0.4, 1);
if (!disableScale) {
closure(env0_5, 0.75, 1);
}
return _fun97401;
}
function EllipsisDotS() { // fn#97402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:1992, owner: EllipsisDot.S, offset: 0x0217f376, size: 68 bytes, params: 1, frame: 12
var r1;
var object3;
const object4 = {};
object4.opacity = env0_4.get();
if (disableScale) {
r1 = undefined;
} else {
object3 = {};
object3.scale = env0_5.get();
r1 = [object3];
}
object4.transform = r1;
return object4;
}
function _fun97404(a0, a1, a2) { // fn#97404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:2373, offset: 0x0217f431, size: 114 bytes, params: 4, frame: 18
return (
<EllipsisDot
delay={a0 * 233.33333333333334}
sequenceStartDelay={116.66666666666667}
sequenceEndDelay={116.66666666666667 + 233.33333333333334 * (a2.length - 1 - a0)}
dotStyle={dotStyle}
disableScale={disableScale}
key={a0}
/>
);
}
function i_97400(a0, a1, a2) { // fn#97400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:1299, offset: 0x0217f205, size: 300 bytes, params: 4, frame: 35
const set = a0.set;
let value = environment.__proto__.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const withRepeat = value.withRepeat;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const withSequence = reanimatedRexportModule.withSequence;
const moduleValue2 = reanimatedRexportModule;
let withDelay = moduleValue2.withDelay;
const sequenceStartDelayBinding = sequenceStartDelay;
const timingModule = require(4504) /* metro dependency 4504: timing */;
const value3 = Reflect.apply(withDelay, moduleValue2, [sequenceStartDelayBinding, timingModule.withTiming(a1,
{duration: 0})]);
const moduleValue4 = reanimatedRexportModule;
withDelay = moduleValue4.withDelay;
const delayBinding = delay;
const moduleValue5 = reanimatedRexportModule;
const withSequence2 = moduleValue5.withSequence;
const value4 = timingModule.withTiming(a2, {duration: 350});
const moduleValue7 = timingModule;
const value5 = Reflect.apply(withDelay, moduleValue4, [delayBinding, Reflect.apply(withSequence2, moduleValue5,
[value4, moduleValue7.withTiming(a1, {duration: 350})])]);
const moduleValue8 = reanimatedRexportModule;
withDelay = moduleValue8.withDelay;
const sequenceEndDelayBinding = sequenceEndDelay;
const moduleValue9 = timingModule;
Reflect.apply(set, a0, [Reflect.apply(withRepeat, value, [Reflect.apply(withSequence, reanimatedRexportModule,
[value3, value5, Reflect.apply(withDelay, moduleValue8, [sequenceEndDelayBinding, moduleValue9.withTiming(a1,
{duration: 0})])]), -1])]);
}
function _fun97401() { // fn#97401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12911:1878, offset: 0x0217f331, size: 69 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
(require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_4);
(require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_5);
}
@@ -0,0 +1,64 @@
/* Metro module 12757; source: design/void/EmptyState/native/EmptyState.tsx; dependencies: [31, 27, 33, 4501, 697, 4002, 4573, 2] */
function _fun97518(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12947:6, offset: 0x021856e9, size: 304 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_2 = value.View;
const env0_3 = value.Image;
value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_6 = Reflect.apply(createStyles, value, [{container: {'flex': 1, 'justifyContent': 'center',
'alignItems': 'center', 'paddingHorizontal': 36, 'paddingBottom': 80, backgroundColor: BACKGROUND_BASE_LOWER},
emptyImage: {'flex': 1, 'maxWidth': 300, 'maxHeight': 200}, emptyTitle: {'marginTop': 20,
'textTransform': 'uppercase'}, emptyBody: {'textAlign': 'center', 'marginTop': 8}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/EmptyState/native/EmptyState.tsx');
exports.default = EmptyState_97519;
}
function EmptyState_97519(a0) { // fn#97519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12947:570, offset: 0x02185819, size: 528 bytes, params: 2, frame: 28
var r8;
var moduleValue2;
const styles = useStyles();
const sharedModule = require(4002) /* metro dependency 4002: shared */;
const useThemeContext = sharedModule.useThemeContext;
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
const Illustration = a0.Illustration;
const value2 = null;
if (value2 != Illustration) {
r8 = ((Illustration) => <Illustration accessible={false} importantForAccessibility="no" accessibilityRole="none" resizeMode="contain" style={[styles.emptyImage,
a0.imageStyle]} />)(a0.Illustration);
} else if (value2 != a0.lightSource && value2 != a0.darkSource) {
moduleValue2 = sharedModule;
r8 = <Image resizeMode="contain" source={moduleValue2.isThemeLight(theme) ? a0.lightSource : a0.darkSource} style={[styles.emptyImage,
a0.imageStyle]} />;
} else {
r8 = value2;
}
const style = a0.style;
const body = a0.body;
const title = a0.title;
const children = a0.children;
const bodyStyle = a0.bodyStyle;
const titleStyle = a0.titleStyle;
const items3 = [styles.container, style];
const items4 = [r8];
items4[1] = value2 != title ? ((Text) => <Text variant="heading-lg/semibold" color="mobile-text-heading-primary" maxFontSizeMultiplier={2} style={[styles.emptyTitle,
titleStyle]}>{title}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value2;
items4[2] = value2 != body ? ((Text) => <Text variant="text-md/medium" color="text-muted" maxFontSizeMultiplier={2} style={[styles.emptyBody,
bodyStyle]}>{body}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value2;
items4[3] = children;
return (
<View style={items3} accessible>
{items4}
</View>
);
}
+47
View File
@@ -0,0 +1,47 @@
/* Metro module 6747; source: design/void/Form/native/Form.tsx; dependencies: [31, 27, 33, 4501, 5463, 6748, 2] */
function _fun53224(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6925:6, offset: 0x0134241f, size: 257 bytes, params: 8, frame: 21
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 */).ScrollView;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({form: {flex: 1},
redesign: {paddingTop: 16}});
const context = value.createContext({isForm: false});
value = value.forwardRef(_fun53225);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/Form.tsx');
exports.default = value;
exports.FormContext = context;
}
function _fun53225({style, children, keyboardShouldPersistTaps, alwaysBounceVertical, contentContainerStyle, onScroll, scrollsToTop, onLayout}, a1) { // fn#53225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6925:253, offset: 0x01342520, size: 325 bytes, params: 3, frame: 27
keyboardShouldPersistTaps = keyboardShouldPersistTaps === undefined ? 'never' : keyboardShouldPersistTaps;
alwaysBounceVertical = alwaysBounceVertical === undefined || alwaysBounceVertical;
const styles = useStyles();
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
const value2 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
const Provider = env0_7.Provider;
return (
<Provider value={{isForm: true}}>
<ScrollView
ref={a1}
onLayout={onLayout}
scrollsToTop={scrollsToTop}
style={[styles.form, style, value2 && styles.redesign]}
contentContainerStyle={[{paddingBottom: 38 + insets.bottom}, contentContainerStyle]}
contentInset={{top: 0}}
automaticallyAdjustContentInsets={false}
keyboardShouldPersistTaps={keyboardShouldPersistTaps}
alwaysBounceVertical={alwaysBounceVertical}
onScroll={onScroll}
>
{children}
</ScrollView>
</Provider>
);
}
@@ -0,0 +1,41 @@
/* Metro module 6751; source: design/void/Form/native/FormArrow.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 1305, 6245, 2] */
function _fun53232(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6929:6, offset: 0x01342924, size: 260 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
const env0_6 = Reflect.apply(createStyles, value, [{wrapper: {'flexDirection': 'row', 'alignItems': 'center'},
icon: {'tintColor': null, 'marginRight': -8, 'marginLeft': 8, tintColor: INTERACTIVE_TEXT_DEFAULT}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormArrow.tsx');
exports.default = FormArrow;
}
function FormArrow({label, style}) { // fn#53233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6929:313, offset: 0x01342a28, size: 338 bytes, params: 2, frame: 25
const styles = useStyles();
if (label != null) {
return (
<View style={styles.wrapper}>
{((Text) => <Text maxFontSizeMultiplier={1.5} variant="text-md/medium" color="text-muted">{label}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
{((Icon) => <Icon style={[styles.icon,
style]} source={importDefault(6245) /* metro dependency 6245 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} />)((require(1305) /* metro dependency 1305: native */).Icon)}
</View>
);
} else {
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
return (
<Icon
style={[styles.icon, style]}
source={importDefault(6245) /* metro dependency 6245 */}
size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM}
/>
);
}
}
+103
View File
@@ -0,0 +1,103 @@
/* Metro module 7973; source: design/void/Form/native/FormCTA.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 1305, 7974, 6746, 7975, 2] */
function _fun63457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8151:6, offset: 0x01b80462, size: 518 bytes, params: 8, frame: 23
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingVertical = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingHorizontal = PX_12;
object4.form = object6;
const object7 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object7.fontSize = PX_16;
object7.lineHeight = 18;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object7.color = MOBILE_TEXT_HEADING_PRIMARY;
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object7.fontFamily = PRIMARY_SEMIBOLD;
object4.title = object7;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
object4.description = {'fontSize': 12, 'lineHeight': 18, color: TEXT_SUBTLE, fontFamily: PRIMARY_MEDIUM};
const object8 = {};
let PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object8.width = PX_40;
PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object8.height = PX_40;
object4.icon = object8;
object4.completedIcon = {opacity: 0.3};
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object4.completedText = {color: TEXT_MUTED};
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCTA.tsx');
exports.default = FormCTA;
}
function FormCTA({style, title, titleStyle, subtitle, completed, iconSource, iconStyle, iconContainerStyle, trailing, onPress, onLongPress, variant}) { // fn#63458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8151:732, offset: 0x01b80668, size: 691 bytes, params: 2, frame: 36
var r7;
var r0;
var RowButton;
const closure = renderTrailing;
var value;
const styles = useStyles();
const r5 = iconSource != null ? <View style={[iconContainerStyle,
completed ? styles.completedIcon : null]}>{((Icon) => <Icon style={[styles.icon,
iconStyle]} source={iconSource} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.CUSTOM} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon)}</View> : null;
if (subtitle === undefined) {
r7 = null;
} else {
const SubLabel = (importDefault(6746) /* metro dependency 6746: FormRow */).SubLabel;
r7 = <SubLabel style={[styles.description, completed ? styles.completedText : null]} text={subtitle} />;
}
if (variant === 'row-button') {
RowButton = (require(7975) /* metro dependency 7975: RowButtonNative */).RowButton;
r0 = <RowButton arrow={false} onPress={onPress} onLongPress={onLongPress} accessibilityState={{checked: completed}} label={((Label) => <Label style={[styles.title,
completed ? styles.completedText : undefined,
titleStyle]} text={title} />)((importDefault(6746) /* metro dependency 6746: FormRow */).Label)} subLabel={r7} trailing={closure()} icon={r5} />;
} else {
value = importDefault(6746) /* metro dependency 6746: FormRow */;
value = ((Component) => <Component start end variant={variant} onPress={onPress} onLongPress={onLongPress} DEPRECATED_style={[styles.form,
style]} accessibilityState={{checked: completed}} label={((Label) => <Label style={[styles.title,
completed ? styles.completedText : undefined,
titleStyle]} text={title} />)((importDefault(6746) /* metro dependency 6746: FormRow */).Label)} subLabel={r7} trailing={closure()} leading={r5} />)(value);
r0 = value;
}
return r0;
}
function renderTrailing() { // fn#63459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8151:1060, owner: FormCTA.renderTrailing, offset: 0x01b8091b, size: 117 bytes, params: 1, frame: 15
var r0;
var trailingBinding;
var value;
if (completed) {
value = environment.__proto__;
const FormCheckbox = (require(7974) /* metro dependency 7974: FormCheckboxNative */).FormCheckbox;
value = <FormCheckbox checked />;
r0 = value;
} else {
trailingBinding = trailing;
if (trailingBinding != null) {
r0 = trailingBinding;
} else {
value = environment.__proto__;
const Arrow = (importDefault(6746) /* metro dependency 6746: FormRow */).Arrow;
value = <Arrow />;
r0 = value;
}
}
return r0;
}
@@ -0,0 +1,101 @@
/* Metro module 7978; source: design/void/Form/native/FormCTAButton.tsx; dependencies: [31, 27, 1309, 661, 33, 4501, 6597, 697, 1305, 6748, 7975, 2] */
function _fun63488(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8156:6, offset: 0x01b81fb3, size: 593 bytes, params: 8, frame: 29
var object2;
const env0_0 = require;
const closure = FormCTAButton;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.ActivityIndicator;
const env0_4 = value.Pressable;
value.Platform;
value.StyleSheet;
const env0_5 = value.View;
value = require(1309) /* metro dependency 1309: FormConstants */;
const env0_6 = value.ANDROID_FOREGROUND_RIPPLE;
const env0_7 = value.getThemedRippleConfig;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.rowButton = {paddingHorizontal: 16};
object2.sectionBody = {};
object2.button = {'minHeight': 44, 'justifyContent': 'center'};
object2.text = {'lineHeight': 44, 'paddingHorizontal': 17, 'textAlign': 'left'};
const object6 = {};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
let PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
const CONTROL_BRAND_FOREGROUND = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_BRAND_FOREGROUND;
copyDataProperties(object6, textStyles(PRIMARY_SEMIBOLD, CONTROL_BRAND_FOREGROUND, 16), undefined);
object2.textBrand = object6;
const object7 = {};
const value3 = textStyles;
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
copyDataProperties(object7, value3(PRIMARY_SEMIBOLD, TEXT_FEEDBACK_CRITICAL, 16), undefined);
object2.textDanger = object7;
const object8 = {};
const value4 = textStyles;
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
copyDataProperties(object8, value4(PRIMARY_SEMIBOLD, STATUS_WARNING, 16), undefined);
object2.textWarning = object8;
object2.alignLeft = {textAlign: 'left'};
object2.disabled = {opacity: 0.5};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
object2 = {BRAND: 'brand', DANGER: 'danger', WARNING: 'warning'};
closure.Colors = object2;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCTAButton.tsx');
exports.default = closure;
exports.FormCTAButtonColors = object2;
}
function getCTAButtonColor(a0, a1) { // fn#63489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8156:844, offset: 0x01b82204, size: 79 bytes, params: 3, frame: 4
const BRAND = env0_10.BRAND;
if (BRAND === a0) {
return a1.textBrand;
}
const DANGER = env0_10.DANGER;
if (DANGER === a0) {
return a1.textDanger;
}
const WARNING = env0_10.WARNING;
if (WARNING === a0) {
return a1.textWarning;
}
}
function FormCTAButton({color = env0_10.BRAND, label, fontSize, alignLeft, disabled, loading, testID, style, onPress}) { // fn#63490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8156:989, offset: 0x01b82253, size: 516 bytes, params: 2, frame: 26
var object2;
var RowButton;
const r16 = fontSize === undefined ? 16 : fontSize;
let r14 = alignLeft !== undefined && alignLeft;
let r9 = disabled !== undefined && disabled;
const r10 = loading !== undefined && loading;
const styles = useStyles();
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const items2 = [styles.text];
items2[1] = getCTAButtonColor(color, styles);
items2[2] = {fontSize: r16};
r14 = r14 && styles.alignLeft;
items2[3] = r14;
const r12 = r10 ? <ActivityIndicator color={color} /> : <LegacyText style={items2}>{label}</LegacyText>;
const binding = env0_2;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
const value4 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
object2 = {};
if (value4) {
object2.style = styles.rowButton;
RowButton = (require(7975) /* metro dependency 7975: RowButtonNative */).RowButton;
r9 = !r9 ? r10 : r9;
object2.children = <RowButton label={r12} onPress={onPress} arrow={false} disabled={r9} testID={testID} />;
} else {
object2.style = [styles.sectionBody, r9 && styles.disabled, style];
object2.children = <Pressable testID={testID} accessibilityRole="button" onPress={onPress} style={styles.button} disabled={r9 || r10} android_ripple={getThemedRippleConfig(ANDROID_FOREGROUND_RIPPLE)}>{r12}</Pressable>;
}
return <View {...object2} />;
}
@@ -0,0 +1,19 @@
/* Metro module 6755; source: design/void/Form/native/FormCheckbox.tsx; dependencies: [31, 33, 4501, 1305, 2] */
function _fun53238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6933:6, offset: 0x01342d25, size: 176 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({checkbox: {'width': 22,
'height': 22}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCheckbox.tsx');
exports.default = FormCheckbox;
}
function FormCheckbox({selected}) { // fn#53239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6933:258, offset: 0x01342dd5, size: 77 bytes, params: 2, frame: 16
const styles = useStyles();
const Checkbox = (require(1305) /* metro dependency 1305: native */).Checkbox;
return <Checkbox style={styles.checkbox} selected={selected} />;
}
@@ -0,0 +1,31 @@
/* Metro module 6745; source: design/void/Form/native/FormCheckboxRow.tsx; dependencies: [31, 33, 4501, 3874, 6746, 6755, 2] */
function _fun53216(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6923:6, offset: 0x013419f7, size: 176 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({checkboxWrapperStyle: {flexShrink: 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCheckboxRow.tsx');
exports.default = FormCheckboxRow;
}
function FormCheckboxRow(a0) { // fn#53217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6923:267, offset: 0x01341aa7, size: 201 bytes, params: 2, frame: 21
const selected = a0.selected;
let value = Object.create(null);
value.selected = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useCheckboxA11yNative({checked: selected});
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
const defaultImportProps = {...value2};
defaultImportProps['accessibilityRole'] = accessibilityRole;
defaultImportProps['accessibilityState'] = accessibilityState;
value = importDefault(6755) /* metro dependency 6755: FormCheckbox */;
value = ((Component) => <Component selected={selected} />)(value);
defaultImportProps['trailing'] = value;
defaultImportProps['trailingWrapperStyle'] = styles.checkboxWrapperStyle;
return <FormRow {...defaultImportProps} />;
}
@@ -0,0 +1,20 @@
/* Metro module 6756; source: design/void/Form/native/FormCheckmark.tsx; dependencies: [31, 33, 6742, 697, 2] */
function _fun53240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6934:6, offset: 0x01342e22, size: 136 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormCheckmark.tsx');
exports.default = RowCheckmark;
}
function RowCheckmark({selected}) { // fn#53241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6934:124, offset: 0x01342eaa, size: 90 bytes, params: 2, frame: 17
if (selected) {
const CheckmarkSmallIcon = (require(6742) /* metro dependency 6742: CheckmarkSmallIcon */).CheckmarkSmallIcon;
return <CheckmarkSmallIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500} />;
} else {
return null;
}
}
@@ -0,0 +1,71 @@
/* Metro module 1309; source: design/void/Form/native/FormConstants.tsx; dependencies: [1310, 477, 697, 4092, 4002, 2] */
function _fun14437(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1436:6, offset: 0x00e06da0, size: 461 bytes, params: 8, frame: 24
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
let value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
const r7 = value ? 32 : 24;
let internal = (importDefault(697) /* metro dependency 697: native */).internal;
let resolveSemanticColor = internal.resolveSemanticColor;
const DARK = (importDefault(697) /* metro dependency 697: native */).themes.DARK;
let MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE;
value = Reflect.apply(resolveSemanticColor, internal, [DARK, MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const LIGHT = (importDefault(697) /* metro dependency 697: native */).themes.LIGHT;
MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE;
const semanticColor = Reflect.apply(resolveSemanticColor, internal, [LIGHT,
MOBILE_ANDROID_BUTTON_BACKGROUND_RIPPLE]);
const env0_5 = (require(4092) /* metro dependency 4092: DeviceUtils */).getSystemVersionMajor();
Object = global.Object;
const value4 = Object.freeze({foreground: true});
Object = global.Object;
const env0_6 = Object.freeze({});
const Map = global.Map;
const map = new Map();
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormConstants.tsx');
exports.FORM_ROW_VERTICAL_PADDING = r7;
exports.RIPPLE_DARK_COLOR = value;
exports.RIPPLE_LIGHT_COLOR = semanticColor;
exports.ANDROID_FOREGROUND_RIPPLE = value4;
exports.TitleStyleType = {DEFAULT: 'default', ANDROID_NO_BORDER: 'no_border',
NO_BORDER_OR_MARGIN: 'no_border_or_margin'};
exports.getThemedRippleConfig = getThemedRippleConfig;
}
function getThemedRippleConfig({foreground, radius, cornerRadius, borderless, color}) { // fn#14438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1436:811, offset: 0x00e06f6d, size: 265 bytes, params: 2, frame: 20
var r6;
var r3;
var moduleValue2;
var binding;
var value3;
var value4;
var Object;
var value5;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
r6 = env0_5 >= 23 && foreground;
if (color != null) {
r3 = color;
} else {
moduleValue2 = require(4002) /* metro dependency 4002: shared */;
r3 = moduleValue2.isThemeLight(ThemeStore.theme) ? env0_4 : env0_3;
}
value3 = String(r3.toString()) + cornerRadius + radius + r6;
binding = env0_7;
value4 = binding.get(value3);
if (value4 != null) {
return value4;
}
Object = global.Object;
value5 = Object.freeze({color: r3, radius: radius, borderless: borderless, cornerRadius: cornerRadius,
foreground: r6});
binding = env0_7;
binding.set(value3, value5);
return value5;
}
return env0_6;
}
@@ -0,0 +1,60 @@
/* Metro module 7331; source: design/void/Form/native/FormDivider.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1357, 3868, 6791, 4000, 6748, 2] */
function _fun59033(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7509:6, offset: 0x016df11b, size: 363 bytes, params: 8, frame: 21
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.StyleSheet;
value.Platform;
const ThemeTypes = (require(661) /* metro dependency 661: Constants */).ThemeTypes;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
var object2 = {marginLeft: 0};
object2.height = StyleSheet.hairlineWidth;
object2.backgroundColor = importDefault(dependencyMap[5]).colors.BORDER_SUBTLE;
object2.marginTop = -1 * StyleSheet.hairlineWidth;
return {divider: {}, dividerOuter: object2, dividerHasIcon: {marginLeft: 56}};
});
object2 = {};
const LIGHT = ThemeTypes.LIGHT;
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
object2[LIGHT] = BLACK;
const DARK = ThemeTypes.DARK;
let WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object2[DARK] = WHITE;
const DARKER = ThemeTypes.DARKER;
WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object2[DARKER] = WHITE;
const MIDNIGHT = ThemeTypes.MIDNIGHT;
WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object2[MIDNIGHT] = WHITE;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormDivider.tsx');
exports.default = Divider_59035;
exports.DIVIDER_COLORS = object2;
}
function Divider_59035({outer, iconPush, style}) { // fn#59035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7509:643, offset: 0x016df2f8, size: 352 bytes, params: 2, frame: 23
var r6;
var moduleValue3;
outer = !(outer === undefined) && outer;
iconPush = !(iconPush === undefined) && iconPush;
const styles = useStyles((importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('FormDivider'));
const {theme, primaryColor} = (require(3868) /* metro dependency 3868: native */).useThemeContext();
const value4 = (require(6791) /* metro dependency 6791: useProfileThemeValuesNative */).useProfileThemeValues(theme);
if ((outer ? styles.dividerOuter : styles.divider).backgroundColor != null && primaryColor != null && value4 != null) {
moduleValue3 = require(4000) /* metro dependency 4000: ColorUtils */;
r6 = {backgroundColor: moduleValue3.hexOpacityToRgba(env0_8[theme], value4.dividerOpacity)};
} else {
r6 = null;
}
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
return Reflect.apply(useContext, binding,
[RedesignCompatContext]) ? null : <View style={[outer ? styles.dividerOuter : styles.divider,
iconPush && styles.dividerHasIcon, style, r6]} />;
}
@@ -0,0 +1,45 @@
/* Metro module 7979; source: design/void/Form/native/FormHint.tsx; dependencies: [31, 27, 33, 4501, 697, 6748, 4573, 1305, 2] */
function _fun63491(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8157:6, offset: 0x01b82457, size: 256 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(27) /* metro dependency 27 */).Platform;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{formHintText: {'fontSize': 14, 'marginBottom': 0,
color: TEXT_MUTED}, redesignHorizontalPadding: {paddingHorizontal: 12},
horizonatalPadding: {paddingHorizontal: 16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormHint.tsx');
exports.default = FormHint;
}
function FormHint({inset, style, children}) { // fn#63492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8157:410, offset: 0x01b82557, size: 235 bytes, params: 2, frame: 22
var r0;
var LegacyText;
var Text;
inset = !(inset === undefined) && inset;
var value;
const styles = useStyles();
const binding = env0_2;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = !inset;
value = <Text variant="text-sm/medium" color="text-muted" style={[inset ? value : styles.redesignHorizontalPadding,
style]}>{children}</Text>;
r0 = value;
} else {
LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
value = !inset;
value = <LegacyText style={[styles.formHintText, inset ? value : styles.horizonatalPadding,
style]}>{children}</LegacyText>;
r0 = value;
}
return r0;
}
@@ -0,0 +1,33 @@
/* Metro module 6757; source: design/void/Form/native/FormIcon.tsx; dependencies: [31, 33, 4501, 1305, 2] */
function _fun53242(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6935:6, offset: 0x01342f04, size: 177 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {opacity: 0.6}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormIcon.tsx');
exports.default = FormIcon;
}
function FormIcon(a0) { // fn#53243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6935:242, offset: 0x01342fb5, size: 223 bytes, params: 2, frame: 22
var r0;
const style = a0.style;
const color = a0.color;
const themedColor = a0.themedColor;
const object2 = {'style': 0, 'color': 0, 'themedColor': 0};
silentSetPrototypeOf(object2, null, undefined);
let value = copyDataProperties({}, a0, object2, undefined);
const styles = useStyles();
if (themedColor != null) {
const ThemedIcon = (require(1305) /* metro dependency 1305: native */).ThemedIcon;
value = <ThemedIcon style={[styles.icon, style]} themedColor={themedColor} {...value} />;
r0 = value;
} else {
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
value = <Icon style={[styles.icon, style]} color={color} {...value} />;
r0 = value;
}
return r0;
}
@@ -0,0 +1,210 @@
/* Metro module 7980; source: design/void/Form/native/FormInput.tsx; dependencies: [31, 661, 33, 4501, 697, 477, 3868, 4002, 6748, 7681, 7981, 1305, 2] */
function _fun63493(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:6, offset: 0x01b82642, size: 281 bytes, params: 8, frame: 23
var object2;
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(661) /* metro dependency 661: Constants */).KeyboardThemes;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {inputViewContainer: {'paddingVertical': 13, 'paddingHorizontal': 15}};
const INPUT_PLACEHOLDER_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_PLACEHOLDER_TEXT_DEFAULT;
object2.placeholderText = {color: INPUT_PLACEHOLDER_TEXT_DEFAULT};
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object2.inputText = {color: TEXT_DEFAULT};
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object2]);
value = value.forwardRef(_fun63494);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormInput.tsx');
exports.default = value;
}
function _fun63494(a0, a1) { // fn#63494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:364, offset: 0x01b8275b, size: 1185 bytes, params: 3, frame: 44
var r0;
var r18;
var r20;
var r1;
var moduleValue4;
var InputView;
var object3;
var color;
var value26;
const onChange = a0.onChange;
const keyboardAppearance = a0.keyboardAppearance;
const keyboardType = a0.keyboardType;
const style = a0.style;
const inputTextStyle = a0.inputTextStyle;
let value = a0.value;
let title = a0.title;
const value2 = undefined;
title = title === value2 ? '' : title;
let helpText = a0.helpText;
helpText = helpText === value2 ? '' : helpText;
const error = a0.error;
let placeholder = a0.placeholder;
placeholder = placeholder === value2 ? '' : placeholder;
let secureTextEntry = a0.secureTextEntry;
secureTextEntry = !(secureTextEntry === value2) && secureTextEntry;
let disabled = a0.disabled;
disabled = !(disabled === value2) && disabled;
let multiline = a0.multiline;
multiline = !(multiline === value2) && multiline;
let autoFocus = a0.autoFocus;
autoFocus = !(autoFocus === value2) && autoFocus;
let numberOfLines = a0.numberOfLines;
numberOfLines = numberOfLines === value2 ? 1 : numberOfLines;
const clearButtonVisibility = a0.clearButtonVisibility;
const autoCapitalize = a0.autoCapitalize;
const autoCorrect = a0.autoCorrect;
const showBorder = a0.showBorder;
const r29 = showBorder !== value2 ? showBorder : (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
let showCharactersRemaining = a0.showCharactersRemaining;
showCharactersRemaining = !(showCharactersRemaining === value2) && showCharactersRemaining;
let enableAndroidSanitizedInputWorkaround = a0.enableAndroidSanitizedInputWorkaround;
enableAndroidSanitizedInputWorkaround = !(enableAndroidSanitizedInputWorkaround === value2) && enableAndroidSanitizedInputWorkaround;
let allowRedesignTextInput = a0.allowRedesignTextInput;
allowRedesignTextInput = allowRedesignTextInput === value2 || allowRedesignTextInput;
const object4 = {'onChange': 0, 'keyboardAppearance': 0, 'keyboardType': 0, 'style': 0, 'inputTextStyle': 0,
'value': 0, 'title': 0, 'helpText': 0, 'error': 0, 'placeholder': 0, 'secureTextEntry': 0, 'disabled': 0,
'multiline': 0, 'autoFocus': 0, 'numberOfLines': 0, 'clearButtonVisibility': 0, 'autoCapitalize': 0,
'autoCorrect': 0, 'showBorder': 0, 'showCharactersRemaining': 0, 'enableAndroidSanitizedInputWorkaround': 0,
'allowRedesignTextInput': 0};
silentSetPrototypeOf(object4, null, undefined);
const value15 = copyDataProperties({}, a0, object4, undefined);
const env0_2 = value2;
const styles = useStyles();
const nativeModule = require(3868) /* metro dependency 3868: native */;
const useThemeContext = nativeModule.useThemeContext;
if (keyboardAppearance != null) {
r18 = keyboardAppearance;
} else {
r0 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(Reflect.apply(useThemeContext,
nativeModule,
[]).theme) ? KeyboardThemes.DARK : KeyboardThemes.LIGHT;
r18 = r0;
}
let binding = env0_2;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
const env0_0 = Reflect.apply(useContext, binding, [RedesignCompatContext]) && allowRedesignTextInput;
if (enableAndroidSanitizedInputWorkaround) {
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
r20 = !moduleValue4.isAndroid();
} else {
r20 = !enableAndroidSanitizedInputWorkaround;
}
const r14 = r20 ? secureTextEntry : !r20;
const r17 = enableAndroidSanitizedInputWorkaround && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'visible-password' : keyboardType;
binding = env0_2;
const value22 = binding.useRef(null);
const value23 = binding.useRef(null);
binding.useImperativeHandle(a1, function() {
return {isFocused: _fun63496, focus: _fun63497, blur: _fun63498, setText: _fun63499, getText: _fun63500,
measure: _fun63501, measureInWindow: _fun63502, measureLayout: _fun63503};
});
if (r0) {
if (multiline) {
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
value = <TextArea ref={value22} returnKeyType="default" onChange={onChange} keyboardAppearance={r18} keyboardType={r17} placeholderTextColor={styles.placeholderText.color} placeholder={placeholder} secureTextEntry={r14} isDisabled={disabled} autoFocus={autoFocus} autoCapitalize={autoCapitalize} autoCorrect={autoCorrect} maxLength={value15.maxLength} onEndEditing={value15.onEndEditing} value={value ?? value2} errorMessage={error} />;
r1 = value;
} else {
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
value = <TextInput ref={value22} returnKeyType="done" onChange={onChange} keyboardAppearance={r18} keyboardType={r17} placeholderTextColor={styles.placeholderText.color} placeholder={placeholder} secureTextEntry={r14} isDisabled={disabled} autoFocus={autoFocus} autoCapitalize={autoCapitalize} autoCorrect={autoCorrect} onEndEditing={value15.onEndEditing} value={value ?? value2} errorMessage={error} />;
r1 = value;
}
r0 = r1;
} else {
InputView = (require(1305) /* metro dependency 1305: native */).InputView;
object3 = {ref: value23};
color = styles.inputText.color;
object3.inputTextColor = color;
object3.multiline = multiline;
object3.returnKeyType = value15.returnKeyType ?? (multiline ? 'default' : 'done');
object3.onChangeText = onChange;
object3.keyboardAppearance = r18;
object3.keyboardType = r17;
color = styles.placeholderText.color;
object3.placeholderTextColor = color;
object3.title = title;
object3.helpText = helpText;
value26 = '';
object3.error = error ?? value26;
object3.placeholder = placeholder;
object3.secureTextEntry = r14;
object3.disabled = disabled;
object3.autoFocus = autoFocus;
object3.numberOfLines = numberOfLines;
object3.autoCapitalize = autoCapitalize;
object3.autoCorrect = autoCorrect;
object3.showBorder = r29;
object3.showCharactersRemaining = showCharactersRemaining;
object3.style = [styles.inputViewContainer, style];
object3.inputTextStyle = inputTextStyle;
object3.value = value ?? value26;
object3.clearButtonVisibility = multiline ? (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.NEVER : clearButtonVisibility;
copyDataProperties(object3, value15, object4);
value = <InputView {...object3} />;
r0 = value;
}
return r0;
}
function _fun63495() { // fn#63495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1077, offset: 0x01b82bfc, size: 86 bytes, params: 1, frame: 3
return {isFocused: isFocused_63496, focus: focus_63497, blur: blur_63498, setText: setText_63499,
getText: getText_63500, measure: measure_63501, measureInWindow: measureInWindow_63502,
measureLayout: measureLayout_63503};
}
function isFocused_63496() { // fn#63496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1083, offset: 0x01b82c52, size: 54 bytes, params: 1, frame: 10
const value = environment.__proto__;
return (env1_0 ? env1_1 : env1_2).current?.isFocused() === true;
}
function focus_63497() { // fn#63497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1168, offset: 0x01b82c88, size: 45 bytes, params: 1, frame: 10
const current = (env1_0 ? env1_1 : env1_2).current;
if (current != null) {
current.focus();
}
}
function blur_63498() { // fn#63498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1222, offset: 0x01b82cb5, size: 45 bytes, params: 1, frame: 10
const current = (env1_0 ? env1_1 : env1_2).current;
if (current != null) {
current.blur();
}
}
function setText_63499(a0) { // fn#63499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1278, offset: 0x01b82ce2, size: 49 bytes, params: 2, frame: 11
const current = (env1_0 ? env1_1 : env1_2).current;
if (current != null) {
current.setText(a0);
}
}
function getText_63500() { // fn#63500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1337, offset: 0x01b82d13, size: 62 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (env1_0 ? env1_1 : env1_2).current?.getText() ?? '';
}
function measure_63501(a0) { // fn#63501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1426, offset: 0x01b82d51, size: 49 bytes, params: 2, frame: 11
const current = (env1_0 ? env1_1 : env1_2).current;
if (current != null) {
current.measure(a0);
}
}
function measureInWindow_63502(a0) { // fn#63502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1493, offset: 0x01b82d82, size: 49 bytes, params: 2, frame: 11
const current = (env1_0 ? env1_1 : env1_2).current;
if (current != null) {
current.measureInWindow(a0);
}
}
function measureLayout_63503(a0, a1, a2) { // fn#63503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8158:1566, offset: 0x01b82db3, size: 57 bytes, params: 4, frame: 15
const current = (env1_0 ? env1_1 : env1_2).current;
if (current != null) {
current.measureLayout(a0, a1, a2);
}
}
@@ -0,0 +1,29 @@
/* Metro module 6749; source: design/void/Form/native/FormLabel.tsx; dependencies: [31, 33, 4573, 2] */
function _fun53228(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6927:6, offset: 0x01342733, size: 129 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormLabel.tsx');
exports.default = FormLabel;
}
function FormLabel({text, numberOfLines, style, accessible, color}) { // fn#53229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6927:199, offset: 0x013427b4, size: 125 bytes, params: 2, frame: 20
numberOfLines = numberOfLines === undefined ? 0 : numberOfLines;
color = color === undefined ? 'mobile-text-heading-primary' : color;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="heading-md/semibold"
color={color}
lineClamp={numberOfLines}
style={style}
maxFontSizeMultiplier={2}
accessible={accessible}
>
{text}
</Text>
);
}
@@ -0,0 +1,18 @@
/* Metro module 6752; source: design/void/Form/native/FormRadio.tsx; dependencies: [31, 27, 33, 4501, 6753, 6754, 2] */
function _fun53234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6930:6, offset: 0x01342b7a, size: 201 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).Image;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({radio: {'width': 22,
'height': 22}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRadio.tsx');
exports.default = FormRadio;
}
function FormRadio({selected}) { // fn#53235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6930:193, offset: 0x01342c43, size: 86 bytes, params: 2, frame: 17
const styles = useStyles();
return <Image style={styles.radio} source={importDefault(selected ? dependencyMap[4] : dependencyMap[5])} />;
}
@@ -0,0 +1,46 @@
/* Metro module 7990; source: design/void/Form/native/FormRadioGroup.tsx; dependencies: [31, 27, 33, 6748, 7988, 7330, 2] */
function _fun63548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8168:6, offset: 0x01b84d71, size: 170 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 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRadioGroup.tsx');
exports.default = FormRadioGroup;
}
function FormRadioGroup(a0) { // fn#63549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8168:234, offset: 0x01b84e1b, size: 375 bytes, params: 2, frame: 28
var r0;
var items2;
const title = a0.title;
const hasIcons = a0.hasIcons;
const accessibilityLabel = a0.accessibilityLabel;
const children = a0.children;
let value = a0.value;
const hint = a0.hint;
const icon = a0.icon;
const object2 = {'title': 0, 'hasIcons': 0, 'accessibilityLabel': 0, 'children': 0, 'value': 0, 'hint': 0,
'icon': 0};
const value2 = null;
silentSetPrototypeOf(object2, value2, undefined);
const value3 = copyDataProperties({}, a0, object2, undefined);
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
value = <View>{((TableRadioGroup) => <TableRadioGroup defaultValue={value} hasIcons={hasIcons} title={title} accessibilityLabel={accessibilityLabel}>{children}</TableRadioGroup>)((require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup)}</View>;
items2 = [value];
items2[1] = value2 != hint ? <View style={{marginTop: 8}}>{hint}</View> : value2;
value = <View style={{'marginBottom': 24, 'marginHorizontal': 12}}>{items2}</View>;
r0 = value;
} else {
value = importDefault(7330) /* metro dependency 7330: FormSection */;
value = ((Component) => <Component title={title} accessibilityRole="radiogroup" accessibilityLabel={title} hint={hint} icon={icon} {...value3}>{children}</Component>)(value);
r0 = value;
}
return r0;
}
@@ -0,0 +1,52 @@
/* Metro module 7986; source: design/void/Form/native/FormRadioRow.tsx; dependencies: [31, 33, 6748, 3874, 7987, 6746, 6752, 2] */
function _fun63525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8164:6, offset: 0x01b83e2b, size: 140 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 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRadioRow.tsx');
exports.default = FormRadioRow;
}
function FormRadioRow(a0) { // fn#63526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8164:204, offset: 0x01b83eb7, size: 429 bytes, params: 2, frame: 26
var r11;
var r0;
const selected = a0.selected;
let align = a0.align;
align = align === undefined ? 'left' : align;
const leading = a0.leading;
let value = a0.value;
const onPress = a0.onPress;
const style = a0.style;
const object2 = {'selected': 0, 'align': 0, 'leading': 0, 'value': 0, 'onPress': 0, 'style': 0};
const value2 = null;
silentSetPrototypeOf(object2, value2, undefined);
const value3 = copyDataProperties({}, a0, object2, style);
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
const value5 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: selected});
if (value5) {
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
value = <TableRadioRow icon={leading} value={value} legacyCompat_selected={selected} legacyCompat_onPress={onPress} {...value3} />;
r0 = value;
} else {
value = importDefault(6746) /* metro dependency 6746: FormRow */;
var valueProps = {...value3};
valueProps['style'] = style;
valueProps['onPress'] = onPress;
valueProps['accessibilityRole'] = accessibilityRole;
valueProps['accessibilityState'] = accessibilityState;
r11 = align !== 'right' ? value2 : ((Component) => <Component selected={selected} />)(importDefault(6752) /* metro dependency 6752: FormRadio */);
valueProps['trailing'] = r11;
r11 = align !== 'left' ? leading : ((Component) => <Component selected={selected} />)(importDefault(6752) /* metro dependency 6752: FormRadio */);
valueProps['leading'] = r11;
value = ((Component) => <Component {...valueProps} />)(value);
r0 = value;
}
return r0;
}
+178
View File
@@ -0,0 +1,178 @@
/* Metro module 6746; source: design/void/Form/native/FormRow.tsx; dependencies: [31, 27, 33, 4501, 697, 6747, 6748, 6238, 6749, 6750, 5278, 6751, 6752, 6755, 6756, 6757, 2] */
function _fun53218(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:6, offset: 0x01341b70, size: 369 bytes, params: 8, frame: 21
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
value2.Platform;
const env0_4 = value2.View;
const value3 = require(33) /* metro dependency 33 */;
const env0_5 = value3.jsx;
const env0_6 = value3.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun53220);
value = value.forwardRef(_fun53222);
Object = global.Object;
value = Object.assign({}, value, {Arrow: importDefault(6751) /* metro dependency 6751: FormArrow */,
Label: importDefault(6749) /* metro dependency 6749: FormLabel */,
SubLabel: importDefault(6750) /* metro dependency 6750: FormSubLabel */,
Radio: importDefault(6752) /* metro dependency 6752: FormRadio */,
Checkbox: importDefault(6755) /* metro dependency 6755: FormCheckbox */,
Checkmark: importDefault(6756) /* metro dependency 6756: FormCheckmark */,
Icon: importDefault(6757) /* metro dependency 6757: FormIcon */});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormRow.tsx');
exports.default = value;
}
function renderCustom(a0) { // fn#53219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:651, offset: 0x01341ce1, size: 55 bytes, params: 2, frame: 15
var r1;
var r0;
var binding;
let value = a0;
const value2 = null;
if (value2 == value) {
r0 = value2;
} else {
binding = env0_3;
if (binding.isValidElement(value)) {
r1 = value;
} else {
value = ((Component) => <Component />)(value);
r1 = value;
}
r0 = r1;
}
return r0;
}
function _fun53220() { // fn#53220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:189, offset: 0x01341d18, size: 189 bytes, params: 1, frame: 16
const closure = function() {
var value = a0;
value = 16 + (value !== undefined ? value : 0);
return {paddingHorizontal: value, paddingVertical: value};
};
const object3 = {};
const object5 = {'flexDirection': 'row', 'justifyContent': 'flex-start', 'alignItems': 'center'};
copyDataProperties(object5, closure(), undefined);
object3.container = object5;
object3.label = {'flexShrink': 1, 'flexGrow': 1, 'flexBasis': '30%'};
object3.leading = {'flexGrow': 0, 'marginRight': 16};
object3.trailing = {'marginLeft': 'auto', 'paddingLeft': 16, 'textAlign': 'right', 'flexShrink': 0};
object3.disabled = {opacity: 0.5};
const object6 = {};
const BORDER_FEEDBACK_CRITICAL = importDefault(dependencyMap[4]).colors.BORDER_FEEDBACK_CRITICAL;
object6.borderColor = BORDER_FEEDBACK_CRITICAL;
object6.borderWidth = 2;
copyDataProperties(object6, closure(-2), dependencyMap);
object3.error = object6;
return object3;
}
function _fun53222({label, leading, onPress, onLongPress, onPressOut, DEPRECATED_style, subLabel, trailing, disabled, hasError, accessible, accessibilityLabel, accessibilityHint, accessibilityRole, accessibilityState, accessibilityActions, onAccessibilityAction, onAccessibilityTap, numberOfLines, style, labelStyle, trailingWrapperStyle, leadingStyle, delayLongPress, start, end, variant}, a1) { // fn#53222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:746, offset: 0x01341df4, size: 993 bytes, params: 3, frame: 47
var r29;
var r1;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const env0_3 = trailing;
let value = undefined;
disabled = !(disabled === value) && disabled;
hasError = !(hasError === value) && hasError;
accessible = accessible === value || accessible;
start = !(start === value) && start;
end = !(end === value) && end;
const closure = renderInnerView;
const styles = useStyles();
const binding = env0_3;
let useContext = binding.useContext;
const FormContext = (require(6747) /* metro dependency 6747: Form */).FormContext;
const isForm = Reflect.apply(useContext, binding, [FormContext]).isForm;
useContext = env0_3.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
variant={variant}
start={start}
end={end}
label={typeof label === 'function' || env0_3.isValidElement(label) ? renderCustom(label) : label}
subLabel={typeof subLabel === 'function' || env0_3.isValidElement(subLabel) ? renderCustom(subLabel) : subLabel ?? null}
icon={typeof leading === 'function' || env0_3.isValidElement(leading) ? renderCustom(leading) : leading}
trailing={typeof trailing === 'function' || env0_3.isValidElement(trailing) ? renderCustom(trailing) : trailing}
disabled={disabled}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
accessibilityHint={accessibilityHint}
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
accessibilityActions={accessibilityActions}
onAccessibilityAction={onAccessibilityAction}
onAccessibilityTap={onAccessibilityTap}
labelLineClamp={numberOfLines}
delayLongPress={delayLongPress}
onPress={onPress}
onLongPress={onLongPress}
/>
);
}
const object2 = {disabled: disabled};
copyDataProperties(object2, accessibilityState, undefined);
if (onPress != null) {
var pressableHighlightProps = {ref: a1, style: [styles.container, DEPRECATED_style, style,
hasError && styles.error,
disabled ? styles.disabled : null], disabled: disabled, accessible: true,
accessibilityRole: accessibilityRole ?? 'button', accessibilityState: object2,
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction};
r29 = disabled ? value : onAccessibilityTap;
pressableHighlightProps.onAccessibilityTap = r29;
r29 = disabled ? value : onPress;
pressableHighlightProps.onPress = r29;
pressableHighlightProps.onLongPress = onLongPress;
pressableHighlightProps.onPressOut = onPressOut;
pressableHighlightProps.delayLongPress = delayLongPress;
pressableHighlightProps.unstable_pressDelay = isForm ? 130 : value;
value = <PressableHighlight {...pressableHighlightProps}>{closure()}</PressableHighlight>;
r1 = value;
} else if (onLongPress != null) {
var pressableHighlightProps = {ref: a1, style: [styles.container, DEPRECATED_style, style,
hasError && styles.error,
disabled ? styles.disabled : null], disabled: disabled, accessible: true,
accessibilityRole: accessibilityRole ?? 'button', accessibilityState: object2,
accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint,
accessibilityActions: accessibilityActions, onAccessibilityAction: onAccessibilityAction};
r29 = disabled ? value : onAccessibilityTap;
pressableHighlightProps.onAccessibilityTap = r29;
r29 = disabled ? value : onPress;
pressableHighlightProps.onPress = r29;
pressableHighlightProps.onLongPress = onLongPress;
pressableHighlightProps.onPressOut = onPressOut;
pressableHighlightProps.delayLongPress = delayLongPress;
pressableHighlightProps.unstable_pressDelay = isForm ? 130 : value;
value = <PressableHighlight {...pressableHighlightProps}>{closure()}</PressableHighlight>;
r1 = value;
} else {
disabled = disabled ? styles.disabled : null;
r1 = <View ref={a1} style={[styles.container, DEPRECATED_style, style, hasError && styles.error,
disabled]} accessible={accessible} accessibilityRole={accessibilityRole} accessibilityState={object2} accessibilityLabel={accessibilityLabel} accessibilityHint={accessibilityHint} accessibilityActions={accessibilityActions} onAccessibilityAction={onAccessibilityAction} onAccessibilityTap={onAccessibilityTap}>{closure()}</View>;
}
return r1;
}
function renderInnerView() { // fn#53223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6924:1884, offset: 0x013421d5, size: 586 bytes, params: 1, frame: 25
const r13 = typeof label === 'function' || env1_3.isValidElement(label) ? renderCustom(label) : ((Component) => <Component numberOfLines={numberOfLines} text={label} style={labelStyle} />)(importDefault(6749) /* metro dependency 6749: FormLabel */);
const r12 = typeof subLabel === 'function' || env1_3.isValidElement(subLabel) ? renderCustom(subLabel) : subLabel != null ? ((Component) => <Component text={subLabel} numberOfLines={numberOfLines} />)(importDefault(6750) /* metro dependency 6750: FormSubLabel */) : null;
const r4 = typeof leading === 'function' || env1_3.isValidElement(leading) ? renderCustom(leading) : leading;
const r9 = typeof trailing === 'function' || env1_3.isValidElement(trailing) ? renderCustom(trailing) : trailing;
const Fragment = env1_3.Fragment;
leadingBinding = leading;
const value18 = null;
const items2 = [value18 != leadingBinding ? <View style={[styles.leading, leadingStyle]}>{r4}</View> : value18];
items2[1] = <View style={styles.label}>{r13}{r12}</View>;
items2[2] = value18 != trailing ? <View style={[styles.trailing, trailingWrapperStyle]}>{r9}</View> : value18;
return (
<Fragment>
{items2}
</Fragment>
);
}
@@ -0,0 +1,110 @@
/* Metro module 7330; source: design/void/Form/native/FormSection.tsx; dependencies: [31, 27, 1309, 33, 4501, 697, 6748, 6746, 7331, 6231, 7332, 477, 2] */
function _fun59028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:6, offset: 0x016deb6d, size: 335 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
value.StyleSheet;
value.Platform;
const env0_5 = (require(1309) /* metro dependency 1309: FormConstants */).TitleStyleType;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
const env0_8 = Reflect.apply(createStyles, value, [{titledSectionHeader: {'borderTopWidth': 1, 'borderColor': null,
'marginTop': 16, borderColor: BORDER_SUBTLE}, titledSectionNoBorder: {marginTop: 24},
titledSectionNoBorderOrMargin: {}, emptySectionHeader: {marginTop: 24}, sectionBody: {},
sectionBodyIOSBorder: {}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSection.tsx');
exports.default = FormSection;
}
function hasTrailingError(a0) { // fn#59029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:465, offset: 0x016decbc, size: 113 bytes, params: 2, frame: 13
var props;
const property = a0[a0.length - 1];
const binding = env0_3;
if (binding.isValidElement(property)) {
if (property.type === (importDefault(7331) /* metro dependency 7331: FormDivider */)) {
return false;
}
props = property.props;
if (props == null) {
return false;
}
props = property.props;
return 'error' in props && props.error != null;
}
return false;
}
function FormSection({icon, children, thinTitle, inset, title, description, accessibilityRole, accessibilityLabel, uppercaseTitle, titleStyleType = TitleStyleType.DEFAULT, titleViewStyle, titleTextStyle, sectionBodyStyle, wrapperStyle, error, hint, hasIcons}) { // fn#59030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:711, offset: 0x016ded2d, size: 857 bytes, params: 2, frame: 39
var r20;
var moduleValue;
var value10;
var value11;
var value12;
var value13;
var value14;
var items4;
inset = !(inset === undefined) && inset;
const styles = useStyles();
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
value10 = env0_3.Children.toArray(children);
value11 = value10.find(_fun59031);
value12 = null;
value13 = value12 != value11;
value14 = value10.filter(_fun59032);
items4 = [<View style={{paddingHorizontal: 12}}>{((TableRowGroup) => <TableRowGroup title={title} hasIcons={value12 == hasIcons ? value13 : hasIcons} hasTrailingText={hasTrailingError(value14)}>{value14}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup)}</View>];
items4[1] = value12 != hint ? <View style={{marginTop: 8}}>{hint}</View> : value12;
return (
<View style={{marginBottom: 24}}>
{items4}
</View>
);
}
const r10 = title != null ? ((Component) => <Component textStyle={titleTextStyle} viewStyle={titleViewStyle} title={'' + title + ' ' + (error != null ? '(' + error + ')' : '')} icon={icon} error={error != null} thinTitle={thinTitle} uppercaseTitle={uppercaseTitle} inset={inset} />)(importDefault(7332) /* metro dependency 7332: FormTitle */) : undefined;
const emptySectionHeader = styles.emptySectionHeader;
if (r10 == null) {
r20 = emptySectionHeader;
} else if (TitleStyleType.DEFAULT === titleStyleType) {
r20 = styles.titledSectionHeader;
} else if (TitleStyleType.ANDROID_NO_BORDER === titleStyleType) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
r20 = moduleValue.isAndroid() ? styles.titledSectionNoBorder : styles.titledSectionHeader;
} else {
r20 = TitleStyleType.NO_BORDER_OR_MARGIN !== titleStyleType ? emptySectionHeader : styles.titledSectionNoBorderOrMargin;
}
return (
<View
style={[r20, wrapperStyle]}
accessibilityRole={accessibilityRole ?? 'list'}
accessibilityLabel={accessibilityLabel ?? title}
>
{r10}
{description}
<View style={[styles.sectionBody, !inset && styles.sectionBodyIOSBorder, sectionBodyStyle]}>
{children}
</View>
{hint}
</View>
);
}
function _fun59031(a0) { // fn#59031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:1081, offset: 0x016df086, size: 86 bytes, params: 2, frame: 14
const value = environment.__proto__;
return env1_3.isValidElement(a0) && a0.type === (importDefault(6746) /* metro dependency 6746: FormRow */) && global.Boolean(a0.props.leading);
}
function _fun59032(a0) { // fn#59032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7508:1162, offset: 0x016df0dc, size: 63 bytes, params: 2, frame: 13
const value = environment.__proto__;
const isValidElement2 = env1_3.isValidElement(a0);
return isValidElement2 ? a0.type !== (importDefault(7331) /* metro dependency 7331: FormDivider */) : !!isValidElement2;
}
@@ -0,0 +1,128 @@
/* Metro module 7982; source: design/void/Form/native/FormSelect.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 3874, 5278, 4573, 2] */
function _fun63506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:6, offset: 0x01b82fcf, size: 583 bytes, params: 8, frame: 24
var object3;
const env0_0 = require;
const extractKey = function({value}) {
return '' + value;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.View;
const StyleSheet = value.StyleSheet;
const env0_4 = value.FlatList;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
let createStyles = value.createStyles;
object3 = {};
const object5 = {'minWidth': 95, 'height': 36, 'margin': 4, 'borderRadius': 3, 'justifyContent': 'center',
'alignItems': 'center', 'paddingHorizontal': 10, 'borderWidth': null, 'shadowColor': null, 'shadowOffset': null,
'shadowOpacity': 0.12, 'shadowRadius': 6};
object5.borderWidth = StyleSheet.hairlineWidth;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object5.shadowColor = BLACK;
object5.shadowOffset = {'width': 0, 'height': 2};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object5.backgroundColor = BACKGROUND_BASE_LOWEST;
object3.button = object5;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object3.buttonSelected = {backgroundColor: BACKGROUND_BRAND};
const object7 = {};
let PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object7.fontFamily = PRIMARY_SEMIBOLD;
object7.fontSize = 14;
let TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object7.color = TEXT_MUTED;
object3.label = object7;
const BRAND_100 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_100;
object3.labelSelected = {color: BRAND_100};
const env0_7 = Reflect.apply(createStyles, value, [object3]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object8 = {};
PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object8.fontFamily = PRIMARY_SEMIBOLD;
object8.fontSize = 13;
TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object8.color = TEXT_MUTED;
const env0_8 = Reflect.apply(createStyles, value, [{row: {'paddingVertical': 12, 'paddingHorizontal': 16},
label: object8, optionsWrapper: {'marginHorizontal': -16, 'paddingTop': 20, 'marginTop': -20,
'paddingBottom': 8, 'marginBottom': -8}, optionsContainer: {paddingHorizontal: 12}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSelect.tsx');
exports.default = FormSelect;
}
function OptionButton({item, selected, onPress}) { // fn#63507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:726, offset: 0x01b83216, size: 312 bytes, params: 2, frame: 24
const styles = useStyles();
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: selected});
const value3 = env0_2.useCallback(function() {
if (onPress != null) {
onPress(item);
}
}, [item, onPress]);
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const r6 = item.descriptiveLabel ?? item.label;
const items2 = [styles.button];
items2[1] = selected ? styles.buttonSelected : null;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<PressableOpacity
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
accessibilityLabel={r6}
style={items2}
onPress={value3}
>
<Text variant="text-sm/semibold" style={selected ? styles.labelSelected : styles.label}>
{item.label.toUpperCase()}
</Text>
</PressableOpacity>
);
}
function FormSelect({label, options, value, onChange, onScrollBeginDrag}) { // fn#63510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:1648, offset: 0x01b8338e, size: 264 bytes, params: 2, frame: 25
const styles = useStyles();
return (
<View style={styles.row}>
{label != null && ((Text) => <Text style={styles.label} variant="heading-md/medium" accessibilityRole="header">{label.toUpperCase()}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
<FlatList
style={styles.optionsWrapper}
contentContainerStyle={styles.optionsContainer}
data={options}
extraData={value}
keyExtractor={extractKey}
renderItem={renderItem_63511}
showsHorizontalScrollIndicator={false}
horizontal
onScrollBeginDrag={onScrollBeginDrag}
/>
</View>
);
}
function FormSelectRenderItem({item}) { // fn#63511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:2016, owner: FormSelect.renderItem, offset: 0x01b83496, size: 67 bytes, params: 2, frame: 14
return (
<OptionButton
item={item}
selected={item.value === value}
onPress={onPress_63512}
/>
);
}
function renderItemOnPress({value}) { // fn#63512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8160:2094, owner: FormSelect.renderItem.onPress, offset: 0x01b834d9, size: 39 bytes, params: 2, frame: 13
var r0;
if (onChange == null) {
r0 = undefined;
} else {
value = onChange(value);
r0 = value;
}
return r0;
}
@@ -0,0 +1,43 @@
/* Metro module 7991; source: design/void/Form/native/FormSliderRow.tsx; dependencies: [31, 27, 33, 4501, 6748, 6239, 4573, 7992, 6746, 2] */
function _fun63550(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8169:6, offset: 0x01b84f92, size: 246 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = value.Fragment;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({labels: {'flexDirection': 'row',
'justifyContent': 'space-between', 'alignItems': 'center'}, slider: {'marginStart': -4, 'marginTop': 8}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSliderRow.tsx');
exports.default = FormSliderRow;
}
function FormSliderRow(a0) { // fn#63551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8169:388, offset: 0x01b85088, size: 387 bytes, params: 2, frame: 26
var r0;
var Card;
var items3;
const label = a0.label;
const trailing = a0.trailing;
const value = Object.create(null);
value.label = 0;
value.trailing = 0;
const value2 = copyDataProperties({}, a0, value, label);
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
const value4 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
const styles = useStyles();
if (value4) {
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
items3 = [<View style={styles.labels}>{((Text) => <Text variant="text-md/semibold" color="mobile-text-heading-primary">{label}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}{trailing}</View>];
items3[1] = ((Component) => <Component {...value2} {...{['style']: styles.slider}} />)(importDefault(7992) /* metro dependency 7992 */);
r0 = <Card>{items3}</Card>;
} else {
r0 = <>{((Component) => <Component label={label} trailing={trailing} />)(importDefault(6746) /* metro dependency 6746: FormRow */)}{((Component) => <Component {...value2} />)(importDefault(7992) /* metro dependency 7992 */)}</>;
}
return r0;
}
@@ -0,0 +1,27 @@
/* Metro module 6750; source: design/void/Form/native/FormSubLabel.tsx; dependencies: [31, 33, 4573, 2] */
function _fun53230(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6928:6, offset: 0x01342831, size: 129 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSubLabel.tsx');
exports.default = FormSubLabel;
}
function FormSubLabel({text, numberOfLines, style, accessible, color}) { // fn#53231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6928:202, offset: 0x013428b2, size: 114 bytes, params: 2, frame: 19
color = color === undefined ? 'text-subtle' : color;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
color={color}
variant="text-xs/normal"
lineClamp={numberOfLines}
style={style}
accessible={accessible}
>
{text}
</Text>
);
}
@@ -0,0 +1,48 @@
/* Metro module 7983; source: design/void/Form/native/FormSwitch.tsx; dependencies: [31, 27, 33, 4501, 697, 4048, 4002, 2] */
function _fun63513(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8161:6, offset: 0x01b83500, size: 237 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).Switch;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const REDESIGN_INPUT_CONTROL_SELECTED = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_INPUT_CONTROL_SELECTED;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{switch: {marginVertical: -5},
track: {color: REDESIGN_INPUT_CONTROL_SELECTED}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSwitch.tsx');
exports.default = FormSwitch_63514;
}
function FormSwitch_63514({value, disabled, style, borderColor, onValueChange, accessible, accessibilityLabel, accessibilityHint, renderIosBackground, tintColor}) { // fn#63514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8161:331, offset: 0x01b835ed, size: 332 bytes, params: 2, frame: 26
var r12;
var moduleValue;
const r7 = value !== undefined && value;
const r8 = disabled !== undefined && disabled;
const r13 = renderIosBackground !== undefined && renderIosBackground;
const styles = useStyles();
const value4 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const r14 = tintColor ?? styles.track.color;
if (borderColor != null) {
r12 = borderColor;
} else {
moduleValue = require(4002) /* metro dependency 4002: shared */;
r12 = moduleValue.isThemeDark(value4) ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400 : undefined;
}
return (
<Switch
accessible={accessible}
trackColor={{true: r14, false: r12}}
ios_backgroundColor={r7 !== false ? undefined : r13 ? r12 : undefined}
value={r7}
disabled={r8}
style={[styles.switch, style]}
onValueChange={onValueChange}
accessibilityState={{disabled: r8, selected: r7}}
accessibilityLabel={accessibilityLabel}
accessibilityHint={accessibilityHint}
/>
);
}
@@ -0,0 +1,92 @@
/* Metro module 7985; source: design/void/Form/native/FormSwitchRow.tsx; dependencies: [57, 31, 27, 33, 4501, 477, 6746, 6749, 7983, 6748, 6808, 2] */
function _fun63518(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:6, offset: 0x01b8398f, size: 238 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({trailing: {'flex': 1,
'flexDirection': 'row', 'width': '100%', 'alignItems': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormSwitchRow.tsx');
exports.default = FormSwitchRowContainer;
}
function FormSwitchRow(a0) { // fn#63519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:255, offset: 0x01b83a7d, size: 619 bytes, params: 2, frame: 36
const onValueChange = a0.onValueChange;
let value = a0.value;
let disabled = a0.disabled;
const value2 = undefined;
disabled = !(disabled === value2) && disabled;
const label = a0.label;
const subLabel = a0.subLabel;
const accessibilityHint = a0.accessibilityHint;
const trailing = a0.trailing;
const numberOfLines = a0.numberOfLines;
const switchProps = a0.switchProps;
const r7 = switchProps !== value2 ? switchProps : {};
const object2 = {'onValueChange': 0, 'value': 0, 'disabled': 0, 'label': 0, 'subLabel': 0, 'accessibilityHint': 0,
'trailing': 0, 'numberOfLines': 0, 'switchProps': 0};
silentSetPrototypeOf(object2, null, undefined);
const value4 = copyDataProperties({}, a0, object2, undefined);
var env0_3Binding = value2;
const styles = useStyles();
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
var [property, env0_3] = env0_3Binding(env0_4.useState(value), 2);
env0_4.useEffect(_fun63520, [value]);
const r1 = typeof label !== 'string' ? value2 : label;
const r12 = r1 != null && typeof subLabel === 'string' ? r1 + (' ' + subLabel) : r1;
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
const defaultImportProps = {...value4};
defaultImportProps['label'] = <View style={styles.trailing}>{((Component) => <Component numberOfLines={numberOfLines} text={label} />)(importDefault(6749) /* metro dependency 6749: FormLabel */)}{trailing != null && trailing}</View>;
defaultImportProps['subLabel'] = subLabel;
defaultImportProps['disabled'] = disabled;
defaultImportProps['onPress'] = isAndroid2 ? function() {
if (onValueChange != null && value != null) {
onValueChange(!value);
}
} : value2;
defaultImportProps['accessible'] = true;
defaultImportProps['onAccessibilityTap'] = FormSwitchRowOnAccessibilityTap;
defaultImportProps['accessibilityRole'] = 'switch';
defaultImportProps['accessibilityLabel'] = r12;
defaultImportProps['accessibilityState'] = {disabled: disabled, checked: property};
defaultImportProps['accessibilityHint'] = accessibilityHint;
value = ((Component) => <Component disabled={disabled} value={value} onValueChange={onValueChange} {...r7} />)(importDefault(7983) /* metro dependency 7983: FormSwitch */);
defaultImportProps['trailing'] = value;
return <FormRow {...defaultImportProps} />;
}
function FormSwitchRowContainer(a0) { // fn#63524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:1110, offset: 0x01b83d7b, size: 176 bytes, params: 2, frame: 19
var r0;
var TableSwitchRow;
var value;
const binding = env0_4;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
if (Reflect.apply(useContext, binding, [RedesignCompatContext])) {
var viewBindingProps = {style: a0.DEPRECATED_style};
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
value = a0.value;
value = <View {...viewBindingProps}><TableSwitchRow value={value} onValueChange={a0.onValueChange} {...a0} /></View>;
r0 = value;
} else {
r0 = <FormSwitchRow {...a0} />;
}
return r0;
}
function FormSwitchRowOnAccessibilityTap() { // fn#63522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:797, owner: FormSwitchRow.onAccessibilityTap, offset: 0x01b83d2d, size: 43 bytes, params: 1, frame: 11
env0_3(!env0_2);
global.setTimeout(_fun63523);
}
function _fun63523() { // fn#63523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8163:826, offset: 0x01b83d58, size: 35 bytes, params: 1, frame: 11
if (onValueChange != null) {
onValueChange(!env1_2);
}
}
@@ -0,0 +1,47 @@
/* Metro module 7984; source: design/void/Form/native/FormText.tsx; dependencies: [31, 33, 4501, 6235, 697, 1305, 2] */
function _fun63515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8162:6, offset: 0x01b83739, size: 371 bytes, params: 8, frame: 21
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun63516);
object2 = {};
const BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
object2.BRAND = {color: BRAND_500};
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object2.RED = {color: RED_400};
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object2.GREEN = {color: GREEN_360};
const YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
object2.YELLOW = {color: YELLOW_300};
const BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
object2.LINK = {color: BLUE_345};
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object2.WHITE = {color: WHITE};
value = value.forwardRef(_fun63517);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormText.tsx');
exports.default = value;
exports.FormTextColors = object2;
}
function _fun63516(a0) { // fn#63516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8162:144, offset: 0x01b838ac, size: 94 bytes, params: 2, frame: 14
const DARK_PRIMARY_100_LIGHT_PRIMARY_500 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_100_LIGHT_PRIMARY_500;
const value = a0 === 'small';
const value2 = 16;
return {primary: {color: DARK_PRIMARY_100_LIGHT_PRIMARY_500}, text: {fontSize: value ? 12 : value2,
lineHeight: value ? value2 : 22}};
}
function _fun63517({children, size, color, style}, a1) { // fn#63517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8162:581, offset: 0x01b8390a, size: 133 bytes, params: 3, frame: 19
size = size === undefined ? 'medium' : size;
const styles = useStyles(size);
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
return (
<LegacyText ref={a1} style={[styles.text, color ?? styles.primary, style]}>
{children}
</LegacyText>
);
}
@@ -0,0 +1,69 @@
/* Metro module 7332; source: design/void/Form/native/FormTitle.tsx; dependencies: [31, 27, 661, 33, 477, 4501, 697, 1305, 2] */
function _fun59036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7510:6, offset: 0x016df458, size: 420 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_2 = value.View;
value.Platform;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
const r3 = value ? 48 : 58;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
const r1 = value ? 56 : 48;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {titleWrapper: {'flexDirection': 'row', 'justifyContent': 'space-between', 'paddingTop': 16,
'paddingBottom': 16}};
object2.horizontalPadding = {paddingHorizontal: 16};
object2.thinTitle = {paddingTop: 26};
const object3 = {};
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object3.fontFamily = PRIMARY_SEMIBOLD;
object3.fontSize = 13;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
object3.color = TEXT_SUBTLE;
object2.titleText = object3;
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object2.error = {color: RED_400};
const env0_5 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FormTitle.tsx');
exports.default = FormTitle;
exports.FORM_TITLE_HEIGHT = r3;
exports.THIN_FORM_TITLE_HEIGHT = r1;
}
function FormTitle({title, icon, numberOfLines, uppercaseTitle, thinTitle, error, inset, viewStyle, textStyle}) { // fn#59037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7510:640, offset: 0x016df5fc, size: 281 bytes, params: 2, frame: 26
uppercaseTitle = uppercaseTitle === undefined || uppercaseTitle;
thinTitle = !(thinTitle === undefined) && thinTitle;
error = !(error === undefined) && error;
inset = !(inset === undefined) && inset;
const styles = useStyles();
const items2 = [styles.titleWrapper];
thinTitle = thinTitle && styles.thinTitle;
items2[1] = thinTitle;
items2[2] = !inset && styles.horizontalPadding;
items2[3] = viewStyle;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
error = error && styles.error;
return (
<View style={items2}>
<LegacyText
style={[styles.titleText, textStyle, error]}
numberOfLines={numberOfLines}
accessibilityRole="header"
>
{uppercaseTitle ? title.toUpperCase() : title}
</LegacyText>
{icon}
</View>
);
}
@@ -0,0 +1,25 @@
/* Metro module 8970; source: design/void/Form/native/FreeFormErrorLabel.tsx; dependencies: [31, 33, 3862, 4002, 4573, 2] */
function _fun69917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9155:6, offset: 0x01ce8561, size: 135 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormErrorLabel.tsx');
exports.default = Label;
}
function Label({children, style}) { // fn#69918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9155:210, offset: 0x01ce85e8, size: 138 bytes, params: 2, frame: 20
env0_2.useEffect(_fun69919, [(require(3862) /* metro dependency 3862: native */).getNodeText(children)]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={style}
variant="text-xs/medium"
color="text-feedback-critical"
>
{children}
</Text>
);
}
@@ -0,0 +1,105 @@
/* Metro module 8967; source: design/void/Form/native/FreeFormInputGroup.tsx; dependencies: [31, 27, 33, 4501, 477, 6748, 7981, 1305, 8968, 8969, 8970, 4573, 2] */
function _fun69905(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9152:6, offset: 0x01ce7963, size: 264 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_4 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_5 = value2.jsx;
const env0_6 = value2.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({label: {marginBottom: 8},
input: {'flexGrow': 1, 'marginBottom': 8}, error: {marginBottom: 8}, hint: {marginBottom: 8}});
value = value.forwardRef(_fun69906);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormInputGroup.tsx');
exports.default = value;
}
function _fun69906(a0, a1) { // fn#69906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9152:292, offset: 0x01ce7a6b, size: 823 bytes, params: 3, frame: 35
var r10;
var r20;
var r22;
var moduleValue3;
const style = a0.style;
const label = a0.label;
const error = a0.error;
let value = a0.value;
const hint = a0.hint;
const textStyle = a0.textStyle;
let enableAndroidSanitizedInputWorkaround = a0.enableAndroidSanitizedInputWorkaround;
const value2 = undefined;
enableAndroidSanitizedInputWorkaround = !(enableAndroidSanitizedInputWorkaround === value2) && enableAndroidSanitizedInputWorkaround;
const secureTextEntry = a0.secureTextEntry;
const keyboardType = a0.keyboardType;
const accessibilityLabel = a0.accessibilityLabel;
const object2 = {'style': 0, 'label': 0, 'error': 0, 'value': 0, 'hint': 0, 'textStyle': 0,
'enableAndroidSanitizedInputWorkaround': 0, 'secureTextEntry': 0, 'keyboardType': 0, 'accessibilityLabel': 0};
const value4 = null;
silentSetPrototypeOf(object2, value4, undefined);
const value5 = copyDataProperties({}, a0, object2, undefined);
const styles = useStyles();
let r5 = enableAndroidSanitizedInputWorkaround && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
r5 = !r5 ? secureTextEntry : r5;
const r6 = enableAndroidSanitizedInputWorkaround && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'visible-password' : keyboardType;
const binding = env0_3;
const useContext = binding.useContext;
const RedesignCompatContext = (require(6748) /* metro dependency 6748: RedesignCompatNative */).RedesignCompatContext;
const value8 = Reflect.apply(useContext, binding, [RedesignCompatContext]);
const value9 = binding.useId();
if (value8) {
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
return (
<TextInput
containerStyle={style}
value={value}
label={label}
errorMessage={error}
description={hint}
placeholder={value5.placeholder}
onChange={value5.onChangeText}
isClearable={value5.clearButtonVisibility !== (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.WITH_CONTENT}
keyboardType={r6}
secureTextEntry={r5}
autoCapitalize={value5.autoCapitalize}
/>
);
}
const items2 = [value4 != label ? ((Component) => <Component style={styles.label} nativeID={value9}>{label}</Component>)(importDefault(8968) /* metro dependency 8968: FreeFormLabel */) : value4];
const FreeFormTextInput = importDefault(8969) /* metro dependency 8969: FreeFormTextInput */;
const defaultImport2Props = {...value5};
if (value4 != accessibilityLabel) {
r22 = accessibilityLabel;
} else {
if (value4 == label) {
r20 = label;
} else {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
r20 = moduleValue3.isAndroid() ? value2 : label;
}
r22 = r20;
}
defaultImport2Props['accessibilityLabel'] = r22;
defaultImport2Props['accessibilityLabelledBy'] = value9;
defaultImport2Props['error'] = value4 != error;
defaultImport2Props['ref'] = a1;
defaultImport2Props['value'] = value;
defaultImport2Props['secureTextEntry'] = r5;
defaultImport2Props['keyboardType'] = r6;
defaultImport2Props['style'] = [styles.input, textStyle];
items2[1] = <FreeFormTextInput {...defaultImport2Props} />;
if (value4 != error) {
value = importDefault(8970) /* metro dependency 8970: FreeFormErrorLabel */;
value = ((Component) => <Component style={styles.error}>{error}</Component>)(value);
r10 = value;
} else {
r10 = value4;
}
items2[2] = r10;
items2[3] = value4 != hint ? ((Text) => <Text style={styles.hint} variant="text-xs/medium" color="text-muted">{hint}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value4;
return (
<View style={style}>
{items2}
</View>
);
}
@@ -0,0 +1,25 @@
/* Metro module 8968; source: design/void/Form/native/FreeFormLabel.tsx; dependencies: [31, 33, 4573, 2] */
function _fun69907(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9153:6, offset: 0x01ce7da2, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormLabel.tsx');
exports.default = FreeFormLabel;
}
function FreeFormLabel({children, style, nativeID}) { // fn#69908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9153:203, offset: 0x01ce7e25, size: 90 bytes, params: 2, frame: 16
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={style}
variant="text-sm/semibold"
color="text-muted"
nativeID={nativeID}
>
{children}
</Text>
);
}
@@ -0,0 +1,146 @@
/* Metro module 8969; source: design/void/Form/native/FreeFormTextInput.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 1244, 1305, 8523, 44, 2] */
function _fun69909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:6, offset: 0x01ce7e7f, size: 497 bytes, params: 8, frame: 24
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_4 = value2.TouchableWithoutFeedback;
const env0_5 = value2.View;
const env0_6 = value2.TouchableOpacity;
const value3 = require(33) /* metro dependency 33 */;
const env0_7 = value3.jsx;
const env0_8 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'backgroundColor': null, 'height': 48, 'borderWidth': 1, 'borderColor': null, 'borderRadius': null,
'paddingRight': 6, 'paddingLeft': 12, 'flexDirection': 'row', 'alignItems': 'center'};
let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object4.borderColor = BACKGROUND_BASE_LOWEST;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object3.container = object4;
object3.onPress = {flexDirection: 'row'};
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object3.input = {flex: 1, color: MOBILE_TEXT_HEADING_PRIMARY};
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object3.error = {borderColor: RED_400};
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object3.closeIcon = {'tintColor': null, 'paddingLeft': 8, 'flexShrink': 0, tintColor: INTERACTIVE_TEXT_DEFAULT};
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object3.placeholder = {color: TEXT_MUTED};
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object3]);
value = value.forwardRef(_fun69911);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/FreeFormTextInput.tsx');
exports.default = value;
}
function ClearButton({onPress}) { // fn#69910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:752, offset: 0x01ce8070, size: 254 bytes, params: 2, frame: 22
const styles = useStyles();
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const VkKicb = (require(1244) /* metro dependency 1244: indexNative */).t.VkKicb;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps = {source: importDefault(8523) /* metro dependency 8523 */, style: styles.closeIcon};
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
const Sizes = Icon2.Sizes;
const MEDIUM = Sizes.MEDIUM;
iconProps.size = MEDIUM;
return (
<PressableOpacity
style={{'borderRadius': 20, 'padding': 8}}
accessibilityRole="button"
accessibilityLabel={Reflect.apply(string, intl, [VkKicb])}
onPress={onPress}
hitSlop={{'top': 8, 'bottom': 8, 'right': 8}}
>
<Icon {...iconProps} />
</PressableOpacity>
);
}
function _fun69911(a0, a1) { // fn#69911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:1105, offset: 0x01ce816e, size: 886 bytes, params: 3, frame: 36
const style = a0.style;
let error = a0.error;
const renderLeadingComponent = a0.renderLeadingComponent;
const renderTrailingComponent = a0.renderTrailingComponent;
const onChangeText = a0.onChangeText;
const env0_1 = a0.onFocus;
const accessibilityRole = a0.accessibilityRole;
const env0_2 = a0.onBlur;
const value = a0.value;
const onPress = a0.onPress;
const env0_3 = onPress;
let editable = a0.editable;
const value2 = undefined;
editable = editable === value2 || editable;
const accessibilityLabel = a0.accessibilityLabel;
const accessibilityHint = a0.accessibilityHint;
let forceAccessibleContainer = a0.forceAccessibleContainer;
forceAccessibleContainer = !(forceAccessibleContainer === value2) && forceAccessibleContainer;
const clearButtonVisibility = a0.clearButtonVisibility;
const r11 = clearButtonVisibility !== value2 ? clearButtonVisibility : (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.WITH_CONTENT;
const object2 = {'style': 0, 'error': 0, 'renderLeadingComponent': 0, 'renderTrailingComponent': 0,
'onChangeText': 0, 'onFocus': 0, 'accessibilityRole': 0, 'onBlur': 0, 'value': 0, 'onPress': 0, 'editable': 0,
'accessibilityLabel': 0, 'accessibilityHint': 0, 'forceAccessibleContainer': 0, 'clearButtonVisibility': 0};
const value6 = null;
silentSetPrototypeOf(object2, value6, undefined);
const value7 = copyDataProperties({}, a0, object2, undefined);
const styles = useStyles();
const binding = env0_3;
const value9 = binding.useRef(value6);
binding.useImperativeHandle(a1, _fun69912);
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
const ALWAYS = ClearButtonVisibility.ALWAYS;
const r10 = ALWAYS === r11 || ((require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.WITH_CONTENT === r11 ? value6 != value && value !== '' : (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility.NEVER !== r11 && value2);
(importDefault(44) /* metro dependency 44 */)(!(value6 != onPress && editable),
'Cannot have an editable input w/ onPress handler');
const value15 = value6 != onPress;
const items3 = [styles.container];
error = error ? styles.error : value6;
items3[1] = error;
items3[2] = style;
const r1 = value15 ? TouchableOpacity : TouchableWithoutFeedback;
const r1Props = {onPress: onPress_69913, style: value15 ? items3 : value6,
accessibilityRole: forceAccessibleContainer ? 'button' : value2, accessible: forceAccessibleContainer,
accessibilityLabel: forceAccessibleContainer ? accessibilityLabel : value2,
accessibilityValue: forceAccessibleContainer ? {text: value} : value2,
accessibilityHint: forceAccessibleContainer ? accessibilityHint : value2};
const viewBindingProps = {style: value15 ? styles.onPress : items3};
const items2 = [value6 == renderLeadingComponent ? value2 : renderLeadingComponent()];
const TextInput = (require(1305) /* metro dependency 1305: native */).TextInput;
items2[1] = <TextInput pointerEvents={value15 ? 'none' : 'auto'} accessibilityRole={accessibilityRole} accessibilityLabel={accessibilityLabel} ref={value9} editable={editable} style={styles.input} numberOfLines={1} multiline={false} value={value} onChangeText={onChangeText} onFocus={function(a0) {
if (onFocus != null) {
onFocus(a0);
}
}} onBlur={function(a0) {
if (onBlur != null) {
onBlur(a0);
}
}} placeholderTextColor={styles.placeholder.color} clearButtonMode="never" {...value7} {...{['importantForAccessibility']: editable ? 'yes' : 'no-hide-descendants'}} {...{['accessibilityElementsHidden']: !editable}} />;
items2[2] = value6 == renderTrailingComponent ? value2 : renderTrailingComponent();
items2[3] = r10 ? <ClearButton onPress={onPress_69916} /> : value6;
return ((Component) => <Component {...r1Props}><View {...viewBindingProps}>{items2}</View></Component>)(r1);
}
function onPress_69913() { // fn#69913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:1851, offset: 0x01ce84e4, size: 59 bytes, params: 1, frame: 10
var current;
if (editable) {
current = env0_5.current;
if (current != null) {
current.focus();
}
}
if (onPress != null) {
onPress();
}
}
function onPress_69916() { // fn#69916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9154:2572, offset: 0x01ce853e, size: 35 bytes, params: 1, frame: 12
return onChangeText?.('');
}
+34
View File
@@ -0,0 +1,34 @@
/* Metro module 7972; source: design/void/Form/native/index.tsx; dependencies: [2, 6747, 6751, 6755, 6756, 7973, 7978, 7331, 7979, 6757, 7980, 6749, 6752, 6746, 7330, 7982, 6750, 7983, 7984, 7332, 7985, 7986, 6745, 7990, 7991, 8001] */
function _fun63456(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8150:6, offset: 0x01b80240, size: 546 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Form/native/index.tsx');
exports.Form = importDefault(6747) /* metro dependency 6747: Form */;
exports.FormArrow = importDefault(6751) /* metro dependency 6751: FormArrow */;
exports.FormCheckbox = importDefault(6755) /* metro dependency 6755: FormCheckbox */;
exports.FormCheckmark = importDefault(6756) /* metro dependency 6756: FormCheckmark */;
exports.FormCTA = importDefault(7973) /* metro dependency 7973: FormCTA */;
exports.FormCTAButton = importDefault(7978) /* metro dependency 7978: FormCTAButton */;
exports.FormDivider = importDefault(7331) /* metro dependency 7331: FormDivider */;
exports.FormHint = importDefault(7979) /* metro dependency 7979: FormHint */;
exports.FormIcon = importDefault(6757) /* metro dependency 6757: FormIcon */;
exports.FormInput = importDefault(7980) /* metro dependency 7980: FormInput */;
exports.FormLabel = importDefault(6749) /* metro dependency 6749: FormLabel */;
exports.FormRadio = importDefault(6752) /* metro dependency 6752: FormRadio */;
exports.FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
exports.FormSection = importDefault(7330) /* metro dependency 7330: FormSection */;
exports.FormSelect = importDefault(7982) /* metro dependency 7982: FormSelect */;
exports.FormSubLabel = importDefault(6750) /* metro dependency 6750: FormSubLabel */;
exports.FormSwitch = importDefault(7983) /* metro dependency 7983: FormSwitch */;
exports.FormText = importDefault(7984) /* metro dependency 7984: FormText */;
const FormTextColors = (require(7984) /* metro dependency 7984: FormText */).FormTextColors;
exports.FormTextColors = FormTextColors;
exports.FormTitle = importDefault(7332) /* metro dependency 7332: FormTitle */;
exports.FormSwitchRow = importDefault(7985) /* metro dependency 7985: FormSwitchRow */;
exports.FormRadioRow = importDefault(7986) /* metro dependency 7986: FormRadioRow */;
exports.FormCheckboxRow = importDefault(6745) /* metro dependency 6745: FormCheckboxRow */;
exports.FormRadioGroup = importDefault(7990) /* metro dependency 7990: FormRadioGroup */;
exports.FormSliderRow = importDefault(7991) /* metro dependency 7991: FormSliderRow */;
exports.FormCardSection = importDefault(8001) /* metro dependency 8001: CardSection */;
}
@@ -0,0 +1,101 @@
/* Metro module 12722; source: design/void/GradientBorder/native/GradientBorder.tsx; dependencies: [31, 27, 661, 33, 4242, 697, 4589, 2] */
function _fun97405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:6, offset: 0x0217f4a3, size: 251 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = GradientBorder;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.HorizontalGradient;
const env0_6 = constantsModule.VerticalGradient;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
closure.Direction = {HORIZONTAL: 'horizontal', VERTICAL: 'vertical', DIAGONAL: 'diagonal',
ANTI_DIAGONAL: 'anti-diagonal'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/GradientBorder/native/GradientBorder.tsx');
exports.default = closure;
}
function GradientBorder(a0) { // fn#97406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:322, offset: 0x0217f59e, size: 426 bytes, params: 2, frame: 26
var r11;
var r6;
var r0;
var value;
var binding;
var value5;
var cloneElement;
var object3;
var props;
var object6;
const children = a0.children;
const direction = a0.direction;
const style = a0.style;
let borderWidth = a0.borderWidth;
borderWidth = borderWidth === undefined ? 1 : borderWidth;
const borderRadius = a0.borderRadius;
if (borderRadius !== undefined) {
r11 = borderRadius;
} else {
value = (importDefault(697) /* metro dependency 697: native */).radii.sm + 1;
r11 = value;
}
const object7 = {'children': 0, 'direction': 0, 'style': 0, 'borderWidth': 0, 'borderRadius': 0};
silentSetPrototypeOf(object7, null, undefined);
const value2 = copyDataProperties({}, a0, object7, undefined);
const {START, END} = getStartEnd(direction);
if (value != children) {
binding = env0_3;
if (binding.isValidElement(children)) {
value = importDefault(4589) /* metro dependency 4589 */;
var valueProps = {start: START, end: END, style: [style, {borderRadius: r11, padding: borderWidth}],
...value2};
if (children.type !== View) {
r6 = <View style={{borderRadius: r11 - borderWidth}}>{children}</View>;
} else {
value5 = env0_3.Children.only(children);
binding = env0_3;
cloneElement = binding.cloneElement;
object3 = {};
props = value5.props;
copyDataProperties(object3, props, object7);
object6 = {};
props = value5.props;
copyDataProperties(object6, props.style, object7);
object6['borderRadius'] = r11 - borderWidth;
object6['overflow'] = 'hidden';
object3['style'] = object6;
r6 = Reflect.apply(cloneElement, binding, [value5, object3]);
}
value = ((Component) => <Component {...valueProps}>{r6}</Component>)(value);
r0 = value;
} else {
r0 = value;
}
} else {
r0 = value;
}
return r0;
}
function getStartEnd(a0) { // fn#97407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12912:441, owner: GradientBorder.getStartEnd, offset: 0x0217f748, size: 169 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
const value2 = (require(4242) /* metro dependency 4242 */).match(a0);
const HORIZONTAL = env1_8.HORIZONTAL;
const value3 = value2.with(HORIZONTAL, function() {
return HorizontalGradient;
});
const VERTICAL = env1_8.VERTICAL;
const value4 = value3.with(VERTICAL, function() {
return VerticalGradient;
});
const DIAGONAL = env1_8.DIAGONAL;
const value5 = value4.with(DIAGONAL, function() {
return {START: {'x': 0, 'y': 0}, END: {'x': 1, 'y': 1}};
});
const ANTI_DIAGONAL = env1_8.ANTI_DIAGONAL;
return value5.with(ANTI_DIAGONAL, function() {
return {START: {'x': 0, 'y': 1}, END: {'x': 1, 'y': 0}};
}).exhaustive();
}
@@ -0,0 +1,148 @@
/* Metro module 12723; source: design/void/HelpMessage/native/HelpMessage.tsx; dependencies: [31, 27, 33, 4501, 697, 673, 7684, 4068, 6988, 4073, 6766, 2] */
function _fun97412(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12913:6, offset: 0x0217f835, size: 809 bytes, params: 8, frame: 32
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object8 = {'padding': null, 'borderWidth': 1, 'borderStyle': 'solid'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.padding = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.gap = PX_8;
object3.container = object8;
object3.row = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.content = {flex: 1, marginLeft: PX_8};
const object9 = {};
const colorUtilsModule = require(673) /* metro dependency 673: ColorUtils */;
let int2rgba = colorUtilsModule.int2rgba;
const value3 = colorUtilsModule;
let hex2int = value3.hex2int;
let YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
object9.backgroundColor = Reflect.apply(int2rgba, colorUtilsModule, [Reflect.apply(hex2int, value3, [YELLOW_300]),
0.1]);
YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
object9.borderColor = YELLOW_300;
object3.warningContainer = object9;
const object10 = {};
const value5 = colorUtilsModule;
int2rgba = value5.int2rgba;
const value6 = colorUtilsModule;
hex2int = value6.hex2int;
let BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
object10.backgroundColor = Reflect.apply(int2rgba, value5, [Reflect.apply(hex2int, value6, [BLUE_345]), 0.1]);
BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
object10.borderColor = BLUE_345;
object3.infoContainer = object10;
const object11 = {};
const value7 = colorUtilsModule;
int2rgba = value7.int2rgba;
const value8 = colorUtilsModule;
hex2int = value8.hex2int;
let RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object11.backgroundColor = Reflect.apply(int2rgba, value7, [Reflect.apply(hex2int, value8, [RED_400]), 0.1]);
RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object11.borderColor = RED_400;
object3.errorContainer = object11;
const object12 = {};
const value9 = colorUtilsModule;
int2rgba = value9.int2rgba;
const value10 = colorUtilsModule;
hex2int = value10.hex2int;
let GREEN_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_400;
object12.backgroundColor = Reflect.apply(int2rgba, value9, [Reflect.apply(hex2int, value10, [GREEN_400]), 0.1]);
GREEN_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_400;
object12.borderColor = GREEN_400;
object3.successContainer = object12;
const env0_6 = Reflect.apply(createStyles, value, [object3]);
object3 = {WARNING: 0};
object3[0] = 'WARNING';
object3.INFO = 1;
object3[1] = 'INFO';
object3.ERROR = 2;
object3[2] = 'ERROR';
object3.SUCCESS = 3;
object3[3] = 'SUCCESS';
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/HelpMessage/native/HelpMessage.tsx');
exports.default = HelpMessage;
exports.HelpMessageTypes = object3;
}
function getIcon(a0) { // fn#97413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12913:1105, offset: 0x0217fb5e, size: 364 bytes, params: 2, frame: 17
const WARNING = env0_7.WARNING;
if (WARNING === a0) {
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
return <CircleErrorIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300} />;
}
const INFO = env0_7.INFO;
if (INFO === a0) {
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
return (
<CircleInformationIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345} />
);
}
const ERROR = env0_7.ERROR;
if (ERROR === a0) {
const CircleXIcon = (require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon;
return <CircleXIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400} />;
}
const SUCCESS = env0_7.SUCCESS;
if (SUCCESS === a0) {
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
return <CircleCheckIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_400} />;
}
}
function useContainerStyle(a0, a1) { // fn#97414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12913:1499, offset: 0x0217fcca, size: 101 bytes, params: 3, frame: 4
const WARNING = env0_7.WARNING;
if (WARNING === a0) {
return a1.warningContainer;
}
const INFO = env0_7.INFO;
if (INFO === a0) {
return a1.infoContainer;
}
const ERROR = env0_7.ERROR;
if (ERROR === a0) {
return a1.errorContainer;
}
const SUCCESS = env0_7.SUCCESS;
if (SUCCESS === a0) {
return a1.successContainer;
}
}
function HelpMessage({children, messageType, textVariant, textColor, borderRadius = importDefault(dependencyMap[4]).radii.xs, button}) { // fn#97415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12913:1787, offset: 0x0217fd2f, size: 285 bytes, params: 2, frame: 24
textVariant = textVariant === undefined ? 'text-sm/medium' : textVariant;
textColor = textColor === undefined ? 'text-default' : textColor;
const styles = useStyles();
const items2 = [styles.container];
items2[1] = useContainerStyle(messageType, styles);
items2[2] = {borderRadius: borderRadius};
const icon = getIcon(messageType);
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
return (
<View style={items2}>
<View style={styles.row}>
{icon}
<TextWithIOSLinkWorkaround
style={styles.content}
color={textColor}
variant={textVariant}
>
{children}
</TextWithIOSLinkWorkaround>
</View>
{button}
</View>
);
}
+88
View File
@@ -0,0 +1,88 @@
/* Metro module 4580; source: design/void/Icon/native/Icon.tsx; dependencies: [31, 27, 33, 4501, 697, 2] */
function _fun38856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:6, offset: 0x010cdadc, size: 364 bytes, params: 8, frame: 22
var object2;
const closure = getIconSize;
const closure2 = getIconStyle;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).Image;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
object2 = {EXTRA_SMALL_10: 'extraSmall10', EXTRA_SMALL: 'extraSmall', SMALL: 'small', SMALL_20: 'small20',
MEDIUM: 'medium', LARGE: 'large', CUSTOM: 'custom', REFRESH_SMALL_16: 'refreshSmall16', SMALL_14: 'small14'};
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
var object2 = {};
object2.tintColor = importDefault(dependencyMap[4]).colors.INTERACTIVE_TEXT_DEFAULT;
return {iconColor: object2};
});
value = value.memo(value.forwardRef(_fun38860));
value.displayName = 'Icon';
value.Sizes = object2;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Icon/native/Icon.tsx');
exports.default = value;
exports.IconSizes = object2;
exports.getIconSize = closure;
exports.getIconStyle = closure2;
}
function getIconSize(a0) { // fn#38857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:369, offset: 0x010cdc48, size: 186 bytes, params: 2, frame: 3
const EXTRA_SMALL_10 = env0_4.EXTRA_SMALL_10;
if (EXTRA_SMALL_10 === a0) {
return 10;
}
const EXTRA_SMALL = env0_4.EXTRA_SMALL;
if (EXTRA_SMALL === a0) {
return 12;
}
const SMALL = env0_4.SMALL;
if (SMALL === a0) {
return 18;
}
const SMALL_14 = env0_4.SMALL_14;
if (SMALL_14 === a0) {
return 14;
}
const SMALL_20 = env0_4.SMALL_20;
if (SMALL_20 === a0) {
return 20;
}
const MEDIUM = env0_4.MEDIUM;
if (MEDIUM === a0) {
return 24;
}
const LARGE = env0_4.LARGE;
if (LARGE === a0) {
return 32;
}
const REFRESH_SMALL_16 = env0_4.REFRESH_SMALL_16;
if (REFRESH_SMALL_16 === a0) {
return 16;
}
const CUSTOM = env0_4.CUSTOM;
if (CUSTOM === a0) {
}
}
function getIconStyle(a0) { // fn#38858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:742, offset: 0x010cdd02, size: 29 bytes, params: 2, frame: 11
const iconSize = getIconSize(a0);
return {width: iconSize, height: iconSize};
}
function _fun38860({source, color, disableColor, size = env0_4.MEDIUM, style, resizeMode, accessible, accessibilityLabel}, a1) { // fn#38860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4758:840, offset: 0x010cdd53, size: 198 bytes, params: 3, frame: 21
disableColor = !(disableColor === undefined) && disableColor;
resizeMode = resizeMode === undefined ? 'cover' : resizeMode;
const styles = useStyles(size);
return (
<Image
resizeMode={resizeMode}
source={source}
style={[getIconStyle(size),
disableColor ? undefined : color != null ? {tintColor: color} : styles.iconColor, style]}
accessible={accessible}
accessibilityLabel={accessibilityLabel}
fadeDuration={0}
ref={a1}
/>
);
}
@@ -0,0 +1,118 @@
/* Metro module 12104; source: design/void/IconButton/native/IconButton.tsx; dependencies: [31, 33, 4501, 697, 6235, 5278, 1305, 2] */
function _fun92954(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12290:6, offset: 0x0209fcc3, size: 491 bytes, params: 8, frame: 25
var object7;
const env0_0 = require;
const closure = SquareIconButton;
const closure2 = CircularIconButton;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
object7 = {SMALL_24: 24};
object7[24] = 'SMALL_24';
object7.MEDIUM_32 = 32;
object7[32] = 'MEDIUM_32';
object7.LARGE_40 = 40;
object7[40] = 'LARGE_40';
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object8 = {};
const object9 = {'borderRadius': null, 'alignItems': 'center', 'justifyContent': 'center'};
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const DARK_PRIMARY_700_LIGHT_PRIMARY_230 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_700_LIGHT_PRIMARY_230;
object9.backgroundColor = DARK_PRIMARY_700_LIGHT_PRIMARY_230;
object8.container = object9;
const object10 = {};
let SMALL_24 = object7.SMALL_24;
object10.height = SMALL_24;
SMALL_24 = object7.SMALL_24;
object10.width = SMALL_24;
object8.small = object10;
const object11 = {};
let MEDIUM_32 = object7.MEDIUM_32;
object11.height = MEDIUM_32;
MEDIUM_32 = object7.MEDIUM_32;
object11.width = MEDIUM_32;
object8.medium = object11;
const object12 = {};
let LARGE_40 = object7.LARGE_40;
object12.height = LARGE_40;
LARGE_40 = object7.LARGE_40;
object12.width = LARGE_40;
object8.large = object12;
SMALL_24 = object7.SMALL_24;
object8.smallCircular = {borderRadius: SMALL_24 / 2};
MEDIUM_32 = object7.MEDIUM_32;
object8.mediumCircular = {borderRadius: MEDIUM_32 / 2};
LARGE_40 = object7.LARGE_40;
object8.largeCircular = {borderRadius: LARGE_40 / 2};
const DARK_PRIMARY_300_LIGHT_PRIMARY_500 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_300_LIGHT_PRIMARY_500;
object8.icon = {tintColor: DARK_PRIMARY_300_LIGHT_PRIMARY_500};
const env0_5 = Reflect.apply(createStyles, createStylesModule, [object8]);
closure.Sizes = object7;
closure2.Sizes = object7;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/IconButton/native/IconButton.tsx');
exports.SquareIconButton = closure;
exports.CircularIconButton = closure2;
}
function SquareIconButton({onPress, source, style, iconStyle, size, disableColor, accessibilityLabel, accessibilityHidden, disabled}) { // fn#92955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12290:728, offset: 0x0209feae, size: 370 bytes, params: 2, frame: 27
const styles = useStyles();
const value3 = env0_2.useMemo(_fun92956, [size, styles]);
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const r15 = accessibilityHidden ? undefined : accessibilityLabel;
const items2 = [styles.container, style, value3];
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const LARGE_40 = env0_4.LARGE_40;
return (
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={r15}
accessibilityElementsHidden={accessibilityHidden}
onPress={onPress}
disabled={disabled}
style={items2}
>
<Icon
size={size === LARGE_40 ? (require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM : (require(1305) /* metro dependency 1305: native */).Icon.Sizes.REFRESH_SMALL_16}
style={[disableColor ? null : styles.icon, iconStyle]}
disableColor={disableColor}
source={source}
/>
</PressableOpacity>
);
}
function CircularIconButton(a0) { // fn#92957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12290:1349, offset: 0x020a0074, size: 190 bytes, params: 2, frame: 21
const style = a0.style;
const size = a0.size;
const disableColor = a0.disableColor;
const object3 = {'style': 0, 'size': 0, 'disableColor': 0};
silentSetPrototypeOf(object3, null, undefined);
const value = copyDataProperties({}, a0, object3, undefined);
const value3 = undefined;
const styles = useStyles();
const object4 = {};
const SMALL_24 = env0_4.SMALL_24;
object4.style = [SMALL_24 === size ? styles.smallCircular : env0_4.MEDIUM_32 === size ? styles.mediumCircular : env0_4.LARGE_40 !== size ? value3 : styles.largeCircular,
style];
object4.size = size;
copyDataProperties(object4, value, object3);
object4['disableColor'] = disableColor;
return <SquareIconButton {...object4} />;
}
function _fun92956() { // fn#92956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12290:895, offset: 0x020a0020, size: 84 bytes, params: 1, frame: 4
const sizeBinding = size;
const MEDIUM_32 = env1_4.MEDIUM_32;
if (MEDIUM_32 === sizeBinding) {
return styles.medium;
}
const LARGE_40 = env1_4.LARGE_40;
if (LARGE_40 === sizeBinding) {
return styles.large;
}
env1_4.SMALL_24;
return styles.small;
}
@@ -0,0 +1,46 @@
/* Metro module 12724; source: design/void/IconPill/native/IconPill.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 4580, 8002, 2] */
function _fun97416(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12914:6, offset: 0x0217fe4c, size: 379 bytes, params: 8, frame: 25
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
let value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'backgroundColor': null, 'borderRadius': null,
'height': 20, 'paddingHorizontal': 8};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.pillContainer = object5;
let TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
object3.pillIcon = {tintColor: TEXT_SUBTLE, marginRight: 4};
const object6 = {};
const PRIMARY_NORMAL = Fonts.PRIMARY_NORMAL;
object6.fontFamily = PRIMARY_NORMAL;
TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
object6.color = TEXT_SUBTLE;
object6.fontSize = 14;
object6.lineHeight = 18;
object3.pillText = object6;
const env0_5 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/IconPill/native/IconPill.tsx');
exports.default = IconPill;
}
function IconPill({text, source, IconComponent, style, textStyle, accessibilityLabel}) { // fn#97417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12914:603, offset: 0x0217ffc7, size: 282 bytes, params: 2, frame: 26
const styles = useStyles();
return (
<View style={[styles.pillContainer, style]}>
{IconComponent != null ? <IconComponent size="xxs" style={styles.pillIcon} /> : ((Component) => <Component source={source} size={(importDefault(4580) /* metro dependency 4580: Icon */).Sizes.EXTRA_SMALL} style={styles.pillIcon} />)(importDefault(4580) /* metro dependency 4580: Icon */)}
{((Component) => <Component style={[styles.pillText,
textStyle]} numberOfLines={1} accessibilityLabel={accessibilityLabel}>{text}</Component>)(importDefault(8002) /* metro dependency 8002: LegacyText */)}
</View>
);
}
@@ -0,0 +1,470 @@
/* Metro module 12822; source: design/void/InputView/native/InputView.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 661, 33, 4501, 697, 6235, 1305, 4573, 1244, 6988, 4002, 11710, 477, 3868, 2] */
function _fun97843(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:6, offset: 0x0219410a, size: 839 bytes, params: 8, frame: 26
var object2;
const env0_0 = require;
const env0_3 = ['numberOfLines', 'disableConstantNumberOfLines', 'inputTextColor', 'placeholder',
'placeholderTextColor', 'editable', 'large', 'accessibilityHint', 'maxLength', 'inActionSheet',
'trailingButton', 'clearButtonVisibility', 'disabled', 'style', 'inputTextStyle', 'onChangeText', 'onFocus',
'value'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
const env0_5 = importDefault(6) /* metro dependency 6 */;
const env0_6 = importDefault(7) /* metro dependency 7 */;
const env0_7 = importDefault(15) /* metro dependency 15 */;
const env0_8 = importDefault(17) /* metro dependency 17 */;
const env0_9 = importDefault(18) /* metro dependency 18 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_10 = value2.View;
const env0_11 = value2.Pressable;
const env0_12 = value2.TouchableWithoutFeedback;
value2.Platform;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const value3 = require(33) /* metro dependency 33 */;
const env0_14 = value3.jsx;
const env0_15 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
object2 = {};
object2.disabled = {opacity: 0.5};
object2.topContainer = {'minHeight': 16, 'alignItems': 'center', 'flexDirection': 'row', 'marginBottom': 5,
'flexWrap': 'wrap'};
object2.inputViewTitle = {marginRight: 5};
let RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object2.inputViewError = {fontSize: 10, color: RED_400};
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object2.inputBorder = {backgroundColor: TEXT_MUTED};
const DARK_PRIMARY_100_LIGHT_PRIMARY_500 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_100_LIGHT_PRIMARY_500;
object2.inputView = {'fontSize': 16, 'paddingBottom': 0, 'paddingTop': 0, 'textAlignVertical': 'top', 'flex': 1,
color: DARK_PRIMARY_100_LIGHT_PRIMARY_500};
object2.inputViewBorder = {'marginTop': 8, 'height': 2};
const TRANSPARENT = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.TRANSPARENT;
object2.inputViewBorderActive = {backgroundColor: TRANSPARENT};
object2.inputContainer = {'flexDirection': 'row', 'alignItems': 'center', 'position': 'relative'};
object2.bottomContainer = {marginTop: 5};
const object3 = {alignSelf: 'flex-end'};
const CODE_BOLD = Fonts.CODE_BOLD;
object3.fontFamily = CODE_BOLD;
const DARK_PRIMARY_400_LIGHT_PRIMARY_300 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_400_LIGHT_PRIMARY_300;
object3.color = DARK_PRIMARY_400_LIGHT_PRIMARY_300;
object2.charactersLength = object3;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object2.closeIcon = {tintColor: INTERACTIVE_TEXT_DEFAULT};
object2.clearButton = {'position': 'absolute', 'right': 6};
RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object2.required = {color: RED_400};
const env0_16 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object2]);
const PureComponent = value.PureComponent;
value = _fun97847(PureComponent);
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
value.contextType = ThemeContext;
value.defaultProps = {'showBorder': true, 'value': '', 'returnKeyType': 'next', 'disabled': false,
'autoFocus': false, 'multiline': false, 'numberOfLines': 1, 'showTopContainer': true,
'showCharactersRemaining': false, 'clearButtonVisibility': 'never', 'inActionSheet': false};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/InputView/native/InputView.tsx');
exports.default = value;
exports.ClearButtonVisibility = {NEVER: 'never', WITH_CONTENT: 'with-content', ALWAYS: 'always'};
}
function _isNativeReflectConstruct_97844() { // fn#97844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:572, offset: 0x02194451, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_97844_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun97847(a0) { // fn#97847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:1815, offset: 0x021944b3, size: 235 bytes, params: 2, frame: 17
const closure = InputView;
env0_9(closure, a0);
return env0_6(closure, [{key: 'renderBorder', value: value_97865}, {key: 'renderTopContainer', value: value_97866},
{key: 'renderBottomContainer', value: value_97867}, {key: 'renderTrailingButton', value: value_97868},
{key: 'renderTextView', value: value_97869}, {key: 'render', value: value_97870}],
[{key: 'getDerivedStateFromProps', value: function({value}, a1) {
return value === a1.valueProp ? {valueProp: value} : value !== a1.value ? {value: value,
valueProp: value} : {valueProp: value};
}}]);
}
function InputView(a0) { // fn#97848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:1827, offset: 0x0219459e, size: 377 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_5;
binding(this, InputView);
const items = [];
arraySpread(items, value, 0, items);
value = env1_8(InputView);
binding = env1_7;
if (_isNativeReflectConstruct_97844()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_8(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.state = {active: false, value: value.props.value, valueProp: value.props.value};
value._ref = undefined;
value.handleFocus = handleFocus_97849;
value.handleBlur = handleBlur_97850;
value.handleChangeText = function(a0) {
a0.setState({value: a0}, _fun97852);
};
value.handleClear = handleClear;
value.handleEndEditing = handleEndEditing;
value.handleSubmitEditing = handleSubmitEditing;
value.getText = getText_97856;
value.isFocused = isFocused_97857;
value.focus = focus_97858;
value.blur = blur_97859;
value.setText = setText_97860;
value.setRef = setRef;
value.measure = measure_97862;
value.measureInWindow = measureInWindow_97863;
value.measureLayout = measureLayout_97864;
return value;
}
function value_97865() { // fn#97865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:3063, offset: 0x0219496d, size: 131 bytes, params: 1, frame: 18
const value2 = env1_16(this.context);
const {showBorder, borderColor} = this.props;
if (showBorder) {
return (
<View
style={[value2.inputViewBorder, {backgroundColor: borderColor ?? value2.inputBorder.backgroundColor},
this.state.active && value2.inputViewBorderActive]}
/>
);
}
return null;
}
function value_97866() { // fn#97866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:3341, offset: 0x021949f0, size: 525 bytes, params: 1, frame: 26
var r6;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items4;
const value = environment.__proto__;
const binding = env1_16;
const context = this.context;
const value2 = undefined;
const value3 = binding(context);
const {showTopContainer, error, title, errorStyles, errorProps, required, helpText} = this.props;
const r5 = error != null && error !== '' ? <LegacyText {...errorProps} {...{['style']: [value3.inputViewError,
errorStyles]}}>{'('}{error}{')'}</LegacyText> : value2;
const r11 = title != null && title !== '' ? <Text variant="heading-md/semibold" color={error === null || error === '' ? 'text-default' : 'text-feedback-critical'} style={[value3.inputViewTitle]}>{title}</Text> : value2;
const r9 = helpText != null && helpText !== '' ? <Text variant="text-xs/medium">{helpText}</Text> : value2;
if (showTopContainer) {
var viewBindingProps = {style: value3.topContainer};
items4 = [r11, r9];
r6 = r5 == null && required;
r6 = r6 && <LegacyText style={value3.required}>{'*'}</LegacyText>;
items4[2] = r6;
items4[3] = r5;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (r5 != null) {
var viewBindingProps = {style: value3.topContainer};
items4 = [r11, r9];
r6 = r5 == null && required;
r6 = r6 && <LegacyText style={value3.required}>{'*'}</LegacyText>;
items4[2] = r6;
items4[3] = r5;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (r11 != null) {
var viewBindingProps = {style: value3.topContainer};
items4 = [r11, r9];
r6 = r5 == null && required;
r6 = r6 && <LegacyText style={value3.required}>{'*'}</LegacyText>;
items4[2] = r6;
items4[3] = r5;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
return value2;
}
function value_97867() { // fn#97867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:4014, offset: 0x02194bfd, size: 244 bytes, params: 1, frame: 23
var r0;
var LegacyText;
var intl;
var formatToPlainString;
var fR1cof;
var getText;
var length;
const value = environment.__proto__;
const value2 = env1_16(this.context);
const {showCharactersRemaining, maxLength} = this.props;
const value3 = null;
if (showCharactersRemaining) {
if (value3 != maxLength) {
var viewBindingProps = {style: value2.bottomContainer};
LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
var legacyTextProps = {accessible: true, style: value2.charactersLength};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
fR1cof = (require(1244) /* metro dependency 1244: indexNative */).t.fR1cof;
getText = this.getText;
length = Reflect.apply(getText, this, []).length;
legacyTextProps.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [fR1cof,
{remainingCharacters: maxLength - length}]);
getText = this.getText;
length = Reflect.apply(getText, this, []).length;
r0 = <View {...viewBindingProps}><LegacyText {...legacyTextProps}>{maxLength - length}</LegacyText></View>;
} else {
r0 = value3;
}
} else {
r0 = value3;
}
return r0;
}
function value_97868() { // fn#97868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:4416, offset: 0x02194cf1, size: 288 bytes, params: 1, frame: 23
var r1;
var r0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value = environment.__proto__;
const value2 = env1_16(this.context);
const {trailingButton, clearButtonVisibility, clearButtonAccessibilityLabel} = this.props;
const value3 = null;
if (value3 != trailingButton) {
r0 = trailingButton;
} else {
if (clearButtonVisibility === env1_17.ALWAYS) {
r1 = <Pressable hitSlop={16} style={value2.clearButton} onPress={this.handleClear} accessible accessibilityRole="button" accessibilityLabel={value3 != clearButtonAccessibilityLabel ? clearButtonAccessibilityLabel : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VkKicb)}>{((CircleXIcon) => <CircleXIcon size="sm" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</Pressable>;
} else if (clearButtonVisibility !== env1_17.WITH_CONTENT) {
r1 = value3;
} else if (this.state.value.length > 0) {
r1 = <Pressable hitSlop={16} style={value2.clearButton} onPress={this.handleClear} accessible accessibilityRole="button" accessibilityLabel={value3 != clearButtonAccessibilityLabel ? clearButtonAccessibilityLabel : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VkKicb)}>{((CircleXIcon) => <CircleXIcon size="sm" />)((require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon)}</Pressable>;
} else {
r1 = value3;
}
r0 = r1;
}
return r0;
}
function value_97869() { // fn#97869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:4871, offset: 0x02194e11, size: 707 bytes, params: 1, frame: 30
var r5;
var r8;
var moduleValue;
var isThemeDark2;
var unsafe_rawColors;
var intl;
const binding = env1_16;
const context = this.context;
const value2 = undefined;
const value3 = binding(context);
const value4 = this.state.value;
const props = this.props;
const numberOfLines = props.numberOfLines;
const disableConstantNumberOfLines = props.disableConstantNumberOfLines;
const inputTextColor = props.inputTextColor;
const placeholder = props.placeholder;
const placeholderTextColor = props.placeholderTextColor;
const editable = props.editable;
const large = props.large;
const accessibilityHint = props.accessibilityHint;
const maxLength = props.maxLength;
const inActionSheet = props.inActionSheet;
props.trailingButton;
props.clearButtonVisibility;
const disabled = props.disabled;
props.style;
const inputTextStyle = props.inputTextStyle;
props.onChangeText;
props.onFocus;
props.value;
const value5 = env1_4(props, env1_3);
const items3 = [value3.inputView];
const object2 = {};
const value6 = 21;
if (disableConstantNumberOfLines) {
object2.maxHeight = (large ? 30 : value6) * numberOfLines;
} else {
object2.minHeight = (large ? 30 : value6) * numberOfLines;
}
items3[1] = object2;
items3[2] = inputTextColor != null ? {color: inputTextColor} : {};
items3[3] = large ? {fontSize: 25, fontFamily: Fonts.PRIMARY_SEMIBOLD} : {};
items3[4] = inputTextStyle;
if (placeholderTextColor != null) {
r8 = placeholderTextColor;
} else {
moduleValue = require(4002) /* metro dependency 4002: shared */;
isThemeDark2 = moduleValue.isThemeDark(this.context.theme);
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
r8 = isThemeDark2 ? unsafe_rawColors.PRIMARY_500 : unsafe_rawColors.PRIMARY_200;
}
if (maxLength != null) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['+DFxLc'],
{maxLength: maxLength});
} else {
r5 = value2;
}
const items2 = [r5, accessibilityHint];
const filter = items2.filter;
const Boolean = global.Boolean;
return ((Component) => <Component accessibilityState={{disabled: disabled}} style={items3} ref={this.setRef} onChangeText={this.handleChangeText} onFocus={this.handleFocus} onBlur={this.handleBlur} onEndEditing={this.handleEndEditing} onSubmitEditing={this.handleSubmitEditing} value={value4} clearButtonMode="never" placeholder={placeholder ?? value2} placeholderTextColor={r8} editable={editable} maxLength={maxLength} accessibilityHint={Reflect.apply(filter,
items2,
[Boolean]).join(',')} {...value5} />)(inActionSheet ? importDefault(11710) /* metro dependency 11710: BottomSheetTextInput */ : (require(1305) /* metro dependency 1305: native */).TextInput);
}
function value_97870() { // fn#97870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:6052, offset: 0x021950d4, size: 358 bytes, params: 1, frame: 25
let value = environment.__proto__;
const value2 = env1_16(this.context);
const {disabled, style, inputContainerStyle} = this.props;
const focus = this.focus;
const items5 = [style];
items5[1] = disabled && value2.disabled;
const r7 = disabled ? 'none' : 'auto';
const items2 = [this.renderTopContainer()];
const items3 = [value2.inputContainer, inputContainerStyle];
const items4 = [this.renderTextView()];
items4[1] = this.renderTrailingButton();
items2[1] = <View style={items3}>{items4}</View>;
items2[2] = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && this.renderBorder();
items2[3] = this.renderBottomContainer();
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
items2[4] = !value && this.renderBorder();
return (
<TouchableWithoutFeedback accessible={false} onPress={focus}>
<View style={items5} pointerEvents={r7}>
{items2}
</View>
</TouchableWithoutFeedback>
);
}
function InputViewHandleFocus() { // fn#97849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2132, owner: InputView.handleFocus, offset: 0x02194717, size: 58 bytes, params: 1, frame: 12
const onFocus = env0_0.props.onFocus;
if (onFocus != null) {
onFocus();
}
env0_0.setState({active: true});
}
function InputViewHandleChangeText(a0) { // fn#97851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2259, owner: InputView.handleChangeText, offset: 0x02194770, size: 45 bytes, params: 2, frame: 14
a0.setState({value: a0}, _fun97852);
}
function handleClear() { // fn#97853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2349, owner: InputView.handleClear, offset: 0x021947c7, size: 26 bytes, params: 1, frame: 11
env0_0.handleChangeText('');
}
function handleEndEditing() { // fn#97854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2397, owner: InputView.handleEndEditing, offset: 0x021947e1, size: 49 bytes, params: 1, frame: 11
const onEnd = env0_0.props.onEnd;
if (onEnd != null) {
onEnd(env0_0.state.value);
}
}
function handleSubmitEditing() { // fn#97855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2471, owner: InputView.handleSubmitEditing, offset: 0x02194812, size: 34 bytes, params: 1, frame: 9
const onNext = env0_0.props.onNext;
if (onNext != null) {
onNext();
}
}
function InputViewGetText() { // fn#97856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2521, owner: InputView.getText, offset: 0x02194834, size: 19 bytes, params: 1, frame: 1
return env0_0.state.value;
}
function InputViewIsFocused() { // fn#97857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2551, owner: InputView.isFocused, offset: 0x02194847, size: 46 bytes, params: 1, frame: 11
const isFocused = env0_0._ref?.isFocused();
return isFocused != null && isFocused;
}
function InputViewFocus() { // fn#97858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2631, owner: InputView.focus, offset: 0x02194875, size: 33 bytes, params: 1, frame: 9
const _ref = env0_0._ref;
if (_ref != null) {
_ref.focus();
}
}
function InputViewBlur() { // fn#97859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2678, owner: InputView.blur, offset: 0x02194896, size: 33 bytes, params: 1, frame: 9
const _ref = env0_0._ref;
if (_ref != null) {
_ref.blur();
}
}
function InputViewSetText(a0) { // fn#97860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2727, owner: InputView.setText, offset: 0x021948b7, size: 43 bytes, params: 2, frame: 12
const _ref = env0_0._ref;
if (_ref != null) {
_ref.setNativeProps({text: a0});
}
}
function InputViewSetRef(a0) { // fn#97861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2792, owner: InputView.setRef, offset: 0x021948e2, size: 20 bytes, params: 2, frame: 2
env0_0._ref = a0;
}
function InputViewMeasure(a0) { // fn#97862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2816, owner: InputView.measure, offset: 0x021948f6, size: 37 bytes, params: 2, frame: 11
const _ref = env0_0._ref;
if (_ref != null) {
_ref.measure(a0);
}
}
function InputViewMeasureInWindow(a0) { // fn#97863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2876, owner: InputView.measureInWindow, offset: 0x0219491b, size: 37 bytes, params: 2, frame: 11
const _ref = env0_0._ref;
if (_ref != null) {
_ref.measureInWindow(a0);
}
}
function InputViewMeasureLayout(a0, a1, a2) { // fn#97864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2942, owner: InputView.measureLayout, offset: 0x02194940, size: 45 bytes, params: 4, frame: 15
const _ref = env0_0._ref;
if (_ref != null) {
_ref.measureLayout(a0, a1, a2);
}
}
function _fun97852() { // fn#97852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13012:2285, offset: 0x0219479d, size: 42 bytes, params: 1, frame: 11
const onChangeText = env1_0.props.onChangeText;
if (onChangeText != null) {
onChangeText(env0_0);
}
}
@@ -0,0 +1,37 @@
/* Metro module 8002; source: design/void/LegacyText/native/LegacyText.tsx; dependencies: [31, 27, 661, 33, 4501, 2] */
function _fun63585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8180:6, offset: 0x01b8698c, size: 223 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).Text;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
const env0_2 = Reflect.apply(createStyles, createStylesModule, [{text: {fontFamily: PRIMARY_MEDIUM,
includeFontPadding: false}}]);
value = value.forwardRef(_fun63586);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/LegacyText/native/LegacyText.tsx');
exports.default = value;
}
function _fun63586(a0, a1) { // fn#63586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8180:250, offset: 0x01b86a6b, size: 120 bytes, params: 3, frame: 19
const style = a0.style;
const children = a0.children;
const value = Object.create(null);
value.style = 0;
value.children = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
return (
<Text
ref={a1}
{...value2}
{...{['style']: [styles.text, style]}}
>
{children}
</Text>
);
}
@@ -0,0 +1,50 @@
/* Metro module 12753; source: design/void/LiveTag/native/LiveTag.tsx; dependencies: [31, 27, 33, 4501, 697, 477, 4573, 1244, 2] */
function _fun97510(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12943:6, offset: 0x02184e3e, size: 327 bytes, params: 8, frame: 24
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = 0;
importAll(dependencyMap[value]);
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object5 = {'paddingHorizontal': 6, 'paddingVertical': 2, 'borderRadius': null, 'overflow': 'hidden',
'justifyContent': 'center', 'alignItems': 'center'};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object5.backgroundColor = RED_400;
object4.tag = object5;
const object6 = {textAlign: 'center'};
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
object6.color = WHITE;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
object6.marginTop = platformUtilsModule.isAndroid() ? -2 : value;
object4.tagText = object6;
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/LiveTag/native/LiveTag.tsx');
exports.default = LiveTag;
}
function LiveTag({style, textStyle, allowFontScaling}) { // fn#97511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12943:454, offset: 0x02184f85, size: 211 bytes, params: 2, frame: 21
const styles = useStyles();
const items3 = [styles.tag, style];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [styles.tagText, textStyle];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={items3}>
<Text
variant="text-xs/bold"
style={items2}
lineClamp={1}
allowFontScaling={allowFontScaling}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dI3q4h).toUpperCase()}
</Text>
</View>
);
}
@@ -0,0 +1,84 @@
/* Metro module 12725; source: design/void/NewTag/native/NewTag.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4589, 4573, 1244, 2] */
function _fun97418(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12915:6, offset: 0x021800e1, size: 302 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.View;
value.Platform;
const env0_4 = (require(661) /* metro dependency 661: Constants */).HorizontalGradient;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'height': 'auto', 'backgroundColor': null, 'justifyContent': 'center', 'alignItems': 'center',
'paddingHorizontal': 4, 'marginBottom': 2};
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
object.backgroundColor = RED_400;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const env0_6 = Reflect.apply(createStyles, value, [{tagContainer: object, tagText: {textTransform: 'uppercase'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/NewTag/native/NewTag.tsx');
exports.default = NewTag;
}
function NewTag(a0) { // fn#97419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12915:437, offset: 0x0218020f, size: 681 bytes, params: 2, frame: 30
var r5;
var r0;
var unsafe_rawColors;
var object;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var defaultImport;
var object2;
var object3;
const containerStyle = a0.containerStyle;
const textStyle = a0.textStyle;
let variant = a0.variant;
variant = variant === undefined ? 'heading-sm/semibold' : variant;
let color = a0.color;
color = color === undefined ? 'always-white' : color;
let gradient = a0.gradient;
gradient = !(gradient === undefined) && gradient;
const borderRadius = a0.borderRadius;
const r8 = borderRadius !== undefined ? borderRadius : (importDefault(697) /* metro dependency 697: native */).radii.sm;
const colors = a0.colors;
if (colors !== undefined) {
r5 = colors;
} else {
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
object = [unsafe_rawColors.PREMIUM_TIER_2_PURPLE];
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
object[1] = unsafe_rawColors.PREMIUM_TIER_2_PINK;
r5 = object;
}
object = {'containerStyle': 0, 'textStyle': 0, 'variant': 0, 'color': 0, 'gradient': 0, 'borderRadius': 0,
'colors': 0};
silentSetPrototypeOf(object, null, undefined);
let value = copyDataProperties({}, a0, object, undefined);
const styles = useStyles();
if (gradient) {
defaultImport = importDefault(4589) /* metro dependency 4589 */;
object2 = {};
object3 = {borderRadius: r8};
object3.marginLeft = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.style = object3;
object2.start = HorizontalGradient.START;
object2.end = HorizontalGradient.END;
object2.colors = r5;
var viewBindingProps = {style: [styles.tagContainer, containerStyle]};
var textProps = {variant: variant, color: color, ...value};
textProps['style'] = [styles.tagText, textStyle];
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA);
value = ((Component) => <Component {...object2}><View {...viewBindingProps}><Text {...textProps}>{value}</Text></View></Component>)(defaultImport);
r0 = value;
} else {
var viewBindingProps = {style: [styles.tagContainer, containerStyle]};
var textProps = {variant: variant, color: color, ...value};
textProps['style'] = [styles.tagText, textStyle];
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA);
value = <View {...viewBindingProps}><Text {...textProps}>{value}</Text></View>;
r0 = value;
}
return r0;
}
@@ -0,0 +1,14 @@
/* Metro module 12756; source: design/void/NitroWheel/native/NitroWheel.tsx; dependencies: [31, 33, 5475, 7938, 2] */
function _fun97516(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12946:6, offset: 0x02185618, size: 134 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/NitroWheel/native/NitroWheel.tsx');
exports.default = NitroWheel;
}
function NitroWheel({style}) { // fn#97517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12946:206, offset: 0x0218569e, size: 75 bytes, params: 2, frame: 17
return ((Component) => <Component source={importDefault(7938) /* metro dependency 7938 */} style={style} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
}
@@ -0,0 +1,29 @@
/* Metro module 4509; source: design/void/OverlayView/native/OverlayView.tsx; dependencies: [31, 27, 33, 477, 4510, 4543, 2] */
function _fun38569(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4687:6, offset: 0x010c3883, size: 251 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const View = value.View;
const env0_1 = value.StyleSheet;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
value = require(477) /* metro dependency 477: PlatformUtils */;
const r4 = value.isIOS() ? (require(4510) /* metro dependency 4510 */).FullWindowOverlay : View;
value = require(477) /* metro dependency 477: PlatformUtils */;
const r1 = value.isIOS() ? importDefault(4543) /* metro dependency 4543 */ : View;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/OverlayView/native/OverlayView.tsx');
exports.default = r4;
exports.TransitionGroupOverlayView = TransitionGroupOverlayView;
exports.NonExpandingOverlayView = r1;
}
function TransitionGroupOverlayView(a0) { // fn#38570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4687:355, offset: 0x010c397e, size: 140 bytes, params: 2, frame: 18
const children = a0.children;
const value = null;
const value2 = Object.create(value);
value2.children = 0;
const value3 = copyDataProperties({}, a0, value2, children);
const Array = global.Array;
return Array.isArray(children) && children.length > 0 ? ((Component) => <Component style={StyleSheet.absoluteFill}><View {...value3}>{children}</View></Component>)(env0_3) : value;
}
@@ -0,0 +1,18 @@
/* Metro module 12749; source: design/void/PassthroughTouchView/native/PassthroughTouchView.tsx; dependencies: [31, 33, 12750, 2] */
function _fun97502(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12939:6, offset: 0x02184af1, size: 134 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/PassthroughTouchView/native/PassthroughTouchView.tsx');
exports.default = PassthroughTouchView;
}
function PassthroughTouchView(a0) { // fn#97503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12939:226, offset: 0x02184b77, size: 103 bytes, params: 2, frame: 16
const onTouchDown = a0.onTouchDown;
const value = Object.create(null);
value.onTouchDown = 0;
return ((Component) => <Component {...copyDataProperties({}, a0, value,
onTouchDown)} {...{['onTouchDown']: onTouchDown}} {...{['pointerEvents']: 'box-none'}} />)(importDefault(12750) /* metro dependency 12750: PassthroughTouchNativeComponent */);
}
@@ -0,0 +1,123 @@
/* Metro module 5278; source: design/void/Pressables/native/Pressables.tsx; dependencies: [31, 27, 4586, 1309, 33, 4501, 697, 477, 5279, 2] */
function _fun46911(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:6, offset: 0x011b29f6, size: 310 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_4 = (require(27) /* metro dependency 27 */).Pressable;
const env0_5 = (require(4586) /* metro dependency 4586: styleConstants */).IOS_POINTER_STYLE;
const env0_6 = (require(1309) /* metro dependency 1309: FormConstants */).getThemedRippleConfig;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
const env0_8 = Reflect.apply(createStyles, createStylesModule,
[{pressedHighlight: {backgroundColor: BACKGROUND_MOD_MUTED}}]);
const value3 = value.forwardRef(_fun46916);
value = value.forwardRef(_fun46917);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Pressables/native/Pressables.tsx');
exports.PressableOpacity = value3;
exports.PressableHighlight = value;
}
function PressableBase(a0) { // fn#46912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:297, offset: 0x011b2b2c, size: 253 bytes, params: 2, frame: 25
const children = a0.children;
const androidRippleConfig = a0.androidRippleConfig;
const style = a0.style;
const type = a0.type;
const activeOpacity = a0.activeOpacity;
const env0_3 = activeOpacity;
const underlayColor = a0.underlayColor;
const innerRef = a0.innerRef;
const object2 = {'children': 0, 'androidRippleConfig': 0, 'style': 0, 'type': 0, 'activeOpacity': 0,
'underlayColor': 0, 'innerRef': 0};
silentSetPrototypeOf(object2, null, undefined);
const value = copyDataProperties({}, a0, object2, type);
const styles = useStyles();
return (
<Pressable
android_ripple={env0_3.useMemo(_fun46915, [androidRippleConfig, style])}
style={env0_3.useMemo(_fun46913, [type, activeOpacity, underlayColor, style,
styles.pressedHighlight.backgroundColor])}
ref={innerRef}
{...value}
>
{children}
</Pressable>
);
}
function _fun46916(a0, a1) { // fn#46916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:883, offset: 0x011b2d79, size: 98 bytes, params: 3, frame: 17
let activeOpacity = a0.activeOpacity;
activeOpacity = activeOpacity === undefined ? 0.2 : activeOpacity;
const value = Object.create(null);
value.activeOpacity = 0;
return (
<PressableBase
innerRef={a1}
type="opacity"
activeOpacity={activeOpacity}
{...copyDataProperties({}, a0, value, undefined)}
/>
);
}
function _fun46917(a0, a1) { // fn#46917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:1013, offset: 0x011b2ddb, size: 84 bytes, params: 3, frame: 16
const underlayColor = a0.underlayColor;
const value = Object.create(null);
value.underlayColor = 0;
return (
<PressableBase
innerRef={a1}
type="highlight"
underlayColor={underlayColor}
{...copyDataProperties({}, a0, value, undefined)}
/>
);
}
function _fun46913() { // fn#46913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:475, offset: 0x011b2c29, size: 56 bytes, params: 1, frame: 11
var environment;
let value = environment.__proto__;
value = require(477) /* metro dependency 477: PlatformUtils */;
return value.isAndroid() ? style : function({pressed}) {
var value2 = null;
return [style,
pressed ? type === 'highlight' ? {backgroundColor: value2 != underlayColor ? underlayColor : backgroundColor} : {opacity: value2 != activeOpacity ? activeOpacity : 0.2} : value2,
IOS_POINTER_STYLE];
};
}
function _fun46915() { // fn#46915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:625, offset: 0x011b2cdc, size: 157 bytes, params: 1, frame: 19
var r9;
var r4;
var object2;
var cornerRadius;
var defaultImport;
var value3;
var getThemedRippleConfigBinding;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
cornerRadius = (androidRippleConfig ?? ({})).cornerRadius;
if (cornerRadius != null) {
r4 = cornerRadius;
} else {
defaultImport = importDefault(5279) /* metro dependency 5279: StyleSheetUtils */;
value3 = defaultImport.getStyleProp(style, 'borderRadius');
if (value3 == null) {
r4 = cornerRadius;
r9 = defaultImport;
} else {
r4 = value3;
r9 = defaultImport;
}
}
getThemedRippleConfigBinding = getThemedRippleConfig;
object2 = {};
copyDataProperties(object2, androidRippleConfig, r9);
object2['cornerRadius'] = r4;
return getThemedRippleConfigBinding(object2);
}
}
@@ -0,0 +1,206 @@
/* Metro module 12726; source: design/void/RadioGroup/native/RadioGroup.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 3874, 6746, 12727, 2] */
function _fun97420(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:6, offset: 0x021804b8, size: 764 bytes, params: 8, frame: 26
var object5;
const env0_0 = require;
const closure = RadioIndicator;
const closure2 = RadioItem;
const closure3 = RadioGroup;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(482) /* metro dependency 482: Constants */).NOOP;
let value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
object5 = {SMALL: 8};
object5[8] = 'SMALL';
object5.MEDIUM = 10;
object5[10] = 'MEDIUM';
object5.LARGE = 12;
object5[12] = 'LARGE';
const object7 = {};
const SMALL = object5.SMALL;
object7[SMALL] = 2;
const MEDIUM = object5.MEDIUM;
object7[MEDIUM] = 3;
const LARGE = object5.LARGE;
object7[LARGE] = 4;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object8 = {};
const object10 = {'flex': 0, 'marginRight': 8, 'borderRadius': null, 'borderColor': null, 'borderWidth': 2};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object10.borderColor = TEXT_MUTED;
object8.radioIcon = object10;
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
object8.radioIconSelected = {borderColor: INTERACTIVE_TEXT_ACTIVE};
const object11 = {};
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const CONTROL_BRAND_FOREGROUND = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_BRAND_FOREGROUND;
object11.backgroundColor = CONTROL_BRAND_FOREGROUND;
object8.radioTick = object11;
object8.disabled = {opacity: 0.3};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object8.divider = {'height': 1, 'alignSelf': 'stretch', 'backgroundColor': null, 'marginLeft': 16,
backgroundColor: BORDER_SUBTLE};
const object12 = {};
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object12.overflow = 'hidden';
object8.collapsibleStyle = object12;
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object8.collapsibleBackgroundSelected = {backgroundColor: BACKGROUND_BASE_LOWEST};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object8.collapsibleBackground = {backgroundColor: BACKGROUND_SURFACE_HIGH};
object8.collapsibleContainer = {'paddingVertical': 4, 'paddingHorizontal': 12};
const env0_10 = Reflect.apply(createStyles, value, [object8]);
closure.Sizes = object5;
closure3.Sizes = object5;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/RadioGroup/native/RadioGroup.tsx');
exports.default = closure3;
exports.RadioIndicator = closure;
exports.RadioItem = closure2;
}
function getOuterStylesFromSize() { // fn#97421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:1034, offset: 0x021807b4, size: 60 bytes, params: 1, frame: 4
const value = a0;
const r2 = value !== undefined ? value : env0_8.MEDIUM;
return {width: 2 * r2, height: 2 * r2, padding: env0_9[r2]};
}
function getTickStylesFromSize() { // fn#97422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:1120, offset: 0x021807f0, size: 34 bytes, params: 1, frame: 3
const value = a0;
const r1 = value !== undefined ? value : env0_8.MEDIUM;
return {width: r1, height: r1};
}
function RadioEmpty({size, style}) { // fn#97423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:1188, offset: 0x02180812, size: 79 bytes, params: 2, frame: 18
const styles = useStyles();
const items2 = [styles.radioIcon];
items2[1] = getOuterStylesFromSize(size);
items2[2] = style;
return <View style={items2} />;
}
function RadioSelected({size, active, style}) { // fn#97424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:1298, offset: 0x02180861, size: 149 bytes, params: 2, frame: 20
const styles = useStyles();
const items3 = [styles.radioIcon];
items3[1] = getOuterStylesFromSize(size);
items3[2] = active && styles.radioIconSelected;
items3[3] = style;
const items2 = [styles.radioTick];
items2[1] = getTickStylesFromSize(size);
return (
<View style={items3}>
<View style={items2} />
</View>
);
}
function RadioIndicator({size, active, style}) { // fn#97425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:1504, offset: 0x021808f6, size: 82 bytes, params: 2, frame: 17
return active ? <RadioSelected size={size} active={active} style={style} /> : <RadioEmpty size={size} style={style} />;
}
function RadioBar({checked, option, style, size, disabled, indicatorLeft, showIndicator, onPress}) { // fn#97426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:1638, offset: 0x02180948, size: 334 bytes, params: 2, frame: 25
const styles = useStyles();
const radioIndicator = <RadioIndicator size={size} active={checked} />;
const r11 = checked ? styles.collapsibleBackgroundSelected : styles.collapsibleBackground;
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: checked,
disabled: disabled});
const formRow = importDefault(6746) /* metro dependency 6746: FormRow */;
const valueProps = {accessibilityRole: accessibilityRole, accessibilityState: accessibilityState,
disabled: disabled, onPress: disabled ? undefined : onPress};
disabled = disabled && styles.disabled;
valueProps.DEPRECATED_style = [style, disabled, option.collapsibleContent != null && r11];
valueProps.label = option.name;
valueProps.subLabel = option.desc;
valueProps.trailing = indicatorLeft ? null : showIndicator ? radioIndicator : null;
valueProps.leading = option.leading ?? (indicatorLeft && showIndicator ? radioIndicator : null);
return ((Component) => <Component {...valueProps} />)(formRow);
}
function RadioItem({option, checked, style, size, disabled, indicatorLeft, showIndicator, onPress}) { // fn#97427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:2206, offset: 0x02180a96, size: 290 bytes, params: 2, frame: 25
var r0;
const closure = onPress_97428;
var value;
const styles = useStyles();
disabled = !disabled ? option.disabled : disabled;
if (option.collapsibleContent != null) {
var viewBindingProps = {style: styles.collapsibleContainer};
value = importDefault(12727) /* metro dependency 12727: Collapsible */;
value = <View {...viewBindingProps}>{((Component) => <Component isExpanded={checked} collapsibleContent={option.collapsibleContent} style={styles.collapsibleStyle}>{children_97429}</Component>)(value)}</View>;
r0 = value;
} else {
r0 = <RadioBar option={option} checked={checked} style={style} size={size} disabled={!!disabled} onPress={closure} indicatorLeft={indicatorLeft} showIndicator={showIndicator} />;
}
return r0;
}
function RadioGroup({value = null, options = [], style, size = env0_8.MEDIUM, disabled, withSpacing, indicatorLeft, showIndicator, withDividers, onChange = NOOP}) { // fn#97431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:2852, offset: 0x02180c7c, size: 232 bytes, params: 2, frame: 16
if (disabled !== undefined) {
}
if (withSpacing !== undefined) {
}
if (indicatorLeft !== undefined) {
}
if (showIndicator !== undefined) {
}
if (withDividers !== undefined) {
}
const env0_10 = useStyles();
return (
<View>
{options.map(_fun97432)}
</View>
);
}
function RadioItemOnPress(a0) { // fn#97428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:2325, owner: RadioItem.onPress, offset: 0x02180bb8, size: 48 bytes, params: 2, frame: 12
a0.preventDefault();
return onPress?.(option);
}
function RadioItemChildren({onPress}) { // fn#97429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:2585, owner: RadioItem.children, offset: 0x02180be8, size: 117 bytes, params: 2, frame: 15
return (
<RadioBar
option={option}
checked={checked}
style={style}
size={size}
disabled={!!disabled}
onPress={function(a0) {
onPress_97428(a0);
onPress(a0);
}}
indicatorLeft={indicatorLeft}
showIndicator={showIndicator}
/>
);
}
function _fun97432(a0, a1) { // fn#97432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12916:3063, offset: 0x02180d64, size: 363 bytes, params: 3, frame: 26
let value = environment.__proto__;
const Fragment = env1_3.Fragment;
let length = env0_1.length;
let JSON = global.JSON;
let stringify = JSON.stringify;
const radioItem = <RadioItem option={a0} checked={env0_0 === a0.value} style={[style,
a1 === length - 1 ? {marginBottom: 0} : withSpacing ? {marginBottom: 8} : {}]} size={env0_3} disabled={disabled} onPress={env0_9} indicatorLeft={indicatorLeft} showIndicator={showIndicator} key={'radio-option-' + Reflect.apply(stringify,
JSON, [a0.value]) + '-' + a1} />;
length = env0_1.length;
const value8 = null;
const r10 = a1 === length - 1 ? value8 : withDividers ? <View style={styles.divider} /> : value8;
JSON = global.JSON;
stringify = JSON.stringify;
value = a0.value;
value = Reflect.apply(stringify, JSON, [value]);
return (
<Fragment key={'radio-option-' + value + '-' + a1}>
{radioItem}
{r10}
</Fragment>
);
}
@@ -0,0 +1,71 @@
/* Metro module 12824; source: design/void/RefreshEmptyState/native/RefreshEmptyState.tsx; dependencies: [31, 27, 661, 33, 4501, 6597, 697, 8002, 4578, 4002, 2] */
function _fun97874(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13014:6, offset: 0x0219554e, size: 444 bytes, params: 8, frame: 29
var object4;
const env0_0 = require;
const closure = EmptyState_97875;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.View;
const env0_4 = value.Image;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {container: {'alignItems': 'center', 'justifyContent': 'center', 'padding': 16}};
const object5 = {};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
const DISPLAY_SEMIBOLD = Fonts.DISPLAY_SEMIBOLD;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
copyDataProperties(object5, textStyles(DISPLAY_SEMIBOLD, MOBILE_TEXT_HEADING_PRIMARY, 16), undefined);
object5['textAlign'] = 'center';
object5['marginBottom'] = 8;
object4.title = object5;
const object6 = {};
const value3 = textStyles;
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
copyDataProperties(object6, value3(PRIMARY_MEDIUM, TEXT_SUBTLE, 14), undefined);
object6['textAlign'] = 'center';
object4.body = object6;
object4.image = {marginBottom: 32};
object4.cta = {'alignSelf': 'center', 'marginTop': 16};
const env0_7 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/RefreshEmptyState/native/RefreshEmptyState.tsx');
exports.default = closure;
exports.ThemedEmptyState = ThemedEmptyState;
}
function EmptyState_97875({source, title, body, containerStyle, imageStyle, titleStyle, bodyStyle, callToAction}) { // fn#97875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13014:535, offset: 0x0219570a, size: 411 bytes, params: 2, frame: 28
const styles = useStyles();
const items2 = [styles.container, containerStyle];
const items3 = [source != null ? <Image source={source} style={[styles.image, imageStyle]} /> : null];
items3[1] = title != null ? ((Component) => <Component style={[styles.title,
titleStyle]}>{title}</Component>)(importDefault(8002) /* metro dependency 8002: LegacyText */) : null;
items3[2] = ((Component) => <Component style={[styles.body,
bodyStyle]}>{body}</Component>)(importDefault(8002) /* metro dependency 8002: LegacyText */);
items3[3] = callToAction != null ? <View style={styles.cta}>{((Button) => <Button shrink text={callToAction.label} onPress={callToAction.onPress} size="sm" />)((require(4578) /* metro dependency 4578: ButtonNative */).Button)}</View> : null;
return (
<View style={items2}>
{items3}
</View>
);
}
function ThemedEmptyState(a0) { // fn#97876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13014:1105, offset: 0x021958a5, size: 143 bytes, params: 2, frame: 20
const lightSource = a0.lightSource;
const darkSource = a0.darkSource;
const value = Object.create(null);
value.lightSource = 0;
value.darkSource = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const sharedModule = require(4002) /* metro dependency 4002: shared */;
const useThemeContext = sharedModule.useThemeContext;
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
const moduleValue2 = sharedModule;
return <EmptyState_97875 source={moduleValue2.isThemeLight(theme) ? lightSource : darkSource} {...value2} />;
}
@@ -0,0 +1,212 @@
/* Metro module 12754; source: design/void/RoleDot/native/RoleDot.tsx; dependencies: [31, 27, 33, 4501, 697, 477, 4584, 6630, 4589, 1360, 2] */
function _fun97512(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12944:6, offset: 0x02185058, size: 398 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.container = {flexShrink: 0};
object2.background = {position: 'relative'};
const object3 = {};
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object3.backgroundColor = BACKGROUND_MOD_NORMAL;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object2.backgroundColor = object3;
const object7 = {};
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object7.backgroundColor = TEXT_DEFAULT;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object2.borderBase = object7;
const object8 = {};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object8.opacity = 0.4;
object2.borderColor = object8;
object2.dot = {'borderRadius': 10, 'position': 'absolute'};
const env0_6 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/RoleDot/native/RoleDot.tsx');
exports.RoleDot = RoleDot_97513;
}
function RoleDot_97513({color, colors, size, background, containerStyles, guildId}) { // fn#97513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12944:598, offset: 0x021851e6, size: 767 bytes, params: 2, frame: 30
var r8;
var value10;
var value11;
var value12;
var object3;
var object4;
var moduleValue2;
var value15;
var object5;
var container;
var items3;
var object8;
var items2;
var items5;
var dot;
var items6;
var defaultImport2;
var object9;
var items7;
var items8;
size = size === undefined ? 'normal' : size;
background = background === undefined || background;
const styles = useStyles();
const value5 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
const value7 = (importDefault(6630) /* metro dependency 6630: useHasEnhancedRoleColors */)(guildId, null);
if (color != null) {
value10 = (size !== 'normal' ? 16 : 20) * value5;
value11 = value10 / 2 + 2;
value12 = value11 - 2;
object3 = {};
object4 = {paddingRight: 2 * value5};
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
object4.paddingTop = moduleValue2.isAndroid() ? 3 * value5 : 2 * value5;
object4.height = value10;
object3.container = object4;
object3.background = {height: value10, width: value10, padding: (value10 - value11) / 2};
object3.border = {height: value11, width: value11};
value15 = value12 / 2;
object3.dot = {height: value12, width: value12, top: value15, left: value15};
object5 = {};
container = styles.container;
items3 = [container];
container = object3.container;
items3[1] = container;
items3[2] = containerStyles;
object5.style = items3;
object8 = {};
items2 = [styles.background];
items2[1] = background ? styles.backgroundColor : null;
background = object3.background;
items2[2] = background;
object8.style = items2;
items5 = [<View style={[styles.borderBase]}><View style={[styles.borderColor, object3.border,
{backgroundColor: color ?? undefined}]} /></View>];
if (value7) {
if (colors == null) {
dot = styles.dot;
items6 = [dot];
dot = object3.dot;
items6[1] = dot;
items6[2] = {backgroundColor: color ?? undefined};
r8 = <View style={items6} />;
} else if (colors.secondaryColor != null) {
defaultImport2 = importDefault(4589) /* metro dependency 4589 */;
object9 = {};
items7 = [colors.primaryColor];
items7[1] = colors.secondaryColor;
items7[2] = colors.tertiaryColor;
object9.colors = items7.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
object9.start = {'x': 0, 'y': 0};
object9.end = {'x': 1, 'y': 0};
dot = styles.dot;
items8 = [dot];
dot = object3.dot;
items8[1] = dot;
object9.style = items8;
r8 = ((Component) => <Component {...object9} />)(defaultImport2);
} else {
dot = styles.dot;
items6 = [dot];
dot = object3.dot;
items6[1] = dot;
items6[2] = {backgroundColor: color ?? undefined};
r8 = <View style={items6} />;
}
} else {
dot = styles.dot;
items6 = [dot];
dot = object3.dot;
items6[1] = dot;
items6[2] = {backgroundColor: color ?? undefined};
r8 = <View style={items6} />;
}
items5[1] = r8;
return (
<View {...object5}>
<View {...object8}>
{items5}
</View>
</View>
);
}
if (colors == null) {
return null;
}
value10 = (size !== 'normal' ? 16 : 20) * value5;
value11 = value10 / 2 + 2;
value12 = value11 - 2;
object3 = {};
object4 = {paddingRight: 2 * value5};
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
object4.paddingTop = moduleValue2.isAndroid() ? 3 * value5 : 2 * value5;
object4.height = value10;
object3.container = object4;
object3.background = {height: value10, width: value10, padding: (value10 - value11) / 2};
object3.border = {height: value11, width: value11};
value15 = value12 / 2;
object3.dot = {height: value12, width: value12, top: value15, left: value15};
items3 = [styles.container];
items3[1] = object3.container;
items3[2] = containerStyles;
items2 = [styles.background];
items2[1] = background ? styles.backgroundColor : null;
items2[2] = object3.background;
const view = <View style={[styles.borderBase]}><View style={[styles.borderColor, object3.border,
{backgroundColor: color ?? undefined}]} /></View>;
if (value7) {
if (colors == null) {
dot = styles.dot;
items6 = [dot];
dot = object3.dot;
items6[1] = dot;
items6[2] = {backgroundColor: color ?? undefined};
r8 = <View style={items6} />;
} else if (colors.secondaryColor != null) {
defaultImport2 = importDefault(4589) /* metro dependency 4589 */;
object9 = {};
items7 = [colors.primaryColor];
items7[1] = colors.secondaryColor;
items7[2] = colors.tertiaryColor;
object9.colors = items7.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
object9.start = {'x': 0, 'y': 0};
object9.end = {'x': 1, 'y': 0};
dot = styles.dot;
items8 = [dot];
dot = object3.dot;
items8[1] = dot;
object9.style = items8;
r8 = ((Component) => <Component {...object9} />)(defaultImport2);
} else {
dot = styles.dot;
items6 = [dot];
dot = object3.dot;
items6[1] = dot;
items6[2] = {backgroundColor: color ?? undefined};
r8 = <View style={items6} />;
}
} else {
dot = styles.dot;
items6 = [dot];
dot = object3.dot;
items6[1] = dot;
items6[2] = {backgroundColor: color ?? undefined};
r8 = <View style={items6} />;
}
return (
<View style={items3}>
<View style={items2}>
{view}
{r8}
</View>
</View>
);
}
@@ -0,0 +1,34 @@
/* Metro module 11025; source: design/void/RoleLabel/native/RoleLabel.tsx; dependencies: [31, 27, 4502, 33, 4501, 566, 1305, 7972, 2] */
function _fun84436(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11211:6, offset: 0x01f4a33f, size: 238 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'display': 'flex',
'flexDirection': 'row'}, roleDot: {marginRight: 4}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/RoleLabel/native/RoleLabel.tsx');
exports.RoleLabel = RoleLabel;
}
function RoleLabel({name, color, colors}) { // fn#84437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11211:341, offset: 0x01f4a42d, size: 280 bytes, params: 2, frame: 24
const styles = useStyles();
const roleStyle = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.roleStyle;
});
const r9 = roleStyle === 'username' && color != null ? {color: color} : {};
const r6 = roleStyle === 'dot' && color != null && ((RoleDot) => <RoleDot color={color} colors={colors} containerStyles={styles.roleDot} />)((require(1305) /* metro dependency 1305: native */).RoleDot);
const FormLabel = (require(7972) /* metro dependency 7972: native */).FormLabel;
return (
<View style={styles.container}>
{r6}
<FormLabel style={r9} text={name} />
</View>
);
}
@@ -0,0 +1,39 @@
/* Metro module 12755; source: design/void/Shadows/native/Shadows.tsx; dependencies: [477, 2] */
function _fun97514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12945:6, offset: 0x021854e5, size: 176 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Shadows/native/Shadows.tsx');
exports.generateBoxShadowStyle = generateBoxShadowStyle;
exports.EIGHT_DP_ELEVATION_SHADOW_PARAMS = {'xOffset': 0, 'yOffset': 4, 'shadowColorIos': '#000000',
'shadowOpacity': 0.3, 'shadowRadius': 4.65, 'elevation': 8, 'shadowColorAndroid': '#000000'};
exports.FOUR_DP_ELEVATION_SHADOW_PARAMS = {'xOffset': 0, 'yOffset': 2, 'shadowColorIos': '#000000',
'shadowOpacity': 0.23, 'shadowRadius': 2.62, 'elevation': 4, 'shadowColorAndroid': '#000000'};
exports.EXPERIMENTAL_HIGH_ELEVATION_SHADOW_PARAMS = {'xOffset': 0, 'yOffset': 7, 'shadowColorIos': '#000',
'shadowOpacity': 0.36, 'shadowRadius': 9.51, 'elevation': 15, 'shadowColorAndroid': '#000'};
exports.NO_ELEVATION_SHADOW_PARAMS = {'xOffset': 0, 'yOffset': 0, 'shadowColorIos': '#000', 'shadowOpacity': 0,
'shadowRadius': 0, 'elevation': 0, 'shadowColorAndroid': '#000'};
}
function generateBoxShadowStyle({xOffset, yOffset, shadowColorIos, shadowOpacity, shadowRadius, elevation, shadowColorAndroid}) { // fn#97515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12945:189, offset: 0x02185595, size: 131 bytes, params: 2, frame: 18
var r0;
var object3;
let value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
const object4 = {};
if (value) {
object4.elevation = elevation;
object4.shadowColor = shadowColorAndroid;
r0 = object4;
} else {
object3 = {shadowColor: shadowColorIos};
object4.width = xOffset;
object4.height = yOffset;
object3.shadowOffset = object4;
object3.shadowOpacity = shadowOpacity;
object3.shadowRadius = shadowRadius;
r0 = object3;
}
return r0;
}
@@ -0,0 +1,133 @@
/* Metro module 12716; source: design/void/ShinyButton/native/ShinyButton.tsx; dependencies: [57, 31, 27, 4502, 33, 4501, 566, 4017, 4504, 1308, 2] */
function _fun97382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12906:6, offset: 0x0217e576, size: 340 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).AppState;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({shinyButton: {overflow: 'hidden'},
shineContainer: {'width': '100%', 'height': '100%', 'position': 'absolute', 'overflow': 'hidden'},
shine: {'width': 56, 'height': '500%', 'transform': null, 'backgroundColor': 'rgba(255,255,255,0.1)',
'top': '-100%', 'alignItems': 'center', transform: [{rotate: '30deg'}]}, shineInner: {'width': 16,
'height': '100%', 'backgroundColor': 'rgba(255,255,255,0.1)'}});
object = {code: "function ShinyButtonTsx1(){const{width,OFFSCREEN_OFFSET,withRepeat,withSequence,withTiming,withDelay,INITIAL_ANIMATION_DELAY,ANIMATION_DURATION}=this.__closure;if(width==null){return{transform:[{translateX:-OFFSCREEN_OFFSET}]};}return{transform:[{translateX:withRepeat(withSequence(withTiming(-OFFSCREEN_OFFSET,{duration:0},'animate-always'),withDelay(INITIAL_ANIMATION_DELAY,withTiming(width+OFFSCREEN_OFFSET,{duration:ANIMATION_DURATION},'animate-always'))),-1)}]};}"};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/ShinyButton/native/ShinyButton.tsx');
exports.default = ShinyButton_97383;
}
function ShinyButton_97383(a0) { // fn#97383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12906:995, offset: 0x0217e6ca, size: 618 bytes, params: 2, frame: 30
const style = a0.style;
const disabled = a0.disabled;
const env0_1 = a0.submitting;
if (a0.shineDisabled !== undefined) {
}
const env0_3 = a0.shineStyle;
const env0_4 = a0.shineInnerStyle;
const object3 = {'style': 0, 'disabled': 0, 'submitting': 0, 'shineDisabled': 0, 'shineStyle': 0,
'shineInnerStyle': 0};
silentSetPrototypeOf(object3, null, undefined);
const value = copyDataProperties({}, a0, object3, undefined);
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [null]);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
const property = value4[0];
const env0_7 = value4[1];
const fluxModule = require(566) /* metro dependency 566: flux */;
let closure = function() {
return AccessibilityStore.useReducedMotion;
};
const env0_8 = fluxModule.useStateFromStores([AccessibilityStore], closure, []);
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [AppState.currentState === 'active']), 2);
const env0_9 = value5[0];
const env0_10 = value5[1];
binding.useEffect(function() {
var env0_0 = AppState.addEventListener('change', _fun97387);
return _fun97388;
}, []);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
closure = ShinyButton_97383P;
const object4 = {width: property, OFFSCREEN_OFFSET: 100};
object4.withRepeat = reanimatedRexportModule.withRepeat;
object4.withSequence = reanimatedRexportModule.withSequence;
object4.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object4.withDelay = reanimatedRexportModule.withDelay;
object4.INITIAL_ANIMATION_DELAY = 750;
object4.ANIMATION_DURATION = 2000;
closure.__closure = object4;
closure.__workletHash = 5550564727650;
closure.__initData = env0_9;
const env0_11 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
return ((Component) => <Component {...value} {...{['style']: [style,
styles.shinyButton]}} {...{['disabled']: disabled}} {...{['renderShine']: renderShine}} />)(importDefault(1308) /* metro dependency 1308: Button */);
}
function handleLayout({nativeEvent}) { // fn#97384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12906:1956, owner: ShinyButton_97383.handleLayout, offset: 0x0217e934, size: 36 bytes, params: 2, frame: 11
env0_7(nativeEvent.layout.width);
}
function _fun97386() { // fn#97386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12906:1296, offset: 0x0217e958, size: 45 bytes, params: 1, frame: 14
const env0_0 = AppState.addEventListener('change', _fun97387);
return _fun97388;
}
function ShinyButton_97383P() { // fn#97389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12906:1425, owner: ShinyButton_97383.p, offset: 0x0217e9a0, size: 250 bytes, params: 1, frame: 27
var object;
var value2;
var moduleValue;
var withRepeat;
var moduleValue2;
var withSequence;
var withTiming;
var value3;
var moduleValue4;
var withDelay;
var moduleValue5;
var value;
if (env0_6 == null) {
object = {transform: [{translateX: -100}]};
} else {
value2 = environment.__proto__;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withRepeat = moduleValue.withRepeat;
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue2.withSequence;
value3 = (require(4504) /* metro dependency 4504: timing */).withTiming(-100, {duration: 0}, 'animate-always');
moduleValue4 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = moduleValue4.withDelay;
moduleValue5 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue5.withTiming;
value = env0_6 + 100;
value = Reflect.apply(withTiming, moduleValue5, [value, {duration: 2000}, 'animate-always']);
value = Reflect.apply(withSequence, moduleValue2, [value3, Reflect.apply(withDelay, moduleValue4, [750,
value])]);
object = {transform: [{translateX: Reflect.apply(withRepeat, moduleValue, [value, -1])}]};
}
return object;
}
function renderShine() { // fn#97390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12906:2081, owner: ShinyButton_97383.renderShine, offset: 0x0217ea9a, size: 258 bytes, params: 1, frame: 22
const disabledBinding = disabled;
const value2 = null;
if (disabledBinding || submitting || (env0_8 || shineDisabled)) {
return value2;
} else if (env0_9) {
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View onLayout={handleLayout} style={[styles.shineContainer, env0_11]}>
{((View) => <View style={[styles.shine, shineStyle]}>{((View) => <View style={[styles.shineInner,
shineInnerStyle]} />)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View)}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View)}
</View>
);
} else {
return value2;
}
}
@@ -0,0 +1,18 @@
/* Metro module 12752; source: design/void/Spacer/native/Spacer.tsx; dependencies: [31, 27, 33, 22, 2] */
function _fun97507(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12942:6, offset: 0x02184d55, size: 178 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).View;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
const env0_2 = (require(22) /* metro dependency 22 */).memoize(function(a0) {
return {width: a0, height: a0};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Spacer/native/Spacer.tsx');
exports.default = Spacer;
}
function Spacer({size, pointerEvents}) { // fn#97509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12942:258, offset: 0x02184e07, size: 55 bytes, params: 2, frame: 15
return <View style={env0_2(size)} pointerEvents={pointerEvents} />;
}
@@ -0,0 +1,197 @@
/* Metro module 12736; source: design/void/Status/native/Status.tsx; dependencies: [57, 31, 27, 1306, 661, 10253, 33, 4501, 12734, 697, 12737, 12738, 12739, 12740, 12741, 12742, 12743, 12735, 12744, 4017, 4577, 12721, 2] */
function _fun97466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:6, offset: 0x021827b1, size: 413 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.Image;
const env0_5 = value.View;
const env0_6 = (require(1306) /* metro dependency 1306: StatusConstants */).STATUS_PADDING;
const env0_7 = (require(661) /* metro dependency 661: Constants */).StatusTypes;
value = require(10253) /* metro dependency 10253: ChannelAnimationConstants */;
const env0_8 = value.TYPING_ENTERING;
const env0_9 = value.TYPING_EXITING;
const env0_10 = value.CHANNEL_SPRING_CONFIG;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({statusIcon: {'width': '100%',
'height': '100%'}});
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun97468);
object = {code: "function StatusTsx1(){const{enableAnimation,withSpring,width,CHANNEL_SPRING_CONFIG,height,onAnimationFinished,borderRadius,translateX}=this.__closure;const shouldAnimate=enableAnimation.get()?'respect-motion-settings':'animate-never';return{width:withSpring(width,CHANNEL_SPRING_CONFIG,shouldAnimate),height:withSpring(height,CHANNEL_SPRING_CONFIG,shouldAnimate,onAnimationFinished),borderRadius:withSpring(borderRadius,CHANNEL_SPRING_CONFIG,shouldAnimate),transform:[{translateX:withSpring(translateX,CHANNEL_SPRING_CONFIG,shouldAnimate)}]};}"};
object = {code: 'function StatusTsx2(){const{withSpring,statusOpacity,CHANNEL_SPRING_CONFIG}=this.__closure;return{opacity:withSpring(statusOpacity,CHANNEL_SPRING_CONFIG)};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Status/native/Status.tsx');
exports.default = Status;
exports.StatusWithTyping = StatusWithTyping;
}
function getStatusSource(a0, a1, a2, a3) { // fn#97467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:995, offset: 0x0218294e, size: 270 bytes, params: 5, frame: 12
if (a1) {
return importDefault(12737) /* metro dependency 12737 */;
}
if (a3) {
return importDefault(12738) /* metro dependency 12738 */;
}
if (a2) {
return importDefault(12739) /* metro dependency 12739 */;
}
const IDLE = StatusTypes.IDLE;
if (IDLE === a0) {
return importDefault(12740) /* metro dependency 12740 */;
}
const DND = StatusTypes.DND;
if (DND === a0) {
return importDefault(12741) /* metro dependency 12741 */;
}
const OFFLINE = StatusTypes.OFFLINE;
if (OFFLINE === a0) {
return importDefault(12742) /* metro dependency 12742 */;
}
const INVISIBLE = StatusTypes.INVISIBLE;
if (INVISIBLE === a0) {
return importDefault(12742) /* metro dependency 12742 */;
}
StatusTypes.ONLINE;
return importDefault(12743) /* metro dependency 12743 */;
}
function _fun97468(a0, a1) { // fn#97468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:384, offset: 0x02182a5c, size: 423 bytes, params: 3, frame: 20
var r8;
const {width, height,
dotSize} = (require(12734) /* metro dependency 12734: StatusUtils */).getStatusTypingDimensions(a0);
const object2 = {};
const ONLINE = StatusTypes.ONLINE;
if (ONLINE === a1) {
r8 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
} else if (StatusTypes.IDLE === a1) {
r8 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
} else if (StatusTypes.DND === a1) {
r8 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
} else if (StatusTypes.STREAMING === a1) {
r8 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_TWITCH;
} else {
if (StatusTypes.INVISIBLE !== a1) {
if (StatusTypes.UNKNOWN !== a1) {
StatusTypes.OFFLINE;
}
}
r8 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
}
object2.ellipsis = {backgroundColor: r8, borderRadius: height, height: height, width: width, paddingStart: 4,
paddingEnd: 2, marginRight: 0};
const object4 = {width: dotSize, height: dotSize};
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object4.backgroundColor = WHITE;
object2.ellipsisDot = object4;
return object2;
}
function Status({isMobileOnline, isVROnline, style, status, size, streaming}) { // fn#97469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:2052, offset: 0x02182c03, size: 188 bytes, params: 2, frame: 26
isMobileOnline = !(isMobileOnline === undefined) && isMobileOnline;
isVROnline = !(isVROnline === undefined) && isVROnline;
streaming = !(streaming === undefined) && streaming;
const styles = useStyles();
return (
<View
style={[(importDefault(12735) /* metro dependency 12735: getStatusContainerStyle */)(size, isMobileOnline,
isVROnline), style]}
>
<Image
style={styles.statusIcon}
source={getStatusSource(status, streaming, isMobileOnline, isVROnline)}
resizeMode="stretch"
/>
</View>
);
}
function StatusWithTyping({isMobileOnline, isVROnline, style, status, size, streaming, typing, userId}) { // fn#97470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:2304, offset: 0x02182cbf, size: 922 bytes, params: 2, frame: 38
var r20;
var moduleValue2;
isMobileOnline = !(isMobileOnline === undefined) && isMobileOnline;
isVROnline = !(isVROnline === undefined) && isVROnline;
streaming = !(streaming === undefined) && streaming;
const styles = useStyles();
const styles2 = useStyles(size, status);
const value2 = (importDefault(12735) /* metro dependency 12735: getStatusContainerStyle */)(size, isMobileOnline,
isVROnline);
const useFlashListAnimationDisablerModule = require(12744) /* metro dependency 12744: useFlashListAnimationDisabler */;
const useFlashListAnimationDisabler = useFlashListAnimationDisablerModule.useFlashListAnimationDisabler;
const value5 = undefined(Reflect.apply(useFlashListAnimationDisabler, useFlashListAnimationDisablerModule,
[userId ?? '']), 2);
const property = value5[0];
const property2 = value5[1];
const r24 = typing ? styles2.ellipsis.width + 2 * STATUS_PADDING : value2.width;
const r23 = typing ? styles2.ellipsis.height + 2 * STATUS_PADDING : value2.height;
const r21 = typing ? r24 / 2 : value2.borderRadius;
if (typing) {
moduleValue2 = require(12734) /* metro dependency 12734: StatusUtils */;
r20 = moduleValue2.getAnimatedTypingTranslateX(value2.width);
} else {
r20 = 0;
}
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = StatusWithTypingO;
const object2 = {enableAnimation: property};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.width = r24;
object2.CHANNEL_SPRING_CONFIG = CHANNEL_SPRING_CONFIG;
object2.height = r23;
object2.onAnimationFinished = property2;
object2.borderRadius = r21;
object2.translateX = r20;
closure.__closure = object2;
closure.__workletHash = 2188820017597;
closure.__initData = env0_15;
const value12 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const r17 = typing ? 0 : 1;
const moduleValue4 = reanimatedRexportModule;
useAnimatedStyle = moduleValue4.useAnimatedStyle;
closure = StatusWithTypingF;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, statusOpacity: r17,
CHANNEL_SPRING_CONFIG: CHANNEL_SPRING_CONFIG};
closure.__workletHash = 7224613224414;
closure.__initData = env0_16;
const value13 = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items2 = [value2, value12, style];
const r5 = typing && ((View) => <View collapsable={false} entering={TYPING_ENTERING} exiting={TYPING_EXITING} style={[{position: 'absolute',
left: STATUS_PADDING,
top: STATUS_PADDING}]}>{((Component) => <Component style={styles2.ellipsis} dotStyle={styles2.ellipsisDot} disableScale />)(importDefault(12721) /* metro dependency 12721: Ellipsis */)}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View);
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View style={items2} collapsable={false}>
{r5}
<View3 style={value13}>
<Image
style={styles.statusIcon}
source={getStatusSource(status, streaming, isMobileOnline, isVROnline)}
resizeMode="stretch"
/>
</View3>
</View>
);
}
function StatusWithTypingO() { // fn#97471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:2719, owner: StatusWithTyping.O, offset: 0x02183059, size: 196 bytes, params: 1, frame: 23
const r6 = env0_0.get() ? 'respect-motion-settings' : 'animate-never';
const object3 = {};
const springModule = require(4577) /* metro dependency 4577: spring */;
object3.width = springModule.withSpring(env0_2, CHANNEL_SPRING_CONFIG, r6);
const moduleValue2 = springModule;
object3.height = moduleValue2.withSpring(env0_3, CHANNEL_SPRING_CONFIG, r6, env0_1);
object3.borderRadius = springModule.withSpring(env0_4, CHANNEL_SPRING_CONFIG, r6);
const object4 = {};
object4.translateX = springModule.withSpring(env0_5, CHANNEL_SPRING_CONFIG, r6);
object3.transform = [object4];
return object3;
}
function StatusWithTypingF() { // fn#97472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12926:3198, owner: StatusWithTyping.f, offset: 0x0218311d, size: 55 bytes, params: 1, frame: 14
const springModule = require(4577) /* metro dependency 4577: spring */;
return {opacity: springModule.withSpring(env0_6, CHANNEL_SPRING_CONFIG)};
}
@@ -0,0 +1,11 @@
/* Metro module 1306; source: design/void/Status/native/StatusConstants.tsx; dependencies: [2] */
function _fun14421(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1433:6, offset: 0x00e05844, size: 126 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Status/native/StatusConstants.tsx');
exports.STATUS_PADDING = 3;
exports.StatusSizes = {'XSMALL': 6, 'SMALL': 8, 'REFRESH_MEDIUM_10': 10, 'MEDIUM': 12, 'LARGE': 16, 'XLARGE': 24};
exports.VR_STATUS_WIDTH_RATIO = 1.5;
exports.VR_STATUS_SCALE = 1;
}
@@ -0,0 +1,60 @@
/* Metro module 12734; source: design/void/Status/native/StatusUtils.tsx; dependencies: [1306, 12735, 2] */
function _fun97457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:6, offset: 0x02182206, size: 169 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const statusConstantsModule = require(1306) /* metro dependency 1306: StatusConstants */;
const env0_2 = statusConstantsModule.STATUS_PADDING;
const env0_3 = statusConstantsModule.StatusSizes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Status/native/StatusUtils.tsx');
exports.getAnimatedTypingTranslateX = function(a0) {
return a0 / 2 - 6;
};
exports.getMobileStatusContainerRect = getMobileStatusContainerRect;
exports.getVRStatusContainerRect = getVRStatusContainerRect;
exports.getStatusTypingDimensions = getStatusTypingDimensions;
}
function getMobileStatusContainerRect(a0) { // fn#97459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:331, offset: 0x021822c2, size: 59 bytes, params: 2, frame: 3
const value = a0 + 2 * STATUS_PADDING;
return {width: value, height: 1.4 * value, cornerRadius: value / 4};
}
function getVRStatusContainerRect(a0) { // fn#97460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:451, offset: 0x021822fd, size: 71 bytes, params: 2, frame: 15
let value = importDefault(12735) /* metro dependency 12735: getStatusContainerStyle */;
value = value(a0, false, true);
return {width: value.width, height: value.height, cornerRadius: value.borderRadius};
}
function getStatusTypingDimensions(a0) { // fn#97461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:606, offset: 0x02182344, size: 110 bytes, params: 2, frame: 14
var r1;
var r5;
var REFRESH_MEDIUM_10;
var value;
const SMALL = StatusSizes.SMALL;
if (SMALL === a0) {
value = 22;
r1 = 4;
r5 = value;
} else if (StatusSizes.XSMALL === a0) {
value = 22;
r1 = 4;
r5 = value;
} else {
REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
value = 28;
if (REFRESH_MEDIUM_10 !== a0) {
r1 = 6;
r5 = value;
} else {
value = 22;
r1 = 4;
r5 = value;
}
}
const object2 = {width: r5};
const Math = global.Math;
object2.height = Math.floor(r5 / 2.33);
object2.dotSize = r1;
return object2;
}
@@ -0,0 +1,109 @@
/* Metro module 12735; source: design/void/Status/native/getStatusContainerStyle.tsx; dependencies: [1306, 2] */
function _fun97462(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12925:6, offset: 0x021823b2, size: 419 bytes, params: 8, frame: 22
var object2;
const closure = createContainerStyle;
const closure2 = function(a0) {
var value2 = a0 * VR_STATUS_SCALE;
var value3 = value2 + 2 * STATUS_PADDING;
return {width: value2 * VR_STATUS_WIDTH_RATIO + 2 * STATUS_PADDING, height: value3,
borderRadius: value3 / 2, paddingLeft: STATUS_PADDING, paddingRight: STATUS_PADDING, paddingTop: STATUS_PADDING, paddingBottom: STATUS_PADDING};
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const statusConstantsModule = require(1306) /* metro dependency 1306: StatusConstants */;
const env0_0 = statusConstantsModule.STATUS_PADDING;
const StatusSizes = statusConstantsModule.StatusSizes;
const env0_2 = statusConstantsModule.VR_STATUS_SCALE;
const env0_3 = statusConstantsModule.VR_STATUS_WIDTH_RATIO;
object2 = {};
let SMALL = StatusSizes.SMALL;
object2.containerSmall = closure(SMALL, false);
let REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
object2.containerRefreshMedium = closure(REFRESH_MEDIUM_10, false);
let MEDIUM = StatusSizes.MEDIUM;
object2.containerMedium = closure(MEDIUM, false);
let LARGE = StatusSizes.LARGE;
object2.containerLarge = closure(LARGE, false);
LARGE = StatusSizes.LARGE;
object2.containerXLarge = closure(LARGE, false);
SMALL = StatusSizes.SMALL;
object2.containerMobileOnlineSmall = closure(SMALL, true);
REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
object2.containerMobileOnlineRefreshMedium = closure(REFRESH_MEDIUM_10, true);
MEDIUM = StatusSizes.MEDIUM;
object2.containerMobileOnlineMedium = closure(MEDIUM, true);
LARGE = StatusSizes.LARGE;
object2.containerMobileOnlineLarge = closure(LARGE, true);
LARGE = StatusSizes.LARGE;
object2.containerMobileOnlineXLarge = closure(LARGE, true);
SMALL = StatusSizes.SMALL;
object2.containerVRSmall = closure2(SMALL);
REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
object2.containerVRRefreshMedium = closure2(REFRESH_MEDIUM_10);
MEDIUM = StatusSizes.MEDIUM;
object2.containerVRMedium = closure2(MEDIUM);
LARGE = StatusSizes.LARGE;
object2.containerVRLarge = closure2(LARGE);
LARGE = StatusSizes.LARGE;
object2.containerVRXLarge = closure2(LARGE);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Status/native/getStatusContainerStyle.tsx');
exports.default = getStatusContainerStyle;
}
function createContainerStyle(a0, a1) { // fn#97463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12925:1045, offset: 0x02182555, size: 139 bytes, params: 3, frame: 8
const value2 = a0 + 2 * STATUS_PADDING;
const value3 = 0;
return {width: value2,
height: value2 + (a1 ? value2 / 2.5 : value3), borderRadius: a1 ? value2 / 4 : value2 / 2, paddingLeft: STATUS_PADDING, paddingRight: STATUS_PADDING, paddingTop: STATUS_PADDING + (a1 ? 1 : value3), paddingBottom: STATUS_PADDING + (a1 ? 1 : value3)};
}
function getStatusContainerStyle(a0, a1) { // fn#97465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12925:1475, offset: 0x02182649, size: 360 bytes, params: 3, frame: 17
var binding;
const value = a2;
const r5 = value !== undefined ? value : false;
const SMALL = StatusSizes.SMALL;
if (r5) {
if (SMALL === a0) {
return env0_4.containerVRSmall;
}
if (StatusSizes.REFRESH_MEDIUM_10 === a0) {
return env0_4.containerVRRefreshMedium;
}
if (StatusSizes.MEDIUM === a0) {
return env0_4.containerVRMedium;
}
if (StatusSizes.LARGE === a0) {
return env0_4.containerVRLarge;
}
if (StatusSizes.XLARGE === a0) {
return env0_4.containerVRXLarge;
}
return createVRContainerStyle(a0);
}
if (SMALL === a0) {
binding = env0_4;
return a1 ? binding.containerMobileOnlineSmall : binding.containerSmall;
}
const REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
if (REFRESH_MEDIUM_10 === a0) {
binding = env0_4;
return a1 ? binding.containerMobileOnlineRefreshMedium : binding.containerRefreshMedium;
}
const MEDIUM = StatusSizes.MEDIUM;
if (MEDIUM === a0) {
binding = env0_4;
return a1 ? binding.containerMobileOnlineMedium : binding.containerMedium;
}
const LARGE = StatusSizes.LARGE;
if (LARGE === a0) {
binding = env0_4;
return a1 ? binding.containerMobileOnlineLarge : binding.containerLarge;
}
const XLARGE = StatusSizes.XLARGE;
if (XLARGE === a0) {
binding = env0_4;
return a1 ? binding.containerMobileOnlineXLarge : binding.containerXLarge;
}
return createContainerStyle(a0, a1);
}
@@ -0,0 +1,120 @@
/* Metro module 12728; source: design/void/SummarizedIconRow/native/SummarizedIconRow.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 2] */
function _fun97439(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:6, offset: 0x021812ce, size: 519 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {container: {'flexDirection': 'row', 'alignItems': 'center'}, iconWrapper: {'alignItems': 'center',
'justifyContent': 'center'}};
const object5 = {};
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object5.backgroundColor = BACKGROUND_BASE_LOW;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.overflowSquircleWrap = object5;
let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object3.overflowSquircle = {'backgroundColor': null, 'margin': 3, 'paddingHorizontal': 8, 'height': 30,
'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': 10, backgroundColor: BACKGROUND_BASE_LOWEST};
const object6 = {'margin': 2, 'paddingHorizontal': 8, 'height': 32, 'alignItems': 'center',
'justifyContent': 'center'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object6.backgroundColor = BACKGROUND_BASE_LOWEST;
object3.overflowTextOnly = object6;
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object3.overflowCircleWrap = {backgroundColor: BACKGROUND_BASE_LOW, borderRadius: 17};
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object3.overflowCircle = {'backgroundColor': null, 'margin': 2, 'paddingHorizontal': 8, 'height': 30,
'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': 15, backgroundColor: BACKGROUND_BASE_LOWEST};
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/SummarizedIconRow/native/SummarizedIconRow.tsx');
exports.default = SummarizedIconRow;
exports.OverflowText = OverflowText;
exports.OverflowTextSmall = OverflowTextSmall;
exports.OverflowCircle = OverflowCircle;
}
function OverflowSquircle({overflow, style}) { // fn#97440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:989, offset: 0x021814d5, size: 176 bytes, params: 2, frame: 22
const styles = useStyles();
const items2 = [styles.overflowSquircleWrap, style];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2}>
<View style={styles.overflowSquircle}>
<Text variant="text-xs/medium">
{'+' + overflow}
</Text>
</View>
</View>
);
}
function SummarizedIconRow({items, max, renderItem, offsetAmount, iconWrapperStyle, overflowStyle, style, overflowComponent = OverflowSquircle}) { // fn#97441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:1306, offset: 0x02181585, size: 218 bytes, params: 2, frame: 19
max = max === undefined ? 8 : max;
const styles = useStyles();
const Math = global.Math;
const env0_8 = Math.max(items.length - max, 0);
return (
<View style={[styles.container, style]}>
{items.map(_fun97442)}
</View>
);
}
function OverflowText({overflow, style}) { // fn#97443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:1807, offset: 0x02181764, size: 146 bytes, params: 2, frame: 19
const styles = useStyles();
const items2 = [styles.overflowTextOnly, style];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2}>
<Text variant="text-xs/medium">
{'+' + overflow}
</Text>
</View>
);
}
function OverflowTextSmall({overflow, style}) { // fn#97444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:1994, offset: 0x021817f6, size: 146 bytes, params: 2, frame: 19
const styles = useStyles();
const items2 = [styles.overflowTextOnly, style];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2}>
<Text variant="text-xxs/medium">
{'+' + overflow}
</Text>
</View>
);
}
function OverflowCircle({overflow, style}) { // fn#97445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:2184, offset: 0x02181888, size: 176 bytes, params: 2, frame: 22
const styles = useStyles();
const items2 = [styles.overflowCircleWrap, style];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2}>
<View style={styles.overflowCircle}>
<Text variant="text-xs/medium">
{'+' + overflow}
</Text>
</View>
</View>
);
}
function _fun97442(a0, a1) { // fn#97442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12918:1545, offset: 0x0218165f, size: 261 bytes, params: 3, frame: 23
if (a1 >= max) {
return undefined;
}
return a1 !== max - 1 ? a0 ? <View style={[styles.iconWrapper, iconWrapperStyle,
a1 !== 0 ? {marginLeft: offsetAmount} : {}]} key={a1}>{renderItem(a0, a1 === global.Math.min(items.length,
max) - 1)}</View> : null : env0_8 > 0 ? ((Component) => <Component style={[{marginLeft: offsetAmount},
overflowStyle]} overflow={env0_8 + 1} key={a1} />)(env0_6) : a0 ? <View style={[styles.iconWrapper,
iconWrapperStyle, a1 !== 0 ? {marginLeft: offsetAmount} : {}]} key={a1}>{renderItem(a0,
a1 === global.Math.min(items.length, max) - 1)}</View> : null;
}
@@ -0,0 +1,59 @@
/* Metro module 9102; source: design/void/TextInput/native/TextInput.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4002, 477, 4000, 2] */
function _fun71214(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9287:6, offset: 0x01d19274, size: 327 bytes, params: 8, frame: 23
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_3 = (require(27) /* metro dependency 27 */).TextInput;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.KeyboardThemes;
const Fonts = constantsModule.Fonts;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'fontSize': 16, 'alignSelf': 'center'};
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
object4.fontFamily = PRIMARY_MEDIUM;
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object4.color = TEXT_DEFAULT;
object3.input = object4;
const INPUT_PLACEHOLDER_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_PLACEHOLDER_TEXT_DEFAULT;
object3.placeholderTextColor = {color: INPUT_PLACEHOLDER_TEXT_DEFAULT};
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object3]);
value = value.forwardRef(_fun71215);
value.displayName = 'VoidTextInput';
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/TextInput/native/TextInput.tsx');
exports.default = value;
}
function _fun71215(a0, a1) { // fn#71215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9287:397, offset: 0x01d193bb, size: 350 bytes, params: 3, frame: 23
const style = a0.style;
const value = Object.create(null);
value.style = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const sharedModule = require(4002) /* metro dependency 4002: shared */;
const useThemeContext = sharedModule.useThemeContext;
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
const isThemeDark2 = sharedModule.isThemeDark(theme);
const unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
const r9 = isThemeDark2 ? unsafe_rawColors.PRIMARY_100 : unsafe_rawColors.PRIMARY_500;
const items2 = [styles.input, style];
const r7 = sharedModule.isThemeDark(theme) ? KeyboardThemes.DARK : KeyboardThemes.LIGHT;
const color = styles.placeholderTextColor.color;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
return (
<TextInput
ref={a1}
style={items2}
keyboardAppearance={r7}
placeholderTextColor={color}
selectionColor={platformUtilsModule.isAndroid() ? (require(4000) /* metro dependency 4000: ColorUtils */).hexWithOpacity(r9,
0.5) : r9}
{...value2}
/>
);
}
@@ -0,0 +1,19 @@
/* Metro module 12729; source: design/void/ThemedIcon/native/ThemedIcon.tsx; dependencies: [31, 33, 3860, 4580, 2] */
function _fun97446(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12919:6, offset: 0x02181938, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/ThemedIcon/native/ThemedIcon.tsx');
exports.default = ThemedIcon;
}
function ThemedIcon(a0) { // fn#97447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12919:206, offset: 0x021819c2, size: 110 bytes, params: 2, frame: 17
const themedColor = a0.themedColor;
const value = Object.create(null);
value.themedColor = 0;
return ((Component) => <Component color={(require(3860) /* metro dependency 3860: useToken */).useToken(themedColor)} {...copyDataProperties({},
a0, value, undefined)} />)(importDefault(4580) /* metro dependency 4580: Icon */);
}
@@ -0,0 +1,20 @@
/* Metro module 12730; source: design/void/ThumbnailImage/native/ThumbnailImage.tsx; dependencies: [31, 27, 33, 477, 12731, 2] */
function _fun97448(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12920:6, offset: 0x02181a30, size: 187 bytes, params: 8, frame: 18
var property;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const Image = (require(27) /* metro dependency 27 */).Image;
const env0_0 = (require(33) /* metro dependency 33 */).jsx;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
if (platformUtilsModule.isAndroid()) {
property = (require(12731) /* metro dependency 12731: LocalImageThumbnailNativeComponent */).default;
}
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/ThumbnailImage/native/ThumbnailImage.tsx');
exports.default = LocalImageThumbnail;
}
function LocalImageThumbnail(a0) { // fn#97449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12920:180, offset: 0x02181aeb, size: 33 bytes, params: 2, frame: 13
return ((Component) => <Component {...a0} />)(env0_1);
}
@@ -0,0 +1,88 @@
/* Metro module 12732; source: design/void/Tooltip/native/Tooltip.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1360, 1305, 2] */
function _fun97452(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12922:6, offset: 0x02181b9d, size: 531 bytes, params: 8, frame: 25
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const object2 = {'padding': 10, 'borderRadius': null, 'alignSelf': 'flex-start', 'minWidth': 60,
'alignItems': 'center'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
let BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object2.backgroundColor = BACKGROUND_BRAND;
object.container = object2;
const object8 = {};
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
object8.fontFamily = PRIMARY_MEDIUM;
object8.fontSize = 12;
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object8.color = WHITE;
object.label = object8;
const object9 = {'fontFamily': null, 'fontSize': 16, 'lineHeight': 20, 'marginBottom': 4};
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object9.fontFamily = PRIMARY_SEMIBOLD;
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object9.color = WHITE;
object.title = object9;
const object10 = {'width': 0, 'height': 0, 'borderStyle': 'solid', 'borderLeftColor': 'transparent',
'borderRightColor': 'transparent'};
BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object10.borderTopColor = BACKGROUND_BRAND;
BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object10.borderBottomColor = BACKGROUND_BRAND;
object.arrow = object10;
const env0_8 = Reflect.apply(createStyles, value, [object]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Tooltip/native/Tooltip.tsx');
exports.default = Tooltip_97453;
exports.TooltipArrowDirections = {UP: 'UP', DOWN: 'DOWN'};
exports.TooltipArrowPositions = {CENTER: 'CENTER', RIGHT: 'RIGHT', LEFT: 'LEFT'};
}
function Tooltip_97453({style, arrowStyle, label, title, containerStyle, labelStyle, children, arrowWidth, arrowHeight, arrowOffset, arrowPosition = env0_7.LEFT, arrowDirection = env0_6.UP, onLayout}) { // fn#97453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12922:864, offset: 0x02181db0, size: 618 bytes, params: 2, frame: 34
arrowWidth = arrowWidth === undefined ? 16 : arrowWidth;
arrowHeight = arrowHeight === undefined ? 8 : arrowHeight;
arrowOffset = arrowOffset === undefined ? 0 : arrowOffset;
const styles = useStyles();
const value2 = env0_2.useMemo(_fun97454, [arrowPosition, arrowOffset]);
const UP = env0_6.UP;
const items2 = [arrowDirection === UP && <View style={[styles.arrow,
{borderLeftWidth: arrowWidth / 2, borderRightWidth: arrowWidth / 2, borderBottomWidth: arrowHeight}, value2,
arrowStyle]} />];
items2[1] = <View onLayout={onLayout} style={[styles.container,
containerStyle]}>{title != null ? ((LegacyText) => <LegacyText style={styles.title} accessibilityRole="header">{title}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText) : null}{label != null ? ((LegacyText) => <LegacyText style={[styles.label,
labelStyle]}>{label}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText) : null}{children}</View>;
const DOWN = env0_6.DOWN;
items2[2] = arrowDirection === DOWN && <View style={[styles.arrow,
{borderLeftWidth: arrowWidth / 2, borderRightWidth: arrowWidth / 2, borderTopWidth: arrowHeight}, value2,
arrowStyle]} />;
return (
<View style={style}>
{items2}
</View>
);
}
function _fun97454() { // fn#97454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12922:1089, offset: 0x0218201a, size: 150 bytes, params: 1, frame: 13
const binding = env0_1;
const LEFT = env1_7.LEFT;
if (LEFT === binding) {
return {alignSelf: 'flex-start', left: arrowOffset};
}
const CENTER = env1_7.CENTER;
if (CENTER === binding) {
return {alignSelf: 'center'};
}
const RIGHT = env1_7.RIGHT;
if (RIGHT === binding) {
return {alignSelf: 'flex-end', right: arrowOffset};
}
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(env0_1);
}
@@ -0,0 +1,127 @@
/* Metro module 8792; source: design/void/TouchableHitBox/native/TouchableHitBox.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 5278, 3868, 2] */
function _fun68732(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:6, offset: 0x01c5a98b, size: 443 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_7 = (require(27) /* metro dependency 27 */).ActivityIndicator;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
const object = {'flexGrow': 0, 'flexShrink': 1, 'justifyContent': 'center', 'alignItems': 'center',
'backgroundColor': 'transparent', 'alignSelf': 'flex-start'};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const env0_9 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [{button: object,
buttonText: {'lineHeight': 24, 'margin': 10, 'maxWidth': 60, 'fontSize': 16}, buttonIcon: {margin: 10},
buttonSpinner: {margin: 12}, buttonDisabled: {opacity: 0.6}}]);
const PureComponent = value.PureComponent;
value = _fun68736(PureComponent);
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
value.contextType = ThemeContext;
value.defaultProps = {onPress: function() {
}};
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/TouchableHitBox/native/TouchableHitBox.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_68733() { // fn#68733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:200, offset: 0x01c5ab46, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_68733_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun68736(a0) { // fn#68736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:743, offset: 0x01c5aba8, size: 72 bytes, params: 2, frame: 15
const closure = TouchableHitBox;
env0_6(closure, a0);
return env0_3(closure, [{key: 'render', value: value_68738}]);
}
function value_68738() { // fn#68738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8977:1044, offset: 0x01c5abf0, size: 580 bytes, params: 1, frame: 37
var r4;
const binding = env1_9;
const context = this.context;
const value2 = undefined;
const value3 = binding(context);
const props = this.props;
const disabled = props.disabled;
const source = props.source;
const text = props.text;
const loading = props.loading;
const activeOpacity = props.activeOpacity;
const onPress = props.onPress;
const onLongPress = props.onLongPress;
const style = props.style;
const IconComponent = props.IconComponent;
const iconSize = props.iconSize;
const iconStyle = props.iconStyle;
const color = props.color;
const disableColor = props.disableColor;
const r23 = value2 !== disableColor && disableColor;
const accessibilityLabel = props.accessibilityLabel;
const accessibilityRole = props.accessibilityRole;
const accessibilityState = props.accessibilityState;
const children = props.children;
if (source != null) {
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
r4 = <Icon style={[value3.buttonIcon, disabled && value3.buttonDisabled,
iconStyle]} source={source} color={color} size={iconSize} disableColor={r23} />;
} else {
r4 = value2;
}
if (loading) {
r4 = <ActivityIndicator style={value3.buttonSpinner} animating color={color} />;
} else if (text != null) {
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
r4 = <LegacyText numberOfLines={1} style={[value3.buttonText, disabled && value3.buttonDisabled,
{color: color}]}>{text}</LegacyText>;
} else {
r4 = IconComponent == null ? source == null ? children ?? value2 : r4 : source != null ? <IconComponent size="sm" color={color} style={[value3.buttonIcon,
disabled && value3.buttonDisabled, iconStyle]} /> : source == null ? children ?? value2 : r4;
}
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
return (
<PressableOpacity
accessibilityRole={accessibilityRole}
accessibilityLabel={accessibilityLabel}
accessibilityState={accessibilityState}
onPress={onPress}
onLongPress={onLongPress}
activeOpacity={activeOpacity}
style={[value3.button, style]}
disabled={disabled || loading}
>
{r4}
</PressableOpacity>
);
}
@@ -0,0 +1,39 @@
/* Metro module 12733; source: design/void/WarningCircle/native/WarningCircle.tsx; dependencies: [31, 33, 7744, 2] */
function _fun97455(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12923:6, offset: 0x021820b0, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/WarningCircle/native/WarningCircle.tsx');
exports.default = WarningCircle;
}
function WarningCircle(a0) { // fn#97456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12923:212, offset: 0x02182133, size: 211 bytes, params: 2, frame: 21
let width = a0.width;
width = width === undefined ? 20 : width;
let height = a0.height;
height = height === undefined ? 20 : height;
let color = a0.color;
color = color === undefined ? 'currentColor' : color;
const object2 = {'width': 0, 'height': 0, 'color': 0};
silentSetPrototypeOf(object2, null, undefined);
const value = copyDataProperties({}, a0, object2, width);
const Svg = (require(7744) /* metro dependency 7744 */).Svg;
const svgProps = {...value};
svgProps['width'] = width;
svgProps['height'] = height;
svgProps['viewBox'] = '0 0 20 20';
const Path = (require(7744) /* metro dependency 7744 */).Path;
return (
<Svg {...svgProps}>
<Path
d="M10 0C4.486 0 0 4.486 0 10C0 15.515 4.486 20 10 20C15.514 20 20 15.515 20 10C20 4.486 15.514 0 10 0ZM9 4H11V11H9V4ZM10 15.25C9.31 15.25 8.75 14.691 8.75 14C8.75 13.31 9.31 12.75 10 12.75C10.69 12.75 11.25 13.31 11.25 14C11.25 14.691 10.69 15.25 10 15.25Z"
fillRule="evenodd"
clipRule="evenodd"
fill={color}
/>
</Svg>
);
}
+213
View File
@@ -0,0 +1,213 @@
/* Metro module 1305; source: design/void/native.tsx; dependencies: [1306, 1307, 2, 1308, 12716, 7900, 12717, 12720, 12721, 12722, 12723, 12724, 12725, 4509, 12726, 12728, 9102, 12729, 12730, 12732, 12733, 12734, 12735, 12736, 4580, 10252, 12745, 12747, 12727, 12749, 12751, 12752, 12753, 12754, 12755, 12756, 12757, 8002, 12758, 12810, 12811, 12822, 12823, 12824, 8001, 7972, 5278, 12104, 8792, 11025] */
function _fun14420(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1432:6, offset: 0x00e04e38, size: 2572 bytes, params: 8, frame: 25
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const STATUS_PADDING = (require(1306) /* metro dependency 1306: StatusConstants */).STATUS_PADDING;
const StatusSizes = (require(1306) /* metro dependency 1306: StatusConstants */).StatusSizes;
const BADGE_SIZE = (require(1307) /* metro dependency 1307: BadgeConstants */).BADGE_SIZE;
const BADGE_SIZE_UNREAD = (require(1307) /* metro dependency 1307: BadgeConstants */).BADGE_SIZE_UNREAD;
const BADGE_PADDING = (require(1307) /* metro dependency 1307: BadgeConstants */).BADGE_PADDING;
const BADGE_MASK_SIZE = (require(1307) /* metro dependency 1307: BadgeConstants */).BADGE_MASK_SIZE;
const BADGE_MASK_UNREAD_SIZE = (require(1307) /* metro dependency 1307: BadgeConstants */).BADGE_MASK_UNREAD_SIZE;
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/native.tsx');
exports.Button = importDefault(1308) /* metro dependency 1308: Button */;
const BUTTON_CORNER_RADIUS = (require(1308) /* metro dependency 1308: Button */).BUTTON_CORNER_RADIUS;
exports.BUTTON_CORNER_RADIUS = BUTTON_CORNER_RADIUS;
const useButtonStyles = (require(1308) /* metro dependency 1308: Button */).useButtonStyles;
exports.useButtonStyles = useButtonStyles;
const ButtonLooks = (require(1308) /* metro dependency 1308: Button */).ButtonLooks;
exports.ButtonLooks = ButtonLooks;
const ButtonColors = (require(1308) /* metro dependency 1308: Button */).ButtonColors;
exports.ButtonColors = ButtonColors;
const ButtonSizes = (require(1308) /* metro dependency 1308: Button */).ButtonSizes;
exports.ButtonSizes = ButtonSizes;
const getButtonStyles = (require(1308) /* metro dependency 1308: Button */).getButtonStyles;
exports.getButtonStyles = getButtonStyles;
const ButtonText = (require(1308) /* metro dependency 1308: Button */).ButtonText;
exports.ButtonText = ButtonText;
const getRedesignVariant = (require(1308) /* metro dependency 1308: Button */).getRedesignVariant;
exports.getRedesignVariant = getRedesignVariant;
const getRedesignSize = (require(1308) /* metro dependency 1308: Button */).getRedesignSize;
exports.getRedesignSize = getRedesignSize;
exports.ShinyButton = importDefault(12716) /* metro dependency 12716: ShinyButton */;
exports.BetaTag = importDefault(7900) /* metro dependency 7900: BetaTag */;
const BetaSizes = (require(7900) /* metro dependency 7900: BetaTag */).BetaSizes;
exports.BetaSizes = BetaSizes;
exports.Checkbox = importDefault(12717) /* metro dependency 12717: Checkbox */;
exports.CloseIcon = importDefault(12720) /* metro dependency 12720: CloseIcon */;
exports.Ellipsis = importDefault(12721) /* metro dependency 12721: Ellipsis */;
exports.GradientBorder = importDefault(12722) /* metro dependency 12722: GradientBorder */;
exports.HelpMessage = importDefault(12723) /* metro dependency 12723: HelpMessage */;
const HelpMessageTypes = (require(12723) /* metro dependency 12723: HelpMessage */).HelpMessageTypes;
exports.HelpMessageTypes = HelpMessageTypes;
exports.IconPill = importDefault(12724) /* metro dependency 12724: IconPill */;
exports.NewTag = importDefault(12725) /* metro dependency 12725: NewTag */;
exports.OverlayView = importDefault(4509) /* metro dependency 4509: OverlayView */;
const TransitionGroupOverlayView = (require(4509) /* metro dependency 4509: OverlayView */).TransitionGroupOverlayView;
exports.TransitionGroupOverlayView = TransitionGroupOverlayView;
const NonExpandingOverlayView = (require(4509) /* metro dependency 4509: OverlayView */).NonExpandingOverlayView;
exports.NonExpandingOverlayView = NonExpandingOverlayView;
exports.RadioGroup = importDefault(12726) /* metro dependency 12726: RadioGroup */;
const RadioIndicator = (require(12726) /* metro dependency 12726: RadioGroup */).RadioIndicator;
exports.RadioIndicator = RadioIndicator;
const RadioItem = (require(12726) /* metro dependency 12726: RadioGroup */).RadioItem;
exports.RadioItem = RadioItem;
exports.SummarizedIconRow = importDefault(12728) /* metro dependency 12728: SummarizedIconRow */;
const OverflowText = (require(12728) /* metro dependency 12728: SummarizedIconRow */).OverflowText;
exports.OverflowText = OverflowText;
const OverflowTextSmall = (require(12728) /* metro dependency 12728: SummarizedIconRow */).OverflowTextSmall;
exports.OverflowTextSmall = OverflowTextSmall;
const OverflowCircle = (require(12728) /* metro dependency 12728: SummarizedIconRow */).OverflowCircle;
exports.OverflowCircle = OverflowCircle;
exports.TextInput = importDefault(9102) /* metro dependency 9102: TextInput */;
exports.ThemedIcon = importDefault(12729) /* metro dependency 12729: ThemedIcon */;
exports.ThumbnailImage = importDefault(12730) /* metro dependency 12730: ThumbnailImage */;
exports.Tooltip = importDefault(12732) /* metro dependency 12732: Tooltip */;
const TooltipArrowDirections = (require(12732) /* metro dependency 12732: Tooltip */).TooltipArrowDirections;
exports.TooltipArrowDirections = TooltipArrowDirections;
const TooltipArrowPositions = (require(12732) /* metro dependency 12732: Tooltip */).TooltipArrowPositions;
exports.TooltipArrowPositions = TooltipArrowPositions;
exports.WarningCircle = importDefault(12733) /* metro dependency 12733: WarningCircle */;
exports.STATUS_PADDING = STATUS_PADDING;
exports.StatusSizes = StatusSizes;
const getAnimatedTypingTranslateX = (require(12734) /* metro dependency 12734: StatusUtils */).getAnimatedTypingTranslateX;
exports.getAnimatedTypingTranslateX = getAnimatedTypingTranslateX;
const getMobileStatusContainerRect = (require(12734) /* metro dependency 12734: StatusUtils */).getMobileStatusContainerRect;
exports.getMobileStatusContainerRect = getMobileStatusContainerRect;
const getStatusTypingDimensions = (require(12734) /* metro dependency 12734: StatusUtils */).getStatusTypingDimensions;
exports.getStatusTypingDimensions = getStatusTypingDimensions;
exports.getStatusContainerStyle = importDefault(12735) /* metro dependency 12735: getStatusContainerStyle */;
exports.Status = importDefault(12736) /* metro dependency 12736: Status */;
const StatusWithTyping = (require(12736) /* metro dependency 12736: Status */).StatusWithTyping;
exports.StatusWithTyping = StatusWithTyping;
exports.Icon = importDefault(4580) /* metro dependency 4580: Icon */;
const IconSizes = (require(4580) /* metro dependency 4580: Icon */).IconSizes;
exports.IconSizes = IconSizes;
const getIconSize = (require(4580) /* metro dependency 4580: Icon */).getIconSize;
exports.getIconSize = getIconSize;
const getIconStyle = (require(4580) /* metro dependency 4580: Icon */).getIconStyle;
exports.getIconStyle = getIconStyle;
exports.CutoutableAvatarImage = importDefault(10252) /* metro dependency 10252: CutoutableAvatarImage */;
const AvatarSizes = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AvatarSizes;
exports.AvatarSizes = AvatarSizes;
const AVATAR_SIZE_MAP = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).AVATAR_SIZE_MAP;
exports.AVATAR_SIZE_MAP = AVATAR_SIZE_MAP;
const styles = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).styles;
exports.avatarStyles = styles;
const CutoutDirection = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).CutoutDirection;
exports.CutoutDirection = CutoutDirection;
const CutoutType = (require(10252) /* metro dependency 10252: CutoutableAvatarImage */).CutoutType;
exports.CutoutType = CutoutType;
exports.Avatar = importDefault(12745) /* metro dependency 12745: Avatar */;
const getStatusSize = (require(12745) /* metro dependency 12745: Avatar */).getStatusSize;
exports.getStatusSize = getStatusSize;
exports.AccessibilityFocusView = importDefault(12747) /* metro dependency 12747: AccessibilityFocusView */;
exports.Collapsible = importDefault(12727) /* metro dependency 12727: Collapsible */;
exports.PassthroughTouchView = importDefault(12749) /* metro dependency 12749: PassthroughTouchView */;
exports.BADGE_SIZE = BADGE_SIZE;
exports.BADGE_SIZE_UNREAD = BADGE_SIZE_UNREAD;
exports.BADGE_PADDING = BADGE_PADDING;
exports.BADGE_MASK_SIZE = BADGE_MASK_SIZE;
exports.BADGE_MASK_UNREAD_SIZE = BADGE_MASK_UNREAD_SIZE;
const STANDARD_EASING = (require(12751) /* metro dependency 12751: Easing */).STANDARD_EASING;
exports.STANDARD_EASING = STANDARD_EASING;
const DECELERATED_EASING = (require(12751) /* metro dependency 12751: Easing */).DECELERATED_EASING;
exports.DECELERATED_EASING = DECELERATED_EASING;
exports.Spacer = importDefault(12752) /* metro dependency 12752: Spacer */;
exports.LiveTag = importDefault(12753) /* metro dependency 12753: LiveTag */;
const RoleDot = (require(12754) /* metro dependency 12754: RoleDot */).RoleDot;
exports.RoleDot = RoleDot;
exports.generateBoxShadowStyle = (require(12755) /* metro dependency 12755: Shadows */).generateBoxShadowStyle;
const EIGHT_DP_ELEVATION_SHADOW_PARAMS = (require(12755) /* metro dependency 12755: Shadows */).EIGHT_DP_ELEVATION_SHADOW_PARAMS;
exports.EIGHT_DP_ELEVATION_SHADOW_PARAMS = EIGHT_DP_ELEVATION_SHADOW_PARAMS;
const FOUR_DP_ELEVATION_SHADOW_PARAMS = (require(12755) /* metro dependency 12755: Shadows */).FOUR_DP_ELEVATION_SHADOW_PARAMS;
exports.FOUR_DP_ELEVATION_SHADOW_PARAMS = FOUR_DP_ELEVATION_SHADOW_PARAMS;
const EXPERIMENTAL_HIGH_ELEVATION_SHADOW_PARAMS = (require(12755) /* metro dependency 12755: Shadows */).EXPERIMENTAL_HIGH_ELEVATION_SHADOW_PARAMS;
exports.EXPERIMENTAL_HIGH_ELEVATION_SHADOW_PARAMS = EXPERIMENTAL_HIGH_ELEVATION_SHADOW_PARAMS;
const NO_ELEVATION_SHADOW_PARAMS = (require(12755) /* metro dependency 12755: Shadows */).NO_ELEVATION_SHADOW_PARAMS;
exports.NO_ELEVATION_SHADOW_PARAMS = NO_ELEVATION_SHADOW_PARAMS;
exports.NitroWheel = importDefault(12756) /* metro dependency 12756: NitroWheel */;
exports.EmptyState = importDefault(12757) /* metro dependency 12757: EmptyState */;
exports.LegacyText = importDefault(8002) /* metro dependency 8002: LegacyText */;
const RNTextInput = (require(12758) /* metro dependency 12758: Atoms */).RNTextInput;
exports.RNTextInput = RNTextInput;
exports.Badge = importDefault(12810) /* metro dependency 12810: Badge */;
const MaskedBadge = (require(12810) /* metro dependency 12810: Badge */).MaskedBadge;
exports.MaskedBadge = MaskedBadge;
exports.CarouselPagination = importDefault(12811) /* metro dependency 12811: CarouselPagination */;
exports.InputView = importDefault(12822) /* metro dependency 12822: InputView */;
const ClearButtonVisibility = (require(12822) /* metro dependency 12822: InputView */).ClearButtonVisibility;
exports.ClearButtonVisibility = ClearButtonVisibility;
const BadgeColors = (require(12823) /* metro dependency 12823: Badges */).BadgeColors;
exports.BadgeColors = BadgeColors;
const TextBadge = (require(12823) /* metro dependency 12823: Badges */).TextBadge;
exports.TextBadge = TextBadge;
exports.RefreshEmptyState = importDefault(12824) /* metro dependency 12824: RefreshEmptyState */;
const ThemedEmptyState = (require(12824) /* metro dependency 12824: RefreshEmptyState */).ThemedEmptyState;
exports.ThemedEmptyState = ThemedEmptyState;
exports.CardSection = importDefault(8001) /* metro dependency 8001: CardSection */;
const Form = (require(7972) /* metro dependency 7972: native */).Form;
exports.Form = Form;
const FormArrow = (require(7972) /* metro dependency 7972: native */).FormArrow;
exports.FormArrow = FormArrow;
const FormCheckbox = (require(7972) /* metro dependency 7972: native */).FormCheckbox;
exports.FormCheckbox = FormCheckbox;
const FormCheckmark = (require(7972) /* metro dependency 7972: native */).FormCheckmark;
exports.FormCheckmark = FormCheckmark;
const FormCTA = (require(7972) /* metro dependency 7972: native */).FormCTA;
exports.FormCTA = FormCTA;
const FormCTAButton = (require(7972) /* metro dependency 7972: native */).FormCTAButton;
exports.FormCTAButton = FormCTAButton;
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
exports.FormDivider = FormDivider;
const FormHint = (require(7972) /* metro dependency 7972: native */).FormHint;
exports.FormHint = FormHint;
const FormIcon = (require(7972) /* metro dependency 7972: native */).FormIcon;
exports.FormIcon = FormIcon;
const FormInput = (require(7972) /* metro dependency 7972: native */).FormInput;
exports.FormInput = FormInput;
const FormLabel = (require(7972) /* metro dependency 7972: native */).FormLabel;
exports.FormLabel = FormLabel;
const FormRadio = (require(7972) /* metro dependency 7972: native */).FormRadio;
exports.FormRadio = FormRadio;
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
exports.FormRow = FormRow;
const FormSection = (require(7972) /* metro dependency 7972: native */).FormSection;
exports.FormSection = FormSection;
const FormSelect = (require(7972) /* metro dependency 7972: native */).FormSelect;
exports.FormSelect = FormSelect;
const FormSubLabel = (require(7972) /* metro dependency 7972: native */).FormSubLabel;
exports.FormSubLabel = FormSubLabel;
const FormSwitch = (require(7972) /* metro dependency 7972: native */).FormSwitch;
exports.FormSwitch = FormSwitch;
const FormText = (require(7972) /* metro dependency 7972: native */).FormText;
exports.FormText = FormText;
const FormTextColors = (require(7972) /* metro dependency 7972: native */).FormTextColors;
exports.FormTextColors = FormTextColors;
const FormTitle = (require(7972) /* metro dependency 7972: native */).FormTitle;
exports.FormTitle = FormTitle;
const FormSwitchRow = (require(7972) /* metro dependency 7972: native */).FormSwitchRow;
exports.FormSwitchRow = FormSwitchRow;
const FormRadioRow = (require(7972) /* metro dependency 7972: native */).FormRadioRow;
exports.FormRadioRow = FormRadioRow;
const FormCheckboxRow = (require(7972) /* metro dependency 7972: native */).FormCheckboxRow;
exports.FormCheckboxRow = FormCheckboxRow;
const FormRadioGroup = (require(7972) /* metro dependency 7972: native */).FormRadioGroup;
exports.FormRadioGroup = FormRadioGroup;
const FormSliderRow = (require(7972) /* metro dependency 7972: native */).FormSliderRow;
exports.FormSliderRow = FormSliderRow;
const FormCardSection = (require(7972) /* metro dependency 7972: native */).FormCardSection;
exports.FormCardSection = FormCardSection;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
exports.PressableOpacity = PressableOpacity;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
exports.PressableHighlight = PressableHighlight;
const SquareIconButton = (require(12104) /* metro dependency 12104: IconButton */).SquareIconButton;
exports.SquareIconButton = SquareIconButton;
const CircularIconButton = (require(12104) /* metro dependency 12104: IconButton */).CircularIconButton;
exports.CircularIconButton = CircularIconButton;
exports.TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
const RoleLabel = (require(11025) /* metro dependency 11025: RoleLabel */).RoleLabel;
exports.RoleLabel = RoleLabel;
}