44 lines
2.3 KiB
TypeScript
44 lines
2.3 KiB
TypeScript
// Module ID: 11925
|
|
// Function ID: 11926
|
|
// Name: openAcceptMessageRequestConfirmModal
|
|
// Dependencies: [11922, 676, 698, 4810, 1236, 4899, 4412, 11926, 2009, 2]
|
|
// Exports: onMarkAsNotSpamConfirmationModal, openAcceptMessageRequestConfirmModal
|
|
|
|
// Module 11925 (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" /* 4412 */;
|
|
import _modDef4810 from "module_4810" /* 4810 */;
|
|
import componentDidMountDefault from "componentDidMount" /* 4899 */;
|
|
import MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL from "MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL" /* 11922 */;
|
|
|
|
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;
|
|
_modDef4810.show(obj);
|
|
};
|
|
export const onMarkAsNotSpamConfirmationModal = function onMarkAsNotSpamConfirmationModal(arg0) {
|
|
({ onConfirm, onCancel, channel } = arg0);
|
|
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(11926, dependencyMap.paths), "SpamMessageHamActionSheet", { channel, onConfirm, onCancel });
|
|
};
|