102 lines
5 KiB
TypeScript
102 lines
5 KiB
TypeScript
// Module ID: 7426
|
|
// Function ID: 7427
|
|
// Name: onDismiss
|
|
// Dependencies: [19, 17, 21, 4380, 712, 4347, 7427, 1236, 5503, 7387, 7428, 7366, 1297, 4376, 4815, 4201, 1377, 7426, 2009, 709, 2]
|
|
// Exports: default, openBurstReactionFirstSendActionSheet
|
|
|
|
// Module 7426 (onDismiss)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
import Button from "Button" /* 1297 */;
|
|
import DismissibleContent from "DismissibleContent" /* 1377 */;
|
|
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4347 */;
|
|
import Text from "Text" /* 4376 */;
|
|
import Button2 from "Button" /* 4815 */;
|
|
import Background from "Background" /* 5503 */;
|
|
import ReactionTypes from "ReactionTypes" /* 7366 */;
|
|
import _generateAnimationSource from "_generateAnimationSource" /* 7387 */;
|
|
import getDeviceSpecificString from "getDeviceSpecificString" /* 7427 */;
|
|
import BurstReactionAnimationPreviewDefault from "BurstReactionAnimationPreview" /* 7428 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
|
|
|
require = arg1;
|
|
function onDismiss() {
|
|
ACTION_SHEET_HEIGHT_HALFDefault.hideActionSheet();
|
|
}
|
|
noopAll;
|
|
({ View: c3, StyleSheet } = get_ActivityIndicator);
|
|
({ jsx: c4, jsxs: c5 } = jsxProd);
|
|
createCacheKey = { container: { paddingTop: 24, paddingBottom: 24, paddingLeft: 12, paddingRight: 12 }, fill: null, nitroWheel: null, textContainer: null, body: null, content: null };
|
|
createCacheKey = {};
|
|
const merged = Object.assign(StyleSheet.absoluteFillObject);
|
|
createCacheKey.flex = 1;
|
|
createCacheKey.alignItems = "center";
|
|
createCacheKey.justifyContent = "center";
|
|
createCacheKey.top = -120;
|
|
createCacheKey[1] = createCacheKey;
|
|
createCacheKey[2] = { tintColor: ThemesDefault.colors.TEXT_SUBTLE, width: 37.5, height: 37.5 };
|
|
createCacheKey[3] = { flexDirection: "row", flexShrink: 1, alignItems: "center", alignSelf: "center", textAlign: "center" };
|
|
createCacheKey[4] = { paddingTop: 8, paddingBottom: 18 };
|
|
createCacheKey[5] = { paddingHorizontal: 16 };
|
|
let closure_6 = createCacheKey.createStyles(createCacheKey);
|
|
let obj1 = { tintColor: ThemesDefault.colors.TEXT_SUBTLE, width: 37.5, height: 37.5 };
|
|
let result = require("set").fileFinishedImporting("components_native/reactions/BurstReactionFirstSendActionSheet.tsx");
|
|
|
|
export default function BurstReactionFirstSendActionSheet(arg0) {
|
|
({ emoji, channelId, messageId } = arg0);
|
|
const tmp = callback3();
|
|
let obj = getDeviceSpecificString;
|
|
obj = { quest: getSystemLocale.t["5TpPli"] };
|
|
const deviceSpecificString = obj.getDeviceSpecificString(obj, getSystemLocale.t["2Yp7dF"]);
|
|
obj = { backdropOpacity: _generateAnimationSource.BACKDROP_OPACITY, contentStyles: tmp.content, backdropChildren: null, onDismiss: null, children: null };
|
|
obj1 = { style: tmp.fill, children: null };
|
|
const obj2 = { channelId, emoji, messageId, reactionType: ReactionTypes.ReactionTypes.BURST };
|
|
obj1[1] = callback(BurstReactionAnimationPreviewDefault, obj2);
|
|
obj[2] = callback(closure_3, obj1);
|
|
obj[3] = onDismiss;
|
|
const obj3 = { style: tmp.container, children: null };
|
|
const obj4 = { style: tmp.textContainer, children: null };
|
|
const items = [callback(Button.NitroWheel, { style: tmp.nitroWheel }), ];
|
|
const obj6 = { variant: "heading-xl/bold", children: null };
|
|
const intl = getSystemLocale.intl;
|
|
obj6[1] = intl.string(getSystemLocale.t.NX7HI7);
|
|
items[1] = callback(Text.Text, obj6);
|
|
obj4[1] = items;
|
|
const items1 = [callback2(closure_3, obj4), , ];
|
|
const obj5 = { style: tmp.nitroWheel };
|
|
const tmp3 = BurstReactionAnimationPreviewDefault;
|
|
items1[1] = callback(closure_3, { style: tmp.body, children: callback(Text.Text, obj8) });
|
|
const obj9 = { text: null, onPress: null };
|
|
const intl2 = getSystemLocale.intl;
|
|
obj9[0] = intl2.string(getSystemLocale.t["+IrDzN"]);
|
|
obj9[1] = onDismiss;
|
|
items1[2] = callback(Button2.Button, obj9);
|
|
obj3[1] = items1;
|
|
obj[4] = callback2(closure_3, obj3);
|
|
return callback(Background.BottomSheet, obj);
|
|
};
|
|
export const openBurstReactionFirstSendActionSheet = function openBurstReactionFirstSendActionSheet(arg0) {
|
|
({ channelId, messageId, emoji } = arg0);
|
|
let obj = ACTION_SHEET_HEIGHT_HALFDefault;
|
|
obj.hideActionSheet();
|
|
if (obj2.UNSAFE_isDismissibleContentDismissed(DismissibleContent.DismissibleContent.SUPER_REACTIONS_FIRST_SENT)) {
|
|
let tmpResult = tmp(709);
|
|
obj = { type: "BURST_REACTION_EFFECT_SEND", channelId: null, messageId: null, emoji: null };
|
|
obj[1] = channelId;
|
|
obj[2] = messageId;
|
|
obj[3] = emoji;
|
|
tmpResult.dispatch(obj);
|
|
} else {
|
|
const result = tmp4(4201).UNSAFE_markDismissibleContentAsDismissed(tmp4(1377).DismissibleContent.SUPER_REACTIONS_FIRST_SENT);
|
|
tmpResult = tmp(4347);
|
|
obj = { channelId: null, messageId: null, emoji: null };
|
|
obj[0] = channelId;
|
|
obj[1] = messageId;
|
|
obj[2] = emoji;
|
|
tmpResult.openLazy(tmp4(2009)(7426, dependencyMap.paths), "BurstReactionFirstSendActionSheet", obj);
|
|
const tmp4Result = tmp4(4201);
|
|
}
|
|
};
|