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

88 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9751
// Function ID: 9752
// Dependencies: [1391, 4544, 9749, 676, 5265, 9752, 2008, 4346, 9761, 1236, 4662, 1297, 7249, 9764, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 9751
import getSystemLocale from "getSystemLocale" /* 1236 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4346 */;
import _modDef4662 from "module_4662" /* 4662 */;
import _modDef5265 from "module_5265" /* 5265 */;
import _safeTransitionToDefault from "_safeTransitionTo" /* 7249 */;
import closure_3 from "ensureGuildLoaded" /* 1391 */;
import closure_4 from "createRTCConnection" /* 4544 */;
import SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY from "SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY" /* 9749 */;
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-24 06:08:38 +00:00
obj.openLazy(asyncRequireImpl(9761, dependencyMap.paths), closure_6, obj);
2026-07-20 16:05:17 +00:00
},
openSecureFramesUserVerificationModal(id, id2, arg2) {
if (arg2()) {
2026-08-24 06:08:38 +00:00
let obj = _modDef5265;
2026-07-29 08:29:29 +00:00
obj = { userId: null, channelId: null };
obj[0] = id;
obj[1] = id2;
2026-08-24 06:08:38 +00:00
obj.pushLazy(asyncRequireImpl(9752, 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-24 06:08:38 +00:00
let obj = _modDef4662;
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-24 06:08:38 +00:00
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(9764, dependencyMap.paths), closure_5, obj);
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/"]);
_modDef4662.show(obj);
2026-07-20 16:05:17 +00:00
}
};