Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
96 lines
4.9 KiB
TypeScript
96 lines
4.9 KiB
TypeScript
// Module ID: 7874
|
|
// Function ID: 7875
|
|
// Name: BurstReactionFirstSendActionSheet
|
|
// Dependencies: [19, 17, 21, 4605, 576, 4572, 7875, 1114, 7202, 7835, 7876, 7814, 1178, 4601, 5025, 4425, 1943, 7874, 1896, 573, 2]
|
|
// Exports: default, openBurstReactionFirstSendActionSheet
|
|
|
|
// Module 7874 (BurstReactionFirstSendActionSheet)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1114 */;
|
|
import native from "native" /* 1178 */;
|
|
import dismissible_content from "dismissible_content" /* 1943 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4572 */;
|
|
import Text_Text from "Text/Text" /* 4601 */;
|
|
import components_Button_Button from "components/Button/Button" /* 5025 */;
|
|
import Sheet_BottomSheet from "Sheet/BottomSheet" /* 7202 */;
|
|
import MessageReactionsTypes from "MessageReactionsTypes" /* 7814 */;
|
|
import burst_reactions_BurstReactionEffectUtils from "burst_reactions/BurstReactionEffectUtils" /* 7835 */;
|
|
import getDeviceSpecificString from "getDeviceSpecificString" /* 7875 */;
|
|
import BurstReactionAnimationPreviewDefault from "BurstReactionAnimationPreview" /* 7876 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
function onDismiss() {
|
|
ActionSheetActionCreatorsDefault.hideActionSheet();
|
|
}
|
|
get_ActivityIndicator = fn(17);
|
|
({ View: c3, StyleSheet } = get_ActivityIndicator);
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
|
|
const createStyles = fn(4605);
|
|
let obj2 = { container: { paddingTop: 24, paddingBottom: 24, paddingLeft: 12, paddingRight: 12 }, fill: null, nitroWheel: null, textContainer: null, body: null, content: null };
|
|
let obj3 = {};
|
|
const merged = Object.assign(StyleSheet.absoluteFillObject);
|
|
obj3.flex = 1;
|
|
obj3.alignItems = "center";
|
|
obj3.justifyContent = "center";
|
|
obj3.top = -120;
|
|
obj2.fill = obj3;
|
|
let size = { tintColor: nativeDefault.colors.TEXT_SUBTLE, width: 37.5, height: 37.5 };
|
|
obj2.nitroWheel = size;
|
|
obj2.textContainer = { flexDirection: "row", flexShrink: 1, alignItems: "center", alignSelf: "center", textAlign: "center" };
|
|
obj2.body = { paddingTop: 8, paddingBottom: 18 };
|
|
obj2.content = { paddingHorizontal: 16 };
|
|
let closure_6 = createStyles.createStyles(obj2);
|
|
size = fn(2);
|
|
let result = size.fileFinishedImporting("components_native/reactions/BurstReactionFirstSendActionSheet.tsx");
|
|
|
|
export default function BurstReactionFirstSendActionSheet(arg0) {
|
|
({ emoji, channelId, messageId } = arg0);
|
|
const tmp = closure_6();
|
|
const obj = getDeviceSpecificString;
|
|
const deviceSpecificString = obj.getDeviceSpecificString({ quest: util.t["5TpPli"] }, util.t["2Yp7dF"]);
|
|
const obj3 = { backdropOpacity: burst_reactions_BurstReactionEffectUtils.BACKDROP_OPACITY, contentStyles: tmp.content, backdropChildren: null, onDismiss: null, children: null };
|
|
const obj4 = { style: tmp.fill, children: null };
|
|
const obj5 = { channelId, emoji, messageId, reactionType: null };
|
|
const obj2 = { quest: util.t["5TpPli"] };
|
|
obj5.reactionType = MessageReactionsTypes.ReactionTypes.BURST;
|
|
obj4.children = React4(BurstReactionAnimationPreviewDefault, obj5);
|
|
obj3.backdropChildren = React4(React3, obj4);
|
|
obj3.onDismiss = onDismiss;
|
|
const obj6 = { style: tmp.container, children: null };
|
|
const obj7 = { style: tmp.textContainer, children: null };
|
|
const items = [React4(native.NitroWheel, { style: tmp.nitroWheel }), ];
|
|
const obj9 = { variant: "heading-xl/bold", children: null };
|
|
const intl = util.intl;
|
|
obj9.children = intl.string(util.t.NX7HI7);
|
|
items[1] = React4(Text_Text.Text, obj9);
|
|
obj7.children = items;
|
|
const items1 = [hasOwnProperty(React3, obj7), , ];
|
|
const obj10 = { style: tmp.body, children: React4(Text_Text.Text, { style: tmp.textContainer, variant: "text-md/normal", children: deviceSpecificString }) };
|
|
items1[1] = React4(React3, obj10);
|
|
const obj12 = { text: null, onPress: null };
|
|
const intl2 = util.intl;
|
|
obj12.text = intl2.string(util.t["+IrDzN"]);
|
|
obj12.onPress = onDismiss;
|
|
items1[2] = React4(components_Button_Button.Button, obj12);
|
|
obj6.children = items1;
|
|
obj3.children = hasOwnProperty(React3, obj6);
|
|
return React4(Sheet_BottomSheet.BottomSheet, obj3);
|
|
};
|
|
export const openBurstReactionFirstSendActionSheet = function openBurstReactionFirstSendActionSheet(arg0) {
|
|
({ channelId, messageId, emoji } = arg0);
|
|
ActionSheetActionCreatorsDefault.hideActionSheet();
|
|
const tmp2 = dependencyMap;
|
|
if (obj2.UNSAFE_isDismissibleContentDismissed(dismissible_content.DismissibleContent.SUPER_REACTIONS_FIRST_SENT)) {
|
|
const obj3 = { type: "BURST_REACTION_EFFECT_SEND", channelId, messageId, emoji };
|
|
tmp(573).dispatch(obj3);
|
|
const tmpResult = tmp(573);
|
|
} else {
|
|
const result = tmp4(4425).UNSAFE_markDismissibleContentAsDismissed(tmp4(1943).DismissibleContent.SUPER_REACTIONS_FIRST_SENT);
|
|
const tmp4Result = tmp4(4425);
|
|
const obj4 = { channelId, messageId, emoji };
|
|
tmp(4572).openLazy(tmp4(1896)(7874, tmp2.paths), "BurstReactionFirstSendActionSheet", obj4);
|
|
const tmpResult2 = tmp(4572);
|
|
}
|
|
};
|