decord/source/modules/message_request/MessageRequestModalActionCreators.native.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

44 lines
2.3 KiB
TypeScript

// Module ID: 12450
// Function ID: 12451
// Name: openAcceptMessageRequestConfirmModal
// Dependencies: [12447, 1074, 1242, 4905, 1114, 4994, 4527, 12451, 1896, 2]
// Exports: onMarkAsNotSpamConfirmationModal, openAcceptMessageRequestConfirmModal
// Module 12450 (openAcceptMessageRequestConfirmModal)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4527 */;
import _modDef4905 from "module_4905" /* 4905 */;
import componentDidMountDefault from "componentDidMount" /* 4994 */;
import MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL from "MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL" /* 12447 */;
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;
_modDef4905.show(obj);
};
export const onMarkAsNotSpamConfirmationModal = function onMarkAsNotSpamConfirmationModal(arg0) {
({ onConfirm, onCancel, channel } = arg0);
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(12451, dependencyMap.paths), "SpamMessageHamActionSheet", { channel, onConfirm, onCancel });
};