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

88 lines
3.4 KiB
TypeScript
Raw Normal View History

// Module ID: 9083
// Function ID: 9084
// Dependencies: [1386, 4557, 9081, 673, 4731, 9084, 2008, 4448, 9095, 1233, 4866, 1296, 7184, 9098, 2]
2026-07-20 16:05:17 +00:00
// Module 9083
2026-09-02 09:53:35 +00:00
import getSystemLocale from "getSystemLocale" /* 1233 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4448 */;
import _modDef4731 from "module_4731" /* 4731 */;
import _modDef4866 from "module_4866" /* 4866 */;
import _safeTransitionToDefault from "_safeTransitionTo" /* 7184 */;
2026-09-02 09:53:35 +00:00
import closure_3 from "ensureGuildLoaded" /* 1386 */;
import closure_4 from "createRTCConnection" /* 4557 */;
import SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY from "SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY" /* 9081 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
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 };
obj.openLazy(asyncRequireImpl(9095, dependencyMap.paths), closure_6, obj);
2026-07-20 16:05:17 +00:00
},
openSecureFramesUserVerificationModal(id, id2, arg2) {
if (arg2()) {
let obj = _modDef4731;
2026-07-29 08:29:29 +00:00
obj = { userId: null, channelId: null };
obj[0] = id;
obj[1] = id2;
obj.pushLazy(asyncRequireImpl(9084, 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-09-02 09:53:35 +00:00
const intl = onConfirm(1233).intl;
confirmText = intl.string(onConfirm(1233).t["cY+Oob"]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
onConfirm = confirmText.onConfirm;
let obj = _modDef4866;
2026-07-29 08:29:29 +00:00
obj = { title, body: subtitle, confirmText, cancelText: null, confirmColor: null };
2026-09-02 09:53:35 +00:00
const intl2 = onConfirm(1233).intl;
obj[3] = intl2.string(onConfirm(1233).t["ETE/oC"]);
obj[4] = onConfirm(1296).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;
ACTION_SHEET_HEIGHT_HALFDefault.openLazy(asyncRequireImpl(9098, 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/"]);
_modDef4866.show(obj);
2026-07-20 16:05:17 +00:00
}
};