decord/alpha/source/modules/rtc/native/SecureFramesStreamVerificationBottomSheet.tsx

173 lines
6.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 8824
// Function ID: 8825
2026-07-20 16:05:17 +00:00
// Name: SecureFramesStreamVerificationBottomSheet
2026-10-09 10:00:15 +00:00
// Dependencies: [19, 7428, 1085, 21, 558, 576, 504, 8812, 8465, 1126, 8809, 8825, 2]
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 8824 (SecureFramesStreamVerificationBottomSheet)
2026-10-03 08:58:59 +00:00
import Fragment from "Fragment" /* 21 */;
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import showShareActionSheet from "showShareActionSheet" /* 8465 */;
import SecureFramesTracking from "SecureFramesTracking" /* 8812 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
2026-10-09 10:00:15 +00:00
import StreamRTCConnectionStore from "StreamRTCConnectionStore" /* 7428 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const AnalyticsSections = Constants.AnalyticsSections;
const jsx = Fragment.jsx;
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function SecureFramesStreamVerificationBottomSheet(channelId) {
2026-10-03 08:58:59 +00:00
let first;
let obj3;
let tmp10;
let tmp11;
let tmp16;
let tmp6;
let tmp9;
let tmpResult2;
let obj = channelId(576);
const cResult = obj.c(11);
channelId = channelId.channelId;
const streamKey = channelId.streamKey;
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [StreamRTCConnectionStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== streamKey) {
const fn = function s() {
const secureFramesState = StreamRTCConnectionStore.getSecureFramesState(streamKey);
let epochAuthenticator;
if (secureFramesState != null) {
epochAuthenticator = secureFramesState.epochAuthenticator;
}
return epochAuthenticator;
};
cResult[1] = streamKey;
cResult[2] = fn;
tmp6 = fn;
} else {
tmp6 = cResult[2];
}
const tmpResult = channelId(504);
const stateFromStores = tmpResult.useStateFromStores(first, tmp6);
if (cResult[3] !== channelId) {
class E {
constructor(message) {
const obj = SecureFramesTracking;
const obj2 = { channelId };
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
}
}
cResult[3] = channelId;
cResult[4] = E;
} else {
class E {
constructor(message) {
const obj = SecureFramesTracking;
const obj2 = { channelId };
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
}
}
}
if (cResult[5] === Symbol.for("react.memo_cache_sentinel")) {
class E {
constructor(message) {
const obj = SecureFramesTracking;
const obj2 = { channelId };
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
}
}
const stringResult = obj3.string(channelId(1126).t.QogHld);
const intl = tmp(1126).intl;
const stringResult1 = intl.string(channelId(1126).t.qODBkW);
const intl2 = tmp(1126).intl;
const format = intl2.format;
let obj2 = { helpArticle: tmpResult2.getSecureFramesHelpdeskArticle() };
const prop = tmp(1126).t["H3+ktv"];
2026-10-09 10:00:15 +00:00
tmpResult2 = channelId(8809);
2026-10-03 08:58:59 +00:00
const formatResult = format(prop, obj2);
cResult[5] = stringResult;
cResult[6] = stringResult1;
cResult[7] = formatResult;
tmp11 = formatResult;
tmp10 = stringResult1;
tmp9 = stringResult;
} else {
class E {
constructor(message) {
const obj = SecureFramesTracking;
const obj2 = { channelId };
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
}
}
tmp10 = cResult[6];
tmp11 = cResult[7];
}
if (cResult[8] === stateFromStores) {
class E {
constructor(message) {
const obj = SecureFramesTracking;
const obj2 = { channelId };
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
}
}
return tmp16;
}
2026-10-09 10:00:15 +00:00
tmp16 = jsx(streamKey(8825), { title: tmp9, subtitle: tmp10, footer: tmp11, epochAuthenticator: stateFromStores, onShareClick: tmp8 });
2026-10-03 08:58:59 +00:00
cResult[8] = stateFromStores;
cResult[9] = tmp8;
cResult[10] = tmp16;
2026-10-08 09:57:35 +00:00
}) : (function SecureFramesStreamVerificationBottomSheet(channelId) {
2026-10-03 08:58:59 +00:00
let obj4;
2026-07-20 16:05:17 +00:00
channelId = channelId.channelId;
2026-07-23 10:11:24 +00:00
const streamKey = channelId.streamKey;
2026-10-03 08:58:59 +00:00
let obj = channelId(504);
const items = [StreamRTCConnectionStore];
2026-07-20 16:05:17 +00:00
const items1 = [channelId];
2026-10-03 08:58:59 +00:00
const stateFromStores = obj.useStateFromStores(items, () => {
const secureFramesState = StreamRTCConnectionStore.getSecureFramesState(streamKey);
2026-07-20 16:05:17 +00:00
let epochAuthenticator;
2026-07-29 08:29:29 +00:00
if (secureFramesState != null) {
2026-07-20 16:05:17 +00:00
epochAuthenticator = secureFramesState.epochAuthenticator;
}
return epochAuthenticator;
});
2026-10-03 08:58:59 +00:00
const callback = react.useCallback((message) => {
const obj = SecureFramesTracking;
const obj2 = { channelId };
2026-10-03 08:58:59 +00:00
const result = obj.trackE2EEStreamVerificationShareClicked(obj2);
const obj3 = showShareActionSheet;
const obj4 = { message };
obj3.showShareActionSheet(obj4, AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
2026-07-20 16:05:17 +00:00
}, items1);
2026-10-09 10:00:15 +00:00
streamKey(8825);
2026-10-03 08:58:59 +00:00
const intl = channelId(1126).intl;
const intl2 = channelId(1126).intl;
const intl3 = channelId(1126).intl;
const format = intl3.format;
let obj3 = { helpArticle: obj4.getSecureFramesHelpdeskArticle() };
const prop = channelId(1126).t["H3+ktv"];
2026-10-09 10:00:15 +00:00
obj4 = channelId(8809);
2026-10-03 08:58:59 +00:00
return <tmp3 title={intl.string(channelId(1126).t.QogHld)} subtitle={intl2.string(channelId(1126).t.qODBkW)} footer={format(prop, obj3)} epochAuthenticator={stateFromStores} onShareClick={callback} />;
});
let result = size.fileFinishedImporting("modules/rtc/native/SecureFramesStreamVerificationBottomSheet.tsx");
export default tmp2;