// Module ID: 17030 // Function ID: 17031 // Name: VibegrationsMessageActionSheet // Dependencies: [19, 21, 8480, 4755, 7466, 4486, 1115, 4734, 7474, 7476, 12108, 2] // Exports: openMessageAuthorProfile, showVibegrationsMessageActions // Module 17030 (VibegrationsMessageActionSheet) import util from "util" /* 1115 */; import ToastActionCreatorsDefault from "ToastActionCreators" /* 4486 */; import CopyIcon from "CopyIcon" /* 4734 */; import ActionSheetActionCreators from "ActionSheetActionCreators" /* 4755 */; import ClipboardUtils from "ClipboardUtils" /* 7466 */; import showUserProfileActionSheetDefault from "showUserProfileActionSheet" /* 8480 */; 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(4734).CopyIcon }; obj2.icon = tmp3(tmp4(7476).ActionSheetRow.Icon, obj3); obj2.onPress = callback; tmp3Result = tmp3(tmp4(7476).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(12108).UserIcon }; obj.icon = tmp3(tmp4(7476).ActionSheetRow.Icon, obj4); obj.onPress = callback1; tmp3Result2 = tmp3(tmp4(7476).ActionSheetRow, obj); } items2[1] = tmp3Result2; return closure_4(content(7474).ActionSheet, { children: closure_5(content(7476).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); };