decord/beta/source/modules/rtc/SecureFramesPlatformUtils.native.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

78 lines
3.2 KiB
TypeScript

// Module ID: 9952
// Function ID: 9953
// Name: SecureFramesPlatformUtils
// Dependencies: [2045, 4781, 9950, 1078, 4961, 9953, 1984, 4725, 9964, 1119, 5111, 1181, 7491, 9967, 2]
// Module 9952 (SecureFramesPlatformUtils)
import util from "util" /* 1119 */;
import native from "native" /* 1181 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1984 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4725 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4961 */;
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 5111 */;
import safeTransitionToDefault from "safeTransitionTo" /* 7491 */;
import ChannelStore from "ChannelStore" /* 2045 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4781 */;
require = fn;
const SecureFramesConstants = fn(9950);
({ SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY: hasOwnProperty, SECURE_FRAMES_STREAM_VERIFICATION_BOTTOM_SHEET_KEY: metroRequire, SECURE_FRAMES_USER_VERIFICATION_MODAL_KEY: closure_7 } = SecureFramesConstants);
const Constants = fn(1078);
({ ME: closure_8, Routes: closure_9 } = Constants);
const size = fn(2);
const result = size.fileFinishedImporting("modules/rtc/SecureFramesPlatformUtils.native.tsx");
export default {
openSecureFramesStreamVerification(streamKey, channelId) {
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(9964, dependencyMap.paths), timestampProducer, { streamKey, channelId });
},
openSecureFramesUserVerificationModal(id, id2, fn) {
if (fn()) {
const obj2 = { userId: id, channelId: id2 };
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(9953, dependencyMap.paths), obj2, React5);
}
},
openSecureFramesUpdateConfirmation(confirmText) {
confirmText = confirmText.confirmText;
({ title, subtitle } = confirmText);
if (confirmText === undefined) {
const intl = util.intl;
confirmText = intl.string(util.t["cY+Oob"]);
}
const onConfirm = confirmText.onConfirm;
const obj2 = { title, body: subtitle, confirmText, cancelText: null, confirmColor: null };
const intl2 = util.intl;
obj2.cancelText = intl2.string(util.t["ETE/oC"]);
obj2.confirmColor = native.ButtonColors.RED;
actions_AlertActionCreatorsDefault.confirm(obj2).then((result) => {
if (result) {
onConfirm();
}
});
},
handleSecureFramesUserVerificationLink(arg0) {
({ userId, fingerprint } = arg0);
const channelId = RTCConnectionStore.getChannelId();
const channel = ChannelStore.getChannel(channelId);
let guildId;
if (channel != null) {
guildId = channel.getGuildId();
}
if (guildId == null) {
guildId = closure_1_8;
}
if (null != channelId) {
if (null != channel) {
safeTransitionToDefault(options.CHANNEL(guildId, channelId));
const obj = { userId, channelId, guildId, fingerprint };
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(9967, dependencyMap.paths), hasOwnProperty, obj);
}
}
const obj3 = { title: null, body: null };
const intl = util.intl;
obj3.title = intl.string(util.t["5ICxE6"]);
const intl2 = util.intl;
obj3.body = intl2.string(util.t["v1eXp/"]);
actions_AlertActionCreatorsDefault.show(obj3);
}
};