Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
43 lines
2.2 KiB
TypeScript
43 lines
2.2 KiB
TypeScript
// Module ID: 12581
|
|
// Function ID: 12582
|
|
// Name: MessageRequestModalActionCreators
|
|
// Dependencies: [12578, 1074, 1241, 4984, 1115, 5078, 4606, 12582, 1897, 2]
|
|
// Exports: onMarkAsNotSpamConfirmationModal, openAcceptMessageRequestConfirmModal
|
|
|
|
// Module 12581 (MessageRequestModalActionCreators)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import util from "util" /* 1115 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4606 */;
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4984 */;
|
|
import common_AlertDefault from "common/Alert" /* 5078 */;
|
|
import MessageRequestConstants from "MessageRequestConstants" /* 12578 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const type = MessageRequestConstants.MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL;
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const result = size.fileFinishedImporting("modules/message_request/MessageRequestModalActionCreators.native.tsx");
|
|
|
|
export const openAcceptMessageRequestConfirmModal = function openAcceptMessageRequestConfirmModal(arg0) {
|
|
({ channelId, onConfirm, onCancel } = arg0);
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_MODAL, { type, channel_id: channelId });
|
|
const obj2 = { type, channel_id: channelId };
|
|
const obj4 = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, confirmColor: null };
|
|
const intl = util.intl;
|
|
obj4.title = intl.string(util.t["66tnno"]);
|
|
const intl2 = util.intl;
|
|
obj4.body = intl2.string(util.t["c/k4SW"]);
|
|
const intl3 = util.intl;
|
|
obj4.cancelText = intl3.string(util.t["ETE/oC"]);
|
|
const intl4 = util.intl;
|
|
obj4.confirmText = intl4.string(util.t["cY+Oob"]);
|
|
obj4.onConfirm = onConfirm;
|
|
obj4.onCancel = onCancel;
|
|
obj4.confirmColor = common_AlertDefault.Colors.BRAND;
|
|
actions_AlertActionCreatorsDefault.show(obj4);
|
|
};
|
|
export const onMarkAsNotSpamConfirmationModal = function onMarkAsNotSpamConfirmationModal(arg0) {
|
|
({ onConfirm, onCancel, channel } = arg0);
|
|
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(12582, dependencyMap.paths), "SpamMessageHamActionSheet", { channel, onConfirm, onCancel });
|
|
};
|