Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
79 lines
3.2 KiB
TypeScript
79 lines
3.2 KiB
TypeScript
// Module ID: 17018
|
|
// Function ID: 17019
|
|
// Name: VibegrationsMessageActionSheet
|
|
// Dependencies: [19, 21, 8447, 4723, 7429, 4454, 1115, 4702, 7437, 7439, 12077, 2]
|
|
// Exports: openMessageAuthorProfile, showVibegrationsMessageActions
|
|
|
|
// Module 17018 (VibegrationsMessageActionSheet)
|
|
import util from "util" /* 1115 */;
|
|
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4454 */;
|
|
import CopyIcon from "CopyIcon" /* 4702 */;
|
|
import ActionSheetActionCreators from "ActionSheetActionCreators" /* 4723 */;
|
|
import ClipboardUtils from "ClipboardUtils" /* 7429 */;
|
|
import showUserProfileActionSheetDefault from "showUserProfileActionSheet" /* 8447 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const ActionSheetActionCreatorsDefault = ActionSheetActionCreators;
|
|
|
|
require = fn;
|
|
function VibegrationsMessageActionSheet(content) {
|
|
content = content.content;
|
|
const userId = content.userId;
|
|
const items = [content];
|
|
const items1 = [userId];
|
|
const callback = noop.useCallback(() => {
|
|
ClipboardUtils.copy(content);
|
|
ActionSheetActionCreatorsDefault.hideActionSheet(c6);
|
|
const obj4 = { key: "VIBEGRATIONS_MESSAGE_COPIED", content: null, IconComponent: null };
|
|
const intl = util.intl;
|
|
obj4.content = intl.string(util.t.mGZ66D);
|
|
obj4.IconComponent = CopyIcon.CopyIcon;
|
|
ToastActionCreatorsDefault.open(obj4);
|
|
}, items);
|
|
const callback1 = noop.useCallback(() => {
|
|
if (null != userId) {
|
|
const obj = { userId: tmp };
|
|
showUserProfileActionSheetDefault(obj);
|
|
}
|
|
}, items1);
|
|
let tmp3Result = null;
|
|
if ("" !== content) {
|
|
let obj2 = { label: null, icon: null, onPress: null };
|
|
const intl2 = tmp4(1115).intl;
|
|
obj2.label = intl2.string(tmp4(1115).t.JrGD7E);
|
|
const obj3 = { IconComponent: tmp4(4702).CopyIcon };
|
|
obj2.icon = tmp3(tmp4(7439).ActionSheetRow.Icon, obj3);
|
|
obj2.onPress = callback;
|
|
tmp3Result = tmp3(tmp4(7439).ActionSheetRow, obj2);
|
|
}
|
|
const items2 = [tmp3Result, ];
|
|
let tmp3Result2 = null;
|
|
if (null != userId) {
|
|
let obj = { label: null, icon: null, onPress: null };
|
|
let intl = tmp4(1115).intl;
|
|
obj.label = intl.string(tmp4(1115).t.iXAna6);
|
|
let obj4 = { IconComponent: tmp4(12077).UserIcon };
|
|
obj.icon = tmp3(tmp4(7439).ActionSheetRow.Icon, obj4);
|
|
obj.onPress = callback1;
|
|
tmp3Result2 = tmp3(tmp4(7439).ActionSheetRow, obj);
|
|
}
|
|
items2[1] = tmp3Result2;
|
|
return closure_4(content(7437).ActionSheet, { children: closure_5(content(7439).ActionSheetRow.Group, { hasIcons: true, children: items2 }) });
|
|
}
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
|
|
let c6 = "vibegrations-message-actions";
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsMessageActionSheet.tsx");
|
|
|
|
export const VIBEGRATIONS_MESSAGE_SHEET_KEY = "vibegrations-message-actions";
|
|
export const openMessageAuthorProfile = function openMessageAuthorProfile(id) {
|
|
showUserProfileActionSheetDefault({ userId: id });
|
|
};
|
|
export const showVibegrationsMessageActions = function showVibegrationsMessageActions(arg0) {
|
|
const obj2 = { content: null, key: null };
|
|
const merged = Object.assign(arg0);
|
|
obj2.content = React4(VibegrationsMessageActionSheet, {});
|
|
obj2.key = key;
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
};
|