Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,52 @@
|
||||
/* Metro module 9282; source: modules/rtc/hooks/useReadableSecureFramesFingerprint.tsx; dependencies: [31, 206, 9260, 2] */
|
||||
function _fun72608(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9468:6, offset: 0x01d4b91d, size: 121 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useReadableSecureFramesFingerprint.tsx');
|
||||
exports.useReadableSecureFramesFingerprint = useReadableSecureFramesFingerprint;
|
||||
}
|
||||
|
||||
function useReadableSecureFramesFingerprint({fingerprintBase64, chunkSize, desiredLength}) { // fn#72609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9468:233, offset: 0x01d4b996, size: 132 bytes, params: 2, frame: 16
|
||||
const value = env0_3.useMemo(_fun72610, [chunkSize, fingerprintBase64, desiredLength]);
|
||||
if (fingerprintBase64 != null) {
|
||||
if (fingerprintBase64 === '') {
|
||||
return value;
|
||||
}
|
||||
if (value == null) {
|
||||
throw new global.Error('[useReadableSecureFramesCode] Failed to parse base 64 code.');
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun72610() { // fn#72610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9468:345, offset: 0x01d4ba1a, size: 219 bytes, params: 1, frame: 18
|
||||
var r1;
|
||||
const fingerprintBase64Binding = fingerprintBase64;
|
||||
const value2 = null;
|
||||
if (value2 == fingerprintBase64Binding) {
|
||||
return value2;
|
||||
}
|
||||
if (fingerprintBase64 === '') {
|
||||
return value2;
|
||||
}
|
||||
const defaultImport = importDefault(206) /* metro dependency 206 */;
|
||||
const value4 = defaultImport.toByteArray(fingerprintBase64);
|
||||
const libdaveModule = require(9260) /* metro dependency 9260: libdave */;
|
||||
const value5 = libdaveModule.generateDisplayableCode(value4, desiredLength, chunkSize);
|
||||
if (value2 == value5) {
|
||||
return value2;
|
||||
}
|
||||
const RegExp = global.RegExp;
|
||||
let regExp = new RegExp('.{1,' + chunkSize + '}', 'g');
|
||||
regExp = value5.match(regExp);
|
||||
if (value2 == regExp) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
regExp = global.Array.from(regExp);
|
||||
r1 = regExp;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user