decord/source/components_native/reactions/BurstReactionFirstSendActionSheet.tsx

103 lines
4.7 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7176
// Function ID: 7177
2026-07-20 16:05:17 +00:00
// Name: onDismiss
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 712, 4223, 7177, 1236, 5323, 7137, 7178, 7116, 1297, 4251, 4665, 4071, 1358, 7176, 1959, 709, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, openBurstReactionFirstSendActionSheet
2026-08-05 07:35:12 +00:00
// Module 7176 (onDismiss)
2026-07-29 08:29:29 +00:00
import "dispatcher";
import get_ActivityIndicator from "onDismiss";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let StyleSheet;
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function onDismiss() {
2026-08-05 07:35:12 +00:00
importDefault(4223).hideActionSheet();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ 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: require("Themes").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 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj1 = { tintColor: require("Themes").colors.TEXT_SUBTLE, width: 37.5, height: 37.5 };
2026-07-23 10:11:24 +00:00
let result = require("jsxProd").fileFinishedImporting("components_native/reactions/BurstReactionFirstSendActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function BurstReactionFirstSendActionSheet(arg0) {
let channelId;
let emoji;
let messageId;
({ emoji, channelId, messageId } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-08-05 07:35:12 +00:00
let obj = require(7177) /* getDeviceSpecificString */;
2026-07-29 08:29:29 +00:00
obj = { quest: require(1236) /* getSystemLocale */.t["5TpPli"] };
const deviceSpecificString = obj.getDeviceSpecificString(obj, require(1236) /* getSystemLocale */.t["2Yp7dF"]);
obj = { backdropOpacity: null, contentStyles: null, backdropChildren: null, onDismiss: null, children: null };
2026-08-05 07:35:12 +00:00
obj[0] = require(7137) /* _generateAnimationSource */.BACKDROP_OPACITY;
2026-07-29 08:29:29 +00:00
obj[1] = tmp.content;
const obj1 = { style: tmp.fill, children: null };
const obj2 = { channelId, emoji, messageId, reactionType: null };
2026-08-05 07:35:12 +00:00
obj2[3] = require(7116) /* ReactionTypes */.ReactionTypes.BURST;
obj1[1] = callback(importDefault(7178), obj2);
2026-07-29 08:29:29 +00:00
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(require(1297) /* Button */.NitroWheel, { style: tmp.nitroWheel }), ];
const obj6 = { variant: "heading-xl/bold", children: null };
const intl = require(1236) /* getSystemLocale */.intl;
obj6[1] = intl.string(require(1236) /* getSystemLocale */.t.NX7HI7);
2026-08-05 07:35:12 +00:00
items[1] = callback(require(4251) /* Text */.Text, obj6);
2026-07-29 08:29:29 +00:00
obj4[1] = items;
const items1 = [callback2(closure_3, obj4), , ];
2026-07-20 16:05:17 +00:00
const obj5 = { style: tmp.nitroWheel };
2026-08-05 07:35:12 +00:00
const tmp3 = importDefault(7178);
items1[1] = callback(closure_3, { style: tmp.body, children: callback(require(4251) /* Text */.Text, obj8) });
2026-07-29 08:29:29 +00:00
const obj9 = { text: null, onPress: null };
const intl2 = require(1236) /* getSystemLocale */.intl;
obj9[0] = intl2.string(require(1236) /* getSystemLocale */.t["+IrDzN"]);
obj9[1] = onDismiss;
2026-08-05 07:35:12 +00:00
items1[2] = callback(require(4665) /* Button */.Button, obj9);
2026-07-29 08:29:29 +00:00
obj3[1] = items1;
obj[4] = callback2(closure_3, obj3);
2026-08-05 07:35:12 +00:00
return callback(require(5323) /* Background */.BottomSheet, obj);
2026-07-20 16:05:17 +00:00
};
export const openBurstReactionFirstSendActionSheet = function openBurstReactionFirstSendActionSheet(arg0) {
let channelId;
let emoji;
let messageId;
({ channelId, messageId, emoji } = arg0);
2026-08-05 07:35:12 +00:00
let obj = importDefault(4223);
2026-07-20 16:05:17 +00:00
obj.hideActionSheet();
2026-07-29 08:29:29 +00:00
if (obj2.UNSAFE_isDismissibleContentDismissed(require(1358) /* 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);
2026-07-20 16:05:17 +00:00
} else {
2026-08-05 07:35:12 +00:00
const result = tmp4(4071).UNSAFE_markDismissibleContentAsDismissed(tmp4(1358).DismissibleContent.SUPER_REACTIONS_FIRST_SENT);
tmpResult = tmp(4223);
2026-07-29 08:29:29 +00:00
obj = { channelId: null, messageId: null, emoji: null };
obj[0] = channelId;
obj[1] = messageId;
obj[2] = emoji;
2026-08-05 07:35:12 +00:00
tmpResult.openLazy(tmp4(1959)(7176, dependencyMap.paths), "BurstReactionFirstSendActionSheet", obj);
const tmp4Result = tmp4(4071);
2026-07-20 16:05:17 +00:00
}
};