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

88 lines
3.4 KiB
TypeScript
Raw Normal View History

// Module ID: 9154
// Function ID: 9155
// Dependencies: [1957, 4583, 9152, 1074, 4763, 9155, 1896, 4527, 9166, 1114, 4905, 1178, 7244, 9169, 2]
2026-07-20 16:05:17 +00:00
// Module 9154
import getSystemLocale from "getSystemLocale" /* 1114 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4527 */;
import _modDef4763 from "module_4763" /* 4763 */;
import _modDef4905 from "module_4905" /* 4905 */;
import _safeTransitionToDefault from "_safeTransitionTo" /* 7244 */;
import closure_3 from "ensureGuildLoaded" /* 1957 */;
import closure_4 from "createRTCConnection" /* 4583 */;
import SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY from "SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY" /* 9152 */;
import ME from "ME" /* 1074 */;
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(9166, dependencyMap.paths), closure_6, obj);
2026-07-20 16:05:17 +00:00
},
openSecureFramesUserVerificationModal(id, id2, arg2) {
if (arg2()) {
let obj = _modDef4763;
2026-07-29 08:29:29 +00:00
obj = { userId: null, channelId: null };
obj[0] = id;
obj[1] = id2;
obj.pushLazy(asyncRequireImpl(9155, 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) {
const intl = onConfirm(1114).intl;
confirmText = intl.string(onConfirm(1114).t["cY+Oob"]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
onConfirm = confirmText.onConfirm;
let obj = _modDef4905;
2026-07-29 08:29:29 +00:00
obj = { title, body: subtitle, confirmText, cancelText: null, confirmColor: null };
const intl2 = onConfirm(1114).intl;
obj[3] = intl2.string(onConfirm(1114).t["ETE/oC"]);
obj[4] = onConfirm(1178).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(9169, 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/"]);
_modDef4905.show(obj);
2026-07-20 16:05:17 +00:00
}
};