/* Metro module 9282; source: modules/rtc/hooks/useReadableSecureFramesFingerprint.tsx; dependencies: [31, 206, 9260, 2] */ import Module00206 from '../../../by-id/module-00206.js'; /* Metro dependency 206 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as LibdaveModule from '../../../external/discord_common/js/packages/libdave/index.tsx'; /* Metro dependency 9260 */ 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}); (FileImportTrackerModule).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 = ReactModule.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 = Module00206; const value4 = defaultImport.toByteArray(fingerprintBase64); 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; } } } global.__d(_fun72608, 9282, [31, 206, 9260, 2]) /* metro module 9282, dependencies: [31, 206, 9260, 2] */;