decord/source/modules/instant_invite/native/DCDSendUtils.tsx

94 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 4517
// Function ID: 4518
2026-07-20 16:05:17 +00:00
// Name: sendSMS
2026-08-12 06:57:52 +00:00
// Dependencies: [17, 500, 4518, 2]
2026-07-20 16:05:17 +00:00
// Exports: canOpenUrlScheme, canSendMail, canSendSMS, sendMail, sendSMS
2026-08-12 06:57:52 +00:00
// Module 4517 (sendSMS)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
({ Linking: c3, NativeModules: c4 } = get_ActivityIndicator);
2026-07-23 10:11:24 +00:00
const result = require("enforcing").fileFinishedImporting("modules/instant_invite/native/DCDSendUtils.tsx");
2026-07-20 16:05:17 +00:00
export const sendSMS = function sendSMS(body, recipients) {
if (obj.isAndroid()) {
2026-07-29 08:29:29 +00:00
let str = body.body;
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
recipients = body.recipients;
2026-07-29 08:29:29 +00:00
if (recipients == null) {
2026-07-20 16:05:17 +00:00
recipients = [];
}
2026-08-12 06:57:52 +00:00
importDefault(4518).sendSMS(str, recipients);
const obj2 = importDefault(4518);
2026-07-20 16:05:17 +00:00
} else {
const DCDSend = closure_4.DCDSend;
DCDSend.sendSMS(body, recipients);
}
};
2026-07-29 08:29:29 +00:00
export const sendMail = function sendMail(subject, subject, recipients) {
2026-07-20 16:05:17 +00:00
if (obj.isAndroid()) {
2026-07-29 08:29:29 +00:00
let str = subject.subject;
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let str2 = subject.body;
if (str2 == null) {
str2 = "";
2026-07-20 16:05:17 +00:00
}
recipients = subject.recipients;
2026-07-29 08:29:29 +00:00
if (recipients == null) {
2026-07-20 16:05:17 +00:00
recipients = [];
}
2026-08-12 06:57:52 +00:00
importDefault(4518).sendMail(str, str2, recipients);
const obj2 = importDefault(4518);
2026-07-20 16:05:17 +00:00
} else {
const DCDSend = closure_4.DCDSend;
2026-07-29 08:29:29 +00:00
DCDSend.sendMail(subject, subject);
2026-07-20 16:05:17 +00:00
}
};
export const canSendSMS = function canSendSMS() {
if (obj.isAndroid()) {
2026-08-12 06:57:52 +00:00
let resolved = Promise.resolve(importDefault(4518).canSendSMS());
const obj2 = importDefault(4518);
2026-07-20 16:05:17 +00:00
} else {
const DCDSend = closure_4.DCDSend;
resolved = DCDSend.canSendSMS();
}
return resolved;
};
export const canSendMail = function canSendMail() {
if (obj.isAndroid()) {
2026-08-12 06:57:52 +00:00
let resolved = Promise.resolve(importDefault(4518).canSendMail());
const obj2 = importDefault(4518);
2026-07-20 16:05:17 +00:00
} else {
const DCDSend = closure_4.DCDSend;
resolved = DCDSend.canSendMail();
}
return resolved;
};
2026-07-29 08:29:29 +00:00
export const canOpenUrlScheme = function canOpenUrlScheme(closure_3) {
const _require = closure_3;
2026-07-20 16:05:17 +00:00
if (obj.isAndroid()) {
2026-07-29 08:29:29 +00:00
try {
2026-08-12 06:57:52 +00:00
return Promise.resolve(importDefault(4518).canOpenUrlScheme(closure_3));
2026-07-29 08:29:29 +00:00
} catch (err) {
return Promise.resolve(false);
}
2026-07-20 16:05:17 +00:00
} else {
const promise = new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
const canOpenURLResult = outer1_3.canOpenURL("" + closure_0 + "://app");
outer1_3.canOpenURL("" + closure_0 + "://app").then((arg0) => {
callback(arg0);
2026-07-20 16:05:17 +00:00
}).catch(() => {
2026-07-23 10:11:24 +00:00
callback(false);
2026-07-20 16:05:17 +00:00
});
});
return promise;
}
};