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

88 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-08-31 15:47:37 +00:00
// Module ID: 9804
// Function ID: 9805
// Dependencies: [1387, 4522, 9802, 676, 4691, 9805, 2009, 4415, 9816, 1236, 4826, 1297, 6059, 9819, 2]
2026-07-20 16:05:17 +00:00
2026-08-31 15:47:37 +00:00
// Module 9804
2026-08-24 06:08:38 +00:00
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-31 15:47:37 +00:00
import asyncRequireImpl from "asyncRequireImpl" /* 2009 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4415 */;
import _modDef4691 from "module_4691" /* 4691 */;
import _modDef4826 from "module_4826" /* 4826 */;
import _safeTransitionToDefault from "_safeTransitionTo" /* 6059 */;
import closure_3 from "ensureGuildLoaded" /* 1387 */;
import closure_4 from "createRTCConnection" /* 4522 */;
import SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY from "SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY" /* 9802 */;
2026-08-24 06:08:38 +00:00
import ME from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY: c5, SECURE_FRAMES_STREAM_VERIFICATION_BOTTOM_SHEET_KEY: closure_6, SECURE_FRAMES_USER_VERIFICATION_MODAL_KEY: error } = SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY);
2026-08-24 06:08:38 +00:00
({ ME: closure_8, Routes: c9 } = ME);
const result = require("set").fileFinishedImporting("modules/rtc/SecureFramesPlatformUtils.native.tsx");
2026-07-23 10:11:24 +00:00
export default {
2026-07-29 08:29:29 +00:00
openSecureFramesStreamVerification(streamKey, channelId) {
2026-08-24 06:08:38 +00:00
let obj = ACTION_SHEET_HEIGHT_HALFDefault;
2026-07-29 08:29:29 +00:00
obj = { streamKey, channelId };
2026-08-31 15:47:37 +00:00
obj.openLazy(asyncRequireImpl(9816, dependencyMap.paths), closure_6, obj);
2026-07-20 16:05:17 +00:00
},
openSecureFramesUserVerificationModal(id, id2, arg2) {
if (arg2()) {
2026-08-31 15:47:37 +00:00
let obj = _modDef4691;
2026-07-29 08:29:29 +00:00
obj = { userId: null, channelId: null };
obj[0] = id;
obj[1] = id2;
2026-08-31 15:47:37 +00:00
obj.pushLazy(asyncRequireImpl(9805, dependencyMap.paths), obj, closure_7);
2026-07-20 16:05:17 +00:00
}
},
2026-07-29 08:29:29 +00:00
openSecureFramesUpdateConfirmation(confirmText) {
confirmText = confirmText.confirmText;
({ title, subtitle } = confirmText);
2026-07-20 16:05:17 +00:00
if (confirmText === undefined) {
2026-07-29 08:29:29 +00:00
const intl = onConfirm(1236).intl;
confirmText = intl.string(onConfirm(1236).t["cY+Oob"]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
onConfirm = confirmText.onConfirm;
2026-08-31 15:47:37 +00:00
let obj = _modDef4826;
2026-07-29 08:29:29 +00:00
obj = { title, body: subtitle, confirmText, cancelText: null, confirmColor: null };
const intl2 = onConfirm(1236).intl;
obj[3] = intl2.string(onConfirm(1236).t["ETE/oC"]);
obj[4] = onConfirm(1297).ButtonColors.RED;
2026-07-20 16:05:17 +00:00
obj.confirm(obj).then((arg0) => {
if (arg0) {
onConfirm();
}
});
},
handleSecureFramesUserVerificationLink(arg0) {
({ 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;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
guildId = channel.getGuildId();
}
2026-07-29 08:29:29 +00:00
if (guildId == null) {
2026-07-20 16:05:17 +00:00
guildId = closure_8;
}
if (null != channelId) {
if (null != channel) {
2026-08-24 06:08:38 +00:00
_safeTransitionToDefault(closure_9.CHANNEL(guildId, channelId));
const tmp6 = _safeTransitionToDefault;
2026-07-29 08:29:29 +00:00
let obj = { userId: null, channelId: null, guildId: null, fingerprint: null };
obj[0] = userId;
obj[1] = channelId;
obj[2] = guildId;
obj[3] = fingerprint;
2026-08-31 15:47:37 +00:00
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(9819, dependencyMap.paths), closure_5, obj);
2026-08-24 06:08:38 +00:00
const obj4 = ACTION_SHEET_HEIGHT_HALFDefault;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
obj = { title: null, body: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t["5ICxE6"]);
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t["v1eXp/"]);
2026-08-31 15:47:37 +00:00
_modDef4826.show(obj);
2026-07-20 16:05:17 +00:00
}
};