decord/source/modules/rtc/SecureFramesPlatformUtils.native.tsx

85 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 8872
// Function ID: 70094
// Dependencies: [1348, 4237, 8870, 653, 4372, 8873, 1935, 4133, 8883, 1212, 4506, 1273, 5661, 8886, 2]
2026-07-20 16:05:17 +00:00
2026-07-28 08:39:19 +00:00
// Module 8872
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY from "SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY";
import ME from "ME";
let closure_5;
let closure_6;
let closure_7;
let closure_8;
let closure_9;
const require = arg1;
({ SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY: closure_5, SECURE_FRAMES_STREAM_VERIFICATION_BOTTOM_SHEET_KEY: closure_6, SECURE_FRAMES_USER_VERIFICATION_MODAL_KEY: closure_7 } = SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY);
({ ME: closure_8, Routes: closure_9 } = ME);
const result = require("SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY").fileFinishedImporting("modules/rtc/SecureFramesPlatformUtils.native.tsx");
export default {
2026-07-20 16:05:17 +00:00
openSecureFramesStreamVerification(stateFromStores4, channelId) {
2026-07-28 08:39:19 +00:00
let obj = importDefault(4133);
2026-07-20 16:05:17 +00:00
obj = { streamKey: stateFromStores4, channelId };
2026-07-28 08:39:19 +00:00
obj.openLazy(require(1935) /* maybeLoadBundle */(8883, dependencyMap.paths), closure_6, obj);
2026-07-20 16:05:17 +00:00
},
openSecureFramesUserVerificationModal(id, id2, arg2) {
if (arg2()) {
2026-07-28 08:39:19 +00:00
let obj = importDefault(4372);
2026-07-20 16:05:17 +00:00
obj = { userId: id, channelId: id2 };
2026-07-28 08:39:19 +00:00
obj.pushLazy(require(1935) /* maybeLoadBundle */(8873, dependencyMap.paths), obj, closure_7);
2026-07-20 16:05:17 +00:00
}
},
openSecureFramesUpdateConfirmation(result) {
let subtitle;
let title;
let confirmText = result.confirmText;
({ title, subtitle } = result);
if (confirmText === undefined) {
2026-07-23 10:11:24 +00:00
const intl = onConfirm(1212).intl;
confirmText = intl.string(onConfirm(1212).t["cY+Oob"]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
onConfirm = result.onConfirm;
2026-07-28 08:39:19 +00:00
let obj = importDefault(4506);
2026-07-20 16:05:17 +00:00
obj = { title, body: subtitle, confirmText };
2026-07-23 10:11:24 +00:00
const intl2 = onConfirm(1212).intl;
obj.cancelText = intl2.string(onConfirm(1212).t["ETE/oC"]);
obj.confirmColor = onConfirm(1273).ButtonColors.RED;
2026-07-20 16:05:17 +00:00
obj.confirm(obj).then((arg0) => {
if (arg0) {
onConfirm();
}
});
},
handleSecureFramesUserVerificationLink(arg0) {
let fingerprint;
let userId;
({ userId, fingerprint } = arg0);
2026-07-23 10:11:24 +00:00
channelId = channelId.getChannelId();
channel = channel.getChannel(channelId);
2026-07-20 16:05:17 +00:00
let guildId;
if (null != channel) {
guildId = channel.getGuildId();
}
if (null == guildId) {
guildId = closure_8;
}
if (null != channelId) {
if (null != channel) {
2026-07-28 08:39:19 +00:00
importDefault(5661)(closure_9.CHANNEL(guildId, channelId));
const tmp6 = importDefault(5661);
2026-07-20 16:05:17 +00:00
let obj = { userId, channelId, guildId, fingerprint };
2026-07-28 08:39:19 +00:00
importDefault(4133).openLazy(require(1935) /* maybeLoadBundle */(8886, dependencyMap.paths), closure_5, obj);
const obj4 = importDefault(4133);
2026-07-20 16:05:17 +00:00
}
}
obj = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.title = intl.string(require(1212) /* getSystemLocale */.t["5ICxE6"]);
const intl2 = require(1212) /* getSystemLocale */.intl;
obj.body = intl2.string(require(1212) /* getSystemLocale */.t["v1eXp/"]);
2026-07-28 08:39:19 +00:00
importDefault(4506).show(obj);
2026-07-20 16:05:17 +00:00
}
};