Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,76 @@
|
||||
/* Metro module 10501; source: modules/custom_status/native/ClearAfterOptionsActionSheet.tsx; dependencies: [57, 31, 27, 8522, 33, 4501, 697, 6275, 6758, 1244, 7988, 7987, 10502, 4578, 4080, 2] */
|
||||
function _fun81216(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:6, offset: 0x01e9e928, size: 325 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(8522) /* metro dependency 8522: Constants */).ClearAfterOptions;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.content = {paddingHorizontal: PX_16};
|
||||
const object4 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.marginTop = PX_24;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingBottom = PX_16;
|
||||
object2.buttonWrapper = object4;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/native/ClearAfterOptionsActionSheet.tsx');
|
||||
exports.default = ClearAfterOptionsActionSheet;
|
||||
}
|
||||
|
||||
function ClearAfterOptionsActionSheet({initialValue, onChange}) { // fn#81217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:446, offset: 0x01e9ea6d, size: 459 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
const [env0_1, property] = env0_3(env0_4.useState(initialValue), 2);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {contentStyles: styles.content};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
bottomSheetProps.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['5XnRQ+']])} />;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
string = intl.string;
|
||||
const E45wvP = (require(1244) /* metro dependency 1244: indexNative */).t.E45wvP;
|
||||
const tableRadioGroup = <TableRadioGroup onChange={property} title={Reflect.apply(string, intl,
|
||||
[E45wvP])} defaultValue={initialValue} hasIcons={false}>{ClearAfterOptions.map(_fun81218)}</TableRadioGroup>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const object = {onPress: onPress_81219};
|
||||
string = intl.string;
|
||||
const TyCVIq = (require(1244) /* metro dependency 1244: indexNative */).t.TyCVIq;
|
||||
object.text = Reflect.apply(string, intl, [TyCVIq]);
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
{tableRadioGroup}
|
||||
<View style={styles.buttonWrapper}>
|
||||
<Button {...object} />
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun81218(a0) { // fn#81218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:842, offset: 0x01e9ec38, size: 78 bytes, params: 2, frame: 18
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
return (
|
||||
<TableRadioRow
|
||||
value={a0}
|
||||
label={(importDefault(10502) /* metro dependency 10502: formatClearAfterOption */)(a0)}
|
||||
key={a0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ClearAfterOptionsActionSheetOnPress() { // fn#81219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10687:968, owner: ClearAfterOptionsActionSheet.onPress, offset: 0x01e9ec86, size: 53 bytes, params: 1, frame: 12
|
||||
onChange(env0_1);
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/* Metro module 8691; source: modules/custom_status/native/CustomStatusPreview.tsx; dependencies: [31, 27, 6816, 33, 4501, 697, 8490, 8501, 8494, 8496, 8497, 4015, 4080, 8692, 1962, 3868, 8507, 8510, 8511, 8513, 8695, 8474, 2] */
|
||||
function _fun68302(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:6, offset: 0x01c47e2c, size: 237 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;
|
||||
let value = require(6816) /* metro dependency 6816: Constants */;
|
||||
const env0_5 = value.PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING;
|
||||
const env0_6 = value.UserProfileThemeTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun68303);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/native/CustomStatusPreview.tsx');
|
||||
exports.default = CustomStatusPreview;
|
||||
}
|
||||
|
||||
function _fun68303(a0) { // fn#68303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:255, offset: 0x01c47f19, size: 166 bytes, params: 2, frame: 18
|
||||
const object = {'flex': 1, 'position': 'relative', 'overflow': 'hidden', 'width': 323, 'maxHeight': 301};
|
||||
const value = 1;
|
||||
object.borderWidth = a0 ? undefined : value;
|
||||
const colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
object.borderColor = a0 ? colors.BORDER_MUTED : colors.BACKGROUND_SURFACE_HIGH;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const SHADOW_HIGH = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_HIGH;
|
||||
copyDataProperties(object, SHADOW_HIGH, importDefault);
|
||||
return {profileContainer: object, profileEffect: {zIndex: value}};
|
||||
}
|
||||
|
||||
function CustomStatusPreview({user, pendingStatusText, pendingStatusEmoji, placeholderText}) { // fn#68304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:639, offset: 0x01c47fbf, size: 843 bytes, params: 2, frame: 40
|
||||
var r8;
|
||||
var value;
|
||||
const value3 = (importDefault(8490) /* metro dependency 8490: useDisplayProfile */)(user.id);
|
||||
const value4 = (importDefault(8501) /* metro dependency 8501: useBadges */)(value3);
|
||||
const {theme, primaryColor,
|
||||
secondaryColor} = (importDefault(8494) /* metro dependency 8494: useProfileTheme */)({user: user,
|
||||
displayProfile: value3});
|
||||
const value6 = primaryColor != null;
|
||||
const styles = useStyles(value6);
|
||||
const value7 = (importDefault(8496) /* metro dependency 8496: UserProfileSharedStyles */)();
|
||||
const {gradientFallbackBackground, avatarBackground,
|
||||
containerBackground} = (require(8497) /* metro dependency 8497: useUserProfileColors */).useUserProfileColors({theme: theme,
|
||||
primaryColor: primaryColor, secondaryColor: secondaryColor});
|
||||
const value9 = env0_3.useCallback(_fun68305, [user, pendingStatusText, pendingStatusEmoji]);
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
const items3 = [styles.profileContainer];
|
||||
const items2 = [((Component) => <Component user={user} displayProfile={value3} bannerHeight={132} disableInteraction />)(importDefault(8507) /* metro dependency 8507: UserProfileBanner */)];
|
||||
const value11 = ((Component) => <Component user={user} backgroundColor={avatarBackground} disableStatus />)(importDefault(8510) /* metro dependency 8510: UserProfileAvatar */);
|
||||
const UserProfileGradientContainer = importDefault(8511) /* metro dependency 8511: UserProfileGradientContainer */;
|
||||
const items4 = [value7.profileContentWrapper];
|
||||
items4[1] = value7.profileContent;
|
||||
let r18 = pendingStatusText !== '' || pendingStatusEmoji !== null;
|
||||
r18 = !r18 ? placeholderText !== '' : r18;
|
||||
items4[2] = !r18 && ({paddingTop: PROFILE_CONTENT_WITHOUT_STATUS_TOP_PADDING});
|
||||
const value16 = ((Component) => <Component hasCustomProfileTheme={value6} style={value7.customStatusBubble} emojiOnlyStyle={value7.emojiOnlyCustomStatusBubble} onPressTruncatedStatus={value9} previewEmoji={pendingStatusEmoji} previewText={pendingStatusText} placeholderText={placeholderText} />)(importDefault(8513) /* metro dependency 8513: UserProfileCustomStatusBubble */);
|
||||
const UserProfilePrimaryInfo = importDefault(8695) /* metro dependency 8695: UserProfilePrimaryInfo */;
|
||||
const PREVIEW = UserProfileThemeTypes.PREVIEW;
|
||||
items2[1] = <View>{value11}<UserProfileGradientContainer fallbackBackground={gradientFallbackBackground} primaryColor={primaryColor} secondaryColor={primaryColor} containerStyle={items4}>{value16}<UserProfilePrimaryInfo user={user} themeType={PREVIEW} pronouns={value3?.pronouns} badges={value4} badgeContainerBackground={containerBackground} showBadgeToastOnPress={false} /></UserProfileGradientContainer></View>;
|
||||
const value17 = value3?.profileEffect != null;
|
||||
if (value17) {
|
||||
value = importDefault(8474) /* metro dependency 8474: ProfileEffect */;
|
||||
value = ((Component) => <Component skuId={value3 == null ? undefined : value3.profileEffect.skuId} style={styles.profileEffect} />)(value);
|
||||
r8 = value;
|
||||
} else {
|
||||
r8 = value17;
|
||||
}
|
||||
items2[2] = r8;
|
||||
return (
|
||||
<ThemeContextProvider
|
||||
theme={theme}
|
||||
primaryColor={primaryColor}
|
||||
secondaryColor={secondaryColor}
|
||||
>
|
||||
<View style={items3}>
|
||||
{items2}
|
||||
</View>
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun68305() { // fn#68305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8876:1050, offset: 0x01c4830a, size: 140 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
require(dependencyMap[11]).dismissKeyboard();
|
||||
value = importDefault(dependencyMap[12]);
|
||||
value.openLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths),
|
||||
'UserProfileCustomStatusActionSheet', {user: user, previewText: pendingStatusText,
|
||||
previewEmoji: pendingStatusEmoji}, 'stack');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 8520; source: modules/custom_status/native/CustomStatusUtils.tsx; dependencies: [5176, 5080, 8521, 1962, 478, 2] */
|
||||
function _fun67519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8705:6, offset: 0x01c275d7, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/native/CustomStatusUtils.tsx');
|
||||
exports.openEditCustomStatusModal = openEditCustomStatusModal;
|
||||
}
|
||||
|
||||
function openEditCustomStatusModal({analyticsLocations, prompt}) { // fn#67520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8705:204, offset: 0x01c2763e, size: 209 bytes, params: 2, frame: 21
|
||||
var object2;
|
||||
var r1;
|
||||
var moduleValue;
|
||||
const YouBarExperiment = require(dependencyMap[0]).YouBarExperiment;
|
||||
const getConfig = YouBarExperiment.getConfig;
|
||||
const enabled = Reflect.apply(getConfig, YouBarExperiment, [{location: 'open-edit-custom-status-modal'}]).enabled;
|
||||
const defaultImport = importDefault(dependencyMap[1]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
const value3 = require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
|
||||
object2 = {analyticsLocations: analyticsLocations, prompt: prompt};
|
||||
if (enabled) {
|
||||
r1 = {presentation: 'modal'};
|
||||
} else {
|
||||
moduleValue = require(dependencyMap[4]);
|
||||
r1 = moduleValue.isAndroid() ? {presentation: 'modal'} : undefined;
|
||||
}
|
||||
Reflect.apply(pushLazy, defaultImport, [value3, object2, undefined, r1]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,345 @@
|
||||
/* Metro module 8521; source: modules/custom_status/native/EditCustomStatusWithPreview.tsx; dependencies: [57, 31, 27, 1878, 8522, 661, 1881, 33, 4501, 697, 5278, 1244, 1305, 8523, 8524, 683, 6882, 566, 8525, 8526, 4002, 8528, 4570, 8529, 8690, 4015, 8691, 9603, 5282, 1599, 4573, 8852, 7980, 6231, 6238, 4080, 10501, 1962, 10503, 4071, 5080, 5176, 5280, 478, 2] */
|
||||
function _fun67521(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:6, offset: 0x01c2770f, size: 712 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_7 = (require(8522) /* metro dependency 8522: Constants */).STATUS_MAX_LENGTH;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const env0_9 = value.AnalyticsSections;
|
||||
const Fonts = value.Fonts;
|
||||
const env0_10 = value.NOOP;
|
||||
const env0_11 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'flexGrow': 1, 'padding': 16, 'rowGap': 24}};
|
||||
object2.statusSection = {rowGap: 8};
|
||||
const object4 = {'flexDirection': 'column', 'rowGap': 4, 'backgroundColor': null, 'borderRadius': null,
|
||||
'padding': 12};
|
||||
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
|
||||
object4.backgroundColor = INPUT_BACKGROUND_DEFAULT;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.statusInput = object4;
|
||||
object2.statusInputRow = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.emoji = {marginRight: 8};
|
||||
let TEXT_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STRONG;
|
||||
object2.status = {'color': null, 'lineHeight': 16, 'flexGrow': 1, 'alignSelf': 'flex-start', 'paddingVertical': 0,
|
||||
'paddingHorizontal': 0, color: TEXT_STRONG};
|
||||
const object5 = {'fontSize': 16, 'lineHeight': 20, 'fontFamily': null, 'color': null, 'flexGrow': 1,
|
||||
'height': 'auto', 'textAlignVertical': 'center'};
|
||||
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
|
||||
object5.fontFamily = PRIMARY_MEDIUM;
|
||||
TEXT_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STRONG;
|
||||
object5.color = TEXT_STRONG;
|
||||
object2.statusText = object5;
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object2.inputPlaceholder = {color: TEXT_MUTED};
|
||||
const object7 = {alignItems: 'center'};
|
||||
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object7, SHADOW_LOW, undefined);
|
||||
object2.previewContainer = object7;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object2.closeIcon = {tintColor: INTERACTIVE_TEXT_DEFAULT, flexShrink: 0};
|
||||
object2.statusSectionHeader = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/custom_status/native/EditCustomStatusWithPreview.tsx');
|
||||
exports.default = EditCustomStatusWithPreviewModal;
|
||||
}
|
||||
|
||||
function ClearInputButton({onPress}) { // fn#67522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:1176, offset: 0x01c279d7, 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 SMALL = Sizes.SMALL;
|
||||
iconProps.size = SMALL;
|
||||
return (
|
||||
<PressableOpacity
|
||||
style={{'borderRadius': 10, 'paddingLeft': 8}}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={Reflect.apply(string, intl, [VkKicb])}
|
||||
onPress={onPress}
|
||||
hitSlop={{'top': 8, 'bottom': 8, 'right': 8}}
|
||||
>
|
||||
<Icon {...iconProps} />
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function EditCustomStatusWithPreview({navigation, onClose, analyticsLocations, prompt}) { // fn#67523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:1523, offset: 0x01c27ad5, size: 2265 bytes, params: 2, frame: 55
|
||||
var r30;
|
||||
var r9;
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var KeyboardAwareScrollView;
|
||||
var items4;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items2;
|
||||
var PressableOpacity;
|
||||
var object9;
|
||||
var items3;
|
||||
var FormInput;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
var object15;
|
||||
var value35;
|
||||
let value = undefined;
|
||||
let env0_4 = value;
|
||||
let binding = env0_4;
|
||||
const value5 = binding.useRef(prompt ?? (importDefault(8524) /* metro dependency 8524: getRandomCustomStatusPrompt */)());
|
||||
const env0_3 = value5;
|
||||
env0_4.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[15]);
|
||||
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
defaultImport.track(OPEN_MODAL, {type: AnalyticsSections.EDIT_CUSTOM_STATUS_MODAL_WITH_PREVIEW,
|
||||
location_stack: analyticsLocations});
|
||||
}, [analyticsLocations]);
|
||||
const styles = useStyles();
|
||||
const value6 = (require(6882) /* metro dependency 6882: userSettingToActivity */).useCustomStatusActivity();
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
env0_4 = currentUser;
|
||||
const value7 = (importDefault(8525) /* metro dependency 8525: computeInitialClearAfter */)();
|
||||
binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const state = value6 == null ? value : value6.state;
|
||||
const value8 = '';
|
||||
const value10 = env0_3(Reflect.apply(useState, binding, [state ?? value8]), 2);
|
||||
const property = value10[0];
|
||||
const property2 = value10[1];
|
||||
binding = env0_4;
|
||||
useState = binding.useState;
|
||||
const value12 = env0_3(Reflect.apply(useState, binding, [(value6 == null ? value : value6.emoji) ?? null]), 2);
|
||||
const property3 = value12[0];
|
||||
const property4 = value12[1];
|
||||
const [property5, env0_10] = env0_3(env0_4.useState(value7), 2);
|
||||
const r40 = value5.current != null ? value5.current.label() : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xod367);
|
||||
const value17 = env0_4.useCallback(_fun67526, [property, property3, property5, onClose, analyticsLocations]);
|
||||
const value18 = env0_4.useCallback(function() {
|
||||
importDefault(dependencyMap[21])();
|
||||
var AccessibilityAnnouncer = require(dependencyMap[20]).AccessibilityAnnouncer;
|
||||
AccessibilityAnnouncer.announce(require(dependencyMap[11]).intl.string(require(dependencyMap[11]).t.YdUwBS));
|
||||
onClose();
|
||||
}, [onClose]);
|
||||
const value19 = env0_4.useRef(null);
|
||||
const value20 = env0_4.useCallback(_fun67528, []);
|
||||
const value22 = env0_4.useCallback(_fun67530, [env0_4.useCallback(_fun67529, [value20]), value20]);
|
||||
const value23 = env0_4.useCallback(_fun67531, [property4, property2]);
|
||||
const value24 = env0_4.useRef(null);
|
||||
const value25 = env0_4.useCallback(_fun67532, []);
|
||||
const env0_17 = env0_4.useRef({statusText: property, statusEmoji: property3, clearAfter: property5});
|
||||
const value26 = env0_4.useMemo(_fun67533, [property, property3, property5]);
|
||||
const value27 = env0_4.useCallback(_fun67534, [value26, onClose]);
|
||||
const value28 = env0_4.useMemo(_fun67535, [currentUser, property, property3, r40]);
|
||||
env0_4.useLayoutEffect(_fun67536, [navigation, value17, value26, value27]);
|
||||
if (currentUser == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
KeyboardAwareScrollView = (require(1599) /* metro dependency 1599 */).KeyboardAwareScrollView;
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items4 = [<View style={styles.previewContainer}>{value28}</View>];
|
||||
var viewBinding3Props = {style: styles.statusSection};
|
||||
items2 = [<View style={styles.statusSectionHeader}><Text accessibilityRole="header" variant="text-sm/semibold" color="text-default">{intl.string(t.zOdg0A)}</Text></View>];
|
||||
var viewBinding5Props = {style: styles.statusInput};
|
||||
var viewBinding6Props = {style: styles.statusInputRow};
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
items3 = [<PressableOpacity ref={value19} accessibilityLabel={intl.string(t.WkfRZP)} accessibilityValue={{text: property3 == null ? value : property3.name}} accessibilityRole="button" onPress={value22}>{((Component) => <Component emoji={property3} size={20} style={styles.emoji} withPlaceholder />)(importDefault(8852) /* metro dependency 8852: ActivityEmoji */)}</PressableOpacity>];
|
||||
FormInput = importDefault(7980) /* metro dependency 7980: FormInput */;
|
||||
items3[1] = <FormInput ref={value24} maxLength={STATUS_MAX_LENGTH} placeholder={r40} placeholderTextColor={styles.inputPlaceholder.color} accessibilityLabel={intl.string(t.xalUlT)} onSubmitEditing={value25} style={styles.status} value={property} onChange={property2} autoCorrect={false} showBorder={false} showTopContainer={false} autoCapitalize="none" inputTextStyle={styles.statusText} multiline submitBehavior="blurAndSubmit" returnKeyType="done" autoFocus />;
|
||||
r30 = property3 != null || value8 !== property;
|
||||
r30 = r30 && <ClearInputButton onPress={value23} />;
|
||||
items3[2] = r30;
|
||||
items2[1] = <View {...viewBinding5Props}><View {...viewBinding6Props}>{items3}</View></View>;
|
||||
items4[1] = <View {...viewBinding3Props}>{items2}</View>;
|
||||
items4[2] = <TableRowGroup hasIcons={false}><TableRow label={intl.string(t['+14vvU'])} arrow onPress={onPress_67538} trailing={<Text variant="text-sm/medium">{(importDefault(10503) /* metro dependency 10503: formatClearAfterValue */)(property5)}</Text>} /></TableRowGroup>;
|
||||
value35 = value6 != null;
|
||||
if (value35) {
|
||||
r9 = <TableRowGroup hasIcons><TableRow icon={((TrashIcon) => <TrashIcon color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL} />)((require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon)} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wO53tu)} onPress={value18} variant="danger" /></TableRowGroup>;
|
||||
} else {
|
||||
r9 = value35;
|
||||
}
|
||||
items4[3] = r9;
|
||||
value = <KeyboardAwareScrollView keyboardShouldPersistTaps="always"><View {...viewBindingProps}>{items4}</View></KeyboardAwareScrollView>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function EditCustomStatusWithPreviewModal({analyticsLocations, prompt}) { // fn#67539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:5486, offset: 0x01c288ba, size: 252 bytes, params: 2, frame: 19
|
||||
var object2;
|
||||
var r4;
|
||||
var moduleValue2;
|
||||
var value;
|
||||
const value2 = env0_4.useMemo(function() {
|
||||
return _fun67541(analyticsLocations, prompt);
|
||||
}, [analyticsLocations, prompt]);
|
||||
const value4 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('EditCustomStatusWithPreviewModal');
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
object2 = {initialRouteName: 'root', screens: value2};
|
||||
if (value4) {
|
||||
moduleValue2 = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
r4 = moduleValue2.isAndroid() ? undefined : 12;
|
||||
} else {
|
||||
r4 = undefined;
|
||||
}
|
||||
object2.headerStatusBarHeight = r4;
|
||||
if (value4) {
|
||||
value = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
r4 = value.isAndroid() ? undefined : {height: 56};
|
||||
} else {
|
||||
r4 = undefined;
|
||||
}
|
||||
object2.headerStyle = r4;
|
||||
return <Navigator {...object2} />;
|
||||
}
|
||||
|
||||
function _fun67526() { // fn#67526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:2179, offset: 0x01c283fa, size: 194 bytes, params: 1, frame: 17
|
||||
const value2 = undefined;
|
||||
(importDefault(8526) /* metro dependency 8526: setCustomStatus */)({text: env0_5, emojiInfo: env0_7,
|
||||
clearAfter: env0_9, analyticsLocations: analyticsLocations, prompt: env0_3.current ?? value2});
|
||||
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Og40Yn = (require(1244) /* metro dependency 1244: indexNative */).t.Og40Yn;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [Og40Yn])]);
|
||||
onClose();
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun67528() { // fn#67528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:2552, offset: 0x01c28538, size: 62 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(require(4570) /* metro dependency 4570: setAccessibilityFocusAndroid */).setAccessibilityFocus({ref: env0_13,
|
||||
delay: 500});
|
||||
}
|
||||
|
||||
function _fun67529(a0) { // fn#67529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:2630, offset: 0x01c28576, size: 112 bytes, params: 2, frame: 15
|
||||
env0_8({id: a0.id,
|
||||
name: a0.id != null || a0.surrogates == null ? a0.name ?? '' : a0.surrogates !== '' ? a0.surrogates : a0.name ?? '',
|
||||
animated: a0.animated});
|
||||
env0_14();
|
||||
}
|
||||
|
||||
function _fun67530() { // fn#67530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:2791, offset: 0x01c285e6, size: 76 bytes, params: 1, frame: 15
|
||||
const openEmojiPickerActionSheetModule = require(8529) /* metro dependency 8529: openEmojiPickerActionSheet */;
|
||||
const openEmojiPickerActionSheet = openEmojiPickerActionSheetModule.openEmojiPickerActionSheet;
|
||||
const STATUS = EmojiIntention.STATUS;
|
||||
Reflect.apply(openEmojiPickerActionSheet, openEmojiPickerActionSheetModule, [{onPressEmoji: env0_15,
|
||||
onClose: env0_14, pickerIntention: STATUS}]);
|
||||
}
|
||||
|
||||
function _fun67531() { // fn#67531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:2911, offset: 0x01c28632, size: 31 bytes, params: 1, frame: 12
|
||||
env0_8(null);
|
||||
env0_6('');
|
||||
}
|
||||
|
||||
function _fun67532() { // fn#67532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:2973, offset: 0x01c28651, size: 32 bytes, params: 1, frame: 9
|
||||
const current = env0_16.current;
|
||||
if (current != null) {
|
||||
current.blur();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun67533() { // fn#67533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:3087, offset: 0x01c28671, size: 80 bytes, params: 1, frame: 4
|
||||
let r0 = env0_5 !== env0_17.current.statusText || env0_7 !== env0_17.current.statusEmoji;
|
||||
r0 = !r0 ? env0_9 !== env0_17.current.clearAfter : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun67534() { // fn#67534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:3197, offset: 0x01c286c1, size: 91 bytes, params: 1, frame: 16
|
||||
const defaultImport = importDefault(8690) /* metro dependency 8690: maybeShowDiscardChangesAlert */;
|
||||
const object2 = {};
|
||||
object2.hasEdits = env0_18;
|
||||
object2.onHasEdits = (require(4015) /* metro dependency 4015: ChatInputUtils */).dismissKeyboard;
|
||||
object2.resetPending = NOOP;
|
||||
object2.onConfirm = onClose;
|
||||
defaultImport(object2);
|
||||
}
|
||||
|
||||
function _fun67535() { // fn#67535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:3311, offset: 0x01c2871c, size: 90 bytes, params: 1, frame: 16
|
||||
const currentUserBinding = currentUser;
|
||||
const value2 = null;
|
||||
return value2 != currentUserBinding ? ((Component) => <Component user={currentUser} pendingStatusText={env0_5} pendingStatusEmoji={env0_7} placeholderText={env0_11} />)(importDefault(8691) /* metro dependency 8691: CustomStatusPreview */) : value2;
|
||||
}
|
||||
|
||||
function _fun67536() { // fn#67536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:3446, offset: 0x01c28776, size: 81 bytes, params: 1, frame: 15
|
||||
const navigationBinding = navigation;
|
||||
const setOptions = navigationBinding.setOptions;
|
||||
const object2 = {headerRight: headerRight_67537};
|
||||
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(env0_19);
|
||||
Reflect.apply(setOptions, navigationBinding, [object2]);
|
||||
}
|
||||
|
||||
function EditCustomStatusWithPreviewOnPress() { // fn#67538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:4936, owner: EditCustomStatusWithPreview.onPress, offset: 0x01c2883d, size: 125 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
require(dependencyMap[25]).dismissKeyboard();
|
||||
value = importDefault(dependencyMap[35]);
|
||||
value.openLazy(require(dependencyMap[37])(dependencyMap[36], dependencyMap.paths), 'ClearAfterOptionsActionSheet',
|
||||
{initialValue: env0_9, onChange: env0_10});
|
||||
}
|
||||
|
||||
function _fun67540() { // fn#67540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:5578, offset: 0x01c289b6, size: 30 bytes, params: 1, frame: 13
|
||||
return _fun67541(analyticsLocations, prompt);
|
||||
}
|
||||
|
||||
function headerRight_67537() { // fn#67537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:3477, offset: 0x01c287c7, size: 118 bytes, params: 1, frame: 18
|
||||
const HeaderTextButton = (require(9603) /* metro dependency 9603: HeaderShared */).HeaderTextButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderTextButton
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
onPress={env1_12}
|
||||
disabled={!env1_18}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun67541(a0, a1) { // fn#67541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:5583, offset: 0x01c289d4, size: 172 bytes, params: 3, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Iuzg8R = (require(1244) /* metro dependency 1244: indexNative */).t.Iuzg8R;
|
||||
object.title = Reflect.apply(string, intl, [Iuzg8R]);
|
||||
object.headerTitle = headerTitle_67542;
|
||||
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
||||
object.ignoreKeyboard = true;
|
||||
object.render = render_67543;
|
||||
return {root: object};
|
||||
}
|
||||
|
||||
function headerTitle_67542() { // fn#67542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:5656, offset: 0x01c28a80, size: 96 bytes, params: 1, frame: 18
|
||||
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Iuzg8R = (require(1244) /* metro dependency 1244: indexNative */).t.Iuzg8R;
|
||||
return <GenericHeaderTitle title={Reflect.apply(string, intl, [Iuzg8R])} />;
|
||||
}
|
||||
|
||||
function render_67543(a0, a1) { // fn#67543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8706:5819, offset: 0x01c28ae0, size: 83 bytes, params: 3, frame: 15
|
||||
return (
|
||||
<EditCustomStatusWithPreview
|
||||
navigation={a1}
|
||||
onClose={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
|
||||
analyticsLocations={env0_0}
|
||||
prompt={require}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user