Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,100 @@
|
||||
/* Metro module 12605; source: stores/channel_notices/GuildMFAWarningStore.tsx; dependencies: [6, 7, 15, 17, 18, 1935, 1878, 661, 566, 694, 2] */
|
||||
function _fun96704(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12795:6, offset: 0x02163c31, size: 341 bytes, params: 8, frame: 20
|
||||
const closure = CONNECTION_OPEN_96708;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).MFALevels;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun96709(Store);
|
||||
value.displayName = 'GuildMFAWarningStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure,
|
||||
GUILD_UPDATE: function() {
|
||||
return true;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/channel_notices/GuildMFAWarningStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96705() { // fn#96705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12795:188, offset: 0x02163d86, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_96705_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function CONNECTION_OPEN_96708() { // fn#96708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12795:392, offset: 0x02163de8, size: 54 bytes, params: 1, frame: 11
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
if (currentUser == null) {
|
||||
return false;
|
||||
}
|
||||
let mfaEnabled = currentUser.mfaEnabled;
|
||||
if (mfaEnabled === env0_8) {
|
||||
return false;
|
||||
}
|
||||
mfaEnabled = currentUser.mfaEnabled;
|
||||
}
|
||||
|
||||
function _fun96709(a0) { // fn#96709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12795:510, offset: 0x02163e1e, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = GuildMFAWarningStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(UserStore, GuildChannelStore);
|
||||
this.syncWith([UserStore, GuildChannelStore], CONNECTION_OPEN_96708);
|
||||
}}, {key: 'isVisible', value: value_96712}]);
|
||||
}
|
||||
|
||||
function value_96712(a0) { // fn#96712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12795:938, offset: 0x02163ebd, size: 79 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
var mfaLevel;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
mfaLevel = a0.mfaLevel;
|
||||
value = environment.__proto__;
|
||||
value = mfaLevel === MFALevels.ELEVATED;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
value = environment.__proto__;
|
||||
value = env1_8 === false;
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
value = environment.__proto__;
|
||||
value = GuildChannelStore.hasElevatedPermissions(a0.id);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,208 @@
|
||||
/* Metro module 12606; source: stores/channel_notices/HubLinkNoticeStore.tsx; dependencies: [6, 7, 15, 17, 18, 6825, 1867, 661, 566, 694, 2] */
|
||||
function _fun96714(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12796:6, offset: 0x02163f0c, size: 381 bytes, params: 8, frame: 19
|
||||
const _arrayLikeToArray_96720 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const checkGuildIsHub = function(a0) {
|
||||
var r0;
|
||||
var value4;
|
||||
var value2 = GuildStore.getGuild(a0);
|
||||
var value3 = value2 != null;
|
||||
if (value3) {
|
||||
value4 = value2.features.has(GuildFeatures.HUB);
|
||||
r0 = value4 || !!value4;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const handleHotspotUpdates = function() {
|
||||
return true;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const hotspotStore = importDefault(6825) /* metro dependency 6825: HotspotStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun96723(Store);
|
||||
value.displayName = 'HubLinkNoticeStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: function(a0) {
|
||||
var value4;
|
||||
var value2 = _createForOfIteratorHelperLoose_96718(a0.guilds);
|
||||
var value3 = value2();
|
||||
if (value3.done) {
|
||||
return false;
|
||||
}
|
||||
var r1 = value3;
|
||||
loopExit1: while (true) {
|
||||
if (checkGuildIsHub(r1.value.id)) {
|
||||
break loopExit1;
|
||||
}
|
||||
value4 = value2();
|
||||
if (value4.done) {
|
||||
return false;
|
||||
}
|
||||
r1 = value4;
|
||||
continue;
|
||||
}
|
||||
return true;
|
||||
}, GUILD_CREATE: function({guild}) {
|
||||
return checkGuildIsHub(guild.id);
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/channel_notices/HubLinkNoticeStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96715() { // fn#96715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12796:195, offset: 0x02164089, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_96715_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_96718(a0, a1) { // fn#96718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12796:388, offset: 0x021640eb, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun96719;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_96720(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_96720(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_96720(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun96719;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun96723(a0) { // fn#96723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12796:1455, offset: 0x021642ad, size: 99 bytes, params: 2, frame: 16
|
||||
const closure = HubLinkNoticeStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(GuildStore, HotspotStore);
|
||||
this.syncWith([HotspotStore], handleHotspotUpdates);
|
||||
}}, {key: 'channelNoticePredicate', value: value_96726}]);
|
||||
}
|
||||
|
||||
function value_96726({features}) { // fn#96726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12796:1882, offset: 0x02164346, size: 50 bytes, params: 2, frame: 12
|
||||
const has = features.has;
|
||||
const value = environment.__proto__;
|
||||
const LINKED_TO_HUB = GuildFeatures.LINKED_TO_HUB;
|
||||
const value2 = Reflect.apply(has, features, [LINKED_TO_HUB]);
|
||||
return value2 ? !env1_8 : !!value2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user