// Module ID: 16313 // Function ID: 16314 // Name: VibegrationsMessageActionSheet // Dependencies: [19, 21, 7617, 4796, 6605, 4525, 1115, 4775, 6613, 6615, 11289, 2] // Exports: openMessageAuthorProfile, showVibegrationsMessageActions // Module 16313 (VibegrationsMessageActionSheet) import util from "util" /* 1115 */; import ToastActionCreatorsDefault from "ToastActionCreators" /* 4525 */; import CopyIcon from "CopyIcon" /* 4775 */; import ActionSheetActionCreators from "ActionSheetActionCreators" /* 4796 */; import ClipboardUtils from "ClipboardUtils" /* 6605 */; import showUserProfileActionSheetDefault from "showUserProfileActionSheet" /* 7617 */; 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(4775).CopyIcon }; obj2.icon = tmp3(tmp4(6615).ActionSheetRow.Icon, obj3); obj2.onPress = callback; tmp3Result = tmp3(tmp4(6615).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(11289).UserIcon }; obj.icon = tmp3(tmp4(6615).ActionSheetRow.Icon, obj4); obj.onPress = callback1; tmp3Result2 = tmp3(tmp4(6615).ActionSheetRow, obj); } items2[1] = tmp3Result2; return closure_4(content(6613).ActionSheet, { children: closure_5(content(6615).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); };