141 lines
8.4 KiB
TypeScript
141 lines
8.4 KiB
TypeScript
/* Metro module 7211; source: components_native/reactions/BurstReactionFirstSendActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 4080, 7212, 1244, 6275, 7172, 7213, 7152, 1305, 4573, 4578, 3968, 1365, 7211, 1962, 694, 2] */
|
|
import Native from '../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import ActionSheetActionCreators from '../../modules/action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import BurstReactionAnimationPreview from '../../modules/messages/native/burst_reactions/BurstReactionAnimationPreview.tsx'; /* Metro dependency 7213 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as NativeModule from '../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as TextModule from '../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ButtonNativeModule from '../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
import * as BottomSheetNativeModule from '../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as MessageReactionsTypesModule from '../../modules/messages/MessageReactionsTypes.tsx'; /* Metro dependency 7152 */
|
|
import * as BurstReactionEffectUtilsModule from '../../modules/messages/native/burst_reactions/BurstReactionEffectUtils.tsx'; /* Metro dependency 7172 */
|
|
import * as GetDeviceSpecificStringModule from '../../modules/intl/overrides/getDeviceSpecificString.tsx'; /* Metro dependency 7212 */
|
|
|
|
function _fun57695(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7389:6, offset: 0x016b3592, size: 402 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = ReactNativeModule;
|
|
const StyleSheet = value.StyleSheet;
|
|
const env0_3 = value.View;
|
|
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;
|
|
object = {container: {'paddingTop': 24, 'paddingBottom': 24, 'paddingLeft': 12, 'paddingRight': 12}};
|
|
const object2 = {};
|
|
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
|
|
object2['flex'] = 1;
|
|
object2['alignItems'] = 'center';
|
|
object2['justifyContent'] = 'center';
|
|
object2['top'] = -120;
|
|
object.fill = object2;
|
|
const TEXT_SUBTLE = (Native).colors.TEXT_SUBTLE;
|
|
object.nitroWheel = {'tintColor': null, 'width': 37.5, 'height': 37.5, tintColor: TEXT_SUBTLE};
|
|
object.textContainer = {'flexDirection': 'row', 'flexShrink': 1, 'alignItems': 'center', 'alignSelf': 'center',
|
|
'textAlign': 'center'};
|
|
object.body = {'paddingTop': 8, 'paddingBottom': 18};
|
|
object.content = {paddingHorizontal: 16};
|
|
const env0_6 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/reactions/BurstReactionFirstSendActionSheet.tsx');
|
|
exports.default = BurstReactionFirstSendActionSheet;
|
|
exports.openBurstReactionFirstSendActionSheet = openBurstReactionFirstSendActionSheet;
|
|
function onDismiss_57696() { // fn#57696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7389:604, offset: 0x016b3724, size: 37 bytes, params: 1, frame: 11
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
function BurstReactionFirstSendActionSheet({emoji, channelId, messageId}) { // fn#57697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7389:761, offset: 0x016b3749, size: 633 bytes, params: 2, frame: 30
|
|
const styles = useStyles();
|
|
const getDeviceSpecificString = GetDeviceSpecificStringModule.getDeviceSpecificString;
|
|
let object = {};
|
|
object.quest = (require(1244) /* metro dependency 1244: indexNative */).t['5TpPli'];
|
|
const value2 = Reflect.apply(getDeviceSpecificString, GetDeviceSpecificStringModule, [object,
|
|
(require(1244) /* metro dependency 1244: indexNative */).t['2Yp7dF']]);
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
object = {};
|
|
const BACKDROP_OPACITY = (BurstReactionEffectUtilsModule).BACKDROP_OPACITY;
|
|
object.backdropOpacity = BACKDROP_OPACITY;
|
|
object.contentStyles = styles.content;
|
|
const ReactionTypes = (MessageReactionsTypesModule).ReactionTypes;
|
|
const BURST = ReactionTypes.BURST;
|
|
object.backdropChildren = (
|
|
<View style={styles.fill}>
|
|
<BurstReactionAnimationPreview
|
|
channelId={channelId}
|
|
emoji={emoji}
|
|
messageId={messageId}
|
|
reactionType={BURST}
|
|
/>
|
|
</View>
|
|
);
|
|
const onDismiss_57696Binding = onDismiss_57696;
|
|
object.onDismiss = onDismiss_57696Binding;
|
|
const NitroWheel = (NativeModule).NitroWheel;
|
|
let value = <NitroWheel style={styles.nitroWheel} />;
|
|
const Text = (TextModule).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const NX7HI7 = (require(1244) /* metro dependency 1244: indexNative */).t.NX7HI7;
|
|
value = (
|
|
<View style={styles.textContainer}>
|
|
{value}
|
|
<Text variant="heading-xl/bold">
|
|
{Reflect.apply(string, intl, [NX7HI7])}
|
|
</Text>
|
|
</View>
|
|
);
|
|
const items2 = [value];
|
|
items2[1] = (
|
|
<View style={styles.body}>
|
|
<Text style={styles.textContainer} variant="text-md/normal">
|
|
{value2}
|
|
</Text>
|
|
</View>
|
|
);
|
|
const Button = (ButtonNativeModule).Button;
|
|
items2[2] = (
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+IrDzN'])}
|
|
onPress={onDismiss_57696Binding}
|
|
/>
|
|
);
|
|
return (
|
|
<BottomSheet {...object}>
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
}
|
|
|
|
function openBurstReactionFirstSendActionSheet({channelId, messageId, emoji}) { // fn#57698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7389:1636, offset: 0x016b39c2, size: 296 bytes, params: 2, frame: 22
|
|
var moduleValue2;
|
|
var defaultImport;
|
|
importDefault(dependencyMap[5]).hideActionSheet();
|
|
const moduleValue = require(dependencyMap[15]);
|
|
const UNSAFE_isDismissibleContentDismissed = moduleValue.UNSAFE_isDismissibleContentDismissed;
|
|
const DismissibleContent = require(dependencyMap[16]).DismissibleContent;
|
|
const SUPER_REACTIONS_FIRST_SENT = DismissibleContent.SUPER_REACTIONS_FIRST_SENT;
|
|
if (Reflect.apply(UNSAFE_isDismissibleContentDismissed, moduleValue, [SUPER_REACTIONS_FIRST_SENT])) {
|
|
defaultImport = importDefault(dependencyMap[19]);
|
|
defaultImport.dispatch({type: 'BURST_REACTION_EFFECT_SEND', channelId: channelId, messageId: messageId,
|
|
emoji: emoji});
|
|
} else {
|
|
moduleValue2 = require(dependencyMap[15]);
|
|
moduleValue2.UNSAFE_markDismissibleContentAsDismissed(DismissibleContent.SUPER_REACTIONS_FIRST_SENT);
|
|
defaultImport = importDefault(dependencyMap[5]);
|
|
defaultImport.openLazy(require(dependencyMap[18])(dependencyMap[17], dependencyMap.paths),
|
|
'BurstReactionFirstSendActionSheet', {channelId: channelId, messageId: messageId, emoji: emoji});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun57695, 7211, [31, 27, 33, 4501, 697, 4080, 7212, 1244, 6275, 7172, 7213, 7152, 1305, 4573, 4578,
|
|
3968, 1365, 7211, 1962, 694,
|
|
2]) /* metro module 7211, dependencies: [31, 27, 33, 4501, 697, 4080, 7212, 1244, 6275, 7172, 7213, 7152, 1305, 4573, 4578, 3968, 1365, 7211, 1962, 694, 2] */;
|