307 lines
9.9 KiB
TypeScript
307 lines
9.9 KiB
TypeScript
/* Metro module 9283; source: modules/rtc/hooks/useIsPersistentSecureFramesFingerprint.tsx; dependencies: [5, 57, 31, 4294, 9277, 566, 9275, 2] */
|
|
function _fun72611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:6, offset: 0x01d4baf5, size: 187 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_4 = importAll(31) /* metro dependency 31 */;
|
|
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
|
const env0_6 = (require(9277) /* metro dependency 9277: SecureFramesConstants */).SECURE_FRAMES_PUBLIC_KEY_VERSION;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsPersistentSecureFramesFingerprint.tsx');
|
|
exports.useIsPersistentSecureFramesFingerprint = useIsPersistentSecureFramesFingerprint;
|
|
}
|
|
|
|
function useIsPersistentSecureFramesFingerprint({userId}) { // fn#72612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:317, offset: 0x01d4bbb0, size: 260 bytes, params: 2, frame: 22
|
|
const secureFramesRosterMapEntry = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore],
|
|
function() {
|
|
return RTCConnectionStore.getSecureFramesRosterMapEntry(userId);
|
|
});
|
|
const binding = env0_4;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [true]);
|
|
const binding2 = env0_3;
|
|
let value = binding2(value2, 2);
|
|
const property = value[0];
|
|
const env0_2 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [false]), 2);
|
|
const property2 = value[0];
|
|
var env0_3 = value[1];
|
|
useState = binding.useState;
|
|
value = binding2(Reflect.apply(useState, binding, [false]), 2);
|
|
const property3 = value[0];
|
|
var env0_4 = value[1];
|
|
const useCallback = binding.useCallback;
|
|
value = _fun72614();
|
|
value = Reflect.apply(useCallback, binding, [value, []]);
|
|
binding.useEffect(_fun72618, [secureFramesRosterMapEntry, value, userId]);
|
|
return {loading: property, isCurrentUserKeyPersistent: property2, isOtherUserKeyPersistent: property3};
|
|
}
|
|
|
|
function _fun72614() { // fn#72614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:592, offset: 0x01d4bccf, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_2(_fun72616);
|
|
return _fun72617;
|
|
}
|
|
|
|
function _fun72618() { // fn#72618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:858, offset: 0x01d4bde6, size: 70 bytes, params: 1, frame: 14
|
|
if (secureFramesRosterMapEntry == null) {
|
|
env0_3(false);
|
|
env0_4(false);
|
|
env0_2(false);
|
|
} else {
|
|
env0_5(userId, secureFramesRosterMapEntry);
|
|
}
|
|
}
|
|
|
|
function* _fun72616(a0, a1) { // fn#72616, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:612, offset: 0x01d4bcfe, size: 232 bytes, params: 3, frame: 22
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
var property;
|
|
var value4;
|
|
var isCurrentUserPublicKeyMatch;
|
|
var isCurrentUserPublicKeyMatch2;
|
|
var value5;
|
|
var value6;
|
|
var binding4;
|
|
var binding5;
|
|
var value7;
|
|
var isPublicKeyMatch;
|
|
var isPublicKeyMatch2;
|
|
var value8;
|
|
var value9;
|
|
var error;
|
|
exceptionLanding39: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
env2_2(true);
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort38: while (true) {
|
|
exceptionLanding32: while (true) {
|
|
try {
|
|
try {
|
|
binding = env3_6;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
try {
|
|
binding = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
binding(false);
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
binding(false);
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
break reduciblePort38;
|
|
}
|
|
env2_2(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_0;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env3_1;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding2(property);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
isCurrentUserPublicKeyMatch = value4.isCurrentUserPublicKeyMatch;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
isCurrentUserPublicKeyMatch2 = Reflect.apply(isCurrentUserPublicKeyMatch, value4, [binding]);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
yield isCurrentUserPublicKeyMatch2;
|
|
try {
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
if (value6) {
|
|
env2_2(false);
|
|
return value5;
|
|
}
|
|
try {
|
|
try {
|
|
binding4 = env3_0;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
binding5 = env3_1;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding5[6];
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
value7 = binding4(property);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
isPublicKeyMatch = value7.isPublicKeyMatch;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
isPublicKeyMatch2 = Reflect.apply(isPublicKeyMatch, value7, [a0, a1, binding]);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
yield isPublicKeyMatch2;
|
|
try {
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
if (value9) {
|
|
env2_2(false);
|
|
return value8;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
binding(value5);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
try {
|
|
try {
|
|
binding(value8);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding39;
|
|
}
|
|
env2_2(false);
|
|
return undefined;
|
|
}
|
|
env2_2(false);
|
|
throw error;
|
|
}
|
|
|