94 lines
6.2 KiB
TypeScript
94 lines
6.2 KiB
TypeScript
/* Metro module 8623; source: modules/messages/native/emoji/MessageEmojiActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 477, 491, 6275, 683, 8624, 8630, 8631, 2] */
|
|
import AnalyticsUtils from '../../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import StandardEmojiContent from './StandardEmojiContent.tsx'; /* Metro dependency 8624 */
|
|
import CustomEmojiContent from './CustomEmojiContent.tsx'; /* Metro dependency 8631 */
|
|
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
import * as Module00491Module from '../../../../by-id/module-00491.js'; /* Metro dependency 491 */
|
|
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as UseEmojiAndSourceModule from '../../../emojis/hooks/useEmojiAndSource.tsx'; /* Metro dependency 8630 */
|
|
|
|
function _fun68055(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8808:6, offset: 0x01c3cfde, size: 278 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = 0;
|
|
importAll(dependencyMap[value]);
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
const object2 = {};
|
|
const value3 = 16;
|
|
object2.paddingHorizontal = value3;
|
|
object2.paddingBottom = PlatformUtilsModule.isAndroid() ? value3 : value;
|
|
const env0_6 = Reflect.apply(createStyles, CreateStylesModule, [{contentWrapper: object2}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/messages/native/emoji/MessageEmojiActionSheet.tsx');
|
|
exports.default = _default_68060;
|
|
function MessageStandardEmojiActionSheet({emojiNode}) { // fn#68056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8808:293, offset: 0x01c3d0f4, size: 173 bytes, params: 2, frame: 20
|
|
const styles = useStyles();
|
|
const value2 = (Module00491Module).v4();
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
return (
|
|
<BottomSheet startExpanded onDismiss={onDismiss_68057}>
|
|
<View style={styles.contentWrapper}>
|
|
{((Component) => <Component emojiNode={emojiNode} nonce={value2} />)(StandardEmojiContent)}
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
function MessageStandardEmojiActionSheetOnDismiss() { // fn#68057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8808:393, owner: MessageStandardEmojiActionSheet.onDismiss, offset: 0x01c3d1a1, size: 62 bytes, params: 1, frame: 15
|
|
const defaultImport = AnalyticsUtils;
|
|
const track = defaultImport.track;
|
|
const CLOSE_POPOUT = AnalyticEvents.CLOSE_POPOUT;
|
|
Reflect.apply(track, defaultImport, [CLOSE_POPOUT, {nonce: env0_0}]);
|
|
}
|
|
|
|
}
|
|
|
|
function MessageCustomEmojiActionSheet({emojiNode}) { // fn#68058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8808:553, offset: 0x01c3d1df, size: 291 bytes, params: 2, frame: 25
|
|
const styles = useStyles();
|
|
const value2 = (UseEmojiAndSourceModule).useEmojiAndSource({emojiId: emojiNode.id});
|
|
const sourceType = value2.sourceType;
|
|
const expressionSourceGuild = value2.expressionSourceGuild;
|
|
const expressionSourceApplication = value2.expressionSourceApplication;
|
|
const hasJoinedEmojiSourceGuild = value2.hasJoinedEmojiSourceGuild;
|
|
const emoji = value2.emoji;
|
|
if (value2.isFetching) {
|
|
return null;
|
|
}
|
|
const value3 = (Module00491Module).v4();
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
return (
|
|
<BottomSheet startExpanded onDismiss={onDismiss_68059}>
|
|
<View style={styles.contentWrapper}>
|
|
{((Component) => <Component emojiNode={emojiNode} sourceType={sourceType} expressionSourceApplication={expressionSourceApplication} expressionSourceGuild={expressionSourceGuild} customEmojiFromJoinedGuild={emoji} hasJoinedEmojiSourceGuild={hasJoinedEmojiSourceGuild} nonce={value3} />)(CustomEmojiContent)}
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
function MessageCustomEmojiActionSheetOnDismiss() { // fn#68059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8808:843, owner: MessageCustomEmojiActionSheet.onDismiss, offset: 0x01c3d1a1, size: 62 bytes, params: 1, frame: 15
|
|
const defaultImport = AnalyticsUtils;
|
|
const track = defaultImport.track;
|
|
const CLOSE_POPOUT = AnalyticEvents.CLOSE_POPOUT;
|
|
Reflect.apply(track, defaultImport, [CLOSE_POPOUT, {nonce: env0_0}]);
|
|
}
|
|
|
|
}
|
|
|
|
function _default_68060({emojiNode}) { // fn#68060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8808:1107, offset: 0x01c3d302, size: 69 bytes, params: 2, frame: 15
|
|
return (
|
|
'surrogate' in emojiNode
|
|
? (
|
|
<MessageStandardEmojiActionSheet emojiNode={emojiNode} />
|
|
)
|
|
: (
|
|
<MessageCustomEmojiActionSheet emojiNode={emojiNode} />
|
|
)
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68055, 8623, [31, 27, 661, 33, 4501, 477, 491, 6275, 683, 8624, 8630, 8631,
|
|
2]) /* metro module 8623, dependencies: [31, 27, 661, 33, 4501, 477, 491, 6275, 683, 8624, 8630, 8631, 2] */;
|