Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,13 @@
|
||||
/* Metro module 9445; source: modules/hub/HubConstants.tsx; dependencies: [2] */
|
||||
function _fun73485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9631:6, offset: 0x01d6e204, size: 192 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubConstants.tsx');
|
||||
exports.HubEmailConnectionSteps = {STUDENT_PROMPT: 'STUDENT_PROMPT', VERIFY_EMAIL: 'VERIFY_EMAIL',
|
||||
VERIFY_PIN: 'VERIFY_PIN', SELECT_SCHOOL: 'SELECT_SCHOOL', SELECT_SCHOOL_SEARCH: 'SELECT_SCHOOL_SEARCH',
|
||||
SUBMIT_SCHOOL: 'SUBMIT_SCHOOL', EMAIL_CONFIRMATION: 'EMAIL_CONFIRMATION', EMAIL_WAITLIST: 'EMAIL_WAITLIST'};
|
||||
exports.INVITE_ROUTING_HUB_GUILD_ID = '884924873015689226';
|
||||
exports.HUBS_IN_ONBOARDING_COUNTRIES = ['US', 'CA', 'PH', 'GB', 'MX', 'ES', 'JP', 'BR', 'FR', 'DE', 'AU', 'IT',
|
||||
'PL'];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
/* Metro module 9457; source: modules/hub/HubJoinManager.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 661, 6947, 694, 4561, 2] */
|
||||
function _fun73558(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:6, offset: 0x01d716ad, size: 268 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
|
||||
value = _fun73562(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubJoinManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_73559() { // fn#73559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:182, offset: 0x01d717b9, 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_73559_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun73562(a0) { // fn#73562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:385, offset: 0x01d7181b, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = HubJoinManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: '_initialize', value: value_73565}, {key: '_terminate', value: value_73566}]);
|
||||
}
|
||||
|
||||
function HubJoinManager(a0) { // fn#73563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:397, offset: 0x01d7187c, size: 145 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, HubJoinManager);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_6(HubJoinManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_73559()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.handleGuildCreate = handleGuildCreate_73564;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_73565(a0) { // fn#73565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:861, offset: 0x01d719a5, size: 61 bytes, params: 2, frame: 14
|
||||
this.onClose = a0;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.subscribe('GUILD_CREATE', this.handleGuildCreate);
|
||||
}
|
||||
|
||||
function value_73566() { // fn#73566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:971, offset: 0x01d719e2, size: 52 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.unsubscribe('GUILD_CREATE', this.handleGuildCreate);
|
||||
}
|
||||
|
||||
function HubJoinManagerHandleGuildCreate({guild}) { // fn#73564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9643:645, owner: HubJoinManager.handleGuildCreate, offset: 0x01d7190d, size: 152 bytes, params: 2, frame: 16
|
||||
var r3;
|
||||
var r7;
|
||||
var features;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const guild2 = GuildStore.getGuild(guild.id);
|
||||
const value3 = guild2 != null;
|
||||
if (value3) {
|
||||
features = guild2.features;
|
||||
r3 = features != null;
|
||||
r7 = features;
|
||||
} else {
|
||||
r3 = value3;
|
||||
r7 = undefined;
|
||||
}
|
||||
r3 = r3 && r7.has(GuildFeatures.HUB);
|
||||
if (r3) {
|
||||
if (env0_0.onClose != null) {
|
||||
env0_0.onClose();
|
||||
}
|
||||
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
|
||||
value.transitionToGuild(guild2.id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
/* Metro module 6927; source: modules/hub/HubProgressActionCreators.tsx; dependencies: [1867, 6928, 661, 1362, 1391, 2] */
|
||||
function _fun55068(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7105:6, offset: 0x01374fba, size: 194 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_55071 = 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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_3 = (require(6928) /* metro dependency 6928: HubProgressBarConstants */).HUB_PROGRESS_STEP_ORDER;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubProgressActionCreators.tsx');
|
||||
exports.setHubProgressActionComplete = setHubProgressActionComplete;
|
||||
exports.skipHubProgress = function(a0) {
|
||||
changeHubProgressUserSetting(a0, HUB_PROGRESS_STEP_ORDER);
|
||||
};
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_55069(a0, a1) { // fn#55069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7105:170, offset: 0x0137507c, size: 370 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 _fun55070;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_55071(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_55071(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_55071(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun55070;
|
||||
}
|
||||
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 changeHubProgressUserSetting(a0, a1) { // fn#55072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7105:1080, offset: 0x013751ee, size: 78 bytes, params: 3, frame: 17
|
||||
const env0_0 = a1;
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateUserGuildSettings = value.updateUserGuildSettings;
|
||||
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
|
||||
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
Reflect.apply(updateUserGuildSettings, value, [a0, _fun55073, INFREQUENT_USER_ACTION]);
|
||||
}
|
||||
|
||||
function setHubProgressActionComplete(a0, a1) { // fn#55074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7105:1505, offset: 0x013752d4, size: 90 bytes, params: 3, frame: 15
|
||||
var guild;
|
||||
if (a0 != null) {
|
||||
guild = GuildStore.getGuild(a0);
|
||||
if (guild != null && guild.features.has(GuildFeatures.HUB)) {
|
||||
changeHubProgressUserSetting(a0, [a1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55073(a0) { // fn#55073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7105:1159, offset: 0x0137523c, size: 152 bytes, params: 2, frame: 22
|
||||
var r2;
|
||||
var r3;
|
||||
var r0;
|
||||
var value6;
|
||||
var moduleValue;
|
||||
var hasFlag;
|
||||
var hubProgress;
|
||||
var moduleValue2;
|
||||
var addFlag;
|
||||
var value7;
|
||||
var value8;
|
||||
const value3 = _createForOfIteratorHelperLoose_55069(require);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
const value5 = false;
|
||||
if (done) {
|
||||
r0 = value5;
|
||||
} else {
|
||||
r2 = value5;
|
||||
r3 = value4;
|
||||
while (true) {
|
||||
value6 = r3.value;
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
hasFlag = moduleValue.hasFlag;
|
||||
hubProgress = a0.hubProgress;
|
||||
if (!Reflect.apply(hasFlag, moduleValue, [hubProgress, value6])) {
|
||||
moduleValue2 = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
addFlag = moduleValue2.addFlag;
|
||||
hubProgress = a0.hubProgress;
|
||||
a0.hubProgress = Reflect.apply(addFlag, moduleValue2, [hubProgress, value6]);
|
||||
value7 = true;
|
||||
r2 = value7;
|
||||
}
|
||||
value8 = value3();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
r0 = r2;
|
||||
break;
|
||||
}
|
||||
r3 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 6928; source: modules/hub/HubProgressBarConstants.tsx; dependencies: [1314, 2] */
|
||||
function _fun55076(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7106:6, offset: 0x01375346, size: 183 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const HubProgressStep = (require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep;
|
||||
const JOIN_GUILD = HubProgressStep.JOIN_GUILD;
|
||||
items = [JOIN_GUILD];
|
||||
const INVITE_USER = HubProgressStep.INVITE_USER;
|
||||
items[1] = INVITE_USER;
|
||||
const CONTACT_SYNC = HubProgressStep.CONTACT_SYNC;
|
||||
items[2] = CONTACT_SYNC;
|
||||
const length = items.length;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubProgressBarConstants.tsx');
|
||||
exports.HUB_PROGRESS_STEP_ORDER = items;
|
||||
exports.HUB_PROGRESS_NUM_TOTAL_STEPS = length;
|
||||
exports.HUB_PROGRESS_ACTION_SHEET_ID = 'hub-progress';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,250 @@
|
||||
/* Metro module 11986; source: modules/hub/HubProgressBarUtils.tsx; dependencies: [31, 1348, 5040, 6928, 661, 566, 1314, 1244, 1360, 1391, 2] */
|
||||
function _fun92014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:6, offset: 0x0207a833, size: 252 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_92017 = 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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
|
||||
const env0_5 = (require(6928) /* metro dependency 6928: HubProgressBarConstants */).HUB_PROGRESS_STEP_ORDER;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubProgressBarUtils.tsx');
|
||||
exports.getHubProgressTitleForStep = getHubProgressTitleForStep;
|
||||
exports.useHubProgressBarCompletedSteps = useHubProgressBarCompletedSteps;
|
||||
exports.getNextHubProgressStep = getNextHubProgressStep;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_92015(a0, a1) { // fn#92015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:191, offset: 0x0207a92f, 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 _fun92016;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_92017(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_92017(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_92017(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun92016;
|
||||
}
|
||||
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 useCompletedStepsFromSettings(a0) { // fn#92018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:1101, offset: 0x0207aaa3, size: 100 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return env0_2.useMemo(_fun92020,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore], _fun92019)]);
|
||||
}
|
||||
|
||||
function getHubProgressTitleForStep(a0) { // fn#92021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:1605, offset: 0x0207abe7, size: 357 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const HubProgressStep = (require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep;
|
||||
const JOIN_GUILD = HubProgressStep.JOIN_GUILD;
|
||||
if (JOIN_GUILD === a0) {
|
||||
return intl.string(t.iNR25n);
|
||||
}
|
||||
const INVITE_USER = HubProgressStep.INVITE_USER;
|
||||
if (INVITE_USER === a0) {
|
||||
return intl.string(t['3NlTYU']);
|
||||
}
|
||||
const CONTACT_SYNC = HubProgressStep.CONTACT_SYNC;
|
||||
if (CONTACT_SYNC === a0) {
|
||||
return intl.string(t.HFvFte);
|
||||
}
|
||||
const NO_PROGRESS = HubProgressStep.NO_PROGRESS;
|
||||
if (NO_PROGRESS === a0) {
|
||||
return null;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(a0);
|
||||
}
|
||||
|
||||
function useHubProgressBarCompletedSteps(a0) { // fn#92022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:2047, offset: 0x0207ad4c, size: 90 bytes, params: 2, frame: 16
|
||||
return env0_2.useMemo(_fun92025, [useCompletedStepsFromSettings(a0?.id),
|
||||
(() => (require(566) /* metro dependency 566: flux */).useStateFromStores([ConnectedAccountsStore],
|
||||
_fun92024))()]);
|
||||
}
|
||||
|
||||
function getNextHubProgressStep(a0) { // fn#92026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:2417, offset: 0x0207ae66, size: 72 bytes, params: 2, frame: 14
|
||||
var value3;
|
||||
var has;
|
||||
var value4;
|
||||
const value = _createForOfIteratorHelperLoose_92015(HUB_PROGRESS_STEP_ORDER);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (done) {
|
||||
return null;
|
||||
}
|
||||
let r1 = value2;
|
||||
loopExit1: while (true) {
|
||||
value3 = r1.value;
|
||||
has = a0.has;
|
||||
if (Reflect.apply(has, a0, [value3])) {
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
return null;
|
||||
}
|
||||
r1 = value4;
|
||||
continue;
|
||||
}
|
||||
break loopExit1;
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun92019() { // fn#92019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:1182, offset: 0x0207ab07, size: 92 bytes, params: 1, frame: 8
|
||||
const value2 = 0;
|
||||
return env0_0 == null ? value2 : (UserSettingsProtoStore.settings.guilds == null || UserSettingsProtoStore.settings.guilds.guilds[env0_0] == null ? undefined : UserSettingsProtoStore.settings.guilds.guilds[env0_0].hubProgress) ?? value2;
|
||||
}
|
||||
|
||||
function _fun92020() { // fn#92020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:1319, offset: 0x0207ab63, size: 132 bytes, params: 1, frame: 19
|
||||
var r2;
|
||||
var value5;
|
||||
var moduleValue;
|
||||
var hasFlag;
|
||||
var value6;
|
||||
const binding = env0_1;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const value3 = _createForOfIteratorHelperLoose_92015(HUB_PROGRESS_STEP_ORDER);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
hasFlag = moduleValue.hasFlag;
|
||||
if (Reflect.apply(hasFlag, moduleValue, [binding, value5])) {
|
||||
set.add(value5);
|
||||
}
|
||||
value6 = value3();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value6;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return set;
|
||||
}
|
||||
|
||||
function useContactSyncEverEnabled() { // fn#92023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:2150, owner: useHubProgressBarCompletedSteps.useContactSyncEverEnabled, offset: 0x0207ada6, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ConnectedAccountsStore], _fun92024);
|
||||
}
|
||||
|
||||
function _fun92025() { // fn#92025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:2290, offset: 0x0207ae05, size: 97 bytes, params: 1, frame: 13
|
||||
var Set;
|
||||
var binding;
|
||||
var set;
|
||||
var add;
|
||||
var value2;
|
||||
if (env0_1) {
|
||||
Set = global.Set;
|
||||
binding = env0_0;
|
||||
set = new Set();
|
||||
add = set.add;
|
||||
value2 = environment.__proto__;
|
||||
Reflect.apply(add, set,
|
||||
[(require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep.CONTACT_SYNC]);
|
||||
return set;
|
||||
}
|
||||
return env0_0;
|
||||
}
|
||||
|
||||
function _fun92024() { // fn#92024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12172:2227, offset: 0x0207ade1, size: 36 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
const getLocalAccount = ConnectedAccountsStore.getLocalAccount;
|
||||
const CONTACTS = PlatformTypes.CONTACTS;
|
||||
return Reflect.apply(getLocalAccount, ConnectedAccountsStore, [CONTACTS]) != null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 14593; source: modules/hub/HubUnreadUtils.tsx; dependencies: [9640, 4605, 566, 21, 9632, 2] */
|
||||
function _fun110359(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14790:6, offset: 0x02376562, size: 134 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildDirectoryStore = importDefault(9640) /* metro dependency 9640: GuildDirectoryStore */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubUnreadUtils.tsx');
|
||||
exports.useHubUnreadCount = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([GuildDirectoryStore, ReadStateStore], _fun110361, [a0]);
|
||||
};
|
||||
}
|
||||
|
||||
function useHubUnreadCount(a0) { // fn#110360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14790:200, offset: 0x023765e8, size: 83 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildDirectoryStore, ReadStateStore],
|
||||
_fun110361, [a0]);
|
||||
}
|
||||
|
||||
function _fun110361() { // fn#110361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14790:271, offset: 0x0237663b, size: 178 bytes, params: 1, frame: 18
|
||||
if (env0_0 == null) {
|
||||
return 0;
|
||||
}
|
||||
const value3 = ReadStateStore.ackMessageId(env0_0.id);
|
||||
var env0_0 = value3;
|
||||
if (value3 == null) {
|
||||
return 0;
|
||||
}
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
let value = GuildDirectoryStore.getDirectoryEntries(env0_0.id);
|
||||
value = Reflect.apply(values, Object, [value ?? ({})]);
|
||||
value = value.filter(_fun110362);
|
||||
const Math = global.Math;
|
||||
const min = Math.min;
|
||||
const MAX_CATEGORY_SERVERS = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).MAX_CATEGORY_SERVERS;
|
||||
return Reflect.apply(min, Math, [MAX_CATEGORY_SERVERS, value.length]);
|
||||
}
|
||||
|
||||
function _fun110362({createdAt}) { // fn#110362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14790:421, offset: 0x023766ed, size: 96 bytes, params: 2, frame: 12
|
||||
const Date = global.Date;
|
||||
let date = new Date(createdAt);
|
||||
date = date.getTime();
|
||||
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
return date > defaultImport.extractTimestamp(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Metro module 9442; source: modules/hub/HubUtils.native.tsx; dependencies: [4097, 22, 9443, 2] */
|
||||
function _fun73457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9628:6, offset: 0x01d6d964, size: 172 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const inviteStore = importDefault(4097) /* metro dependency 4097: InviteStore */;
|
||||
const env0_3 = (importDefault(22) /* metro dependency 22 */).throttle(_fun73458, 1000, {trailing: false});
|
||||
object2 = {onOpenHubInvite: onOpenHubInvite};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/HubUtils.native.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function _fun73458({code}) { // fn#73458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9628:126, offset: 0x01d6da10, size: 82 bytes, params: 2, frame: 15
|
||||
(importDefault(9443) /* metro dependency 9443: HubEmailConnectionModalActionCreators */).open({invite: InviteStore.getInvite(code) ?? undefined});
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,40 @@
|
||||
/* Metro module 9451; source: modules/hub/native/components/HubEmailConnectionDescriptionActionsheet.tsx; dependencies: [31, 33, 4501, 6275, 6758, 1244, 4573, 2] */
|
||||
function _fun73515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9637:6, offset: 0x01d6f83b, size: 181 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_2 = value.jsx;
|
||||
const env0_3 = value.jsxs;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({description: {marginBottom: 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionDescriptionActionsheet.tsx');
|
||||
exports.default = _default_73516;
|
||||
}
|
||||
|
||||
function _default_73516() { // fn#73516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9637:195, offset: 0x01d6f8f0, size: 349 bytes, params: 1, frame: 25
|
||||
const styles = useStyles();
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const items2 = [<BottomSheetTitleHeader title={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['48kg+O']])} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let description = styles.description;
|
||||
string = intl.string;
|
||||
const O1k9XX = (require(1244) /* metro dependency 1244: indexNative */).t.O1k9XX;
|
||||
items2[1] = <Text style={description} variant="text-sm/medium" color="text-default">{Reflect.apply(string, intl,
|
||||
[O1k9XX])}</Text>;
|
||||
description = styles.description;
|
||||
string = intl.string;
|
||||
const FV5dvh = (require(1244) /* metro dependency 1244: indexNative */).t.FV5dvh;
|
||||
items2[2] = <Text style={description} variant="text-sm/medium" color="text-default">{Reflect.apply(string, intl,
|
||||
[FV5dvh])}</Text>;
|
||||
return (
|
||||
<BottomSheet>
|
||||
{items2}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,489 @@
|
||||
/* Metro module 9455; source: modules/hub/native/components/HubEmailConnectionGuildSelect.tsx; dependencies: [5, 57, 31, 27, 9445, 33, 4501, 697, 7972, 6819, 1418, 4573, 1244, 1585, 4578, 1305, 1484, 5277, 6998, 9450, 4131, 9444, 2] */
|
||||
function _fun73532(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:6, offset: 0x01d705c0, size: 564 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.FlatList;
|
||||
const env0_8 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'marginHorizontal': 16, 'borderRadius': null, 'padding': 12};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object5.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object4.rowContainer = object5;
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object4.guildIcon = object6;
|
||||
object4.separator = {height: 8};
|
||||
object4.header = {'padding': 16, 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object4.title = {'marginBottom': 8, 'textAlign': 'center'};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.footerSafeAreaContainer = {'backgroundColor': null, 'position': 'absolute', 'bottom': 0, 'width': '100%',
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object4.footerContainer = {'paddingHorizontal': 16, 'height': 110, 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object4.error = {'color': null, 'alignSelf': 'center', 'fontSize': 14, 'marginVertical': 8, color: RED_400};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object4]);
|
||||
const closure = HubEmailConnectionGuildSelectRow;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionGuildSelect.tsx');
|
||||
exports.default = HubEmailConnectionGuildSelect;
|
||||
exports.HubEmailConnectionGuildSelectRow = closure;
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectRow({guildInfo, signup, loading}) { // fn#73533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:884, offset: 0x01d707f4, size: 227 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const formRowProps = {onPress: signup, disabled: loading, DEPRECATED_style: styles.rowContainer,
|
||||
label: guildInfo.name};
|
||||
const guildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const guildRecordUtilsModule = require(1418) /* metro dependency 1418: GuildRecordUtils */;
|
||||
const fromGuildBasic = guildRecordUtilsModule.fromGuildBasic;
|
||||
const object = {};
|
||||
copyDataProperties(object, guildInfo, undefined);
|
||||
object['features'] = [];
|
||||
formRowProps.leading = ((Component) => <Component style={styles.guildIcon} guild={Reflect.apply(fromGuildBasic,
|
||||
guildRecordUtilsModule, [object])} />)(guildIcon);
|
||||
const FormRow2 = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const Arrow = FormRow2.Arrow;
|
||||
formRowProps.trailing = <Arrow />;
|
||||
return <FormRow {...formRowProps} />;
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectHeader() { // fn#73534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:1188, offset: 0x01d708d7, size: 153 bytes, params: 1, frame: 20
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.header}>
|
||||
<Text
|
||||
style={styles.title}
|
||||
accessibilityRole="header"
|
||||
variant="heading-xl/extrabold"
|
||||
color="mobile-text-heading-primary"
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mOMeiR)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectFooter({errors, loading, onFooterButtonPressed}) { // fn#73535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:1454, offset: 0x01d70970, size: 341 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const items2 = [styles.footerSafeAreaContainer];
|
||||
items2[1] = {paddingBottom: bottom};
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const G3Zk7V = (require(1244) /* metro dependency 1244: indexNative */).t.G3Zk7V;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<View style={styles.footerContainer}>
|
||||
<Button
|
||||
variant="secondary"
|
||||
loading={loading}
|
||||
disabled={loading}
|
||||
grow
|
||||
text={Reflect.apply(string, intl, [G3Zk7V])}
|
||||
onPress={onFooterButtonPressed}
|
||||
/>
|
||||
{errors != null && ((LegacyText) => <LegacyText style={styles.error}>{errors?.getAnyErrorMessage()}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelect({onClose, email, guildsInfo}) { // fn#73536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:1979, offset: 0x01d70ac5, size: 421 bytes, params: 2, frame: 25
|
||||
const env0_3 = useStyles();
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const env0_4 = value2;
|
||||
const binding = env0_5;
|
||||
binding.useLayoutEffect(_fun73537, [email, guildsInfo, value2, onClose]);
|
||||
const value3 = binding.useCallback(_fun73540, [email, value2, onClose]);
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
let useState = binding.useState;
|
||||
const value4 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_4;
|
||||
const value5 = binding2(value4, 2);
|
||||
const property = value5[0];
|
||||
var env0_5 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value6[0];
|
||||
const env0_7 = value6[1];
|
||||
const HubEmailConnectionScreen = (require(9444) /* metro dependency 9444: HubEmailConnectionModal */).HubEmailConnectionScreen;
|
||||
return (
|
||||
<HubEmailConnectionScreen>
|
||||
<FlatList
|
||||
data={guildsInfo}
|
||||
ListHeaderComponent={ListHeaderComponent}
|
||||
renderItem={renderItem_73542}
|
||||
ItemSeparatorComponent={ItemSeparatorComponent}
|
||||
contentContainerStyle={{paddingBottom: 110 + bottom + 8}}
|
||||
/>
|
||||
<HubEmailConnectionGuildSelectFooter
|
||||
errors={property}
|
||||
loading={property2}
|
||||
onFooterButtonPressed={value3}
|
||||
/>
|
||||
</HubEmailConnectionScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun73537() { // fn#73537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:2108, offset: 0x01d70c6a, size: 38 bytes, params: 1, frame: 12
|
||||
const binding = env0_4;
|
||||
binding.setOptions({headerRight: headerRight_73538});
|
||||
}
|
||||
|
||||
function _fun73540() { // fn#73540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:2395, offset: 0x01d70d53, size: 55 bytes, params: 1, frame: 15
|
||||
const binding = env0_4;
|
||||
const push = binding.push;
|
||||
const SUBMIT_SCHOOL = HubEmailConnectionSteps.SUBMIT_SCHOOL;
|
||||
Reflect.apply(push, binding, [SUBMIT_SCHOOL, {email: email, onClose: onClose}]);
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectRenderItem({item}) { // fn#73542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:2700, owner: HubEmailConnectionGuildSelect.renderItem, offset: 0x01d70da1, size: 80 bytes, params: 2, frame: 16
|
||||
const env0_0 = item.id;
|
||||
return (
|
||||
<HubEmailConnectionGuildSelectRow
|
||||
guildInfo={item}
|
||||
signup={env1_3(_fun73544)}
|
||||
loading={env0_6}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectItemSeparatorComponent() { // fn#73545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:3011, owner: HubEmailConnectionGuildSelect.ItemSeparatorComponent, offset: 0x01d70efe, size: 40 bytes, params: 1, frame: 13
|
||||
return <View style={styles.separator} />;
|
||||
}
|
||||
|
||||
function headerRight_73538() { // fn#73538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:2139, offset: 0x01d70c90, size: 131 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const object2 = {};
|
||||
const MagnifyingGlassIcon = (require(6998) /* metro dependency 6998: MagnifyingGlassIcon */).MagnifyingGlassIcon;
|
||||
object2.IconComponent = MagnifyingGlassIcon;
|
||||
object2.onPress = onPress_73539;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5h0QOP']);
|
||||
return <HeaderActionButton {...object2} />;
|
||||
}
|
||||
|
||||
function* _fun73544() { // fn#73544, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:2786, offset: 0x01d70dfc, size: 258 bytes, params: 1, frame: 20
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var sendVerificationEmail;
|
||||
var value5;
|
||||
var onCloseBinding;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var push;
|
||||
var binding3;
|
||||
var VERIFY_PIN;
|
||||
var object2;
|
||||
var error;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var value9;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var aPIError;
|
||||
var value11;
|
||||
exceptionLanding46: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_5(null);
|
||||
FlatList(true);
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort45: while (true) {
|
||||
exceptionLanding30: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
try {
|
||||
binding = env2_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding4 = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding5 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
property = binding5[20];
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value9 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
APIError = value9.APIError;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
prototype = APIError.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
aPIError = new APIError();
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value11 = aPIError instanceof Object ? aPIError : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding(value11);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reduciblePort45;
|
||||
}
|
||||
FlatList(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[19];
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
sendVerificationEmail = value4.sendVerificationEmail;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
value5 = environment.__proto__;
|
||||
try {
|
||||
try {
|
||||
onCloseBinding = onClose;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value6 = Reflect.apply(sendVerificationEmail, value4, [importDefault, true, onCloseBinding]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
if (value8) {
|
||||
FlatList(false);
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
push = binding.push;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env3_8;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
VERIFY_PIN = binding3.VERIFY_PIN;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.email = importDefault;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.onClose = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
onCloseBinding = onClose;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.guildId = onCloseBinding;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
Reflect.apply(push, binding, [VERIFY_PIN, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
FlatList(false);
|
||||
return undefined;
|
||||
}
|
||||
FlatList(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
function headerRight_73538OnPress() { // fn#73539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9641:2225, owner: headerRight_73538.onPress, offset: 0x01d70d13, size: 64 bytes, params: 1, frame: 15
|
||||
const binding = env2_4;
|
||||
const push = binding.push;
|
||||
const SELECT_SCHOOL_SEARCH = HubEmailConnectionSteps.SELECT_SCHOOL_SEARCH;
|
||||
Reflect.apply(push, binding, [SELECT_SCHOOL_SEARCH, {email: email, onClose: onClose, guildsInfo: guildsInfo}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,454 @@
|
||||
/* Metro module 9459; source: modules/hub/native/components/HubEmailConnectionGuildSelectSearch.tsx; dependencies: [5, 57, 31, 27, 9445, 33, 4501, 697, 9460, 4573, 1244, 1484, 6590, 1585, 9450, 4131, 5282, 6983, 1305, 9455, 2] */
|
||||
function _fun73568(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:6, offset: 0x01d71a5c, size: 448 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.Image;
|
||||
const env0_8 = value.FlatList;
|
||||
const env0_9 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
const env0_12 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.scrollContainer = {'flex': 1, 'width': '100%', backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.fauxHeader = {paddingHorizontal: 0};
|
||||
object2.emptyWrapper = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'marginTop': 64,
|
||||
'paddingHorizontal': 16};
|
||||
object2.emptyStateImage = {marginBottom: 24};
|
||||
object2.emptyStateTitle = {'marginBottom': 4, 'textAlign': 'center'};
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object2.error = {'color': null, 'alignSelf': 'center', 'fontSize': 14, 'marginBottom': 8, color: RED_400};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionGuildSelectSearch.tsx');
|
||||
exports.default = HubEmailConnectionGuildSelectSearch;
|
||||
}
|
||||
|
||||
function EmptyState_73569() { // fn#73569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:680, offset: 0x01d71c1c, size: 211 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const image = <Image style={styles.emptyStateImage} source={importDefault(9460) /* metro dependency 9460 */} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.emptyWrapper}>
|
||||
{image}
|
||||
<Text
|
||||
style={styles.emptyStateTitle}
|
||||
variant="text-sm/semibold"
|
||||
color="mobile-text-heading-primary"
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6HXiuE'])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectSearch({guildsInfo, email, onClose}) { // fn#73570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:1059, offset: 0x01d71cef, size: 558 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const env0_3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, ['']);
|
||||
const binding2 = env0_4;
|
||||
const value4 = binding2(value3, 2);
|
||||
var env0_4 = value4[0];
|
||||
const property = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value5[0];
|
||||
var env0_5 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const env0_6 = value6[0];
|
||||
const env0_7 = value6[1];
|
||||
const value7 = guildsInfo.filter(_fun73571);
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const env0_8 = property2?.getAnyErrorMessage();
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
const FauxHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).FauxHeader;
|
||||
const SearchBarNav = importDefault(6983) /* metro dependency 6983: SearchBarNav */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<>
|
||||
<FauxHeader style={styles.fauxHeader}>
|
||||
<SearchBarNav
|
||||
placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nL2wKD)}
|
||||
onChange={property}
|
||||
onClose={onClose_73572}
|
||||
/>
|
||||
</FauxHeader>
|
||||
<FlatList
|
||||
keyboardShouldPersistTaps="always"
|
||||
data={value7}
|
||||
ListHeaderComponent={ListHeaderComponent}
|
||||
renderItem={renderItem_73574}
|
||||
keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}}
|
||||
ListEmptyComponent={ListEmptyComponent}
|
||||
ItemSeparatorComponent={ItemSeparatorComponent}
|
||||
style={styles.scrollContainer}
|
||||
contentContainerStyle={{paddingBottom: bottom + 16, paddingTop: 16}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun73571({name}) { // fn#73571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:1309, offset: 0x01d71f1d, size: 68 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(6590) /* metro dependency 6590 */;
|
||||
const binding = env0_4;
|
||||
return value(binding.toLowerCase(), name.toLowerCase());
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectSearchOnClose() { // fn#73572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:1577, owner: HubEmailConnectionGuildSelectSearch.onClose, offset: 0x01d71f61, size: 21 bytes, params: 1, frame: 9
|
||||
env0_3.pop();
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectSearchListHeaderComponent() { // fn#73573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:1662, owner: HubEmailConnectionGuildSelectSearch.ListHeaderComponent, offset: 0x01d71f76, size: 98 bytes, params: 1, frame: 16
|
||||
const value2 = null;
|
||||
if (value2 != env0_8) {
|
||||
if (env0_8 === '') {
|
||||
return value2;
|
||||
} else {
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={styles.error}>
|
||||
{env0_8}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
} else {
|
||||
return value2;
|
||||
}
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectSearchRenderItem({item}) { // fn#73574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:1748, owner: HubEmailConnectionGuildSelectSearch.renderItem, offset: 0x01d71fd8, size: 102 bytes, params: 2, frame: 17
|
||||
const HubEmailConnectionGuildSelectRow = (require(9455) /* metro dependency 9455: HubEmailConnectionGuildSelect */).HubEmailConnectionGuildSelectRow;
|
||||
const env0_0 = item.id;
|
||||
return (
|
||||
<HubEmailConnectionGuildSelectRow
|
||||
signup={env1_3(_fun73576)}
|
||||
guildInfo={item}
|
||||
loading={env0_6}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectSearchListEmptyComponent() { // fn#73578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:2085, owner: HubEmailConnectionGuildSelectSearch.ListEmptyComponent, offset: 0x01d7214b, size: 23 bytes, params: 1, frame: 13
|
||||
return <EmptyState_73569 />;
|
||||
}
|
||||
|
||||
function HubEmailConnectionGuildSelectSearchItemSeparatorComponent() { // fn#73579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:2129, owner: HubEmailConnectionGuildSelectSearch.ItemSeparatorComponent, offset: 0x01d72162, size: 36 bytes, params: 1, frame: 14
|
||||
return <View style={{height: 8}} />;
|
||||
}
|
||||
|
||||
function* _fun73576() { // fn#73576, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9645:1831, offset: 0x01d72049, size: 258 bytes, params: 1, frame: 20
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var sendVerificationEmail;
|
||||
var value5;
|
||||
var emailBinding;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var push;
|
||||
var binding3;
|
||||
var VERIFY_PIN;
|
||||
var object2;
|
||||
var error;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var value9;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var aPIError;
|
||||
var value11;
|
||||
exceptionLanding46: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_5(null);
|
||||
Image(true);
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort45: while (true) {
|
||||
exceptionLanding30: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
try {
|
||||
binding = env2_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding4 = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding5 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
property = binding5[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value9 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
APIError = value9.APIError;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
prototype = APIError.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
aPIError = new APIError();
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value11 = aPIError instanceof Object ? aPIError : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding(value11);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reduciblePort45;
|
||||
}
|
||||
Image(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[14];
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
sendVerificationEmail = value4.sendVerificationEmail;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
value5 = environment.__proto__;
|
||||
try {
|
||||
try {
|
||||
emailBinding = email;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value6 = Reflect.apply(sendVerificationEmail, value4, [require, true, emailBinding]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
if (value8) {
|
||||
Image(false);
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
push = binding.push;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env3_9;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
VERIFY_PIN = binding3.VERIFY_PIN;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.email = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.onClose = importDefault;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
emailBinding = email;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.guildId = emailBinding;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
Reflect.apply(push, binding, [VERIFY_PIN, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
Image(false);
|
||||
return undefined;
|
||||
}
|
||||
Image(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 9444; source: modules/hub/native/components/HubEmailConnectionModal.tsx; dependencies: [31, 9445, 33, 4501, 5314, 5282, 9446, 480, 9449, 9452, 9454, 9455, 9456, 9459, 6618, 1484, 6518, 9443, 5280, 1244, 2] */
|
||||
function _fun73465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:6, offset: 0x01d6dbd4, size: 245 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{safeArea: {marginTop: NAV_BAR_HEIGHT, flex: 1}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionModal.tsx');
|
||||
exports.default = HubEmailConnectionModal;
|
||||
exports.HubEmailConnectionScreen = HubEmailConnectionScreen;
|
||||
}
|
||||
|
||||
function getScreens_73466(a0, a1) { // fn#73466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:229, offset: 0x01d6dcc9, size: 442 bytes, params: 3, frame: 19
|
||||
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
||||
const r6 = a1 ? navigatorHeaderNativeModule.getHeaderBackButton(a0) : navigatorHeaderNativeModule.getHeaderCloseButton(a0);
|
||||
const object2 = {};
|
||||
const STUDENT_PROMPT = HubEmailConnectionSteps.STUDENT_PROMPT;
|
||||
object2[STUDENT_PROMPT] = {fullscreen: true, headerLeft: r6, headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_73468};
|
||||
const VERIFY_EMAIL = HubEmailConnectionSteps.VERIFY_EMAIL;
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const HUB_EMAIL_SIGNUP = ImpressionNames.HUB_EMAIL_SIGNUP;
|
||||
object2[VERIFY_EMAIL] = {impressionName: HUB_EMAIL_SIGNUP, impressionProperties: function({invite}) {
|
||||
return {has_invite: invite != null};
|
||||
}, fullscreen: true, headerLeft: r6, headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_73471};
|
||||
const EMAIL_WAITLIST = HubEmailConnectionSteps.EMAIL_WAITLIST;
|
||||
object2[EMAIL_WAITLIST] = {fullscreen: true, headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_73473};
|
||||
const SUBMIT_SCHOOL = HubEmailConnectionSteps.SUBMIT_SCHOOL;
|
||||
object2[SUBMIT_SCHOOL] = {fullscreen: true, headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_73475};
|
||||
const SELECT_SCHOOL = HubEmailConnectionSteps.SELECT_SCHOOL;
|
||||
object2[SELECT_SCHOOL] = {fullscreen: true, headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_73477};
|
||||
const VERIFY_PIN = HubEmailConnectionSteps.VERIFY_PIN;
|
||||
object2[VERIFY_PIN] = {fullscreen: true, headerTitle: function() {
|
||||
return null;
|
||||
}, render: render_73479};
|
||||
const SELECT_SCHOOL_SEARCH = HubEmailConnectionSteps.SELECT_SCHOOL_SEARCH;
|
||||
object2[SELECT_SCHOOL_SEARCH] = {'fullscreen': true, 'headerShown': false, render: render_73480};
|
||||
return object2;
|
||||
}
|
||||
|
||||
function HubEmailConnectionModal({isNestedNavigator, onCloseExtra, invite, displayStudentPrompt}) { // fn#73481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1159, offset: 0x01d6dff4, size: 218 bytes, params: 2, frame: 18
|
||||
const env0_4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const {screens, initialRouteStack} = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun73482);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={screens}
|
||||
initialRouteStack={initialRouteStack}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionScreen({children}) { // fn#73484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1769, offset: 0x01d6e1b3, size: 81 bytes, params: 2, frame: 16
|
||||
const styles = useStyles();
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
return (
|
||||
<SafeAreaPaddingView top style={styles.safeArea}>
|
||||
{children}
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_73466Render(a0) { // fn#73468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:407, owner: getScreens_73466.render, offset: 0x01d6de83, size: 49 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} />)(importDefault(9446) /* metro dependency 9446: HubEmailConnectionStudentPrompt */);
|
||||
}
|
||||
|
||||
function getScreens_73466Render_73471(a0) { // fn#73471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:616, owner: getScreens_73466.render, offset: 0x01d6dece, size: 49 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} />)(importDefault(9449) /* metro dependency 9449: HubEmailConnectionContent */);
|
||||
}
|
||||
|
||||
function getScreens_73466Render_73475(a0) { // fn#73475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:783, owner: getScreens_73466.render, offset: 0x01d6df30, size: 49 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} />)(importDefault(9454) /* metro dependency 9454: HubEmailConnectionSubmitSchool */);
|
||||
}
|
||||
|
||||
function getScreens_73466Render_73477(a0) { // fn#73477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:867, owner: getScreens_73466.render, offset: 0x01d6df61, size: 49 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} />)(importDefault(9455) /* metro dependency 9455: HubEmailConnectionGuildSelect */);
|
||||
}
|
||||
|
||||
function getScreens_73466Render_73479(a0) { // fn#73479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:948, owner: getScreens_73466.render, offset: 0x01d6df92, size: 49 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} />)(importDefault(9456) /* metro dependency 9456: HubEmailConnectionPinVerify */);
|
||||
}
|
||||
|
||||
function getScreens_73466Render_73480(a0) { // fn#73480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1033, owner: getScreens_73466.render, offset: 0x01d6dfc3, size: 49 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} />)(importDefault(9459) /* metro dependency 9459: HubEmailConnectionGuildSelectSearch */);
|
||||
}
|
||||
|
||||
function _fun73482() { // fn#73482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1305, offset: 0x01d6e0ce, size: 132 bytes, params: 1, frame: 18
|
||||
const closure = onClose_73483;
|
||||
const items2 = [];
|
||||
const displayStudentPromptBinding = displayStudentPrompt;
|
||||
const push = items2.push;
|
||||
const object2 = {};
|
||||
if (displayStudentPromptBinding) {
|
||||
object2.name = HubEmailConnectionSteps.STUDENT_PROMPT;
|
||||
object2.params = {onClose: closure};
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
} else {
|
||||
object2.name = HubEmailConnectionSteps.VERIFY_EMAIL;
|
||||
object2.params = {invite: invite, onClose: closure};
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
}
|
||||
const object3 = {};
|
||||
object3.screens = getScreens_73466(closure, isNestedNavigator);
|
||||
object3.initialRouteStack = items2;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function onClose_73483() { // fn#73483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1326, offset: 0x01d6e152, size: 97 bytes, params: 1, frame: 13
|
||||
let value = a0;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = environment.__proto__;
|
||||
if (onCloseExtra != null) {
|
||||
onCloseExtra(r4 === true);
|
||||
}
|
||||
if (isNestedNavigator) {
|
||||
env1_4.goBack();
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = importDefault(9443) /* metro dependency 9443: HubEmailConnectionModalActionCreators */;
|
||||
value.close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 9443; source: modules/hub/native/components/HubEmailConnectionModalActionCreators.tsx; dependencies: [5, 5080, 9444, 1962, 2] */
|
||||
function _fun73460(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9629:6, offset: 0x01d6da62, size: 137 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
object2 = {open: open_73461, close: close_73464};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function open_73461(a0, a1) { // fn#73461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9629:144, offset: 0x01d6daeb, size: 74 bytes, params: 3, frame: 16
|
||||
const env0_0 = a1;
|
||||
const defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
|
||||
defaultImport.pushLazy(env0_3(_fun73463), a0, 'HUB_EMAIL_CONNECTION_MODAL_KEY');
|
||||
}
|
||||
|
||||
function close_73464() { // fn#73464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9629:287, offset: 0x01d6dba8, size: 44 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('HUB_EMAIL_CONNECTION_MODAL_KEY');
|
||||
}
|
||||
|
||||
function* _fun73463() { // fn#73463, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9629:174, offset: 0x01d6db40, size: 104 bytes, params: 1, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const binding = env2_0;
|
||||
const binding2 = env2_2;
|
||||
value = binding(binding2[3]);
|
||||
let property = binding2[2];
|
||||
yield value(property, binding2.paths);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
property = value.default;
|
||||
value = environment.__proto__;
|
||||
if (require != null) {
|
||||
property.modalConfig = {animation: require};
|
||||
}
|
||||
return property;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,969 @@
|
||||
/* Metro module 9456; source: modules/hub/native/components/HubEmailConnectionPinVerify.tsx; dependencies: [57, 5, 31, 27, 1867, 33, 4501, 3857, 9197, 9457, 8776, 22, 9450, 1244, 4131, 6947, 9444, 9458, 4573, 6766, 9026, 2] */
|
||||
function _fun73546(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:6, offset: 0x01d70f26, size: 355 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.Image;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {alignItems: 'center'},
|
||||
title: {'marginBottom': 8, 'textAlign': 'center'}, description: {'textAlign': 'center', 'marginBottom': 24},
|
||||
label: {'textAlign': 'center', 'marginBottom': 12}, error: {'alignSelf': 'center', 'marginVertical': 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionPinVerify.tsx');
|
||||
exports.default = HubEmailConnectionPinVerify;
|
||||
}
|
||||
|
||||
function presentResendToast(a0) { // fn#73547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:447, offset: 0x01d71089, size: 73 bytes, params: 2, frame: 15
|
||||
const value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
value.open({key: 'HUB_EMAIL_RESET', content: a0, icon: importDefault(9197) /* metro dependency 9197 */});
|
||||
}
|
||||
|
||||
function HubEmailConnectionPinVerify({email, guildId, onClose}) { // fn#73548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:619, offset: 0x01d710d2, size: 762 bytes, params: 2, frame: 34
|
||||
const styles = useStyles();
|
||||
const binding = env0_5;
|
||||
binding.useEffect(_fun73549, [onClose]);
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const value3 = defaultImport.throttle(env0_4(_fun73553), 1000);
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(null), 2);
|
||||
const value6 = _fun73554();
|
||||
const HubEmailConnectionScreen = (require(9444) /* metro dependency 9444: HubEmailConnectionModal */).HubEmailConnectionScreen;
|
||||
const items2 = [<Image source={importDefault(9458) /* metro dependency 9458 */} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const SJ3Lxc = (require(1244) /* metro dependency 1244: indexNative */).t.SJ3Lxc;
|
||||
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl, [SJ3Lxc])}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
items2[2] = <TextWithIOSLinkWorkaround style={styles.description} variant="text-sm/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['b+W0oq'],
|
||||
{onClick: value3, email: email})}</TextWithIOSLinkWorkaround>;
|
||||
items2[3] = <Text style={styles.label} variant="text-sm/semibold" color="text-muted">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rpWT1s)}</Text>;
|
||||
const CodeBlocks = (require(9026) /* metro dependency 9026: CodeField */).CodeBlocks;
|
||||
const CodeType = (require(9026) /* metro dependency 9026: CodeField */).CodeType;
|
||||
const ALPHANUMERIC = CodeType.ALPHANUMERIC;
|
||||
items2[4] = <CodeBlocks hasError={false} count={8} onCodeEntered={value6} codeType={ALPHANUMERIC} />;
|
||||
items2[5] = property != null && <Text variant="text-sm/medium" color="text-feedback-critical" style={styles.error}>{property.getAnyErrorMessage()}</Text>;
|
||||
return (
|
||||
<HubEmailConnectionScreen>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</HubEmailConnectionScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun73549() { // fn#73549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:710, offset: 0x01d713cc, size: 54 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9457) /* metro dependency 9457: HubJoinManager */).initialize(function() {
|
||||
onClose(true);
|
||||
importDefault(dependencyMap[10])();
|
||||
});
|
||||
return _fun73551;
|
||||
}
|
||||
|
||||
function* _fun73553() { // fn#73553, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:820, offset: 0x01d7145f, size: 314 bytes, params: 1, frame: 21
|
||||
var r5;
|
||||
var r2;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var sendVerificationEmail;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding3;
|
||||
var binding4;
|
||||
var value9;
|
||||
var intl;
|
||||
var string;
|
||||
var value10;
|
||||
var t;
|
||||
var value11;
|
||||
var error;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var value12;
|
||||
var aPIError;
|
||||
var value13;
|
||||
var anyErrorMessage;
|
||||
var binding5;
|
||||
var binding6;
|
||||
var FPzC5z;
|
||||
var value15;
|
||||
let value = undefined;
|
||||
if (true) {
|
||||
value = undefined;
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
sendVerificationEmail = value4.sendVerificationEmail;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(sendVerificationEmail, value4, [require, true, importDefault]);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env2_12;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
property = binding4[13];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value9 = binding3(property);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
intl = value9.intl;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
string = intl.string;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
property = binding4[13];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value10 = binding3(property);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
t = value10.t;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
property = t['2bO4dz'];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value11 = Reflect.apply(string, intl, [property]);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
binding(value11);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value12 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value13 = aPIError instanceof Object ? aPIError : value12;
|
||||
binding = env2_12;
|
||||
if (value13 == null) {
|
||||
r5 = value;
|
||||
} else {
|
||||
anyErrorMessage = value13.getAnyErrorMessage();
|
||||
r5 = anyErrorMessage;
|
||||
}
|
||||
if (r5 != null) {
|
||||
r2 = r5;
|
||||
} else {
|
||||
binding5 = env2_0;
|
||||
binding6 = env2_2;
|
||||
intl = binding5(binding6[13]).intl;
|
||||
string = intl.string;
|
||||
t = binding5(binding6[13]).t;
|
||||
FPzC5z = t.FPzC5z;
|
||||
value15 = Reflect.apply(string, intl, [FPzC5z]);
|
||||
r2 = value15;
|
||||
}
|
||||
binding(r2);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun73554() { // fn#73554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:1150, offset: 0x01d71599, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_4(_fun73556);
|
||||
return _fun73557;
|
||||
}
|
||||
|
||||
function _fun73551() { // fn#73551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:760, offset: 0x01d7142f, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9457) /* metro dependency 9457: HubJoinManager */).terminate();
|
||||
}
|
||||
|
||||
function* _fun73556(a0) { // fn#73556, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9642:1170, offset: 0x01d715c8, size: 229 bytes, params: 2, frame: 20
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var verifyCode;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var getGuild;
|
||||
var value8;
|
||||
var value9;
|
||||
var binding3;
|
||||
var value10;
|
||||
var transitionToGuild;
|
||||
var id;
|
||||
var error;
|
||||
var value11;
|
||||
var binding4;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var aPIError;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort35: while (true) {
|
||||
exceptionLanding34: while (true) {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value11 = environment.__proto__.__proto__;
|
||||
binding = env2_3;
|
||||
binding4 = env3_0;
|
||||
APIError = binding4(env3_2[14]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value = aPIError instanceof Object ? aPIError : value;
|
||||
binding(value);
|
||||
break reduciblePort35;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
verifyCode = value3.verifyCode;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(verifyCode, value3, [a0, importDefault, require]);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
binding = env3_8;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
getGuild = binding.getGuild;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(getGuild, binding, [importDefault]);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value9 = value8 == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
reducibleJoin35: while (true) {
|
||||
if (value9) {
|
||||
break reducibleJoin35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
dependencyMap(true);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
property = binding3[15];
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value10 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
transitionToGuild = value10.transitionToGuild;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
id = value8.id;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(transitionToGuild, value10, [id]);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
break reducibleJoin35;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Metro module 9446; source: modules/hub/native/components/HubEmailConnectionStudentPrompt.tsx; dependencies: [31, 27, 9445, 661, 33, 4501, 6597, 697, 1484, 9444, 1305, 1244, 6746, 9447, 683, 9448, 2] */
|
||||
function _fun73486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9632:6, offset: 0x01d6e2c4, size: 422 bytes, params: 8, frame: 27
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.Image;
|
||||
const env0_5 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const Fonts = value.Fonts;
|
||||
const env0_6 = value.AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {container: {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'padding': 16}};
|
||||
const object5 = {};
|
||||
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
||||
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
copyDataProperties(object5, textStyles(PRIMARY_BOLD, MOBILE_TEXT_HEADING_PRIMARY, 24), undefined);
|
||||
object5['textAlign'] = 'center';
|
||||
object5['marginBottom'] = 24;
|
||||
object4.header = object5;
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object6.marginBottom = 8;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object4.row = object6;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionStudentPrompt.tsx');
|
||||
exports.default = HubEmailConnectionStudentPrompt;
|
||||
}
|
||||
|
||||
function HubEmailConnectionStudentPrompt({onClose, invite}) { // fn#73487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9632:674, offset: 0x01d6e46a, size: 572 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const HubEmailConnectionScreen = (require(9444) /* metro dependency 9444: HubEmailConnectionModal */).HubEmailConnectionScreen;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const items2 = [<LegacyText style={styles.header}>{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['+/Pv0h']])}</LegacyText>];
|
||||
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
|
||||
const formRowProps = {DEPRECATED_style: styles.row,
|
||||
leading: <Image source={importDefault(9447) /* metro dependency 9447 */} />};
|
||||
let Arrow = FormRow.Arrow;
|
||||
formRowProps.trailing = Arrow;
|
||||
formRowProps.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['a7a/D+']);
|
||||
string = intl.string;
|
||||
const Gsegk8 = (require(1244) /* metro dependency 1244: indexNative */).t.Gsegk8;
|
||||
formRowProps.subLabel = Reflect.apply(string, intl, [Gsegk8]);
|
||||
formRowProps.onPress = onPress_73488;
|
||||
items2[1] = <FormRow {...formRowProps} />;
|
||||
const value = FormRow;
|
||||
const valueProps = {DEPRECATED_style: styles.row,
|
||||
leading: <Image source={importDefault(9448) /* metro dependency 9448 */} />};
|
||||
Arrow = FormRow.Arrow;
|
||||
valueProps.trailing = Arrow;
|
||||
string = intl.string;
|
||||
const GLG9n4 = (require(1244) /* metro dependency 1244: indexNative */).t.GLG9n4;
|
||||
valueProps.label = Reflect.apply(string, intl, [GLG9n4]);
|
||||
valueProps.onPress = onClose;
|
||||
items2[2] = ((Component) => <Component {...valueProps} />)(value);
|
||||
return (
|
||||
<HubEmailConnectionScreen>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</HubEmailConnectionScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function HubEmailConnectionStudentPromptOnPress() { // fn#73488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9632:1146, owner: HubEmailConnectionStudentPrompt.onPress, offset: 0x01d6e6a6, size: 95 bytes, params: 1, frame: 16
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const HUB_STUDENT_PROMPT_CLICKED = AnalyticEvents.HUB_STUDENT_PROMPT_CLICKED;
|
||||
Reflect.apply(track, defaultImport, [HUB_STUDENT_PROMPT_CLICKED]);
|
||||
const binding = env0_2;
|
||||
const push = binding.push;
|
||||
const VERIFY_EMAIL = HubEmailConnectionSteps.VERIFY_EMAIL;
|
||||
Reflect.apply(push, binding, [VERIFY_EMAIL, {onClose: onClose, invite: invite}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,426 @@
|
||||
/* Metro module 9454; source: modules/hub/native/components/HubEmailConnectionSubmitSchool.tsx; dependencies: [5, 57, 31, 27, 9445, 661, 33, 4501, 697, 1484, 5463, 9450, 4131, 9444, 1305, 1244, 4573, 8967, 4578, 2] */
|
||||
function _fun73522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:6, offset: 0x01d6fe83, size: 493 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.ScrollView;
|
||||
const env0_8 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {paddingHorizontal: 16};
|
||||
const object4 = {'fontFamily': null, 'color': null, 'fontSize': 24, 'textAlign': 'center', 'marginBottom': 8};
|
||||
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
||||
object4.fontFamily = PRIMARY_BOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object4.color = MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.title = object4;
|
||||
object2.description = {'textAlign': 'center', 'marginBottom': 24};
|
||||
object2.scrollViewContainer = {flexGrow: 2};
|
||||
object2.input = {marginBottom: 8};
|
||||
const object5 = {};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.redesignTextInput = object5;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.redesignGrowSpacing = {flexGrow: 2, minHeight: PX_24};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.redesignSubmit = {paddingHorizontal: PX_16};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionSubmitSchool.tsx');
|
||||
exports.default = HubEmailConnectionSubmitSchool;
|
||||
}
|
||||
|
||||
function HubEmailConnectionSubmitSchool({onClose, email}) { // fn#73523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:807, offset: 0x01d70070, size: 975 bytes, params: 2, frame: 38
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_4;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const env0_3 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value5[0];
|
||||
var env0_4 = value5[1];
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
|
||||
const value6 = binding.useRef(null);
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
const property3 = value7[0];
|
||||
const property4 = value7[1];
|
||||
const value8 = _fun73524();
|
||||
const HubEmailConnectionScreen = (require(9444) /* metro dependency 9444: HubEmailConnectionModal */).HubEmailConnectionScreen;
|
||||
const items4 = [styles.scrollViewContainer];
|
||||
const bottom = insets.bottom;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items4[1] = {paddingBottom: bottom + PX_16};
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const items2 = [<LegacyText style={styles.title} accessibilityRole="header">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['2FNWBG']])}</LegacyText>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/4y6ox'])}</Text>;
|
||||
const FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
|
||||
const freeFormInputGroupProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['L+AfJr'])};
|
||||
string = intl.string;
|
||||
const Y1btJd = (require(1244) /* metro dependency 1244: indexNative */).t.Y1btJd;
|
||||
freeFormInputGroupProps.placeholder = Reflect.apply(string, intl, [Y1btJd]);
|
||||
freeFormInputGroupProps.value = property3;
|
||||
freeFormInputGroupProps.onChangeText = property4;
|
||||
freeFormInputGroupProps.style = styles.input;
|
||||
freeFormInputGroupProps.textStyle = styles.redesignTextInput;
|
||||
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
|
||||
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
|
||||
freeFormInputGroupProps.clearButtonVisibility = WITH_CONTENT;
|
||||
freeFormInputGroupProps.error = property2?.getAnyErrorMessage();
|
||||
freeFormInputGroupProps.onFocus = function() {
|
||||
global.setTimeout(_fun73529, 100);
|
||||
};
|
||||
freeFormInputGroupProps.onBlur = function() {
|
||||
global.setTimeout(_fun73531, 100);
|
||||
};
|
||||
items2[2] = <FreeFormInputGroup {...freeFormInputGroupProps} />;
|
||||
const items3 = [<View style={styles.container}>{items2}</View>];
|
||||
items3[1] = <View style={styles.redesignGrowSpacing} />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const PDsYAo = (require(1244) /* metro dependency 1244: indexNative */).t.PDsYAo;
|
||||
items3[2] = <View style={styles.redesignSubmit}><Button size="lg" loading={property} text={Reflect.apply(string,
|
||||
intl, [PDsYAo])} onPress={value8} /></View>;
|
||||
return (
|
||||
<HubEmailConnectionScreen>
|
||||
<ScrollView ref={value6} contentContainerStyle={items4}>
|
||||
{items3}
|
||||
</ScrollView>
|
||||
</HubEmailConnectionScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun73524() { // fn#73524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:1065, offset: 0x01d7043f, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun73526);
|
||||
return _fun73527;
|
||||
}
|
||||
|
||||
function HubEmailConnectionSubmitSchoolOnFocus() { // fn#73528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2048, owner: HubEmailConnectionSubmitSchool.onFocus, offset: 0x01d70564, size: 30 bytes, params: 1, frame: 13
|
||||
global.setTimeout(_fun73529, 100);
|
||||
}
|
||||
|
||||
function HubEmailConnectionSubmitSchoolOnBlur() { // fn#73530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2128, owner: HubEmailConnectionSubmitSchool.onBlur, offset: 0x01d705a2, size: 30 bytes, params: 1, frame: 13
|
||||
global.setTimeout(_fun73531, 100);
|
||||
}
|
||||
|
||||
function* _fun73526() { // fn#73526, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:1085, offset: 0x01d7046e, size: 246 bytes, params: 1, frame: 18
|
||||
var value;
|
||||
var value2;
|
||||
var binding;
|
||||
var value3;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var signup;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var push;
|
||||
var EMAIL_WAITLIST;
|
||||
var object2;
|
||||
var error;
|
||||
var value8;
|
||||
var binding3;
|
||||
var binding4;
|
||||
var value9;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var aPIError;
|
||||
var value11;
|
||||
exceptionLanding46: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_4(null);
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort45: while (true) {
|
||||
exceptionLanding30: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
value8 = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding3 = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding4 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
property = binding4[12];
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value9 = binding3(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
APIError = value9.APIError;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
prototype = APIError.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
aPIError = new APIError();
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
value11 = aPIError instanceof Object ? aPIError : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
binding(value11);
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
break reduciblePort45;
|
||||
}
|
||||
env2_3(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
signup = value4.signup;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value5 = Reflect.apply(signup, value4, [importDefault, View]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
if (value7) {
|
||||
env2_3(false);
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
push = dependencyMap.push;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env3_8;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
EMAIL_WAITLIST = binding.EMAIL_WAITLIST;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.school = View;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.onClose = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
Reflect.apply(push, dependencyMap, [EMAIL_WAITLIST, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
env2_3(false);
|
||||
return undefined;
|
||||
}
|
||||
env2_3(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
function _fun73529() { // fn#73529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2065, offset: 0x01d70582, size: 32 bytes, params: 1, frame: 9
|
||||
const current = env1_5.current;
|
||||
if (current != null) {
|
||||
current.scrollToEnd();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 9452; source: modules/hub/native/components/HubEmailConnectionWaitlist.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1484, 5277, 1244, 9453, 1305, 4573, 4578, 2] */
|
||||
function _fun73517(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9638:6, offset: 0x01d6fa4d, size: 355 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'fontFamily': null, 'color': null, 'fontSize': 24, 'textAlign': 'center', 'marginBottom': 8};
|
||||
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
||||
object.fontFamily = PRIMARY_BOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object.color = MOBILE_TEXT_HEADING_PRIMARY;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{container: {'flex': 1, 'alignItems': 'center',
|
||||
'justifyContent': 'center'}, header: {marginBottom: 16}, title: object, description: {'textAlign': 'center',
|
||||
'marginBottom': 16}, redesignButton: {'paddingHorizontal': 16, 'width': '100%'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionWaitlist.tsx');
|
||||
exports.default = HubEmailConnectionWaitlist;
|
||||
}
|
||||
|
||||
function HubEmailConnectionWaitlist({school, onClose}) { // fn#73518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9638:626, offset: 0x01d6fbb0, size: 508 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
env0_3.useLayoutEffect(_fun73519, [(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation(),
|
||||
onClose]);
|
||||
const items2 = [<Image source={importDefault(9453) /* metro dependency 9453 */} style={styles.header} />];
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const OaloU5 = (require(1244) /* metro dependency 1244: indexNative */).t.OaloU5;
|
||||
items2[1] = <LegacyText style={styles.title} accessibilityRole="header">{Reflect.apply(string, intl,
|
||||
[OaloU5])}</LegacyText>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const format = intl.format;
|
||||
const Rs7MXJ = (require(1244) /* metro dependency 1244: indexNative */).t.Rs7MXJ;
|
||||
items2[2] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(format,
|
||||
intl, [Rs7MXJ, {school: school}])}</Text>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[3] = <View style={styles.redesignButton}><Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)} onPress={onClose} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun73519() { // fn#73519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9638:746, offset: 0x01d6fdac, size: 38 bytes, params: 1, frame: 12
|
||||
const binding = env0_1;
|
||||
binding.setOptions({headerLeft: headerLeft_73520});
|
||||
}
|
||||
|
||||
function headerLeft_73520() { // fn#73520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9638:776, offset: 0x01d6fdd2, size: 107 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
||||
onPress={onClose}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/* Metro module 14592; source: modules/hub/native/components/HubSidebar.tsx; dependencies: [31, 27, 1935, 1934, 661, 10980, 33, 4501, 697, 11846, 1305, 566, 14593, 14594, 13144, 1244, 4601, 10375, 9636, 4050, 9151, 2] */
|
||||
function _fun110350(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:6, offset: 0x02375f61, size: 333 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).InstantInviteSources;
|
||||
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [{container: object, row: {flex: 1}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubSidebar.tsx');
|
||||
exports.default = _default_110352;
|
||||
}
|
||||
|
||||
function HubItem({IconComponent, label, handleItemClick, active, unreadCount}) { // fn#110351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:356, offset: 0x023760ae, size: 286 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const ChannelModes = (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes;
|
||||
const r9 = active ? ChannelModes.SELECTED : ChannelModes.DEFAULT;
|
||||
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
|
||||
const defaultImportProps = {style: styles.container, accessibilityLabel: label, accessibilityRole: 'menuitem',
|
||||
onPress: handleItemClick, disableHighlightOnPress: true, mode: r9};
|
||||
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
|
||||
defaultImportProps.name = <BaseChannelName name={label} mode={r9} />;
|
||||
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
|
||||
defaultImportProps.icon = <BaseChannelIcon mode={r9} IconComponent={IconComponent} />;
|
||||
defaultImportProps.channelInfo = unreadCount == null ? null : ((Badge) => <Badge value={unreadCount} />)((require(1305) /* metro dependency 1305: native */).Badge);
|
||||
return <BaseChannelItem {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
function _default_110352({guild, flashList}) { // fn#110352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:800, offset: 0x023761cc, size: 605 bytes, params: 2, frame: 27
|
||||
var r0;
|
||||
var items2;
|
||||
var object3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], function() {
|
||||
return GuildChannelStore.getDefaultChannel(guild.id);
|
||||
}, [guild.id]);
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildChannelStore],
|
||||
function() {
|
||||
return GuildChannelStore.getChannels(guild.id);
|
||||
});
|
||||
if (value2 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: flashList ? styles.row : null};
|
||||
items2 = [((Component) => <Component guild={guild} />)(importDefault(14594) /* metro dependency 14594: HubSideBarProgressOverview */)];
|
||||
items2[1] = <HubItem active={(require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedChannelStore],
|
||||
|
||||
_fun110355)} IconComponent={(require(13144) /* metro dependency 13144: CompassIcon */).CompassIcon} label={intl.string(t.K50GHd)} handleItemClick={handleItemClick} unreadCount={(require(14593) /* metro dependency 14593: HubUnreadUtils */).useHubUnreadCount(value2)} />;
|
||||
items2[2] = <HubItem IconComponent={(require(10375) /* metro dependency 10375: PlusMediumIcon */).PlusMediumIcon} label={intl.string(t.emRpdS)} handleItemClick={handleItemClick_110357} />;
|
||||
items2[3] = <HubItem IconComponent={(require(4050) /* metro dependency 4050: UserPlusIcon */).UserPlusIcon} label={intl.string(t.MJQOuJ)} handleItemClick={handleItemClick_110358} />;
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun110355() { // fn#110355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1012, offset: 0x02376469, size: 48 bytes, params: 1, frame: 11
|
||||
return env0_1 != null && SelectedChannelStore.getChannelId() === env0_1.id;
|
||||
}
|
||||
|
||||
function _default_110352HandleItemClick() { // fn#110356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1276, owner: _default_110352.handleItemClick, offset: 0x02376499, size: 50 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = require(4601) /* metro dependency 4601: transitionToChannel */;
|
||||
value.transitionToChannel(env0_1.id);
|
||||
}
|
||||
|
||||
function _default_110352HandleItemClick_110357() { // fn#110357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1444, owner: _default_110352.handleItemClick, offset: 0x023764cb, size: 81 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(9636) /* metro dependency 9636: GuildDirectoryAddModalActionCreators */;
|
||||
const open = value.open;
|
||||
const guildBinding = guild;
|
||||
return Reflect.apply(open, value, [{directoryGuildName: guildBinding.name, directoryGuildId: guildBinding.id,
|
||||
directoryChannelId: env0_1.id}]);
|
||||
}
|
||||
|
||||
function _default_110352HandleItemClick_110358() { // fn#110358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14789:1648, owner: _default_110352.handleItemClick, offset: 0x0237651c, size: 70 bytes, params: 1, frame: 18
|
||||
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
||||
const handleOpenInviteActionsheet = instantInviteUtilsModule.handleOpenInviteActionsheet;
|
||||
const guildBinding = guild;
|
||||
const id = env0_1.id;
|
||||
const binding = env0_2;
|
||||
const GUILD_HEADER = InstantInviteSources.GUILD_HEADER;
|
||||
Reflect.apply(handleOpenInviteActionsheet, instantInviteUtilsModule, [guildBinding, id, binding, GUILD_HEADER]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
/* Metro module 11990; source: modules/hub/native/components/progress_bar/HubProgressActionSheet.tsx; dependencies: [31, 27, 1935, 6928, 661, 9638, 11927, 33, 4080, 4501, 11986, 11932, 683, 6927, 1244, 11934, 4573, 11936, 1230, 11991, 1314, 9151, 11992, 11993, 12048, 4578, 5278, 6275, 2] */
|
||||
function _fun92038(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:6, offset: 0x0207b5dd, size: 397 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const dismissActionSheet_92039 = function() {
|
||||
importDefault(dependencyMap[8]).hideActionSheet(HUB_PROGRESS_ACTION_SHEET_ID);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
let value = require(6928) /* metro dependency 6928: HubProgressBarConstants */;
|
||||
const env0_6 = value.HUB_PROGRESS_ACTION_SHEET_ID;
|
||||
const env0_7 = value.HUB_PROGRESS_NUM_TOTAL_STEPS;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const env0_9 = value.AnalyticsLocations;
|
||||
const env0_10 = value.InstantInviteSources;
|
||||
const env0_11 = value.Routes;
|
||||
const env0_12 = (require(9638) /* metro dependency 9638: GuildDirectoryConstants */).DirectoryChannelScrollBehavior;
|
||||
value = require(11927) /* metro dependency 11927: GuildProgressConstants */;
|
||||
const env0_13 = value.AnalyticsActions;
|
||||
const env0_14 = value.AnalyticsSetupTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_15 = value.jsx;
|
||||
const env0_16 = value.jsxs;
|
||||
const env0_17 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {padding: 16},
|
||||
footer: {'marginTop': 12, 'display': 'flex', 'alignItems': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/progress_bar/HubProgressActionSheet.tsx');
|
||||
exports.default = HubProgressActionSheet;
|
||||
}
|
||||
|
||||
function HubProgressActionSheet({guild, analyticsSource}) { // fn#92040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:699, offset: 0x0207b794, size: 1235 bytes, params: 2, frame: 34
|
||||
const closure = onPress_92041;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).useHubProgressBarCompletedSteps(guild);
|
||||
const size = value2.size;
|
||||
const env0_3 = size;
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const MIN_PROGRESS_PERCENT = (require(11932) /* metro dependency 11932: GuildProgressUtils */).MIN_PROGRESS_PERCENT;
|
||||
let value4 = Reflect.apply(max, Math, [MIN_PROGRESS_PERCENT, 100 * size / HUB_PROGRESS_NUM_TOTAL_STEPS]) === 100;
|
||||
const binding = env0_3;
|
||||
const env0_4 = binding.useRef(analyticsSource);
|
||||
binding.useEffect(_fun92042);
|
||||
binding.useEffect(_fun92043, [guild.id]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const r10 = value4 ? Reflect.apply(string, intl, [t.zQ4gGo]) : Reflect.apply(string, intl, [t.hRVjpT]);
|
||||
const GuildProgressHeader = (require(11934) /* metro dependency 11934: GuildProgressActionSheet */).GuildProgressHeader;
|
||||
const items2 = [<GuildProgressHeader title={r10} subtitle={intl.format((require(1244) /* metro dependency 1244: indexNative */).t.l6iRLs,
|
||||
{numFinished: size, total: HUB_PROGRESS_NUM_TOTAL_STEPS, stepsHook: stepsHook})} />];
|
||||
const ProgressItem = importDefault(11936) /* metro dependency 11936: ProgressItem */;
|
||||
const progressItemProps = {onPress: onPress_92045, source: importDefault(11991) /* metro dependency 11991 */,
|
||||
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iNR25n)};
|
||||
let has = value2.has;
|
||||
const HubProgressStep = (require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep;
|
||||
let JOIN_GUILD = HubProgressStep.JOIN_GUILD;
|
||||
progressItemProps.isCompleted = Reflect.apply(has, value2, [JOIN_GUILD]);
|
||||
let HUB_PROGRESS = AnalyticsSetupTypes.HUB_PROGRESS;
|
||||
progressItemProps.analyticsSetupType = HUB_PROGRESS;
|
||||
JOIN_GUILD = AnalyticsActions.JOIN_GUILD;
|
||||
progressItemProps.analyticsAction = JOIN_GUILD;
|
||||
items2[1] = <ProgressItem {...progressItemProps} />;
|
||||
const defaultImport2 = ProgressItem;
|
||||
const defaultImport2Props = {onPress: function() {
|
||||
var guildBinding = guild;
|
||||
var value3 = GuildChannelStore.getDefaultChannel(guildBinding.id);
|
||||
var value4 = GuildChannelStore.getChannels(guildBinding.id);
|
||||
if (value3 != null && value4 != null) {
|
||||
require(dependencyMap[21]).handleOpenInviteActionsheet(guild, value3.id, value4,
|
||||
InstantInviteSources.HUB_PROGRESS);
|
||||
}
|
||||
}, source: importDefault(11992) /* metro dependency 11992 */,
|
||||
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3NlTYU'])};
|
||||
has = value2.has;
|
||||
const INVITE_USER = HubProgressStep.INVITE_USER;
|
||||
defaultImport2Props.isCompleted = Reflect.apply(has, value2, [INVITE_USER]);
|
||||
HUB_PROGRESS = AnalyticsSetupTypes.HUB_PROGRESS;
|
||||
defaultImport2Props.analyticsSetupType = HUB_PROGRESS;
|
||||
const INVITE = AnalyticsActions.INVITE;
|
||||
defaultImport2Props.analyticsAction = INVITE;
|
||||
items2[2] = ((Component) => <Component {...defaultImport2Props} />)(defaultImport2);
|
||||
const defaultImport3 = ProgressItem;
|
||||
const object = {onPress: onPress_92047, source: importDefault(12048) /* metro dependency 12048 */};
|
||||
string = intl.string;
|
||||
const HFvFte = (require(1244) /* metro dependency 1244: indexNative */).t.HFvFte;
|
||||
object.title = Reflect.apply(string, intl, [HFvFte]);
|
||||
has = value2.has;
|
||||
let CONTACT_SYNC = HubProgressStep.CONTACT_SYNC;
|
||||
object.isCompleted = Reflect.apply(has, value2, [CONTACT_SYNC]);
|
||||
HUB_PROGRESS = AnalyticsSetupTypes.HUB_PROGRESS;
|
||||
object.analyticsSetupType = HUB_PROGRESS;
|
||||
CONTACT_SYNC = AnalyticsActions.CONTACT_SYNC;
|
||||
object.analyticsAction = CONTACT_SYNC;
|
||||
items2[3] = ((Component) => <Component {...object} />)(defaultImport3);
|
||||
items2[4] = <View style={[styles.footer]}>{value4 ? ((Button) => <Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0/5zhg'])} onPress={closure} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button) : ((PressableOpacity) => <PressableOpacity accessibilityRole="button" onPress={closure}>{((Text) => <Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9E36wf'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}</View>;
|
||||
const view = <View style={styles.container}>{items2}</View>;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
return (
|
||||
<BottomSheet startExpanded>
|
||||
{view}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function HubProgressActionSheetOnPress() { // fn#92041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:895, owner: HubProgressActionSheet.onPress, offset: 0x0207bc67, size: 144 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const SERVER_SETUP_CTA_CLICKED = AnalyticEvents.SERVER_SETUP_CTA_CLICKED;
|
||||
const HUB_PROGRESS = AnalyticsSetupTypes.HUB_PROGRESS;
|
||||
const DISMISS = AnalyticsActions.DISMISS;
|
||||
Reflect.apply(track, defaultImport, [SERVER_SETUP_CTA_CLICKED, {setup_type: HUB_PROGRESS, action: DISMISS,
|
||||
num_total_actions: HUB_PROGRESS_NUM_TOTAL_STEPS, num_actions_completed: size}]);
|
||||
const hubProgressActionCreatorsModule = require(6927) /* metro dependency 6927: HubProgressActionCreators */;
|
||||
hubProgressActionCreatorsModule.skipHubProgress(guild.id);
|
||||
dismissActionSheet_92039();
|
||||
}
|
||||
|
||||
function _fun92043() { // fn#92043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:1154, offset: 0x0207bcf7, size: 89 bytes, params: 1, frame: 16
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
Reflect.apply(track, defaultImport, [OPEN_MODAL, {type: 'Hub Progress Action Sheet', guild_id: guild.id,
|
||||
source: env0_4.current}]);
|
||||
}
|
||||
|
||||
function HubProgressActionSheetStepsHook(a0, a1) { // fn#92044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:1508, owner: HubProgressActionSheet.stepsHook, offset: 0x0207bd50, size: 67 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="mobile-text-heading-primary"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function HubProgressActionSheetOnPress_92045() { // fn#92045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:1632, owner: HubProgressActionSheet.onPress, offset: 0x0207bd93, size: 158 bytes, params: 1, frame: 18
|
||||
var moduleValue;
|
||||
const defaultChannel = GuildChannelStore.getDefaultChannel(guild.id);
|
||||
if (defaultChannel != null) {
|
||||
moduleValue = require(1230) /* metro dependency 1230: router_utils */;
|
||||
moduleValue.transitionTo(Routes.CHANNEL(guild.id, defaultChannel.id),
|
||||
{state: {scrollBehavior: DirectoryChannelScrollBehavior.GUILD_LIST_TOP}});
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(HUB_PROGRESS_ACTION_SHEET_ID);
|
||||
}
|
||||
}
|
||||
|
||||
function HubProgressActionSheetOnPress_92047() { // fn#92047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12176:2350, owner: HubProgressActionSheet.onPress, offset: 0x0207beac, size: 111 bytes, params: 1, frame: 15
|
||||
var moduleValue;
|
||||
const binding = env0_2;
|
||||
const has = binding.has;
|
||||
const HubProgressStep = (require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep;
|
||||
const CONTACT_SYNC = HubProgressStep.CONTACT_SYNC;
|
||||
if (!Reflect.apply(has, binding, [CONTACT_SYNC])) {
|
||||
moduleValue = require(11993) /* metro dependency 11993: ContactSyncModalActionCreators */;
|
||||
moduleValue.openContactSyncModal({}, AnalyticsLocations.HUB_PROGRESS);
|
||||
dismissActionSheet_92039();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 11989; source: modules/hub/native/components/progress_bar/HubProgressHeader.tsx; dependencies: [31, 27, 6928, 9638, 33, 4501, 697, 11986, 1314, 1244, 7972, 4080, 11990, 1962, 12049, 2] */
|
||||
function _fun92035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12175:6, offset: 0x0207b209, size: 325 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(6928) /* metro dependency 6928: HubProgressBarConstants */;
|
||||
const env0_4 = value.HUB_PROGRESS_ACTION_SHEET_ID;
|
||||
const env0_5 = value.HUB_PROGRESS_NUM_TOTAL_STEPS;
|
||||
const GUILD_DIRECTORY_PROGRESS_BAR_HEIGHT = (require(9638) /* metro dependency 9638: GuildDirectoryConstants */).GUILD_DIRECTORY_PROGRESS_BAR_HEIGHT;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {'overflow': 'hidden', 'height': null, 'padding': 16,
|
||||
height: GUILD_DIRECTORY_PROGRESS_BAR_HEIGHT};
|
||||
object2.icon = {'width': 48, 'height': 48};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object2.innerContainer = {'paddingVertical': 8, 'paddingLeft': 8, 'paddingRight': 12,
|
||||
backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/progress_bar/HubProgressHeader.tsx');
|
||||
exports.default = HubProgressHeader;
|
||||
}
|
||||
|
||||
function HubProgressHeader({guild, onDirectoryPage}) { // fn#92036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12175:586, offset: 0x0207b34e, size: 496 bytes, params: 2, frame: 24
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
onDirectoryPage = !(onDirectoryPage === undefined) && onDirectoryPage;
|
||||
const styles = useStyles();
|
||||
const value4 = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).useHubProgressBarCompletedSteps(guild);
|
||||
const nextHubProgressStep = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).getNextHubProgressStep(value4);
|
||||
if (nextHubProgressStep == null) {
|
||||
return null;
|
||||
}
|
||||
const size = value4.size;
|
||||
const r9 = onDirectoryPage && nextHubProgressStep === (require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep.JOIN_GUILD;
|
||||
const hubProgressTitleForStep = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).getHubProgressTitleForStep(nextHubProgressStep);
|
||||
const r7 = size < HUB_PROGRESS_NUM_TOTAL_STEPS ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9j7xDu'],
|
||||
{number: '' + size,
|
||||
total: HUB_PROGRESS_NUM_TOTAL_STEPS}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+Gyklt']);
|
||||
const FormCTA = (require(7972) /* metro dependency 7972: native */).FormCTA;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<FormCTA
|
||||
style={styles.innerContainer}
|
||||
iconStyle={styles.icon}
|
||||
onPress={onPress_92037}
|
||||
iconSource={importDefault(12049) /* metro dependency 12049 */}
|
||||
title={hubProgressTitleForStep}
|
||||
subtitle={r7}
|
||||
trailing={r9 ? <View /> : undefined}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function HubProgressHeaderOnPress() { // fn#92037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12175:1088, owner: HubProgressHeader.onPress, offset: 0x0207b53e, size: 159 bytes, params: 1, frame: 18
|
||||
var value4;
|
||||
var defaultImport;
|
||||
if (!(onDirectoryPage && env0_2 === require(dependencyMap[8]).HubProgressStep.JOIN_GUILD)) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(dependencyMap[11]);
|
||||
defaultImport.openLazy(require(dependencyMap[13])(dependencyMap[12], dependencyMap.paths),
|
||||
HUB_PROGRESS_ACTION_SHEET_ID, {guild: guild, analyticsSource: 'Directory Channel Header'});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 14594; source: modules/hub/native/components/progress_bar/HubSideBarProgressOverview.tsx; dependencies: [31, 6928, 33, 11986, 1244, 11932, 12701, 4080, 11990, 1962, 2] */
|
||||
function _fun110363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14791:6, offset: 0x0237674d, size: 170 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const hubProgressBarConstantsModule = require(6928) /* metro dependency 6928: HubProgressBarConstants */;
|
||||
const env0_3 = hubProgressBarConstantsModule.HUB_PROGRESS_ACTION_SHEET_ID;
|
||||
const env0_4 = hubProgressBarConstantsModule.HUB_PROGRESS_NUM_TOTAL_STEPS;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/progress_bar/HubSideBarProgressOverview.tsx');
|
||||
exports.default = HubSidebarProgressOverview;
|
||||
}
|
||||
|
||||
function HubSidebarProgressOverview({guild}) { // fn#110364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14791:312, offset: 0x023767f7, size: 390 bytes, params: 2, frame: 22
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value2 = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).useHubProgressBarCompletedSteps(guild);
|
||||
const nextHubProgressStep = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).getNextHubProgressStep(value2);
|
||||
if (nextHubProgressStep == null) {
|
||||
return null;
|
||||
}
|
||||
const size = value2.size;
|
||||
const hubProgressTitleForStep = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).getHubProgressTitleForStep(nextHubProgressStep);
|
||||
const r6 = size < HUB_PROGRESS_NUM_TOTAL_STEPS ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9j7xDu'],
|
||||
{number: '' + size,
|
||||
total: HUB_PROGRESS_NUM_TOTAL_STEPS}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+Gyklt']);
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const MIN_PROGRESS_PERCENT = (require(11932) /* metro dependency 11932: GuildProgressUtils */).MIN_PROGRESS_PERCENT;
|
||||
const value8 = Reflect.apply(max, Math, [MIN_PROGRESS_PERCENT, 100 * size / HUB_PROGRESS_NUM_TOTAL_STEPS]);
|
||||
const GuildProgressOverviewView = (require(12701) /* metro dependency 12701: GuildProgressOverview */).GuildProgressOverviewView;
|
||||
return (
|
||||
<GuildProgressOverviewView
|
||||
onPress={function() {
|
||||
importDefault(dependencyMap[7]).openLazy(require(dependencyMap[9])(dependencyMap[8], dependencyMap.paths),
|
||||
HUB_PROGRESS_ACTION_SHEET_ID, {guild: guild, analyticsSource: 'Channels Sidebar'});
|
||||
}}
|
||||
title={hubProgressTitleForStep}
|
||||
subtitle={r6}
|
||||
percentComplete={value8}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 11840; source: modules/hub/useIsHubForGuild.tsx; dependencies: [1867, 661, 566, 2] */
|
||||
function _fun90747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12026:6, offset: 0x02043e69, size: 136 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/useIsHubForGuild.tsx');
|
||||
exports.default = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([GuildStore], _fun90749, [a0]);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsHubForGuild(a0) { // fn#90748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12026:206, offset: 0x02043ef1, size: 75 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun90749, [a0]);
|
||||
}
|
||||
|
||||
function _fun90749() { // fn#90749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12026:274, offset: 0x02043f3c, size: 86 bytes, params: 1, frame: 13
|
||||
if (env0_0 == null) {
|
||||
return false;
|
||||
}
|
||||
const guild = GuildStore.getGuild(env0_0);
|
||||
const r1 = guild == null ? undefined : guild.features.has(GuildFeatures.HUB);
|
||||
return r1 != null && r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 11966; source: modules/hub/useIsHubRealNamePromptShowing.tsx; dependencies: [31, 11967, 1945, 1867, 1878, 661, 11968, 566, 11969, 2] */
|
||||
function _fun91856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:6, offset: 0x020750ce, size: 229 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildPromptsStore = importDefault(11967) /* metro dependency 11967: GuildPromptsStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
const env0_9 = (require(11968) /* metro dependency 11968: Constants */).GuildPrompts;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/useIsHubRealNamePromptShowing.tsx');
|
||||
exports.default = useIsHubRealNamePromptShowing;
|
||||
}
|
||||
|
||||
function useIsHubRealNamePromptShowing(a0) { // fn#91857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:282, offset: 0x020751b3, size: 134 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore, GuildPromptsStore,
|
||||
UserStore, GuildMemberStore], _fun91858);
|
||||
env0_3.useEffect(_fun91859, [value2, a0]);
|
||||
return value2 === true;
|
||||
}
|
||||
|
||||
function _fun91858() { // fn#91858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:368, offset: 0x02075239, size: 184 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const guild = GuildStore.getGuild(env0_0);
|
||||
const value4 = undefined;
|
||||
if ((guild == null ? value4 : guild.features.has(GuildFeatures.HUB)) !== true) {
|
||||
return null;
|
||||
}
|
||||
const hasViewedPrompt = GuildPromptsStore.hasViewedPrompt;
|
||||
const REAL_NAME_PROMPT = GuildPrompts.REAL_NAME_PROMPT;
|
||||
if (Reflect.apply(hasViewedPrompt, GuildPromptsStore, [REAL_NAME_PROMPT, guild.id]) === true) {
|
||||
return null;
|
||||
}
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
if (currentUser == null) {
|
||||
return null;
|
||||
}
|
||||
value = GuildMemberStore.getMember(guild.id, currentUser == null ? value4 : currentUser.id);
|
||||
return (value == null ? value4 : value.nick) == null;
|
||||
}
|
||||
|
||||
function _fun91859() { // fn#91859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12152:667, offset: 0x020752f1, size: 89 bytes, params: 1, frame: 14
|
||||
var value4;
|
||||
var defaultImport;
|
||||
if (env0_0 != null && env0_1 != null) {
|
||||
if (!env0_1) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(11969) /* metro dependency 11969: GuildPromptsActionCreators */;
|
||||
defaultImport.viewPrompt(GuildPrompts.REAL_NAME_PROMPT, env0_0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user