decord/source/modules/message_request/MessageRequestModalActionCreators.native.tsx
2026-09-01 10:26:29 +00:00

44 lines
2.3 KiB
TypeScript

// Module ID: 12010
// Function ID: 12011
// Name: openAcceptMessageRequestConfirmModal
// Dependencies: [12007, 676, 698, 4858, 1236, 4947, 4445, 12011, 2009, 2]
// Exports: onMarkAsNotSpamConfirmationModal, openAcceptMessageRequestConfirmModal
// Module 12010 (openAcceptMessageRequestConfirmModal)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2009 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4445 */;
import _modDef4858 from "module_4858" /* 4858 */;
import componentDidMountDefault from "componentDidMount" /* 4947 */;
import MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL from "MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL" /* 12007 */;
let closure_3 = MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL.MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/message_request/MessageRequestModalActionCreators.native.tsx");
export const openAcceptMessageRequestConfirmModal = function openAcceptMessageRequestConfirmModal(arg0) {
({ channelId, onConfirm, onCancel } = arg0);
let obj = expandEventPropertiesDefault;
obj = { type: closure_3, channel_id: channelId };
obj.track(AnalyticEvents.OPEN_MODAL, obj);
obj = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, confirmColor: null };
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t["66tnno"]);
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t["c/k4SW"]);
const intl3 = getSystemLocale.intl;
obj[2] = intl3.string(getSystemLocale.t["ETE/oC"]);
const intl4 = getSystemLocale.intl;
obj[3] = intl4.string(getSystemLocale.t["cY+Oob"]);
obj[4] = onConfirm;
obj[5] = onCancel;
obj[6] = componentDidMountDefault.Colors.BRAND;
_modDef4858.show(obj);
};
export const onMarkAsNotSpamConfirmationModal = function onMarkAsNotSpamConfirmationModal(arg0) {
({ onConfirm, onCancel, channel } = arg0);
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(12011, dependencyMap.paths), "SpamMessageHamActionSheet", { channel, onConfirm, onCancel });
};