Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
56 lines
2.5 KiB
TypeScript
56 lines
2.5 KiB
TypeScript
// Module ID: 8534
|
|
// Function ID: 8535
|
|
// Name: SafetyToastsActionCreators
|
|
// Dependencies: [8529, 4335, 8535, 2]
|
|
|
|
// Module 8534 (SafetyToastsActionCreators)
|
|
import ToastUtils from "ToastUtils" /* 4335 */;
|
|
import Constants from "Constants" /* 8529 */;
|
|
import SafetyToastsUtils from "SafetyToastsUtils" /* 8535 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const SafetyToastType = Constants.SafetyToastType;
|
|
const result = size.fileFinishedImporting("modules/safety_common/SafetyToastsActionCreators.native.tsx");
|
|
|
|
export default {
|
|
showIgnoreSuccessToast(id, channelId) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.IGNORE_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.IGNORE_SUCCESS, id, channelId));
|
|
},
|
|
showUnignoreSuccessToast(id, channelId) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.UNIGNORE_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.UNIGNORE_SUCCESS, id, channelId));
|
|
},
|
|
showBlockSuccessToast(id, channelId) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.BLOCK_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.BLOCK_SUCCESS, id, channelId));
|
|
},
|
|
showUnblockSuccessToast(id, id2) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.UNBLOCK_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.UNBLOCK_SUCCESS, id, id2));
|
|
},
|
|
showMuteSuccessToast(id, channelId) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.MUTE_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.MUTE_SUCCESS, id, channelId));
|
|
},
|
|
showUnmuteSuccessToast(id, channelId) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.UNMUTE_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.UNMUTE_SUCCESS, id, channelId));
|
|
},
|
|
showReportSuccessToast(id, channelId) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(SafetyToastType.REPORT_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(SafetyToastType.REPORT_SUCCESS, id, channelId));
|
|
},
|
|
showSuccessToast(REPORT_TO_MOD_SUCCESS) {
|
|
const obj = ToastUtils;
|
|
obj.showSafetySuccess(REPORT_TO_MOD_SUCCESS, SafetyToastsUtils.getSafetyToastTypeContent(REPORT_TO_MOD_SUCCESS));
|
|
},
|
|
showFailedToast(TIGGER_PAWTECT_ERROR) {
|
|
let GENERIC_ERROR = TIGGER_PAWTECT_ERROR;
|
|
const obj = ToastUtils;
|
|
if (TIGGER_PAWTECT_ERROR == null) {
|
|
GENERIC_ERROR = SafetyToastType.GENERIC_ERROR;
|
|
}
|
|
obj.presentFailedToast(SafetyToastsUtils.getSafetyToastTypeContent(GENERIC_ERROR));
|
|
}
|
|
};
|