decord/beta/source/modules/rtc/hooks/useReadableSecureFramesFingerprint.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

103 lines
3.3 KiB
TypeScript

// Module ID: 9956
// Function ID: 9957
// Name: useReadableSecureFramesFingerprint
// Dependencies: [19, 558, 568, 206, 9933, 2]
// Module 9956 (useReadableSecureFramesFingerprint)
import byteLengthDefault from "byteLength" /* 206 */;
import c from "c" /* 568 */;
import _mod9933 from "module_9933" /* 9933 */;
import noop from "module_19" /* 19 */;
require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/rtc/hooks/useReadableSecureFramesFingerprint.tsx");
export const useReadableSecureFramesFingerprint = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
const cResult = c.c(4);
({ fingerprintBase64, chunkSize, desiredLength } = arg0);
if (cResult[0] === chunkSize) {
if (cResult[1] === desiredLength) {
if (cResult[2] === fingerprintBase64) {
let tmp4 = cResult[3];
}
if (null != fingerprintBase64) {
if ("" !== fingerprintBase64) {
if (null == tmp4) {
const _Error = Error;
const error = new Error("[useReadableSecureFramesCode] Failed to parse base 64 code.");
throw error;
}
}
}
return tmp4;
}
}
let tmp5 = null;
if (null != fingerprintBase64) {
tmp5 = null;
if ("" !== fingerprintBase64) {
const toByteArrayResult = byteLengthDefault.toByteArray(fingerprintBase64);
const str7 = _mod9933.generateDisplayableCode(toByteArrayResult, desiredLength, chunkSize);
tmp5 = null;
if (null != str7) {
const _RegExp = RegExp;
const _HermesInternal = HermesInternal;
const regExp = new RegExp(".{1," + chunkSize + "}", "g");
const match = str7.match(regExp);
let arr = null;
if (null != match) {
const _Array = Array;
arr = Array.from(match);
}
tmp5 = arr;
}
const tmpResult = _mod9933;
}
}
cResult[0] = chunkSize;
cResult[1] = desiredLength;
cResult[2] = fingerprintBase64;
cResult[3] = tmp5;
tmp4 = tmp5;
}) : ((fingerprintBase64) => {
fingerprintBase64 = fingerprintBase64.fingerprintBase64;
const chunkSize = fingerprintBase64.chunkSize;
const desiredLength = fingerprintBase64.desiredLength;
const items = [chunkSize, fingerprintBase64, desiredLength];
const memo = noop.useMemo(() => {
if (null != fingerprintBase64) {
if ("" !== tmp) {
const toByteArrayResult = byteLengthDefault.toByteArray(tmp);
const str5 = _mod9933.generateDisplayableCode(toByteArrayResult, desiredLength, chunkSize);
if (null == str5) {
return null;
} else {
const _RegExp = RegExp;
const _HermesInternal = HermesInternal;
const regExp = new RegExp(".{1," + tmp14 + "}", "g");
const match = str5.match(regExp);
let arr = null;
if (null != match) {
const _Array = Array;
arr = Array.from(match);
}
return arr;
}
tmp14 = chunkSize;
}
}
return null;
}, items);
if (null != fingerprintBase64) {
if ("" !== fingerprintBase64) {
if (null == memo) {
const _Error = Error;
const error = new Error("[useReadableSecureFramesCode] Failed to parse base 64 code.");
throw error;
}
}
}
return memo;
});