Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,35 @@
|
||||
/* Metro module 8166; source: modules/in_app_reports/IarSettingsUpsellsConfigDmSpamFilter.tsx; dependencies: [1244, 8154, 677, 3829, 1314, 2] */
|
||||
function _fun65534(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8351:6, offset: 0x01bd2dc8, size: 248 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {getTitle: function() {
|
||||
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.vJOqMB);
|
||||
}, getDisabledTitle: function() {
|
||||
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t['B5ZvY+']);
|
||||
}, getDescription: function() {
|
||||
return require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t['43UEUh']);
|
||||
}};
|
||||
const ReportSubType = (require(8154) /* metro dependency 8154: MenuTypes */).ReportSubType;
|
||||
const SUB_SPAM = ReportSubType.SUB_SPAM;
|
||||
object2.eligibleReportSubtypes = [SUB_SPAM];
|
||||
const {DM, GROUP_DM} = (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes;
|
||||
object2.eligibleChannelTypes = [DM, GROUP_DM];
|
||||
object2.onApply = function() {
|
||||
var DmSpamFilterV2 = require(dependencyMap[3]).DmSpamFilterV2;
|
||||
return DmSpamFilterV2.updateSetting(require(dependencyMap[4]).DmSpamFilterV2.NON_FRIENDS);
|
||||
};
|
||||
object2.predicate = predicate_65539;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigDmSpamFilter.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function predicate_65539() { // fn#65539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8351:500, offset: 0x01bd2fc1, size: 71 bytes, params: 1, frame: 13
|
||||
let DmSpamFilterV2 = (require(3829) /* metro dependency 3829: UserSettings */).DmSpamFilterV2;
|
||||
const setting = DmSpamFilterV2.getSetting();
|
||||
DmSpamFilterV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).DmSpamFilterV2;
|
||||
const DISABLED = DmSpamFilterV2.DISABLED;
|
||||
return setting === DISABLED;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
/* Metro module 8165; source: modules/in_app_reports/IarSettingsUpsellsConfigRegistry.tsx; dependencies: [31, 8154, 8166, 8167, 8168, 1360, 2] */
|
||||
function _fun65525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:6, offset: 0x01bd2abc, size: 257 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
object2 = {};
|
||||
const SettingsUpsells = (require(8154) /* metro dependency 8154: MenuTypes */).SettingsUpsells;
|
||||
const SAFETY_DM_SPAM_FILTER = SettingsUpsells.SAFETY_DM_SPAM_FILTER;
|
||||
object2[SAFETY_DM_SPAM_FILTER] = importDefault(8166) /* metro dependency 8166: IarSettingsUpsellsConfigDmSpamFilter */;
|
||||
const SAFETY_SC_FILTERS_SEXUAL_MEDIA = SettingsUpsells.SAFETY_SC_FILTERS_SEXUAL_MEDIA;
|
||||
object2[SAFETY_SC_FILTERS_SEXUAL_MEDIA] = importDefault(8167) /* metro dependency 8167: IarSettingsUpsellsConfigScFiltersSexualMedia */;
|
||||
const SAFETY_SC_FILTERS_GRAPHIC_MEDIA = SettingsUpsells.SAFETY_SC_FILTERS_GRAPHIC_MEDIA;
|
||||
object2[SAFETY_SC_FILTERS_GRAPHIC_MEDIA] = importDefault(8168) /* metro dependency 8168: IarSettingsUpsellsConfigScFiltersGraphicMedia */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigRegistry.tsx');
|
||||
exports.SettingsUpsellsConfigRegistry = object2;
|
||||
exports.useIarReportSettingsUpsells = useIarReportSettingsUpsells;
|
||||
exports.useSettingsUpsellsConfigs = useSettingsUpsellsConfigs;
|
||||
}
|
||||
|
||||
function useIarReportSettingsUpsells(a0) { // fn#65526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:454, offset: 0x01bd2bbd, size: 42 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return env0_2.useMemo(_fun65527, [a0]);
|
||||
}
|
||||
|
||||
function useSettingsUpsellsConfigs(a0, a1) { // fn#65530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:765, offset: 0x01bd2cd2, size: 53 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_2.useMemo(_fun65531, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun65527() { // fn#65527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:512, offset: 0x01bd2be7, size: 36 bytes, params: 1, frame: 12
|
||||
const value2 = null;
|
||||
return value2 != env0_0 ? getIarReportSubtypeUpsells(env0_0) : value2;
|
||||
}
|
||||
|
||||
function _fun65531() { // fn#65531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:823, offset: 0x01bd2d07, size: 67 bytes, params: 1, frame: 13
|
||||
const value = env0_0.map(function(a0) {
|
||||
return _fun65533(a0, require);
|
||||
});
|
||||
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
function getIarReportSubtypeUpsells(a0) { // fn#65528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:524, offset: 0x01bd2c0b, size: 76 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const items2 = [];
|
||||
const Object = global.Object;
|
||||
const entries = Object.entries;
|
||||
const value = environment.__proto__.__proto__;
|
||||
Reflect.apply(entries, Object, [env2_3]).forEach(_fun65529);
|
||||
return items2.length === 0 ? null : items2;
|
||||
}
|
||||
|
||||
function _fun65532(a0) { // fn#65532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:834, offset: 0x01bd2d4a, size: 27 bytes, params: 2, frame: 13
|
||||
return getSettingsUpsellsConfig(a0, require);
|
||||
}
|
||||
|
||||
function _fun65529(a0) { // fn#65529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:606, offset: 0x01bd2c57, size: 123 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var r2;
|
||||
var r4;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value;
|
||||
r4 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value;
|
||||
r4 = value3;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = item;
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
if (!r4) {
|
||||
r1.return();
|
||||
}
|
||||
if (r2.eligibleReportSubtypes == null || r2.eligibleReportSubtypes.includes(env0_0)) {
|
||||
env0_1.push(r3);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function getSettingsUpsellsConfig(a0, a1) { // fn#65533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8350:837, offset: 0x01bd2d65, size: 99 bytes, params: 3, frame: 17
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const property = env3_3[a0];
|
||||
const predicate = property.predicate;
|
||||
const eligibleChannelTypes = property.eligibleChannelTypes;
|
||||
value = null;
|
||||
let r2 = value == predicate || (value == predicate ? undefined : predicate()) === true;
|
||||
let r3 = value == a1 || value == eligibleChannelTypes;
|
||||
r3 = !r3 ? eligibleChannelTypes.includes(a1) : r3;
|
||||
r2 = r2 && r3;
|
||||
return r2 ? property : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Metro module 8168; source: modules/in_app_reports/IarSettingsUpsellsConfigScFiltersGraphicMedia.tsx; dependencies: [4844, 1314, 1244, 8154, 2] */
|
||||
function _fun65546(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8353:6, offset: 0x01bd3395, size: 213 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {getTitle: function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.RVX1zT);
|
||||
}, getDisabledTitle: function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.SYkEBi);
|
||||
}, getDescription: function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.aqlmp8);
|
||||
}};
|
||||
const {SUB_GORE, SUB_GLORIFYING_VIOLENCE} = (require(8154) /* metro dependency 8154: MenuTypes */).ReportSubType;
|
||||
object2.eligibleReportSubtypes = [SUB_GORE, SUB_GLORIFYING_VIOLENCE];
|
||||
object2.onApply = onApply_65550;
|
||||
object2.predicate = predicate_65551;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigScFiltersGraphicMedia.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function onApply_65550() { // fn#65550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8353:376, offset: 0x01bd352a, size: 275 bytes, params: 1, frame: 19
|
||||
const sensitiveMediaGoreRedactionSettingsUtilsModule = require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */;
|
||||
const updateGoreContentSetting = sensitiveMediaGoreRedactionSettingsUtilsModule.updateGoreContentSetting;
|
||||
const {goreContentGuilds, goreContentFriendDm,
|
||||
goreContentNonFriendDm} = sensitiveMediaGoreRedactionSettingsUtilsModule.getGoreContentSettingOrDefault();
|
||||
const object2 = {};
|
||||
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
|
||||
let SHOW = ExplicitContentRedaction.SHOW;
|
||||
if (goreContentGuilds === SHOW) {
|
||||
object2.goreContentGuilds = ExplicitContentRedaction.BLUR;
|
||||
}
|
||||
SHOW = ExplicitContentRedaction.SHOW;
|
||||
if (goreContentFriendDm === SHOW) {
|
||||
object2.goreContentFriendDm = ExplicitContentRedaction.BLUR;
|
||||
}
|
||||
SHOW = ExplicitContentRedaction.SHOW;
|
||||
if (goreContentNonFriendDm === SHOW) {
|
||||
object2.goreContentNonFriendDm = ExplicitContentRedaction.BLUR;
|
||||
}
|
||||
return Reflect.apply(updateGoreContentSetting, sensitiveMediaGoreRedactionSettingsUtilsModule, [object2]);
|
||||
}
|
||||
|
||||
function predicate_65551() { // fn#65551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8353:932, offset: 0x01bd363d, size: 154 bytes, params: 1, frame: 16
|
||||
const {goreContentGuilds, goreContentFriendDm,
|
||||
goreContentNonFriendDm} = (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).getGoreContentSettingOrDefault();
|
||||
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
|
||||
const SHOW = ExplicitContentRedaction.SHOW;
|
||||
let r0 = goreContentGuilds === SHOW || goreContentFriendDm === ExplicitContentRedaction.SHOW;
|
||||
r0 = !r0 ? goreContentNonFriendDm === ExplicitContentRedaction.SHOW : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/* Metro module 8167; source: modules/in_app_reports/IarSettingsUpsellsConfigScFiltersSexualMedia.tsx; dependencies: [4842, 1314, 1244, 8154, 2] */
|
||||
function _fun65540(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8352:6, offset: 0x01bd3008, size: 288 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {getTitle: function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t['Gtck/t']);
|
||||
}, getDisabledTitle: function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.E6UmXa);
|
||||
}, getDescription: function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.jcRSp6);
|
||||
}};
|
||||
const {SUB_CSAM, SUB_LOLI, SUB_NCP, SUB_SEXUALLY_DEGRADING_CONTENT,
|
||||
SUB_UNSOLICITED_PORN} = (require(8154) /* metro dependency 8154: MenuTypes */).ReportSubType;
|
||||
object2.eligibleReportSubtypes = [SUB_CSAM, SUB_LOLI, SUB_NCP, SUB_SEXUALLY_DEGRADING_CONTENT, SUB_UNSOLICITED_PORN];
|
||||
object2.onApply = onApply_65544;
|
||||
object2.predicate = predicate_65545;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigScFiltersSexualMedia.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function onApply_65544() { // fn#65544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8352:490, offset: 0x01bd31e8, size: 275 bytes, params: 1, frame: 19
|
||||
const sensitiveMediaExplicitRedactionSettingsUtilsModule = require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */;
|
||||
const updateExplicitContentSetting = sensitiveMediaExplicitRedactionSettingsUtilsModule.updateExplicitContentSetting;
|
||||
const {explicitContentGuilds, explicitContentFriendDm,
|
||||
explicitContentNonFriendDm} = sensitiveMediaExplicitRedactionSettingsUtilsModule.getExplicitContentSettingOrDefault();
|
||||
const object2 = {};
|
||||
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
|
||||
let SHOW = ExplicitContentRedaction.SHOW;
|
||||
if (explicitContentGuilds === SHOW) {
|
||||
object2.explicitContentGuilds = ExplicitContentRedaction.BLUR;
|
||||
}
|
||||
SHOW = ExplicitContentRedaction.SHOW;
|
||||
if (explicitContentFriendDm === SHOW) {
|
||||
object2.explicitContentFriendDm = ExplicitContentRedaction.BLUR;
|
||||
}
|
||||
SHOW = ExplicitContentRedaction.SHOW;
|
||||
if (explicitContentNonFriendDm === SHOW) {
|
||||
object2.explicitContentNonFriendDm = ExplicitContentRedaction.BLUR;
|
||||
}
|
||||
return Reflect.apply(updateExplicitContentSetting, sensitiveMediaExplicitRedactionSettingsUtilsModule, [object2]);
|
||||
}
|
||||
|
||||
function predicate_65545() { // fn#65545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8352:1079, offset: 0x01bd32fb, size: 154 bytes, params: 1, frame: 16
|
||||
const {explicitContentGuilds, explicitContentFriendDm,
|
||||
explicitContentNonFriendDm} = (require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */).getExplicitContentSettingOrDefault();
|
||||
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
|
||||
const SHOW = ExplicitContentRedaction.SHOW;
|
||||
let r0 = explicitContentGuilds === SHOW || explicitContentFriendDm === ExplicitContentRedaction.SHOW;
|
||||
r0 = !r0 ? explicitContentNonFriendDm === ExplicitContentRedaction.SHOW : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 8162; source: modules/in_app_reports/MenuConstants.tsx; dependencies: [2] */
|
||||
function _fun65521(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8347:6, offset: 0x01bd28e7, size: 88 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/MenuConstants.tsx');
|
||||
exports.REMEDIATION_ELEMENT_TYPES = ['ignore_users', 'block_users', 'leave_guild', 'delete_message',
|
||||
'deauthorize_app', 'share_with_parents'];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 8154; source: modules/in_app_reports/MenuTypes.tsx; dependencies: [2] */
|
||||
function _fun65388(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8339:6, offset: 0x01bcdf1b, size: 454 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/MenuTypes.tsx');
|
||||
exports.ReportNames = {GUILD: 'guild', GUILD_DISCOVERY: 'guild_discovery',
|
||||
GUILD_DIRECTORY_ENTRY: 'guild_directory_entry', MESSAGE: 'message', STAGE_CHANNEL: 'stage_channel',
|
||||
GUILD_SCHEDULED_EVENT: 'guild_scheduled_event', FIRST_DM: 'first_dm', USER: 'user', APPLICATION: 'application',
|
||||
WIDGET: 'widget'};
|
||||
exports.ModeratorReportNames = {MESSAGE: 'report_to_mod_message'};
|
||||
exports.UnauthenticatedReportNames = {MESSAGE: 'message_urf', USER: 'user_urf', GUILD: 'guild_urf',
|
||||
MEDIA_TAKEDOWN: 'media_takedown'};
|
||||
exports.ReportSubType = {SUB_SPAM: 'sub_spam', SUB_UNSOLICITED_PORN: 'sub_unsolicited_porn',
|
||||
SUB_SEXUALLY_DEGRADING_CONTENT: 'sub_sexually_degrading_content', SUB_NCP: 'sub_ncp', SUB_LOLI: 'sub_loli',
|
||||
SUB_CSAM: 'sub_csam', SUB_GENERAL_HARASSMENT: 'sub_general_harassment',
|
||||
SUB_VULGAR_LANGUAGE: 'sub_vulgar_language',
|
||||
SUB_RACIST_OR_DICRIMINATORY_LANGUAGE_OR_IMAGERY: 'sub_racist_or_discriminatory_language_or_imagery',
|
||||
SUB_GORE: 'sub_gore', SUB_GLORIFYING_VIOLENCE: 'sub_glorifying_violence'};
|
||||
exports.SettingsUpsells = {SAFETY_DM_SPAM_FILTER: 'safety_dm_spam_filter',
|
||||
SAFETY_SC_FILTERS_SEXUAL_MEDIA: 'safety_sc_filters_sexual_media',
|
||||
SAFETY_SC_FILTERS_GRAPHIC_MEDIA: 'safety_sc_filters_graphic_media'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,537 @@
|
||||
/* Metro module 8153; source: modules/in_app_reports/ReportModals.tsx; dependencies: [5, 1384, 3794, 1885, 661, 8154, 8155, 8157, 1418, 4863, 2] */
|
||||
function _fun65360(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:6, offset: 0x01bcd087, size: 438 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const trackShowReportModalAnalytics = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[9]);
|
||||
var IAR_MODAL_OPEN = AnalyticEvents.IAR_MODAL_OPEN;
|
||||
var object = {report_type: a0};
|
||||
copyDataProperties(object, a1, a0);
|
||||
defaultImport.trackWithMetadata(IAR_MODAL_OPEN, object);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const stageInstanceStore = importDefault(1384) /* metro dependency 1384: StageInstanceStore */;
|
||||
const messageRecord = importDefault(3794) /* metro dependency 3794: MessageRecord */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/ReportModals.tsx');
|
||||
exports.showReportModalForGuild = showReportModalForGuild;
|
||||
exports.showReportModalForGuildDirectoryEntry = showReportModalForGuildDirectoryEntry;
|
||||
exports.showReportModalForMessage = showReportModalForMessage;
|
||||
exports.showStaffTestReportModalForMessage = showStaffTestReportModalForMessage;
|
||||
exports.showStaffTestReportModalForGuild = showStaffTestReportModalForGuild;
|
||||
exports.showReportModalForStageChannel = showReportModalForStageChannel;
|
||||
exports.showReportModalForGuildScheduledEvent = showReportModalForGuildScheduledEvent;
|
||||
exports.showReportModalForFirstDM = showReportModalForFirstDM;
|
||||
exports.submitHamReportForFirstDM = function() {
|
||||
return _submitHamReportForFirstDM.apply(this, arguments);
|
||||
};
|
||||
exports.showReportModalForUser = showReportModalForUser;
|
||||
exports.showStaffTestReportModalForUser = showStaffTestReportModalForUser;
|
||||
exports.showUnauthenticatedReportModalForUser = showUnauthenticatedReportModalForUser;
|
||||
exports.showUnauthenticatedReportModalForGuild = showUnauthenticatedReportModalForGuild;
|
||||
exports.showUnauthenticatedReportModalForTida = showUnauthenticatedReportModalForTida;
|
||||
exports.showUnauthenticatedReportModalForMessage = showUnauthenticatedReportModalForMessage;
|
||||
exports.submitReportForInappropriateConversationSafetyAlert = function() {
|
||||
return _submitReportForInappropriateConversationSafetyAlert.apply(this, arguments);
|
||||
};
|
||||
exports.showReportModalForInappropriateConversationSafetyAlert = showReportModalForInappropriateConversationSafetyAlert;
|
||||
exports.showReportModalForWidget = showReportModalForWidget;
|
||||
exports.showReportModalForApp = showReportModalForApp;
|
||||
exports.showReportToModMessageModal = showReportToModMessageModal;
|
||||
}
|
||||
|
||||
function _submitHamReportForFirstDM() { // fn#65361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:161, offset: 0x01bcd23d, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65363).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _submitReportForInappropriateConversationSafetyAlert() { // fn#65364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:415, offset: 0x01bcd300, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65366).apply(this, arguments);
|
||||
}
|
||||
|
||||
function showReportModalForGuild(a0, a1) { // fn#65368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:952, offset: 0x01bcd41d, size: 132 bytes, params: 3, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let GUILD = ReportNames.GUILD;
|
||||
trackShowReportModalAnalyticsBinding(GUILD, {guild_id: a0.id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
GUILD = ReportNames.GUILD;
|
||||
Reflect.apply(showReportModal, value, [{name: GUILD, record: a0}, {}, {onSubmit: a1}]);
|
||||
}
|
||||
|
||||
function showReportModalForGuildDirectoryEntry(a0, a1) { // fn#65369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:1187, offset: 0x01bcd4a1, size: 141 bytes, params: 3, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let GUILD_DIRECTORY_ENTRY = ReportNames.GUILD_DIRECTORY_ENTRY;
|
||||
trackShowReportModalAnalyticsBinding(GUILD_DIRECTORY_ENTRY, {channel_id: a0.channelId, guild_id: a0.guildId});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
GUILD_DIRECTORY_ENTRY = ReportNames.GUILD_DIRECTORY_ENTRY;
|
||||
Reflect.apply(showReportModal, value, [{name: GUILD_DIRECTORY_ENTRY, record: a0}, {}, {onSubmit: a1}]);
|
||||
}
|
||||
|
||||
function showReportModalForMessage(a0, a1, a2) { // fn#65370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:1484, offset: 0x01bcd52e, size: 142 bytes, params: 4, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let MESSAGE = ReportNames.MESSAGE;
|
||||
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: a0.id, channel_id: a0.channel_id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
MESSAGE = ReportNames.MESSAGE;
|
||||
Reflect.apply(showReportModal, value, [{name: MESSAGE, record: a0}, {}, {onSubmit: a2}]);
|
||||
}
|
||||
|
||||
function showStaffTestReportModalForMessage(a0, a1, a2) { // fn#65371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:1750, offset: 0x01bcd5bc, size: 150 bytes, params: 4, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let MESSAGE = ReportNames.MESSAGE;
|
||||
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: a0.id, channel_id: a0.channel_id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
MESSAGE = ReportNames.MESSAGE;
|
||||
Reflect.apply(showReportModal, value, [{name: MESSAGE, record: a0}, {variant: 'staff'}, {onSubmit: a2}]);
|
||||
}
|
||||
|
||||
function showStaffTestReportModalForGuild(a0, a1, a2) { // fn#65372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:2038, offset: 0x01bcd652, size: 140 bytes, params: 4, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let GUILD = ReportNames.GUILD;
|
||||
trackShowReportModalAnalyticsBinding(GUILD, {guild_id: a0.id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
GUILD = ReportNames.GUILD;
|
||||
Reflect.apply(showReportModal, value, [{name: GUILD, record: a0}, {variant: 'staff'}, {onSubmit: a2}]);
|
||||
}
|
||||
|
||||
function showReportModalForStageChannel({id}, a1) { // fn#65373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:2292, offset: 0x01bcd6de, size: 182 bytes, params: 3, frame: 19
|
||||
var trackShowReportModalAnalyticsBinding;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
var STAGE_CHANNEL;
|
||||
var showReportModal;
|
||||
var value;
|
||||
const stageInstanceByChannel = StageInstanceStore.getStageInstanceByChannel(id);
|
||||
if (stageInstanceByChannel != null) {
|
||||
trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
STAGE_CHANNEL = ReportNames.STAGE_CHANNEL;
|
||||
trackShowReportModalAnalyticsBinding(STAGE_CHANNEL, {stage_instance_id: stageInstanceByChannel.id,
|
||||
channel_id: stageInstanceByChannel.channel_id, guild_id: stageInstanceByChannel.guild_id});
|
||||
value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
showReportModal = value.showReportModal;
|
||||
STAGE_CHANNEL = ReportNames.STAGE_CHANNEL;
|
||||
Reflect.apply(showReportModal, value, [{name: STAGE_CHANNEL, record: stageInstanceByChannel}, {},
|
||||
{onSubmit: a1}]);
|
||||
}
|
||||
}
|
||||
|
||||
function showReportModalForGuildScheduledEvent(a0, a1) { // fn#65374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:2654, offset: 0x01bcd794, size: 173 bytes, params: 3, frame: 20
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const value2 = undefined;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let GUILD_SCHEDULED_EVENT = ReportNames.GUILD_SCHEDULED_EVENT;
|
||||
trackShowReportModalAnalyticsBinding(GUILD_SCHEDULED_EVENT, {guild_scheduled_event_id: a0.id, guild_id: a0.guild_id,
|
||||
channel_id: a0.channel_id ?? value2});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
GUILD_SCHEDULED_EVENT = ReportNames.GUILD_SCHEDULED_EVENT;
|
||||
Reflect.apply(showReportModal, value, [{name: GUILD_SCHEDULED_EVENT, record: a0}, {}, {onSubmit: a1}]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function showReportModalForFirstDM(a0, a1) { // fn#65375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:3008, offset: 0x01bcd841, size: 149 bytes, params: 3, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let FIRST_DM = ReportNames.FIRST_DM;
|
||||
trackShowReportModalAnalyticsBinding(FIRST_DM, {message_id: a0.id, channel_id: a0.channel_id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
FIRST_DM = ReportNames.FIRST_DM;
|
||||
Reflect.apply(showReportModal, value, [{name: FIRST_DM, record: a0}, {}, {onSubmit: a1,
|
||||
isEligibleForFeedback: false}]);
|
||||
}
|
||||
|
||||
function showReportModalForUser(a0, a1, a2, a3) { // fn#65377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:3409, offset: 0x01bcd8d6, size: 149 bytes, params: 5, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let USER = ReportNames.USER;
|
||||
trackShowReportModalAnalyticsBinding(USER, {reported_user_id: a0.id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
USER = ReportNames.USER;
|
||||
Reflect.apply(showReportModal, value, [{name: USER, record: a0, contextualGuildId: a1}, {}, {onSubmit: a2,
|
||||
appContext: a3}]);
|
||||
}
|
||||
|
||||
function showStaffTestReportModalForUser(a0, a1, a2, a3) { // fn#65378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:3680, offset: 0x01bcd96b, size: 164 bytes, params: 5, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let USER = ReportNames.USER;
|
||||
trackShowReportModalAnalyticsBinding(USER, {reported_user_id: a0.id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
USER = ReportNames.USER;
|
||||
Reflect.apply(showReportModal, value, [{name: USER, record: a0, contextualGuildId: a1}, {variant: 'staff'},
|
||||
{onSubmit: a2, isEligibleForFeedback: false, appContext: a3}]);
|
||||
}
|
||||
|
||||
function showUnauthenticatedReportModalForUser(a0, a1) { // fn#65379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:4006, offset: 0x01bcda0f, size: 177 bytes, params: 3, frame: 19
|
||||
const userRecord = new UserRecord({});
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const UnauthenticatedReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).UnauthenticatedReportNames;
|
||||
let USER = UnauthenticatedReportNames.USER;
|
||||
trackShowReportModalAnalyticsBinding(USER, {reported_user_id: userRecord.id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
USER = UnauthenticatedReportNames.USER;
|
||||
Reflect.apply(showReportModal, value, [{name: USER, record: userRecord}, {}, {'onClose': null,
|
||||
'isEligibleForFeedback': false, 'isAuthenticated': false, onClose: a1, emailToken: a0}]);
|
||||
}
|
||||
|
||||
function showUnauthenticatedReportModalForGuild(a0, a1) { // fn#65380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:4364, offset: 0x01bcdac0, size: 175 bytes, params: 3, frame: 19
|
||||
const value2 = (require(1418) /* metro dependency 1418: GuildRecordUtils */).dangerouslyConstructGuildRecordFromUntypedObject({});
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const UnauthenticatedReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).UnauthenticatedReportNames;
|
||||
let GUILD = UnauthenticatedReportNames.GUILD;
|
||||
trackShowReportModalAnalyticsBinding(GUILD, {guild_id: value2.id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
GUILD = UnauthenticatedReportNames.GUILD;
|
||||
Reflect.apply(showReportModal, value, [{name: GUILD, record: value2}, {}, {'onClose': null,
|
||||
'isEligibleForFeedback': false, 'isAuthenticated': false, onClose: a1, emailToken: a0}]);
|
||||
}
|
||||
|
||||
function showUnauthenticatedReportModalForTida(a0, a1) { // fn#65381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:4767, offset: 0x01bcdb6f, size: 136 bytes, params: 3, frame: 17
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const UnauthenticatedReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).UnauthenticatedReportNames;
|
||||
let MEDIA_TAKEDOWN = UnauthenticatedReportNames.MEDIA_TAKEDOWN;
|
||||
trackShowReportModalAnalyticsBinding(MEDIA_TAKEDOWN, {});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
MEDIA_TAKEDOWN = UnauthenticatedReportNames.MEDIA_TAKEDOWN;
|
||||
Reflect.apply(showReportModal, value, [{name: MEDIA_TAKEDOWN}, {}, {'onClose': null, 'isEligibleForFeedback': false,
|
||||
'isAuthenticated': false, onClose: a1, emailToken: a0}]);
|
||||
}
|
||||
|
||||
function showUnauthenticatedReportModalForMessage(a0, a1) { // fn#65382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:5101, offset: 0x01bcdbf7, size: 176 bytes, params: 3, frame: 19
|
||||
const messageRecord = new MessageRecord({});
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const UnauthenticatedReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).UnauthenticatedReportNames;
|
||||
let MESSAGE = UnauthenticatedReportNames.MESSAGE;
|
||||
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: undefined, channel_id: undefined});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
MESSAGE = UnauthenticatedReportNames.MESSAGE;
|
||||
Reflect.apply(showReportModal, value, [{name: MESSAGE, record: messageRecord}, {}, {'onClose': null,
|
||||
'isEligibleForFeedback': false, 'isAuthenticated': false, onClose: a1, emailToken: a0}]);
|
||||
}
|
||||
|
||||
function showReportModalForInappropriateConversationSafetyAlert(a0, a1) { // fn#65384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:5698, offset: 0x01bcdca7, size: 152 bytes, params: 3, frame: 19
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let MESSAGE = ReportNames.MESSAGE;
|
||||
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: a0.id, channel_id: a0.channel_id});
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
MESSAGE = ReportNames.MESSAGE;
|
||||
Reflect.apply(showReportModal, value, [{name: MESSAGE, record: a0}, {variant: 'safety_alerts_v1'}, {onSubmit: a1}]);
|
||||
}
|
||||
|
||||
function showReportModalForWidget(a0, a1, a2, a3) { // fn#65385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:6007, offset: 0x01bcdd3f, size: 132 bytes, params: 5, frame: 18
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
const WIDGET = ReportNames.WIDGET;
|
||||
Reflect.apply(showReportModal, value, [{name: WIDGET, widget_id: a1.id ?? '', user_id: a0, widget: a1}, {},
|
||||
{onSubmit: a2, appContext: a3}]);
|
||||
}
|
||||
|
||||
function showReportModalForApp({application, entrypoint, contextualGuildId, contextualChannelId, onSubmit, appContext}) { // fn#65386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:6218, offset: 0x01bcddc3, size: 247 bytes, params: 2, frame: 24
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const REPORT_APPLICATION_CLICKED = AnalyticEvents.REPORT_APPLICATION_CLICKED;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [REPORT_APPLICATION_CLICKED, {application_id: application.id,
|
||||
location: entrypoint}]);
|
||||
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let APPLICATION = ReportNames.APPLICATION;
|
||||
trackShowReportModalAnalyticsBinding(APPLICATION, {application_id: application.id, guild_id: contextualGuildId,
|
||||
channel_id: contextualChannelId});
|
||||
const showReportModalNativeModule = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = showReportModalNativeModule.showReportModal;
|
||||
APPLICATION = ReportNames.APPLICATION;
|
||||
Reflect.apply(showReportModal, showReportModalNativeModule, [{name: APPLICATION, record: application,
|
||||
contextualGuildId: contextualGuildId, contextualChannelId: contextualChannelId, entrypoint: entrypoint}, {},
|
||||
{onSubmit: onSubmit, appContext: appContext}]);
|
||||
}
|
||||
|
||||
function showReportToModMessageModal(a0, a1) { // fn#65387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:6731, offset: 0x01bcdeba, size: 97 bytes, params: 3, frame: 17
|
||||
const value = require(8155) /* metro dependency 8155: showReportModalNative */;
|
||||
const showReportModal = value.showReportModal;
|
||||
const ModeratorReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ModeratorReportNames;
|
||||
const MESSAGE = ModeratorReportNames.MESSAGE;
|
||||
Reflect.apply(showReportModal, value, [{name: MESSAGE, record: a0}, {}, {onSubmit: a1,
|
||||
isEligibleForFeedback: false}]);
|
||||
}
|
||||
|
||||
function* _fun65363(a0, a1) { // fn#65363, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:236, offset: 0x01bcd276, size: 138 bytes, params: 3, frame: 19
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var submitHeadlessReport;
|
||||
var object3;
|
||||
var value3;
|
||||
var ReportNames;
|
||||
var FIRST_DM;
|
||||
var object4;
|
||||
var value4;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort30: while (true) {
|
||||
exceptionLanding29: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
break reduciblePort30;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
submitHeadlessReport = value.submitHeadlessReport;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property = binding2[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
ReportNames = value3.ReportNames;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
FIRST_DM = ReportNames.FIRST_DM;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object3.name = FIRST_DM;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object3.record = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object4.variant = '_first_dm_ham_v1';
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(submitHeadlessReport, value, [object3, object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value4 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
if (value4) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value = a1 == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
reducibleJoin30: while (true) {
|
||||
if (value) {
|
||||
break reducibleJoin30;
|
||||
}
|
||||
try {
|
||||
a1();
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
break reducibleJoin30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun65366(a0, a1, a2) { // fn#65366, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8338:542, offset: 0x01bcd339, size: 159 bytes, params: 4, frame: 20
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var submitHeadlessReport;
|
||||
var object3;
|
||||
var value3;
|
||||
var ReportNames;
|
||||
var MESSAGE;
|
||||
var object4;
|
||||
var value4;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort31: while (true) {
|
||||
exceptionLanding29: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
reducibleJoin31: while (true) {
|
||||
if (a2 == null) {
|
||||
break reducibleJoin31;
|
||||
}
|
||||
a2();
|
||||
break reducibleJoin31;
|
||||
}
|
||||
break reduciblePort31;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
submitHeadlessReport = value.submitHeadlessReport;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property = binding2[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
ReportNames = value3.ReportNames;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
MESSAGE = ReportNames.MESSAGE;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object3.name = MESSAGE;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object3.record = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object4.variant = 'safety_alerts_headless_v1';
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(submitHeadlessReport, value, [object3, object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value4 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
if (value4) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value = a1 == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
reducibleJoin31: while (true) {
|
||||
if (value) {
|
||||
break reducibleJoin31;
|
||||
}
|
||||
try {
|
||||
a1();
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
break reducibleJoin31;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,959 @@
|
||||
/* Metro module 8157; source: modules/in_app_reports/ReportUtils.tsx; dependencies: [5, 31, 4649, 661, 6263, 507, 8156, 6264, 694, 44, 8154, 4863, 2] */
|
||||
function _fun65396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:6, offset: 0x01bce4e3, size: 584 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const closure = function() {
|
||||
return _getReportMenu.apply(this, arguments);
|
||||
};
|
||||
const clientCacheBucket = function(a0) {
|
||||
var r3;
|
||||
var r4;
|
||||
var r0;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value = 0;
|
||||
var value2 = 5381;
|
||||
if (value < a0.length) {
|
||||
r3 = value;
|
||||
for (r4 = value2; true; r4 = value4) {
|
||||
value3 = a0.charCodeAt(r3);
|
||||
value4 = (r4 << 5) + r4 + value3 | 0;
|
||||
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
||||
if (!(value5 < a0.length)) {
|
||||
r0 = value4;
|
||||
break;
|
||||
}
|
||||
r3 = value5;
|
||||
}
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
value = r0 >>> value;
|
||||
return value.toString(36);
|
||||
};
|
||||
const closure2 = getUnauthenticatedReportNameSafely;
|
||||
const closure3 = getReportNameSafely;
|
||||
const closure4 = getModeratorReportNameSafely;
|
||||
const closure5 = getModeratorReportEndpointSafely;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const devSettingsStore = importDefault(4649) /* metro dependency 4649: DevSettingsStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.AnalyticEvents;
|
||||
const env0_7 = constantsModule.Endpoints;
|
||||
const env0_8 = (require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/ReportUtils.tsx');
|
||||
exports.getReportMenu = closure;
|
||||
exports.getReportMenuForModeratorReport = function() {
|
||||
return _getReportMenuForModeratorReport.apply(this, arguments);
|
||||
};
|
||||
exports.getUnauthenticatedReportMenu = function() {
|
||||
return _getUnauthenticatedReportMenu.apply(this, arguments);
|
||||
};
|
||||
exports.submitHeadlessReport = function() {
|
||||
return _submitHeadlessReport.apply(this, arguments);
|
||||
};
|
||||
exports.submitReport = submitReport;
|
||||
exports.submitUnauthenticatedReport = submitUnauthenticatedReport;
|
||||
exports.sendUnauthenticatedReportPincode = sendUnauthenticatedReportPincode;
|
||||
exports.verifyUnauthenticatedReport = function() {
|
||||
return _verifyUnauthenticatedReport.apply(this, arguments);
|
||||
};
|
||||
exports.getDsaExperiment = function() {
|
||||
return _getDsaExperiment.apply(this, arguments);
|
||||
};
|
||||
exports.fetchUrfCapabilities = function() {
|
||||
return _fetchUrfCapabilities.apply(this, arguments);
|
||||
};
|
||||
exports.submitReportSecondLook = function() {
|
||||
return _submitReportSecondLook.apply(this, arguments);
|
||||
};
|
||||
exports.getUnauthenticatedReportNameSafely = closure2;
|
||||
exports.getReportNameSafely = closure3;
|
||||
exports.getModeratorReportNameSafely = closure4;
|
||||
exports.getModeratorReportEndpointSafely = closure5;
|
||||
exports.trackCloseReportModalAnalytics = trackCloseReportModalAnalytics;
|
||||
exports.showInAppReportsFeedbackModal = showInAppReportsFeedbackModal;
|
||||
exports.areRequiredElementsUnfilled = areRequiredElementsUnfilled;
|
||||
exports.TrackIarSettingsUpsellsActionType = {SETTINGS_UPSELLS_VIEWED: 'SETTINGS_UPSELLS_VIEWED',
|
||||
SETTINGS_UPSELLS_APPLY_CLICKED: 'SETTINGS_UPSELLS_APPLY_CLICKED',
|
||||
SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED: 'SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED'};
|
||||
exports.useTrackSettingsUpsellsAction = useTrackSettingsUpsellsAction;
|
||||
}
|
||||
|
||||
function _getReportMenu() { // fn#65398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:267, offset: 0x01bce72b, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65400).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getReportMenuForModeratorReport() { // fn#65401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:573, offset: 0x01bce820, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65403).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getUnauthenticatedReportMenu() { // fn#65404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:924, offset: 0x01bce915, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65406).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _submitHeadlessReport() { // fn#65407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:1291, offset: 0x01bcea0a, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65409).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _verifyUnauthenticatedReport() { // fn#65411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:1733, offset: 0x01bceb65, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65413).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getDsaExperiment() { // fn#65414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:1982, offset: 0x01bcec1d, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65416).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fetchUrfCapabilities() { // fn#65417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2166, offset: 0x01bcecae, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65419).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _submitReportSecondLook() { // fn#65420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2344, offset: 0x01bced3f, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65422).apply(this, arguments);
|
||||
}
|
||||
|
||||
function getUnauthenticatedReportNameSafely(a0) { // fn#65423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2558, offset: 0x01bcede4, size: 118 bytes, params: 2, frame: 19
|
||||
const name = a0.name;
|
||||
const defaultImport = importDefault(44) /* metro dependency 44 */;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const UnauthenticatedReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).UnauthenticatedReportNames;
|
||||
let value = Reflect.apply(values, Object, [UnauthenticatedReportNames]);
|
||||
value = value.includes(name);
|
||||
defaultImport(value, 'Invalid report type ' + a0.name);
|
||||
return name;
|
||||
}
|
||||
|
||||
function getReportNameSafely(a0) { // fn#65424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2732, offset: 0x01bcee5a, size: 118 bytes, params: 2, frame: 19
|
||||
const name = a0.name;
|
||||
const defaultImport = importDefault(44) /* metro dependency 44 */;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
let value = Reflect.apply(values, Object, [ReportNames]);
|
||||
value = value.includes(name);
|
||||
defaultImport(value, 'Invalid report type ' + a0.name);
|
||||
return name;
|
||||
}
|
||||
|
||||
function getModeratorReportNameSafely(a0) { // fn#65425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2876, offset: 0x01bceed0, size: 118 bytes, params: 2, frame: 19
|
||||
const name = a0.name;
|
||||
const defaultImport = importDefault(44) /* metro dependency 44 */;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const ModeratorReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ModeratorReportNames;
|
||||
let value = Reflect.apply(values, Object, [ModeratorReportNames]);
|
||||
value = value.includes(name);
|
||||
defaultImport(value, 'Invalid report type ' + a0.name);
|
||||
return name;
|
||||
}
|
||||
|
||||
function getModeratorReportEndpointSafely(a0) { // fn#65426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:3038, offset: 0x01bcef46, size: 228 bytes, params: 2, frame: 20
|
||||
var SUBMIT_MODERATOR_MESSAGE_REPORT;
|
||||
var record;
|
||||
var channel_id;
|
||||
const defaultImport = importDefault(44) /* metro dependency 44 */;
|
||||
const ReportMenuTypeSets = (require(8156) /* metro dependency 8156: ReportMenuType */).ReportMenuTypeSets;
|
||||
const REPORT_TO_MOD = ReportMenuTypeSets.REPORT_TO_MOD;
|
||||
const has = REPORT_TO_MOD.has;
|
||||
let name = a0.name;
|
||||
defaultImport(Reflect.apply(has, REPORT_TO_MOD, [name]), 'Invalid report type ' + a0.name);
|
||||
name = a0.name;
|
||||
const ModeratorReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ModeratorReportNames;
|
||||
const MESSAGE = ModeratorReportNames.MESSAGE;
|
||||
if (name === MESSAGE) {
|
||||
SUBMIT_MODERATOR_MESSAGE_REPORT = Endpoints.SUBMIT_MODERATOR_MESSAGE_REPORT;
|
||||
record = a0.record;
|
||||
channel_id = record.channel_id;
|
||||
record = a0.record;
|
||||
return Reflect.apply(SUBMIT_MODERATOR_MESSAGE_REPORT, Endpoints, [channel_id, record.id]);
|
||||
}
|
||||
const Error = global.Error;
|
||||
const value = 'Invalid report type ' + a0.name;
|
||||
const value3 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error();
|
||||
throw error instanceof Object ? error : value3;
|
||||
}
|
||||
|
||||
function genModeratorSubmitdata({version, variant, language}, a1, a2) { // fn#65427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:3378, offset: 0x01bcf02a, size: 239 bytes, params: 4, frame: 19
|
||||
var record;
|
||||
var channel_id;
|
||||
var id;
|
||||
var object4;
|
||||
const object5 = {channel_id: undefined, message_id: undefined, guild_id: undefined};
|
||||
const object6 = {version: version, variant: variant};
|
||||
const value = language != null;
|
||||
object6.language = value ? language : 'en';
|
||||
object6.breadcrumbs = a2.map(function(a0) {
|
||||
return a0.nodeRef;
|
||||
});
|
||||
object6.elements = a2.reduce(_fun65429, {});
|
||||
const name = a1.name;
|
||||
const ModeratorReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ModeratorReportNames;
|
||||
const MESSAGE = ModeratorReportNames.MESSAGE;
|
||||
if (name === MESSAGE) {
|
||||
record = a1.record;
|
||||
channel_id = record.channel_id;
|
||||
id = record.id;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object6, value);
|
||||
copyDataProperties(object4, object5, value);
|
||||
object4['name'] = a1.name;
|
||||
object4['channel_id'] = channel_id;
|
||||
object4['message_id'] = id;
|
||||
return object4;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function genSubmitData({version, variant, language}, a1, a2, a3) { // fn#65431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:3944, offset: 0x01bcf228, size: 1623 bytes, params: 5, frame: 20
|
||||
var r0;
|
||||
var require2;
|
||||
var require3;
|
||||
const UnauthenticatedReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).UnauthenticatedReportNames;
|
||||
var object15;
|
||||
var object16;
|
||||
var object17;
|
||||
var record;
|
||||
var id;
|
||||
var object18;
|
||||
var object19;
|
||||
var object20;
|
||||
var object21;
|
||||
var guild_id;
|
||||
var object22;
|
||||
var channel_id;
|
||||
var object23;
|
||||
var guildId;
|
||||
var channelId;
|
||||
var object24;
|
||||
var object25;
|
||||
var object26;
|
||||
const object27 = {channel_id: undefined, message_id: undefined, stage_instance_id: undefined, guild_id: undefined,
|
||||
guild_scheduled_event_id: undefined, user_id: undefined, email_token: undefined, application_id: undefined,
|
||||
entrypoint: undefined, widget_id: undefined};
|
||||
const object28 = {version: version, variant: variant};
|
||||
object28.language = language ?? 'en';
|
||||
object28.breadcrumbs = a2.map(function(a0) {
|
||||
return a0.nodeRef;
|
||||
});
|
||||
object28.elements = a2.reduce(_fun65433, {});
|
||||
let name = a1.name;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
const MESSAGE = ReportNames.MESSAGE;
|
||||
if (name === MESSAGE) {
|
||||
require3 = require;
|
||||
record = a1.record;
|
||||
channel_id = record.channel_id;
|
||||
id = record.id;
|
||||
object26 = {};
|
||||
copyDataProperties(object26, object28, require3);
|
||||
copyDataProperties(object26, object27, require3);
|
||||
object26['name'] = a1.name;
|
||||
object26['channel_id'] = channel_id;
|
||||
object26['message_id'] = id;
|
||||
return object26;
|
||||
}
|
||||
name = a1.name;
|
||||
const FIRST_DM = ReportNames.FIRST_DM;
|
||||
if (name === FIRST_DM) {
|
||||
require3 = require;
|
||||
record = a1.record;
|
||||
channel_id = record.channel_id;
|
||||
id = record.id;
|
||||
object26 = {};
|
||||
copyDataProperties(object26, object28, require3);
|
||||
copyDataProperties(object26, object27, require3);
|
||||
object26['name'] = a1.name;
|
||||
object26['channel_id'] = channel_id;
|
||||
object26['message_id'] = id;
|
||||
return object26;
|
||||
}
|
||||
name = a1.name;
|
||||
const GUILD = ReportNames.GUILD;
|
||||
if (name === GUILD) {
|
||||
require2 = require;
|
||||
id = a1.record.id;
|
||||
object25 = {};
|
||||
copyDataProperties(object25, object28, require2);
|
||||
copyDataProperties(object25, object27, require2);
|
||||
object25['name'] = a1.name;
|
||||
object25['guild_id'] = id;
|
||||
return object25;
|
||||
}
|
||||
name = a1.name;
|
||||
const GUILD_DISCOVERY = ReportNames.GUILD_DISCOVERY;
|
||||
if (name === GUILD_DISCOVERY) {
|
||||
require2 = require;
|
||||
id = a1.record.id;
|
||||
object25 = {};
|
||||
copyDataProperties(object25, object28, require2);
|
||||
copyDataProperties(object25, object27, require2);
|
||||
object25['name'] = a1.name;
|
||||
object25['guild_id'] = id;
|
||||
return object25;
|
||||
}
|
||||
name = a1.name;
|
||||
const GUILD_DIRECTORY_ENTRY = ReportNames.GUILD_DIRECTORY_ENTRY;
|
||||
if (name === GUILD_DIRECTORY_ENTRY) {
|
||||
record = a1.record;
|
||||
guildId = record.guildId;
|
||||
channelId = record.channelId;
|
||||
object24 = {};
|
||||
copyDataProperties(object24, object28, require);
|
||||
copyDataProperties(object24, object27, require);
|
||||
object24['name'] = a1.name;
|
||||
object24['channel_id'] = channelId;
|
||||
object24['guild_id'] = guildId;
|
||||
return object24;
|
||||
}
|
||||
name = a1.name;
|
||||
const STAGE_CHANNEL = ReportNames.STAGE_CHANNEL;
|
||||
if (name === STAGE_CHANNEL) {
|
||||
record = a1.record;
|
||||
id = record.id;
|
||||
guild_id = record.guild_id;
|
||||
channel_id = record.channel_id;
|
||||
object23 = {};
|
||||
copyDataProperties(object23, object28, require);
|
||||
copyDataProperties(object23, object27, require);
|
||||
object23['name'] = a1.name;
|
||||
object23['channel_id'] = channel_id;
|
||||
object23['guild_id'] = guild_id;
|
||||
object23['stage_instance_id'] = id;
|
||||
return object23;
|
||||
}
|
||||
name = a1.name;
|
||||
const GUILD_SCHEDULED_EVENT = ReportNames.GUILD_SCHEDULED_EVENT;
|
||||
if (name === GUILD_SCHEDULED_EVENT) {
|
||||
record = a1.record;
|
||||
id = record.id;
|
||||
guild_id = record.guild_id;
|
||||
object22 = {};
|
||||
copyDataProperties(object22, object28, require);
|
||||
copyDataProperties(object22, object27, require);
|
||||
object22['name'] = a1.name;
|
||||
object22['guild_id'] = guild_id;
|
||||
object22['guild_scheduled_event_id'] = id;
|
||||
return object22;
|
||||
}
|
||||
name = a1.name;
|
||||
const USER = ReportNames.USER;
|
||||
if (name === USER) {
|
||||
object21 = {};
|
||||
copyDataProperties(object21, object28, require);
|
||||
copyDataProperties(object21, object27, require);
|
||||
object21['name'] = a1.name;
|
||||
object21['user_id'] = a1.record.id;
|
||||
object21['guild_id'] = a1.contextualGuildId;
|
||||
r0 = object21;
|
||||
} else if (a1.name === UnauthenticatedReportNames.USER) {
|
||||
object20 = {};
|
||||
copyDataProperties(object20, object28, require);
|
||||
copyDataProperties(object20, object27, require);
|
||||
object20['name'] = a1.name;
|
||||
object20['user_id'] = a1.record.id;
|
||||
object20['guild_id'] = a1.contextualGuildId;
|
||||
object20['email_token'] = a3;
|
||||
r0 = object20;
|
||||
} else if (a1.name === UnauthenticatedReportNames.MESSAGE) {
|
||||
object19 = {};
|
||||
copyDataProperties(object19, object28, require);
|
||||
copyDataProperties(object19, object27, require);
|
||||
object19['name'] = a1.name;
|
||||
object19['message_id'] = a1.record.id;
|
||||
object19['email_token'] = a3;
|
||||
r0 = object19;
|
||||
} else if (a1.name === UnauthenticatedReportNames.GUILD) {
|
||||
object18 = {};
|
||||
copyDataProperties(object18, object28, require);
|
||||
copyDataProperties(object18, object27, require);
|
||||
object18['name'] = a1.name;
|
||||
object18['guild_id'] = a1.record.id;
|
||||
object18['email_token'] = a3;
|
||||
r0 = object18;
|
||||
} else if (a1.name === ReportNames.APPLICATION) {
|
||||
object17 = {};
|
||||
copyDataProperties(object17, object28, require);
|
||||
copyDataProperties(object17, object27, require);
|
||||
object17['name'] = a1.name;
|
||||
object17['application_id'] = a1.record.id;
|
||||
object17['guild_id'] = a1.contextualGuildId;
|
||||
object17['channel_id'] = a1.contextualChannelId;
|
||||
object17['entrypoint'] = a1.entrypoint;
|
||||
r0 = object17;
|
||||
} else if (a1.name === ReportNames.WIDGET) {
|
||||
object16 = {};
|
||||
copyDataProperties(object16, object28, require);
|
||||
copyDataProperties(object16, object27, require);
|
||||
object16['name'] = a1.name;
|
||||
object16['user_id'] = a1.user_id;
|
||||
object16['widget_id'] = a1.widget_id;
|
||||
r0 = object16;
|
||||
} else if (a1.name !== UnauthenticatedReportNames.MEDIA_TAKEDOWN) {
|
||||
r0 = null;
|
||||
} else {
|
||||
object15 = {};
|
||||
copyDataProperties(object15, object28, require);
|
||||
copyDataProperties(object15, object27, require);
|
||||
object15['name'] = a1.name;
|
||||
object15['email_token'] = a3;
|
||||
r0 = object15;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function submitReport(a0, a1, a2) { // fn#65438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:6892, offset: 0x01bcf917, size: 214 bytes, params: 4, frame: 21
|
||||
var r0;
|
||||
var REPORT_TO_MOD;
|
||||
var HTTP;
|
||||
var post;
|
||||
var object2;
|
||||
const get = DevSettingsStore.get;
|
||||
if (Reflect.apply(get, DevSettingsStore, ['iar_skip_api_report_submit'])) {
|
||||
r0 = global.Promise.resolve();
|
||||
} else {
|
||||
REPORT_TO_MOD = (require(8156) /* metro dependency 8156: ReportMenuType */).ReportMenuTypeSets.REPORT_TO_MOD;
|
||||
if (REPORT_TO_MOD.has(a1.name)) {
|
||||
r0 = submitModeratorReport(a0, a1, a2);
|
||||
} else {
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
post = HTTP.post;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.SUBMIT_REPORT_MENU(getReportNameSafely(a1));
|
||||
object2.body = genSubmitData(a0, a1, a2);
|
||||
object2.rejectWithError = false;
|
||||
r0 = Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function submitUnauthenticatedReport(a0, a1, a2, a3) { // fn#65441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:7661, offset: 0x01bcfb0e, size: 150 bytes, params: 5, frame: 20
|
||||
const get = DevSettingsStore.get;
|
||||
if (Reflect.apply(get, DevSettingsStore, ['iar_skip_api_report_submit'])) {
|
||||
return global.Promise.resolve();
|
||||
}
|
||||
const unauthenticatedReportNameSafely = getUnauthenticatedReportNameSafely(a1);
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const post = HTTP.post;
|
||||
const object2 = {};
|
||||
object2.url = Endpoints.SUBMIT_UNAUTHENTICATED_REPORT_MENU(unauthenticatedReportNameSafely);
|
||||
object2.body = genSubmitData(a0, a1, a2, a3);
|
||||
object2.rejectWithError = true;
|
||||
return Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
|
||||
function sendUnauthenticatedReportPincode(a0, a1) { // fn#65442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:7970, offset: 0x01bcfba4, size: 137 bytes, params: 3, frame: 20
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const post = HTTP.post;
|
||||
const object2 = {};
|
||||
object2.url = '' + Endpoints.SEND_UNAUTHENTICATED_REPORT_PINCODE(a0) + '?b=' + clientCacheBucket(a1);
|
||||
object2.body = {name: a0, email: a1};
|
||||
object2.rejectWithError = false;
|
||||
object2.failImmediatelyWhenRateLimited = true;
|
||||
return Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
|
||||
function trackCloseReportModalAnalytics(a0, a1, a2) { // fn#65447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:8915, offset: 0x01bcfc2d, size: 647 bytes, params: 4, frame: 20
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const IAR_MODAL_CLOSE = AnalyticEvents.IAR_MODAL_CLOSE;
|
||||
const object2 = {};
|
||||
let name = a0.name;
|
||||
object2.report_type = name;
|
||||
object2.report_id = a2;
|
||||
object2.navigation_history = a1;
|
||||
name = a0.name;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
const MESSAGE = ReportNames.MESSAGE;
|
||||
object2.message_id = name === MESSAGE ? a0.record.id : a0.name !== ReportNames.FIRST_DM ? value2 : a0.record.id;
|
||||
name = a0.name;
|
||||
const STAGE_CHANNEL = ReportNames.STAGE_CHANNEL;
|
||||
object2.stage_instance_id = name !== STAGE_CHANNEL ? value2 : a0.record.id;
|
||||
name = a0.name;
|
||||
let GUILD_SCHEDULED_EVENT = ReportNames.GUILD_SCHEDULED_EVENT;
|
||||
object2.guild_scheduled_event_id = name !== GUILD_SCHEDULED_EVENT ? value2 : a0.record.id;
|
||||
name = a0.name;
|
||||
const GUILD = ReportNames.GUILD;
|
||||
object2.guild_id = name === GUILD || a0.name === ReportNames.GUILD_DISCOVERY ? a0.record.id : a0.name === ReportNames.GUILD_DIRECTORY_ENTRY ? a0.record.guildId : a0.name !== ReportNames.GUILD_SCHEDULED_EVENT ? value2 : a0.record.guild_id;
|
||||
name = a0.name;
|
||||
GUILD_SCHEDULED_EVENT = ReportNames.GUILD_SCHEDULED_EVENT;
|
||||
object2.channel_id = name === GUILD_SCHEDULED_EVENT ? a0.record.channel_id : a0.name !== ReportNames.GUILD_DIRECTORY_ENTRY ? value2 : a0.record.channelId;
|
||||
name = a0.name;
|
||||
const APPLICATION = ReportNames.APPLICATION;
|
||||
object2.application_id = name !== APPLICATION ? value2 : a0.record.id;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [IAR_MODAL_CLOSE, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function showInAppReportsFeedbackModal({name}, a1) { // fn#65448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:9868, offset: 0x01bcfeb4, size: 70 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'IN_APP_REPORTS_SHOW_FEEDBACK',
|
||||
reportId: a1, reportType: name});
|
||||
}
|
||||
|
||||
function areRequiredElementsUnfilled({freeTextElements, dropdownElements, countrySelectElement, radioGroupElements, multiSelectElement, contentUrlInputElement}, {textInput, multiSelect}) { // fn#65449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:10029, offset: 0x01bcfefa, size: 424 bytes, params: 3, frame: 21
|
||||
var r8;
|
||||
var r3;
|
||||
var r2;
|
||||
var r1;
|
||||
var r4;
|
||||
var value2;
|
||||
var property;
|
||||
var value3;
|
||||
var value4;
|
||||
var value8;
|
||||
let value = freeTextElements.some(_fun65450);
|
||||
let r0 = value || dropdownElements.some(_fun65451);
|
||||
if (!r0) {
|
||||
value = undefined;
|
||||
value2 = (countrySelectElement == null ? value : countrySelectElement.should_submit_data) === true;
|
||||
if (value2) {
|
||||
r8 = textInput == null ? value : textInput[countrySelectElement.name];
|
||||
value3 = r8 == null;
|
||||
if (value3) {
|
||||
r8 = value3;
|
||||
} else {
|
||||
value = (textInput == null ? value : textInput[countrySelectElement.name].value) === '';
|
||||
r8 = value;
|
||||
}
|
||||
r3 = r8;
|
||||
} else {
|
||||
r3 = value2;
|
||||
}
|
||||
r0 = r3;
|
||||
}
|
||||
r0 = !r0 ? radioGroupElements.some(_fun65452) : r0;
|
||||
if (!r0) {
|
||||
value = undefined;
|
||||
value = (multiSelectElement == null ? value : multiSelectElement.should_submit_data) === true;
|
||||
r0 = value && (multiSelect == null || global.Object.keys(multiSelect).length === 0);
|
||||
}
|
||||
if (!r0) {
|
||||
value = undefined;
|
||||
value4 = (contentUrlInputElement == null ? value : contentUrlInputElement.should_submit_data) === true;
|
||||
if (value4) {
|
||||
r2 = textInput == null ? value : textInput[contentUrlInputElement.name];
|
||||
r2 = r2 == null || (textInput == null ? value : textInput[contentUrlInputElement.name].value) === '';
|
||||
if (!r2) {
|
||||
value8 = textInput != null;
|
||||
if (value8) {
|
||||
property = textInput[contentUrlInputElement.name];
|
||||
r3 = property != null;
|
||||
r4 = property;
|
||||
} else {
|
||||
r3 = value8;
|
||||
r4 = value;
|
||||
}
|
||||
r3 = r3 && r4.isValid;
|
||||
value = !r3;
|
||||
r2 = value;
|
||||
}
|
||||
r1 = r2;
|
||||
} else {
|
||||
r1 = value4;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useTrackSettingsUpsellsAction(a0, a1, a2) { // fn#65453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:11091, offset: 0x01bd019d, size: 64 bytes, params: 4, frame: 16
|
||||
let env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
return env0_4.useCallback(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun65455;
|
||||
}, [a2, a0, a1]);
|
||||
}
|
||||
|
||||
function* _fun65400(a0, a1) { // fn#65400, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:318, offset: 0x01bce764, size: 188 bytes, params: 3, frame: 17
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = undefined;
|
||||
const value4 = env2_22(a0);
|
||||
const HTTP = env2_0(env2_2[5]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {};
|
||||
object2.url = env2_7.GET_REPORT_MENU(value4);
|
||||
object2.query = (a1 == null ? value3 : a1.variant) != null ? {variant: a1.variant} : value3;
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body ?? global.JSON.parse(value.text);
|
||||
}
|
||||
|
||||
function* _fun65403(a0, a1) { // fn#65403, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:660, offset: 0x01bce859, size: 188 bytes, params: 3, frame: 17
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = undefined;
|
||||
const value4 = env2_23(a0);
|
||||
const HTTP = env2_0(env2_2[5]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {};
|
||||
object2.url = env2_7.GET_REPORT_MENU(value4);
|
||||
object2.query = (a1 == null ? value3 : a1.variant) != null ? {variant: a1.variant} : value3;
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body ?? global.JSON.parse(value.text);
|
||||
}
|
||||
|
||||
function* _fun65406(a0, a1) { // fn#65406, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:1005, offset: 0x01bce94e, size: 188 bytes, params: 3, frame: 17
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = undefined;
|
||||
const value4 = env2_21(a0);
|
||||
const HTTP = env2_0(env2_2[5]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {};
|
||||
object2.url = env2_7.GET_UNAUTHENTICATED_REPORT_MENU(value4);
|
||||
object2.query = (a1 == null ? value3 : a1.variant) != null ? {variant: a1.variant} : value3;
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body ?? global.JSON.parse(value.text);
|
||||
}
|
||||
|
||||
function* _fun65409(a0, a1) { // fn#65409, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:1356, offset: 0x01bcea43, size: 199 bytes, params: 3, frame: 21
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var value3 = env2_22(a0);
|
||||
yield env2_11(a0, a1);
|
||||
var value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
var HTTP = env2_0(env2_2[5]).HTTP;
|
||||
var post = HTTP.post;
|
||||
var object2 = {};
|
||||
object2.url = env2_7.SUBMIT_REPORT_MENU(value3);
|
||||
object2.body = env2_10(value4, a0, [{nodeRef: value4.root_node_id, destination: ['', value4.success_node_id]}]);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun65413(a0, a1, a2) { // fn#65413, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:1812, offset: 0x01bceb9e, size: 127 bytes, params: 4, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[5]).HTTP;
|
||||
const post = HTTP.post;
|
||||
const object2 = {};
|
||||
object2.url = env2_7.VERIFY_UNAUTHENTICATED_REPORT(a0);
|
||||
object2.body = {name: a0, email: a1, code: a2};
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body;
|
||||
}
|
||||
|
||||
function* _fun65416() { // fn#65416, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2039, offset: 0x01bcec56, size: 88 bytes, params: 1, frame: 13
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[5]).HTTP;
|
||||
var get = HTTP.get;
|
||||
var DSA_EXPERIMENT_UNAUTHENTICATED = env2_7.DSA_EXPERIMENT_UNAUTHENTICATED;
|
||||
yield Reflect.apply(get, HTTP, [{url: DSA_EXPERIMENT_UNAUTHENTICATED, rejectWithError: false}]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun65419() { // fn#65419, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2231, offset: 0x01bcece7, size: 88 bytes, params: 1, frame: 13
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[5]).HTTP;
|
||||
var get = HTTP.get;
|
||||
var DSA_CAPABILITIES = env2_7.DSA_CAPABILITIES;
|
||||
yield Reflect.apply(get, HTTP, [{url: DSA_CAPABILITIES, rejectWithError: false}]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun65422(a0) { // fn#65422, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:2413, offset: 0x01bced78, size: 108 bytes, params: 2, frame: 14
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[5]).HTTP;
|
||||
const post = HTTP.post;
|
||||
const SUBMIT_REPORT_SECOND_LOOK = env2_7.SUBMIT_REPORT_SECOND_LOOK;
|
||||
yield Reflect.apply(post, HTTP, [{url: SUBMIT_REPORT_SECOND_LOOK, body: {token: a0}, rejectWithError: false}]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body;
|
||||
}
|
||||
|
||||
function _fun65429(a0, {multiSelect, textInput}) { // fn#65429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:3585, offset: 0x01bcf124, size: 152 bytes, params: 3, frame: 18
|
||||
var r8;
|
||||
var r1;
|
||||
var name;
|
||||
var Object;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, r8);
|
||||
let value = multiSelect != null;
|
||||
if (value) {
|
||||
name = multiSelect.name;
|
||||
Object = global.Object;
|
||||
r1 = {[name]: Object.keys(multiSelect.state)};
|
||||
r8 = Object;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
copyDataProperties(object2, r1, r8);
|
||||
Object = global.Object;
|
||||
const fromEntries = Object.fromEntries;
|
||||
const Object2 = global.Object;
|
||||
value = Object2.entries(textInput ?? ({}));
|
||||
copyDataProperties(object2, Reflect.apply(fromEntries, Object, [value.map(function(a0) {
|
||||
var r1;
|
||||
var r2;
|
||||
var r52;
|
||||
var item3;
|
||||
var value3;
|
||||
var value4;
|
||||
var error;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var value = undefined;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value2 = item2 === value;
|
||||
var r5 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r52 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r52 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r52 = item;
|
||||
}
|
||||
}
|
||||
try {
|
||||
value4 = r52.value;
|
||||
} catch (error) {
|
||||
if (!r2) {
|
||||
try {
|
||||
r1.return();
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return [r5, value4];
|
||||
})]), r8);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun65433(a0, {multiSelect, textInput}) { // fn#65433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:4301, offset: 0x01bcf87f, size: 152 bytes, params: 3, frame: 18
|
||||
var r8;
|
||||
var r1;
|
||||
var name;
|
||||
var Object;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, r8);
|
||||
let value = multiSelect != null;
|
||||
if (value) {
|
||||
name = multiSelect.name;
|
||||
Object = global.Object;
|
||||
r1 = {[name]: Object.keys(multiSelect.state)};
|
||||
r8 = Object;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
copyDataProperties(object2, r1, r8);
|
||||
Object = global.Object;
|
||||
const fromEntries = Object.fromEntries;
|
||||
const Object2 = global.Object;
|
||||
value = Object2.entries(textInput ?? ({}));
|
||||
copyDataProperties(object2, Reflect.apply(fromEntries, Object, [value.map(function(a0) {
|
||||
var r1;
|
||||
var r2;
|
||||
var r52;
|
||||
var item3;
|
||||
var value3;
|
||||
var value4;
|
||||
var error;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var value = undefined;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value2 = item2 === value;
|
||||
var r5 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r52 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r52 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r52 = item;
|
||||
}
|
||||
}
|
||||
try {
|
||||
value4 = r52.value;
|
||||
} catch (error) {
|
||||
if (!r2) {
|
||||
try {
|
||||
r1.return();
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return [r5, value4];
|
||||
})]), r8);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function submitModeratorReport(a0, a1, a2) { // fn#65439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:7035, owner: submitReport.submitModeratorReport, offset: 0x01bcf9ed, size: 109 bytes, params: 4, frame: 18
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const value2 = genModeratorSubmitdata(a0, a1, a2);
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const post = HTTP.post;
|
||||
const object2 = {};
|
||||
object2.url = getModeratorReportEndpointSafely(a1);
|
||||
object2.body = value2;
|
||||
object2.rejectWithError = false;
|
||||
return Reflect.apply(post, HTTP, [object2]).then(_fun65440);
|
||||
}
|
||||
|
||||
function _fun65450(a0) { // fn#65450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:10262, offset: 0x01bd00a2, size: 151 bytes, params: 2, frame: 9
|
||||
var r1;
|
||||
var r2;
|
||||
var r3;
|
||||
var r0;
|
||||
var textInputBinding;
|
||||
var value2;
|
||||
var property;
|
||||
var value6;
|
||||
const value = a0.should_submit_data === true;
|
||||
if (value) {
|
||||
textInputBinding = textInput;
|
||||
value2 = undefined;
|
||||
r1 = textInputBinding == null ? value2 : textInput[a0.name];
|
||||
r1 = r1 == null || (textInput == null ? value2 : textInput[a0.name].value) === '';
|
||||
if (!r1) {
|
||||
value6 = textInput != null;
|
||||
if (value6) {
|
||||
property = textInput[a0.name];
|
||||
r2 = property != null;
|
||||
r3 = property;
|
||||
} else {
|
||||
r2 = value6;
|
||||
r3 = value2;
|
||||
}
|
||||
r2 = r2 && r3.isValid;
|
||||
r1 = !r2;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun65451(a0) { // fn#65451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:10435, offset: 0x01bd0139, size: 100 bytes, params: 2, frame: 8
|
||||
var r1;
|
||||
var r0;
|
||||
var textInputBinding;
|
||||
var value2;
|
||||
const value = a0.should_submit_data === true;
|
||||
if (value) {
|
||||
textInputBinding = textInput;
|
||||
value2 = undefined;
|
||||
r1 = textInputBinding == null ? value2 : textInput[a0.name];
|
||||
r1 = r1 == null || (textInput == null ? value2 : textInput[a0.name].value) === '';
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun65454(a0) { // fn#65454, offset: 0x01bd01dd, size: 16 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun65455;
|
||||
}
|
||||
|
||||
function _fun65440(a0) { // fn#65440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:7209, offset: 0x01bcfa5a, size: 180 bytes, params: 2, frame: 15
|
||||
var dispatch;
|
||||
var binding;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
|
||||
const showSuccessToast = defaultImport.showSuccessToast;
|
||||
const REPORT_TO_MOD_SUCCESS = SafetyToastType.REPORT_TO_MOD_SUCCESS;
|
||||
Reflect.apply(showSuccessToast, defaultImport, [REPORT_TO_MOD_SUCCESS]);
|
||||
if ((env0_0 == null ? value2 : env0_0.channel_id) != null && (env0_0 == null ? value2 : env0_0.message_id) != null) {
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
dispatch = value.dispatch;
|
||||
binding = env0_0;
|
||||
Reflect.apply(dispatch, value, [{type: 'REPORT_TO_MOD_REPORT_MESSAGE_SUCCESS', channelId: binding.channel_id,
|
||||
messageId: binding.message_id}]);
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun65455(a0) { // fn#65455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8342:11162, offset: 0x01bd01ed, size: 107 bytes, params: 2, frame: 16
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const IAR_SETTINGS_UPSELLS_ACTION = AnalyticEvents.IAR_SETTINGS_UPSELLS_ACTION;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [IAR_SETTINGS_UPSELLS_ACTION, {report_id: importDefault,
|
||||
report_type: env1_0.name, report_subtype: require, settings_upsells_type: env0_0, action: a0}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 8782; source: modules/in_app_reports/SafetyExperienceIarUserReportingExperiment.tsx; dependencies: [4620, 2] */
|
||||
function _fun68662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8967:6, offset: 0x01c58581, size: 200 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(4620) /* metro dependency 4620: experiments */;
|
||||
value = value.createExperiment({'kind': 'user', 'id': '2023-09_iar_user_reporting',
|
||||
'label': 'Safety Experience IAR User Reporting', defaultConfig: {enabled: false}, treatments: [{'id': 1,
|
||||
'label': 'Enabled', config: {enabled: true}}]});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/SafetyExperienceIarUserReportingExperiment.tsx');
|
||||
exports.default = value;
|
||||
exports.useIsIarUserReportingEnabled = useIsIarUserReportingEnabled;
|
||||
exports.isIarUserReportingEnabled = isIarUserReportingEnabled;
|
||||
}
|
||||
|
||||
function useIsIarUserReportingEnabled(a0) { // fn#68663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8967:452, offset: 0x01c58649, size: 44 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
const useExperiment = binding.useExperiment;
|
||||
return Reflect.apply(useExperiment, binding, [{location: a0}, {autoTrackExposure: true}]).enabled;
|
||||
}
|
||||
|
||||
function isIarUserReportingEnabled(a0) { // fn#68664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8967:590, offset: 0x01c58675, size: 44 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
const getCurrentConfig = binding.getCurrentConfig;
|
||||
return Reflect.apply(getCurrentConfig, binding, [{location: a0}, {autoTrackExposure: true}]).enabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 15708; source: modules/in_app_reports/getInAppReportsFeedbackOptions.tsx; dependencies: [1244, 2] */
|
||||
function _fun120549(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15916:6, offset: 0x0252f75e, size: 146 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/getInAppReportsFeedbackOptions.tsx');
|
||||
exports.default = getInAppReportsFeedbackOptions;
|
||||
exports.InAppReportsFeedbackReasonOption = {COULD_NOT_FIND: "I couldn't find what I was looking for",
|
||||
CONFUSING_LANGUAGE: 'I found the language confusing', OTHER: 'Other'};
|
||||
}
|
||||
|
||||
function getInAppReportsFeedbackOptions() { // fn#120550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15916:353, offset: 0x0252f7f0, size: 242 bytes, params: 1, frame: 18
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const binding = env0_2;
|
||||
const COULD_NOT_FIND = binding.COULD_NOT_FIND;
|
||||
const items2 = [{label: Reflect.apply(string, intl, [t.cigGCe]), code: 2, value: COULD_NOT_FIND}];
|
||||
string = intl.string;
|
||||
const ZyXA0q = t.ZyXA0q;
|
||||
const CONFUSING_LANGUAGE = binding.CONFUSING_LANGUAGE;
|
||||
items2[1] = {label: Reflect.apply(string, intl, [ZyXA0q]), code: 3, value: CONFUSING_LANGUAGE};
|
||||
const OTHER = binding.OTHER;
|
||||
items2[2] = {label: intl.string(t.emlT91), code: 1, value: OTHER};
|
||||
return items2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/* Metro module 8795; source: modules/in_app_reports/native/BotReportChooser.tsx; dependencies: [31, 4234, 33, 6805, 4573, 1244, 6807, 4080, 8153, 566, 6772, 2] */
|
||||
function _fun68783(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8980:6, offset: 0x01c5d0c9, size: 201 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/BotReportChooser.tsx');
|
||||
exports.default = BotReportChooser;
|
||||
exports.BOT_REPORT_CHOOSER_KEY = 'BotReportChooser';
|
||||
}
|
||||
|
||||
function ReportAppProfile({user, contextualGuildId, onSubmit, appContext}) { // fn#68784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8980:162, offset: 0x01c5d192, size: 294 bytes, params: 2, frame: 25
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<ActionSheetRow
|
||||
label={<Text variant="heading-md/semibold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eyEkG1)}</Text>}
|
||||
subLabel={<Text variant="text-xs/medium">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ptItsj)}</Text>}
|
||||
onPress={onPress_68785}
|
||||
arrow
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ReportAppBehavior({user, entrypoint, contextualGuildId, contextualChannelId, onSubmit, appContext}) { // fn#68786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8980:567, offset: 0x01c5d312, size: 398 bytes, params: 2, frame: 26
|
||||
var object2;
|
||||
const appIdForBotUserId = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStore],
|
||||
function() {
|
||||
return ApplicationStore.getAppIdForBotUserId(user.id);
|
||||
});
|
||||
const applicationActionCreatorsModule = require(6772) /* metro dependency 6772: ApplicationActionCreators */;
|
||||
const useApplication = applicationActionCreatorsModule.useApplication;
|
||||
const data = Reflect.apply(useApplication, applicationActionCreatorsModule, [appIdForBotUserId]).data;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
object2 = {};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object2.label = <Text variant="heading-md/semibold">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.atP0yX])}</Text>;
|
||||
string = intl.string;
|
||||
const UGg603 = (require(1244) /* metro dependency 1244: indexNative */).t.UGg603;
|
||||
object2.subLabel = <Text variant="text-xs/medium">{Reflect.apply(string, intl, [UGg603])}</Text>;
|
||||
object2.onPress = onPress_68788;
|
||||
object2.arrow = true;
|
||||
object2.disabled = data == null;
|
||||
return <ActionSheetRow {...object2} />;
|
||||
}
|
||||
|
||||
function BotReportChooser(a0) { // fn#68789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8980:1324, offset: 0x01c5d54e, size: 273 bytes, params: 2, frame: 23
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const object2 = {};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Bd10bR = (require(1244) /* metro dependency 1244: indexNative */).t.Bd10bR;
|
||||
object2.header = <Text style={{textAlign: 'center'}} variant="redesign/heading-18/bold">{Reflect.apply(string, intl,
|
||||
[Bd10bR])}</Text>;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const Group = ActionSheetRow.Group;
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
<Group hasIcons={false}>
|
||||
<ReportAppProfile {...a0} />
|
||||
<ReportAppBehavior {...a0} />
|
||||
</Group>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function ReportAppProfileOnPress() { // fn#68785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8980:483, owner: ReportAppProfile.onPress, offset: 0x01c5d2b8, size: 90 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(env1_6);
|
||||
value = require(8153) /* metro dependency 8153: ReportModals */;
|
||||
value.showReportModalForUser(user, contextualGuildId, onSubmit, appContext);
|
||||
}
|
||||
|
||||
function ReportAppBehaviorOnPress() { // fn#68788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8980:1031, owner: ReportAppBehavior.onPress, offset: 0x01c5d4c0, size: 142 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
if (data != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(env1_6);
|
||||
(require(8153) /* metro dependency 8153: ReportModals */).showReportModalForApp({application: data,
|
||||
entrypoint: entrypoint, contextualGuildId: contextualGuildId, contextualChannelId: contextualChannelId,
|
||||
onSubmit: onSubmit, appContext: appContext});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 8163; source: modules/in_app_reports/native/components/Arrow.tsx; dependencies: [31, 33, 4501, 697, 1305, 8164, 2] */
|
||||
function _fun65522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8348:6, offset: 0x01bd293f, size: 199 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(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{tintColor: {tintColor: INTERACTIVE_TEXT_DEFAULT}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/Arrow.tsx');
|
||||
exports.default = _default_65523;
|
||||
}
|
||||
|
||||
function _default_65523() { // fn#65523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8348:215, offset: 0x01bd2a06, size: 112 bytes, params: 1, frame: 19
|
||||
const styles = useStyles();
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const iconProps = {source: importDefault(8164) /* metro dependency 8164 */};
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const MEDIUM = Sizes.MEDIUM;
|
||||
iconProps.size = MEDIUM;
|
||||
iconProps.style = styles.tintColor;
|
||||
return <Icon {...iconProps} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,174 @@
|
||||
/* Metro module 8158; source: modules/in_app_reports/native/components/InAppReportModal.tsx; dependencies: [5, 57, 31, 8159, 33, 5277, 8160, 1244, 8161, 4594, 5187, 8157, 8155, 5280, 2] */
|
||||
function _fun65456(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:6, offset: 0x01bd0258, size: 203 bytes, params: 8, frame: 19
|
||||
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 */;
|
||||
const env0_6 = (require(8159) /* metro dependency 8159: InAppReportsConstants */).IN_APP_REPORTS_NODE;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportModal.tsx');
|
||||
exports.default = InAppReportModal;
|
||||
}
|
||||
|
||||
function getScreens_65457({nodeMap, reportType, reportSubType, successNodeId, failNodeId, callbacks, reportId}) { // fn#65457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:170, offset: 0x01bd0323, size: 166 bytes, params: 2, frame: 5
|
||||
const env0_6 = callbacks.closeModal;
|
||||
const env0_7 = callbacks.addOnCloseCallback;
|
||||
const env0_8 = callbacks.onSubmit;
|
||||
const env0_9 = callbacks.onNavigate;
|
||||
return {[IN_APP_REPORTS_NODE]: {headerRight: headerRight_65458, headerTitle: function() {
|
||||
return null;
|
||||
}, fullscreen: true, render: render_65460}};
|
||||
}
|
||||
|
||||
function InAppReportModal({reportType, menu, afterSubmit, isEligibleForFeedback}) { // fn#65462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:825, offset: 0x01bd0541, size: 454 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Navigator;
|
||||
var intl;
|
||||
const env0_4 = menu.nodes;
|
||||
const env0_5 = menu.root_node_id;
|
||||
const env0_6 = menu.success_node_id;
|
||||
const env0_7 = menu.fail_node_id;
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [undefined]);
|
||||
const binding2 = env0_4;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_9 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [undefined]), 2);
|
||||
const env0_10 = value4[0];
|
||||
const env0_11 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [[]]), 2);
|
||||
const env0_12 = value5[0];
|
||||
const env0_13 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [[]]), 2);
|
||||
const env0_14 = value6[0];
|
||||
const env0_15 = value6[1];
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun65463);
|
||||
const closure = InAppReportModalCloseModal;
|
||||
const useMemo = binding.useMemo;
|
||||
let object = [closure, property];
|
||||
const {initialStack, screens} = Reflect.apply(useMemo, binding, [_fun65468, object]);
|
||||
if (initialStack == null) {
|
||||
r0 = null;
|
||||
} else if (screens == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
object = {screens: screens, initialRouteStack: initialStack};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
|
||||
r0 = <Navigator {...object} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getScreens_65457HeaderRight() { // fn#65458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:378, owner: getScreens_65457.headerRight, offset: 0x01bd03c9, size: 127 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: closeModal};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function getScreens_65457Render(a0) { // fn#65460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:538, owner: getScreens_65457.render, offset: 0x01bd0448, size: 192 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component {...a0} {...{['nodeMap']: nodeMap}} {...{['reportType']: reportType}} {...{['reportSubType']: reportSubType}} {...{['successNodeId']: successNodeId}} {...{['failNodeId']: failNodeId}} {...{['onSubmit']: renderOnSubmit}} {...{['closeModal']: closeModal}} {...{['addOnCloseCallback']: addOnCloseCallback}} {...{['reportId']: reportId}} {...{['onNavigate']: onNavigate}} />)(importDefault(8161) /* metro dependency 8161: NodeView */);
|
||||
}
|
||||
|
||||
function _fun65463() { // fn#65463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1157, offset: 0x01bd0707, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(require(5187) /* metro dependency 5187: FamilyCenterUtils */).getOrFetchLinkedUsers();
|
||||
}
|
||||
|
||||
function addOnCloseCallback(a0) { // fn#65464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1221, owner: InAppReportModal.addOnCloseCallback, offset: 0x01bd072c, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_15(_fun65465);
|
||||
}
|
||||
|
||||
function InAppReportModalCloseModal() { // fn#65466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1254, owner: InAppReportModal.closeModal, offset: 0x01bd076f, size: 142 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const reportUtilsModule = require(8157) /* metro dependency 8157: ReportUtils */;
|
||||
reportUtilsModule.trackCloseReportModalAnalytics(reportType, env0_12, env0_8);
|
||||
(require(8155) /* metro dependency 8155: showReportModalNative */).hideReportModal();
|
||||
env0_14.forEach(function(a0) {
|
||||
return a0();
|
||||
});
|
||||
if (isEligibleForFeedback) {
|
||||
value = reportUtilsModule;
|
||||
value.showInAppReportsFeedbackModal(reportType, env0_8);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65468() { // fn#65468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1414, offset: 0x01bd07fd, size: 212 bytes, params: 1, frame: 17
|
||||
const property = nodes[root_node_id];
|
||||
if (property == null) {
|
||||
InAppReportModalCloseModal();
|
||||
return {};
|
||||
}
|
||||
const value2 = _fun65469();
|
||||
const object2 = {};
|
||||
object2.initialStack = [{name: IN_APP_REPORTS_NODE, params: {node: property, history: []}}];
|
||||
object2.screens = getScreens_65457({nodeMap: nodes, reportType: reportType, reportSubType: env0_10,
|
||||
successNodeId: success_node_id, failNodeId: fail_node_id, callbacks: {onSubmit: value2,
|
||||
closeModal: InAppReportModalCloseModal, addOnCloseCallback: addOnCloseCallback, onNavigate: onNavigate},
|
||||
reportId: env0_8});
|
||||
return object2;
|
||||
}
|
||||
|
||||
function renderOnSubmit(a0) { // fn#65461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:634, owner: getScreens_65457.render.onSubmit, offset: 0x01bd0508, size: 57 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
const onSubmitBinding = onSubmit;
|
||||
const history = env0_0.history;
|
||||
const items2 = [];
|
||||
value = arraySpread(items2, history, 0, undefined);
|
||||
items2[value] = a0;
|
||||
value + 1;
|
||||
return onSubmitBinding(items2);
|
||||
}
|
||||
|
||||
function _fun65469() { // fn#65469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1470, offset: 0x01bd08d1, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_3(_fun65471);
|
||||
return _fun65472;
|
||||
}
|
||||
|
||||
function onNavigate(a0) { // fn#65473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1963, offset: 0x01bd09b4, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env1_13(_fun65474);
|
||||
}
|
||||
|
||||
function* _fun65471(a0) { // fn#65471, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1490, offset: 0x01bd08fa, size: 186 bytes, params: 2, frame: 19
|
||||
var report_id;
|
||||
let value = undefined;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
var binding = env4_0;
|
||||
value = undefined;
|
||||
var value3 = binding(env4_2[11]);
|
||||
yield value3.submitReport(importDefault, require, a0);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
report_id = value5 == null || value5.body == null ? value : value5.body.report_id;
|
||||
if (report_id != null) {
|
||||
env3_9(report_id);
|
||||
}
|
||||
var property = a0[a0.length - 1];
|
||||
binding = env3_11;
|
||||
binding(env3_4[property.nodeRef].report_type);
|
||||
if (dependencyMap != null) {
|
||||
dependencyMap();
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/* Metro module 10624; source: modules/in_app_reports/native/components/InAppReportsBlockUserElement.tsx; dependencies: [31, 1379, 3793, 661, 33, 566, 4617, 4863, 8783, 6264, 10622, 1244, 10625, 2] */
|
||||
function _fun81800(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10810:6, offset: 0x01edf7b9, size: 196 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 channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsBlockUserElement.tsx');
|
||||
exports.default = BlockUserElement;
|
||||
}
|
||||
|
||||
function BlockUserElement({user, channelId, reportId}) { // fn#81801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10810:283, offset: 0x01edf87d, size: 491 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var InAppReportsUpsellsTableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let object = [RelationshipStore];
|
||||
const value2 = Reflect.apply(useStateFromStores, fluxModule, [object, function() {
|
||||
return RelationshipStore.isBlocked(user.id);
|
||||
}, [user]]);
|
||||
const value3 = fluxModule.useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}, [channelId]);
|
||||
const binding = value3;
|
||||
const value4 = binding.useMemo(_fun81804, [value3, user]);
|
||||
if (user == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
InAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
object = {};
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = t['Q1o/f3'];
|
||||
object.title = Reflect.apply(formatToPlainString, intl, [property, {username: value4}]);
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = t['kA0S/d'];
|
||||
object.disabledTitle = Reflect.apply(formatToPlainString, intl, [property, {username: value4}]);
|
||||
object.description = intl.string(t.G08MKu);
|
||||
object.disabled = value2;
|
||||
object.variant = 'danger';
|
||||
object.onPress = binding.useCallback(_fun81805, [user, reportId, channelId]);
|
||||
object.icon = ((DenyIcon) => <DenyIcon color="text-feedback-critical" />)((require(10625) /* metro dependency 10625: DenyIcon */).DenyIcon);
|
||||
r0 = <InAppReportsUpsellsTableRow {...object} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun81805() { // fn#81805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10810:575, offset: 0x01edfa88, size: 151 bytes, params: 1, frame: 19
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const IAR_BLOCK_USER_BUTTON_CLICKED = AnalyticEvents.IAR_BLOCK_USER_BUTTON_CLICKED;
|
||||
const userBinding = user;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [IAR_BLOCK_USER_BUTTON_CLICKED, {other_user_id: userBinding.id,
|
||||
report_id: reportId}]);
|
||||
const defaultImport2 = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
|
||||
defaultImport2.blockUser(userBinding.id, {location: 'ReportMenuBlockUser-iOS'});
|
||||
const defaultImport3 = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
|
||||
defaultImport3.showBlockSuccessToast(userBinding.id, channelId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 10640; source: modules/in_app_reports/native/components/InAppReportsBottomButton.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 1244, 2324, 4573, 4578, 1305, 2] */
|
||||
function _fun81863(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10826:6, offset: 0x01ee1eb3, size: 369 bytes, params: 8, frame: 23
|
||||
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;
|
||||
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'flex': 0, 'alignSelf': 'stretch', 'paddingBottom': 12}};
|
||||
object2.paddingHorizontal = {paddingHorizontal: 16};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.divider = {'height': 1, 'alignSelf': 'stretch', 'backgroundColor': null, 'marginBottom': 16,
|
||||
backgroundColor: BORDER_SUBTLE};
|
||||
object2.descriptionText = {'lineHeight': 16, 'textAlign': 'center', 'marginBottom': 12};
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object2.errorText = {'color': null, 'fontSize': 12, 'lineHeight': 16, 'fontFamily': null, 'textAlign': 'center',
|
||||
'marginTop': 12, color: RED_400, fontFamily: PRIMARY_SEMIBOLD};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsBottomButton.tsx');
|
||||
exports.default = InAppReportsBottomButton;
|
||||
}
|
||||
|
||||
function InAppReportsBottomButton({button, onPress, disabled, hasError, isModeratorReport}) { // fn#81864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10826:705, offset: 0x01ee2024, size: 828 bytes, params: 2, frame: 30
|
||||
var r2;
|
||||
var r5;
|
||||
var r15;
|
||||
var r16;
|
||||
var r19;
|
||||
var value5;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
const styles = useStyles();
|
||||
if (button == null) {
|
||||
return null;
|
||||
}
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (button.type === 'submit') {
|
||||
string = intl.string;
|
||||
if (isModeratorReport) {
|
||||
r2 = Reflect.apply(string, intl,
|
||||
[(importDefault(2324) /* metro dependency 2324: ReportToModMessages */).ZUyreS]);
|
||||
r5 = undefined;
|
||||
} else {
|
||||
value8 = Reflect.apply(string, intl, [t['G+vU89']]);
|
||||
value9 = intl.format(t.Q0tSKT, {});
|
||||
r2 = value8;
|
||||
r5 = value9;
|
||||
}
|
||||
r15 = 'destructive';
|
||||
r16 = r2;
|
||||
r19 = r5;
|
||||
} else if (button.type === 'next') {
|
||||
value7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN);
|
||||
r15 = undefined;
|
||||
r16 = value7;
|
||||
r19 = undefined;
|
||||
} else if (button.type !== 'cancel') {
|
||||
r15 = undefined;
|
||||
r16 = Reflect.apply(string, intl, [t.i4jeWR]);
|
||||
r19 = undefined;
|
||||
} else {
|
||||
value5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
||||
r15 = 'secondary';
|
||||
r16 = value5;
|
||||
r19 = undefined;
|
||||
}
|
||||
string = intl.string;
|
||||
const r12 = isModeratorReport ? Reflect.apply(string, intl,
|
||||
[(importDefault(2324) /* metro dependency 2324: ReportToModMessages */).psKFdJ]) : Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.h6D8Vy]);
|
||||
const view = <View style={styles.divider} />;
|
||||
const items2 = [r19 != null ? ((Text) => <Text style={styles.descriptionText} variant="text-xs/medium" color="text-default">{r19}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : null];
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[1] = <Button disabled={disabled} onPress={function() {
|
||||
return onPress(button);
|
||||
}} text={r16} variant={r15} />;
|
||||
items2[2] = hasError ? ((LegacyText) => <LegacyText style={styles.errorText}>{r12}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText) : null;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<View style={styles.paddingHorizontal}>
|
||||
{items2}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 10619; source: modules/in_app_reports/native/components/InAppReportsBreadCrumbs.tsx; dependencies: [31, 27, 33, 4501, 697, 22, 4573, 8156, 1244, 2324, 2] */
|
||||
function _fun81780(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10805:6, offset: 0x01ede8f4, size: 359 bytes, params: 8, frame: 22
|
||||
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(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'flex': 0, 'alignSelf': 'stretch', 'marginBottom': 16, 'paddingHorizontal': 16},
|
||||
title: {'lineHeight': 16, 'marginBottom': 8}, breadCrumbItemContainer: {'flexDirection': 'row',
|
||||
'justifyContent': 'flex-start', 'marginBottom': 8, 'marginEnd': 32, 'overflow': 'visible'}};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object2.breadCrumbDot = {'marginStart': 2, 'marginTop': 8, 'width': 4, 'height': 4, 'borderRadius': 2,
|
||||
backgroundColor: BACKGROUND_BRAND};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object2.breadCrumbBar = {'position': 'absolute', 'width': 2, 'top': 10, 'bottom': -12, 'left': 3,
|
||||
backgroundColor: BACKGROUND_BASE_LOWEST};
|
||||
object2.breadCrumbText = {'marginStart': 8, 'lineHeight': 20};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsBreadCrumbs.tsx');
|
||||
exports.default = Breadcrumbs;
|
||||
}
|
||||
|
||||
function Breadcrumbs(a0) { // fn#81781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10805:809, offset: 0x01edea5b, size: 421 bytes, params: 2, frame: 28
|
||||
var r1;
|
||||
var Text;
|
||||
var intl;
|
||||
var string;
|
||||
const element = a0.element;
|
||||
const menuName = a0.menuName;
|
||||
let value = null;
|
||||
const value2 = Object.create(value);
|
||||
value2.element = 0;
|
||||
value2.menuName = 0;
|
||||
const value3 = copyDataProperties({}, a0, value2, undefined);
|
||||
const styles = useStyles();
|
||||
if (value == element) {
|
||||
return value;
|
||||
}
|
||||
if (element.type !== 'breadcrumbs') {
|
||||
return value;
|
||||
}
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const value6 = defaultImport.flatMap(value3.history, _fun81782).filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
if (value6.length === 0) {
|
||||
r1 = value;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var textProps = {'style': null, 'accessibilityRole': 'header', 'variant': 'text-xs/bold', style: styles.title};
|
||||
value = (require(8156) /* metro dependency 8156: ReportMenuType */).ReportMenuTypeSets.REPORT_TO_MOD.has(menuName);
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
string = intl.string;
|
||||
value = <Text {...textProps}>{value ? Reflect.apply(string, intl,
|
||||
[(importDefault(2324) /* metro dependency 2324: ReportToModMessages */)['6mx/DP']]) : Reflect.apply(string,
|
||||
intl, [(require(1244) /* metro dependency 1244: indexNative */).t['+3V9Tp']])}</Text>;
|
||||
value = <View {...viewBindingProps}>{[value, value6.map(_fun81784)]}</View>;
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function _fun81782({destination, multiSelect}) { // fn#81782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10805:949, offset: 0x01edec00, size: 146 bytes, params: 2, frame: 16
|
||||
const iterator = destination[Symbol.iterator]();
|
||||
let item2 = iterator.next();
|
||||
const item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
let value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (!value2) {
|
||||
item2.return();
|
||||
}
|
||||
const items2 = [null, null];
|
||||
const Object = global.Object;
|
||||
value = Object.values((multiSelect == null ? value : multiSelect.state) ?? ({}));
|
||||
if (value.length > 0) {
|
||||
items2[0] = value.join(', ');
|
||||
}
|
||||
if (r2 !== '') {
|
||||
items2[1] = r2;
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun81784(a0, a1) { // fn#81784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10805:1426, offset: 0x01edec92, size: 242 bytes, params: 3, frame: 22
|
||||
const items2 = [a1 === env0_1.length - 1 ? null : <View style={styles.breadCrumbBar} />];
|
||||
stylesBinding = styles;
|
||||
items2[1] = <View style={stylesBinding.breadCrumbDot} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <Text lineClamp={2} ellipsizeMode="tail" style={stylesBinding.breadCrumbText} variant="text-md/medium">{a0}</Text>;
|
||||
return (
|
||||
<View style={styles.breadCrumbItemContainer} key={'' + a0 + '+' + a1}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Metro module 10615; source: modules/in_app_reports/native/components/InAppReportsChannelPreview.tsx; dependencies: [31, 27, 1867, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 2] */
|
||||
function _fun81769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10801:6, offset: 0x01eddb52, size: 384 bytes, params: 8, frame: 22
|
||||
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;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'alignSelf': 'stretch', 'marginHorizontal': 16, 'marginBottom': 16}};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.title = {'lineHeight': 16, 'marginBottom': 8};
|
||||
const object4 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.itemContainer = object4;
|
||||
object2.guildInfo = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.guildName = {'lineHeight': 18, 'marginStart': 8};
|
||||
object2.topic = {'lineHeight': 20, 'marginTop': 8};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsChannelPreview.tsx');
|
||||
exports.default = ChannelPreview;
|
||||
}
|
||||
|
||||
function ChannelPreview({stageInstance}) { // fn#81770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10801:690, offset: 0x01eddcd2, size: 555 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(stageInstance.guild_id);
|
||||
});
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
if (stageInstance == null) {
|
||||
return null;
|
||||
}
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value2 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const InbJ8x = (require(1244) /* metro dependency 1244: indexNative */).t.InbJ8x;
|
||||
const text = <Text style={styles.title} accessibilityRole="header" variant="text-xs/bold">{Reflect.apply(string,
|
||||
intl, [InbJ8x])}</Text>;
|
||||
const items2 = [styles.itemContainer];
|
||||
items2[1] = {borderColor: value2};
|
||||
let value = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const XXSMALL = GuildIconSizes.XXSMALL;
|
||||
value = ((Component) => <Component guild={guild} size={XXSMALL} selected={false} />)(value);
|
||||
value = <View style={styles.guildInfo}>{value}<Text style={styles.guildName} variant="text-sm/medium" color="text-default">{guild.name}</Text></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{text}
|
||||
<View style={items2}>
|
||||
{value}
|
||||
<Text
|
||||
style={styles.topic}
|
||||
variant="text-md/bold"
|
||||
color="mobile-text-heading-primary"
|
||||
>
|
||||
{stageInstance.topic}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 8159; source: modules/in_app_reports/native/components/InAppReportsConstants.tsx; dependencies: [2] */
|
||||
function _fun65475(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8344:6, offset: 0x01bd09d2, size: 82 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsConstants.tsx');
|
||||
exports.IN_APP_REPORTS_NODE = 'IN_APP_REPORTS_NODE';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 10631; source: modules/in_app_reports/native/components/InAppReportsDeleteMessageElement.tsx; dependencies: [57, 31, 4814, 661, 33, 566, 4863, 7067, 10622, 1244, 4071, 2] */
|
||||
function _fun81827(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10817:6, offset: 0x01ee09eb, size: 196 bytes, params: 8, frame: 19
|
||||
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 = importAll(31) /* metro dependency 31 */;
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsDeleteMessageElement.tsx');
|
||||
exports.default = DeleteMessageElement;
|
||||
}
|
||||
|
||||
function DeleteMessageElement({message, reportId}) { // fn#81828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10817:287, offset: 0x01ee0aaf, size: 434 bytes, params: 2, frame: 24
|
||||
var object2;
|
||||
const binding = env0_4;
|
||||
const [property, env0_2] = env0_3(binding.useState(false), 2);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
binding.useEffect(_fun81830, [Reflect.apply(useStateFromStores, fluxModule, [[MessageStore], _fun81829,
|
||||
[message]])]);
|
||||
const value5 = binding.useCallback(_fun81831, [message, reportId]);
|
||||
const inAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object2.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.c9BHL9]);
|
||||
string = intl.string;
|
||||
const AT2KSd = (require(1244) /* metro dependency 1244: indexNative */).t.AT2KSd;
|
||||
object2.disabledTitle = Reflect.apply(string, intl, [AT2KSd]);
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dK8S0w);
|
||||
object2.disabled = property;
|
||||
object2.variant = 'danger';
|
||||
object2.onPress = value5;
|
||||
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
|
||||
object2.icon = <TrashIcon color="text-feedback-critical" />;
|
||||
return ((Component) => <Component {...object2} />)(inAppReportsUpsellsTableRow);
|
||||
}
|
||||
|
||||
function _fun81829() { // fn#81829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10817:419, offset: 0x01ee0c61, size: 49 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const getMessage = MessageStore.getMessage;
|
||||
const messageBinding = message;
|
||||
value = messageBinding.getChannelId();
|
||||
value = Reflect.apply(getMessage, MessageStore, [value, messageBinding.id]);
|
||||
return value == null;
|
||||
}
|
||||
|
||||
function _fun81830() { // fn#81830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10817:484, offset: 0x01ee0c92, size: 20 bytes, params: 1, frame: 11
|
||||
env0_2(env0_3);
|
||||
}
|
||||
|
||||
function _fun81831() { // fn#81831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10817:522, offset: 0x01ee0ca6, size: 117 bytes, params: 1, frame: 18
|
||||
env0_2(true);
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const IAR_DELETE_MESSAGE_BUTTON_CLICKED = AnalyticEvents.IAR_DELETE_MESSAGE_BUTTON_CLICKED;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [IAR_DELETE_MESSAGE_BUTTON_CLICKED, {report_id: reportId}]);
|
||||
const defaultImport2 = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
||||
const deleteMessage = defaultImport2.deleteMessage;
|
||||
const messageBinding = message;
|
||||
Reflect.apply(deleteMessage, defaultImport2, [messageBinding.getChannelId(), messageBinding.id]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 10637; source: modules/in_app_reports/native/components/InAppReportsExternalLinkElement.tsx; dependencies: [27, 33, 4501, 4573, 1244, 7975, 6242, 10638, 3853, 2] */
|
||||
function _fun81853(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10823:6, offset: 0x01ee1aa2, size: 225 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({linksContainer: {'flex': 1,
|
||||
'alignSelf': 'stretch', 'paddingHorizontal': 16}, headerText: {marginBottom: 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsExternalLinkElement.tsx');
|
||||
exports.default = ExternalLinksElement;
|
||||
}
|
||||
|
||||
function ExternalLinkItem({data}) { // fn#81854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10823:278, offset: 0x01ee1b83, size: 182 bytes, params: 2, frame: 20
|
||||
const env0_0 = data.url;
|
||||
if (data.is_localized) {
|
||||
const RowButton = (require(7975) /* metro dependency 7975: RowButtonNative */).RowButton;
|
||||
return (
|
||||
<RowButton
|
||||
label={data.link_text}
|
||||
subLabel={data.link_description}
|
||||
trailing={((TableRowIcon) => <TableRowIcon IconComponent={(require(10638) /* metro dependency 10638: LinkExternalMediumIcon */).LinkExternalMediumIcon} />)((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon)}
|
||||
onPress={onPress_81855}
|
||||
arrow={false}
|
||||
accessibilityRole="link"
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function ExternalLinksElement({elements}) { // fn#81856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10823:658, offset: 0x01ee1c66, size: 284 bytes, params: 2, frame: 25
|
||||
var r7;
|
||||
var Text;
|
||||
var intl;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (elements == null) {
|
||||
return null;
|
||||
}
|
||||
if (elements.length === 0) {
|
||||
return null;
|
||||
}
|
||||
if (elements.find(function(a0) {
|
||||
return a0.data.is_localized;
|
||||
}) == null) {
|
||||
return null;
|
||||
}
|
||||
const value2 = elements.some(function(a0) {
|
||||
return a0.data.is_header_hidden;
|
||||
});
|
||||
if (value2) {
|
||||
r7 = !value2;
|
||||
} else {
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var textProps = {'style': null, 'variant': 'heading-deprecated-12/extrabold', 'color': 'text-default',
|
||||
'accessibilityRole': 'header', style: styles.headerText};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ);
|
||||
value = <Text {...textProps}>{value.toUpperCase()}</Text>;
|
||||
r7 = value;
|
||||
}
|
||||
return (
|
||||
<View style={styles.linksContainer}>
|
||||
{[r7, elements.map(_fun81859)]}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ExternalLinkItemOnPress() { // fn#81855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10823:472, owner: ExternalLinkItem.onPress, offset: 0x01ee1c39, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.openURL(url);
|
||||
}
|
||||
|
||||
function _fun81859({data}, a1) { // fn#81859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10823:1084, offset: 0x01ee1da4, size: 63 bytes, params: 3, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return <ExternalLinkItem data={data} key={'external-link-' + a1} />;
|
||||
}
|
||||
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/* Metro module 10618; source: modules/in_app_reports/native/components/InAppReportsGuildDiscoveryPreviewElement.tsx; dependencies: [31, 27, 4502, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 1418, 2] */
|
||||
function _fun81777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10804:6, offset: 0x01ede589, size: 410 bytes, params: 8, frame: 22
|
||||
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;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'alignSelf': 'stretch', 'marginHorizontal': 16, 'marginBottom': 16}};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.title = {'textTransform': 'uppercase', 'lineHeight': 16, 'marginBottom': 8};
|
||||
const object5 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.itemContainer = object5;
|
||||
object2.guildInfo = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.guildName = {'lineHeight': 18, 'marginStart': 8};
|
||||
const object6 = {'borderRadius': null, 'width': 18, 'height': 18};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object2.guildIcon = object6;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsGuildDiscoveryPreviewElement.tsx');
|
||||
exports.default = GuildDiscoveryPreviewElement;
|
||||
}
|
||||
|
||||
function GuildDiscoveryPreviewElement({guild}) { // fn#81778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10804:757, offset: 0x01ede723, size: 465 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value2 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const text = <Text style={styles.title} accessibilityRole="header" variant="text-xs/bold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nTe4HC)}</Text>;
|
||||
const items2 = [styles.itemContainer];
|
||||
items2[1] = {borderColor: value2};
|
||||
let value = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
value = ((Component) => <Component style={styles.guildIcon} guild={(require(1418) /* metro dependency 1418: GuildRecordUtils */).fromClientDiscoverableGuild(guild)} animate={!useReducedMotion} />)(value);
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{text}
|
||||
<View style={items2}>
|
||||
<View style={styles.guildInfo}>
|
||||
{value}
|
||||
<Text
|
||||
style={styles.guildName}
|
||||
variant="text-sm/medium"
|
||||
color="text-default"
|
||||
>
|
||||
{guild.name}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 10616; source: modules/in_app_reports/native/components/InAppReportsGuildPreviewElement.tsx; dependencies: [31, 27, 33, 4501, 697, 4000, 4573, 1244, 6819, 2] */
|
||||
function _fun81772(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10802:6, offset: 0x01eddf1d, size: 326 bytes, params: 8, frame: 22
|
||||
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(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'alignSelf': 'stretch', 'marginHorizontal': 16, 'marginBottom': 16}};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.title = {'lineHeight': 16, 'marginBottom': 8};
|
||||
const object4 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start', 'minHeight': 40,
|
||||
'borderRadius': null, 'borderWidth': 1, 'padding': 12};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.guildContainer = object4;
|
||||
object2.guildInfo = {marginLeft: 8};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsGuildPreviewElement.tsx');
|
||||
exports.default = GuildPreview;
|
||||
}
|
||||
|
||||
function GuildPreview({guild}) { // fn#81773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10802:638, offset: 0x01ede063, size: 387 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value2 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const text = <Text style={styles.title} accessibilityRole="header" variant="text-xs/bold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0ox7Hq']).toUpperCase()}</Text>;
|
||||
const items2 = [styles.guildContainer];
|
||||
items2[1] = {borderColor: value2};
|
||||
let value = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const LARGE = GuildIconSizes.LARGE;
|
||||
value = ((Component) => <Component size={LARGE} guild={guild} />)(value);
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{text}
|
||||
<View style={items2}>
|
||||
{value}
|
||||
<Text
|
||||
variant="text-md/semibold"
|
||||
color="mobile-text-heading-primary"
|
||||
style={styles.guildInfo}
|
||||
>
|
||||
{guild.name}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
/* Metro module 10617; source: modules/in_app_reports/native/components/InAppReportsGuildScheduledEventPreview.tsx; dependencies: [31, 27, 1867, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 2] */
|
||||
function _fun81774(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10803:6, offset: 0x01ede1e6, size: 384 bytes, params: 8, frame: 22
|
||||
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;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'alignSelf': 'stretch', 'marginHorizontal': 16, 'marginBottom': 16}};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.title = {'lineHeight': 16, 'marginBottom': 8};
|
||||
const object4 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.itemContainer = object4;
|
||||
object2.guildInfo = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.guildName = {'lineHeight': 18, 'marginStart': 8};
|
||||
object2.eventName = {'lineHeight': 20, 'marginTop': 8};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsGuildScheduledEventPreview.tsx');
|
||||
exports.default = GuildScheduledEventPreview;
|
||||
}
|
||||
|
||||
function GuildScheduledEventPreview({event}) { // fn#81775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10803:706, offset: 0x01ede366, size: 547 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(event.guild_id);
|
||||
});
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value2 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const SDTOL7 = (require(1244) /* metro dependency 1244: indexNative */).t.SDTOL7;
|
||||
const text = <Text style={styles.title} accessibilityRole="header" variant="text-xs/bold">{Reflect.apply(string,
|
||||
intl, [SDTOL7])}</Text>;
|
||||
const items2 = [styles.itemContainer];
|
||||
items2[1] = {borderColor: value2};
|
||||
let value = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const XXSMALL = GuildIconSizes.XXSMALL;
|
||||
value = ((Component) => <Component guild={guild} size={XXSMALL} selected={false} />)(value);
|
||||
value = <View style={styles.guildInfo}>{value}<Text style={styles.guildName} variant="text-sm/medium" color="text-default">{guild.name}</Text></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{text}
|
||||
<View style={items2}>
|
||||
{value}
|
||||
<Text
|
||||
style={styles.eventName}
|
||||
variant="text-md/bold"
|
||||
color="mobile-text-heading-primary"
|
||||
>
|
||||
{event.name}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 10621; source: modules/in_app_reports/native/components/InAppReportsIgnoreUserElement.tsx; dependencies: [31, 1379, 3793, 661, 33, 566, 4617, 4863, 8783, 10622, 1244, 8998, 2] */
|
||||
function _fun81787(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10807:6, offset: 0x01edef09, size: 196 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 channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsIgnoreUserElement.tsx');
|
||||
exports.default = IgnoreUserElement;
|
||||
}
|
||||
|
||||
function IgnoreUserElement({user, channelId, reportId}) { // fn#81788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10807:284, offset: 0x01edefcd, size: 504 bytes, params: 2, frame: 28
|
||||
var r0;
|
||||
var InAppReportsUpsellsTableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
const items = [RelationshipStore];
|
||||
const {isIgnored, isBlocked} = Reflect.apply(useStateFromStoresObject, fluxModule, [items, function() {
|
||||
var object = {};
|
||||
var userBinding = user;
|
||||
object.isIgnored = RelationshipStore.isIgnored(userBinding.id);
|
||||
object.isBlocked = RelationshipStore.isBlocked(userBinding.id);
|
||||
return object;
|
||||
}, [user]]);
|
||||
const value3 = fluxModule.useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}, [channelId]);
|
||||
const binding = value3;
|
||||
const value4 = binding.useMemo(_fun81791, [value3, user]);
|
||||
if (user == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
InAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
r0 = <InAppReportsUpsellsTableRow title={intl.formatToPlainString(t.U3yyFs,
|
||||
{username: value4})} disabledTitle={intl.formatToPlainString(t['264qVM'],
|
||||
{username: value4})} description={intl.string(t.naWE6W)} disabled={isIgnored || isBlocked} onPress={binding.useCallback(function() {
|
||||
var defaultImport = importDefault(dependencyMap[7]);
|
||||
var property = AnalyticEvents.IAR_IGNORE_USER_BUTTON_CLICKED;
|
||||
var userBinding = user;
|
||||
defaultImport.trackWithMetadata(property, {other_user_id: userBinding.id, report_id: reportId});
|
||||
importDefault(dependencyMap[8]).ignoreUser(userBinding.id, 'mobile_iar_ignore_user_element', channelId);
|
||||
}, [user, reportId,
|
||||
channelId])} icon={((EyeSlashIcon) => <EyeSlashIcon />)((require(8998) /* metro dependency 8998: EyeSlashIcon */).EyeSlashIcon)} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 10632; source: modules/in_app_reports/native/components/InAppReportsLeaveGuildElement.tsx; dependencies: [57, 31, 661, 33, 9112, 4863, 10622, 1244, 4496, 4596, 10633, 2] */
|
||||
function _fun81832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10818:6, offset: 0x01ee0d1b, size: 180 bytes, params: 8, frame: 19
|
||||
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 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsLeaveGuildElement.tsx');
|
||||
exports.default = LeaveGuildElement;
|
||||
}
|
||||
|
||||
function LeaveGuildElement({guild, addCallback, reportId}) { // fn#81833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10818:274, offset: 0x01ee0dcf, size: 448 bytes, params: 2, frame: 24
|
||||
var object2;
|
||||
const binding = env0_4;
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(false), 2);
|
||||
binding.useEffect(_fun81834, [guild != null]);
|
||||
const env0_5 = binding.useCallback(_fun81835, [addCallback, reportId, guild]);
|
||||
const InAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cU96ip);
|
||||
object2.disabledTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rJGMXU);
|
||||
object2.description = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['26mR6/'],
|
||||
{guildName: guild?.name});
|
||||
object2.disabled = property;
|
||||
object2.variant = 'danger';
|
||||
object2.onPress = onPress_81837;
|
||||
const DoorExitIcon = (require(10633) /* metro dependency 10633: DoorExitIcon */).DoorExitIcon;
|
||||
object2.icon = <DoorExitIcon color="text-feedback-critical" />;
|
||||
return <InAppReportsUpsellsTableRow {...object2} />;
|
||||
}
|
||||
|
||||
function _fun81834() { // fn#81834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10818:404, offset: 0x01ee0f8f, size: 23 bytes, params: 1, frame: 11
|
||||
env0_3(!result);
|
||||
}
|
||||
|
||||
function _fun81835() { // fn#81835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10818:443, offset: 0x01ee0fa6, size: 117 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (guild != null) {
|
||||
addCallback(_fun81836);
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
defaultImport.trackWithMetadata(AnalyticEvents.IAR_LEAVE_GUILD_BUTTON_CLICKED, {guild_id: guild.id,
|
||||
report_id: reportId});
|
||||
env0_3(true);
|
||||
}
|
||||
}
|
||||
|
||||
function LeaveGuildElementOnPress() { // fn#81837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10818:848, owner: LeaveGuildElement.onPress, offset: 0x01ee104d, size: 325 bytes, params: 1, frame: 22
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const J2TBi3 = t.J2TBi3;
|
||||
object2.title = Reflect.apply(string, intl, [J2TBi3]);
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const TB1og8 = t.TB1og8;
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [TB1og8, {name: guild == null ? value2 : guild.name}]);
|
||||
object2.confirmText = intl.string(t.p89ACt);
|
||||
object2.cancelText = intl.string(t.gm1Vej);
|
||||
object2.onConfirm = env0_5;
|
||||
const Colors = (importDefault(4596) /* metro dependency 4596: Alert */).Colors;
|
||||
const RED = Colors.RED;
|
||||
object2.confirmColor = RED;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun81836() { // fn#81836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10818:461, offset: 0x01ee101b, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
return value.leaveGuild(guild.id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 8176; source: modules/in_app_reports/native/components/InAppReportsMessagePreview.tsx; dependencies: [31, 27, 33, 4501, 697, 8177, 4000, 4573, 1244, 9773, 2] */
|
||||
function _fun65609(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8361:6, offset: 0x01bd4bc9, size: 372 bytes, params: 8, frame: 22
|
||||
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(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'alignSelf': 'stretch', 'marginHorizontal': 16, 'marginBottom': 16}};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.title = {'lineHeight': 16, 'marginBottom': 8};
|
||||
const object4 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.chatItemContainer = object4;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object2]);
|
||||
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
|
||||
value = new value();
|
||||
value.setOptions({'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInstanceEmbed': false,
|
||||
'renderActivityInviteEmbed': false, 'renderEmbeds': true, 'ignoreMentioned': true,
|
||||
'inlineAttachmentMedia': false, 'inlineEmbedMedia': true, 'renderReactions': false});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsMessagePreview.tsx');
|
||||
exports.default = MessagePreview;
|
||||
}
|
||||
|
||||
function MessagePreview({message}) { // fn#65610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8361:771, offset: 0x01bd4d3d, size: 308 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value2 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text
|
||||
style={styles.title}
|
||||
accessibilityRole="header"
|
||||
variant="text-xs/bold"
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iouM3a)}
|
||||
</Text>
|
||||
<View style={[styles.chatItemContainer, {borderColor: value2}]}>
|
||||
{((Component) => <Component rowGenerator={env0_7} maxHeight={120} message={message} />)(importDefault(9773) /* metro dependency 9773: ChatItem */)}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
/* Metro module 10636; source: modules/in_app_reports/native/components/InAppReportsMultiSelect.tsx; dependencies: [31, 27, 33, 4501, 697, 6231, 8950, 2] */
|
||||
function _fun81849(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10822:6, offset: 0x01ee183f, size: 239 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.paddingVertical = PX_16;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsMultiSelect.tsx');
|
||||
exports.default = MultiSelect;
|
||||
}
|
||||
|
||||
function MultiSelect({element, onPress, state}) { // fn#81850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10822:357, offset: 0x01ee192e, size: 161 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
if (element == null) {
|
||||
return null;
|
||||
}
|
||||
if (element.type !== 'checkbox') {
|
||||
return null;
|
||||
}
|
||||
const data = element.data;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<TableRowGroup hasIcons={false}>
|
||||
{data.map(_fun81851)}
|
||||
</TableRowGroup>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun81851(a0) { // fn#81851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10822:568, offset: 0x01ee19cf, size: 183 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var r1;
|
||||
var r7;
|
||||
var r6;
|
||||
var item3;
|
||||
var value3;
|
||||
var item4;
|
||||
var value4;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r3 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r7 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r7 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r7 = item;
|
||||
}
|
||||
}
|
||||
if (r1) {
|
||||
r6 = value;
|
||||
} else {
|
||||
item4 = Reflect.apply(iterator2, r0, []);
|
||||
item = item4.value;
|
||||
item4 = item4.done ? undefined : r0;
|
||||
value4 = item4 === value;
|
||||
if (value4) {
|
||||
r0 = item4;
|
||||
r1 = value4;
|
||||
r6 = value;
|
||||
} else {
|
||||
r0 = item4;
|
||||
r1 = value4;
|
||||
r6 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
|
||||
return (
|
||||
<TableCheckboxRow
|
||||
label={r7}
|
||||
subLabel={r6}
|
||||
onPress={onPress_81852}
|
||||
checked={r3 in state}
|
||||
key={r3}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_81852() { // fn#81852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10822:634, offset: 0x01ee1a86, size: 28 bytes, params: 1, frame: 13
|
||||
return onPress(env0_0, env0_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 10626; source: modules/in_app_reports/native/components/InAppReportsMuteUserElement.tsx; dependencies: [57, 31, 1379, 661, 670, 33, 566, 4617, 10627, 4863, 6264, 10622, 1244, 10629, 2] */
|
||||
function _fun81808(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10812:6, offset: 0x01edfba9, size: 218 bytes, params: 8, frame: 19
|
||||
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 = importAll(31) /* metro dependency 31 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_7 = (require(670) /* metro dependency 670: UserSettingsConstants */).MuteUntilSeconds;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsMuteUserElement.tsx');
|
||||
exports.default = MuteUserElement;
|
||||
}
|
||||
|
||||
function MuteUserElement({user, channelId, reportId}) { // fn#81809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10812:309, offset: 0x01edfc83, size: 543 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var InAppReportsUpsellsTableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const dMFromUserId = ChannelStore.getDMFromUserId(user.id);
|
||||
const env0_3 = dMFromUserId;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const items = [ChannelStore];
|
||||
const value3 = Reflect.apply(useStateFromStores, fluxModule, [items, function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
}, [channelId]]);
|
||||
const env0_4 = value3;
|
||||
let binding = env0_4;
|
||||
let useMemo = binding.useMemo;
|
||||
const value4 = Reflect.apply(useMemo, binding, [_fun81811, [value3, user]]);
|
||||
useMemo = binding.useMemo;
|
||||
const muted = Reflect.apply(useMemo, binding, [_fun81812, [dMFromUserId]]).muted;
|
||||
const useState = binding.useState;
|
||||
const value8 = env0_3(Reflect.apply(useState, binding, [muted != null && muted]), 2);
|
||||
const property = value8[0];
|
||||
const env0_5 = value8[1];
|
||||
binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
if (user == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
InAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
r0 = <InAppReportsUpsellsTableRow title={intl.formatToPlainString(t.TRp5wR,
|
||||
{username: value4})} disabledTitle={intl.formatToPlainString(t.raALhx,
|
||||
{username: value4})} description={intl.string(t['yM/+AJ'])} disabled={property} onPress={Reflect.apply(useCallback,
|
||||
|
||||
binding, [_fun81813, [dMFromUserId, channelId, user,
|
||||
reportId]])} icon={((BellSlashIcon) => <BellSlashIcon />)((require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon)} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun81811() { // fn#81811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10812:470, offset: 0x01edfea2, size: 93 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
return (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(env0_4 == null ? value : env0_4.guild_id,
|
||||
env0_4 == null ? value : env0_4.id, user);
|
||||
}
|
||||
|
||||
function _fun81812() { // fn#81812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10812:560, offset: 0x01edfeff, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(10627) /* metro dependency 10627: MuteSettingsUtils */).getMuteSettings(env0_3);
|
||||
}
|
||||
|
||||
function _fun81813() { // fn#81813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10812:668, offset: 0x01edff2c, size: 179 bytes, params: 1, frame: 20
|
||||
env0_5(true);
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const IAR_MUTE_USER_BUTTON_CLICKED = AnalyticEvents.IAR_MUTE_USER_BUTTON_CLICKED;
|
||||
const userBinding = user;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [IAR_MUTE_USER_BUTTON_CLICKED, {other_user_id: userBinding.id,
|
||||
report_id: reportId}]);
|
||||
const muteSettingsUtilsModule = require(10627) /* metro dependency 10627: MuteSettingsUtils */;
|
||||
const handleMuteSettingPress = muteSettingsUtilsModule.handleMuteSettingPress;
|
||||
const ALWAYS = MuteUntilSeconds.ALWAYS;
|
||||
Reflect.apply(handleMuteSettingPress, muteSettingsUtilsModule, [{channelId: env0_3, guildId: null,
|
||||
muteDurationSeconds: ALWAYS}]);
|
||||
const defaultImport2 = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
|
||||
defaultImport2.showMuteSuccessToast(userBinding.id, channelId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 10620; source: modules/in_app_reports/native/components/InAppReportsRemediationsElement.tsx; dependencies: [31, 27, 33, 4501, 697, 6231, 1244, 2] */
|
||||
function _fun81785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10806:6, offset: 0x01eded84, size: 239 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.paddingHorizontal = PX_16;
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object.marginBottom = PX_32;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsRemediationsElement.tsx');
|
||||
exports.default = RemediationsElement;
|
||||
}
|
||||
|
||||
function RemediationsElement({children}) { // fn#81786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10806:362, offset: 0x01edee73, size: 150 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<TableRowGroup
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['k+QA9N'])}
|
||||
hasIcons
|
||||
>
|
||||
{children}
|
||||
</TableRowGroup>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
/* Metro module 10635; source: modules/in_app_reports/native/components/InAppReportsSettingsUpsellsElement.tsx; dependencies: [57, 31, 27, 1379, 661, 33, 4501, 697, 4594, 8157, 10622, 7002, 566, 8165, 6231, 1244, 6766, 7007, 4863, 2] */
|
||||
function _fun81841(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10821:6, offset: 0x01ee1262, size: 378 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = value.AnalyticEvents;
|
||||
const env0_8 = value.UserSettingsSections;
|
||||
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 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {paddingHorizontal: PX_16};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.settingsContainer = {width: '100%', marginBottom: PX_8};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.goToSettingsText = {marginTop: PX_4};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsSettingsUpsellsElement.tsx');
|
||||
exports.default = SettingsUpsellElement;
|
||||
}
|
||||
|
||||
function SettingsUpsellsTableRow({title, disabledTitle, description, onButtonClick, trackSettingsUpsellsAction}) { // fn#81842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10821:411, offset: 0x01ee13dc, size: 216 bytes, params: 2, frame: 20
|
||||
const [property, env0_2] = env0_3(env0_4.useState(false), 2);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
|
||||
trackSettingsUpsellsAction(require(dependencyMap[9]).TrackIarSettingsUpsellsActionType.SETTINGS_UPSELLS_VIEWED);
|
||||
});
|
||||
const InAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
const object2 = {title: title, disabledTitle: disabledTitle, description: description, disabled: property,
|
||||
onPress: onPress_81844};
|
||||
const SettingsIcon = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
|
||||
object2.icon = <SettingsIcon />;
|
||||
return <InAppReportsUpsellsTableRow {...object2} />;
|
||||
}
|
||||
|
||||
function SettingsUpsellElement({settingsUpsells, channelId, reportId, reportType, reportSubType}) { // fn#81845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10821:987, offset: 0x01ee152d, size: 519 bytes, params: 2, frame: 30
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const value4 = (require(8165) /* metro dependency 8165: IarSettingsUpsellsConfigRegistry */).useSettingsUpsellsConfigs(settingsUpsells,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
})?.type);
|
||||
const env0_5 = (require(8157) /* metro dependency 8157: ReportUtils */).useTrackSettingsUpsellsAction(reportType,
|
||||
reportSubType, reportId);
|
||||
if (value4.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [<View style={styles.settingsContainer}>{((TableRowGroup) => <TableRowGroup title={intl.string(t['1yxTIJ'])} hasIcons>{value4.map(_fun81847)}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup)}</View>];
|
||||
items2[1] = ((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-sm/medium" style={styles.goToSettingsText}>{intl.format(t['u7mo+k'],
|
||||
|
||||
{goToSettingsHook: goToSettingsHook})}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround);
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function SettingsUpsellsTableRowOnPress() { // fn#81844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10821:736, owner: SettingsUpsellsTableRow.onPress, offset: 0x01ee14e7, size: 70 bytes, params: 1, frame: 13
|
||||
onButtonClick();
|
||||
env0_2(true);
|
||||
const trackSettingsUpsellsActionBinding = trackSettingsUpsellsAction;
|
||||
const TrackIarSettingsUpsellsActionType = (require(8157) /* metro dependency 8157: ReportUtils */).TrackIarSettingsUpsellsActionType;
|
||||
const SETTINGS_UPSELLS_APPLY_CLICKED = TrackIarSettingsUpsellsActionType.SETTINGS_UPSELLS_APPLY_CLICKED;
|
||||
trackSettingsUpsellsActionBinding(SETTINGS_UPSELLS_APPLY_CLICKED);
|
||||
}
|
||||
|
||||
function _fun81847({getTitle, getDisabledTitle, getDescription, onApply}, a1) { // fn#81847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10821:1468, offset: 0x01ee1734, size: 109 bytes, params: 3, frame: 19
|
||||
return (
|
||||
<SettingsUpsellsTableRow
|
||||
title={getTitle()}
|
||||
disabledTitle={getDisabledTitle()}
|
||||
description={getDescription()}
|
||||
onButtonClick={onApply}
|
||||
trackSettingsUpsellsAction={env0_5(settingsUpsells[a1])}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function goToSettingsHook() { // fn#81848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10821:1842, owner: SettingsUpsellElement.goToSettingsHook, offset: 0x01ee17a1, size: 158 bytes, params: 1, frame: 18
|
||||
var object2;
|
||||
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
||||
const openUserSettings = openUserSettingsModule.openUserSettings;
|
||||
const CONTENT_AND_SOCIAL = UserSettingsSections.CONTENT_AND_SOCIAL;
|
||||
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: CONTENT_AND_SOCIAL}]);
|
||||
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = defaultImport.trackWithMetadata;
|
||||
const IAR_SETTINGS_UPSELLS_ACTION = AnalyticEvents.IAR_SETTINGS_UPSELLS_ACTION;
|
||||
object2 = {};
|
||||
object2.report_id = reportId;
|
||||
object2.report_type = reportType.name;
|
||||
object2.report_subtype = reportSubType;
|
||||
const TrackIarSettingsUpsellsActionType = (require(8157) /* metro dependency 8157: ReportUtils */).TrackIarSettingsUpsellsActionType;
|
||||
const SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED = TrackIarSettingsUpsellsActionType.SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED;
|
||||
object2.action = SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED;
|
||||
Reflect.apply(trackWithMetadata, defaultImport, [IAR_SETTINGS_UPSELLS_ACTION, object2]);
|
||||
}
|
||||
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
/* Metro module 10623; source: modules/in_app_reports/native/components/InAppReportsShareWithParentElement.tsx; dependencies: [57, 31, 33, 5118, 3856, 1244, 6264, 10622, 9798, 2] */
|
||||
function _fun81795(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10809:6, offset: 0x01edf3e5, size: 158 bytes, params: 8, frame: 19
|
||||
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 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsShareWithParentElement.tsx');
|
||||
exports.default = _default_81796;
|
||||
}
|
||||
|
||||
function _default_81796({parents}) { // fn#81796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10809:139, offset: 0x01edf483, size: 510 bytes, params: 2, frame: 27
|
||||
var object4;
|
||||
const binding = env0_4;
|
||||
const [property, env0_1] = env0_3(binding.useState(false), 2);
|
||||
const value5 = binding.useCallback(_fun81797, [parents]);
|
||||
if (parents.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let formatToPlainString = intl.formatToPlainString;
|
||||
const HqyWeO = (require(1244) /* metro dependency 1244: indexNative */).t.HqyWeO;
|
||||
object4 = {count: parents.length};
|
||||
let username = parents[0].username;
|
||||
object4.parent1 = username;
|
||||
username = parents[1]?.username;
|
||||
object4.parent2 = username;
|
||||
username = parents[2]?.username;
|
||||
object4.parent3 = username;
|
||||
const value6 = Reflect.apply(formatToPlainString, intl, [HqyWeO, object4]);
|
||||
const InAppReportsUpsellsTableRow = importDefault(10622) /* metro dependency 10622: InAppReportsUpsellsTableRow */;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
const BlAMme = (require(1244) /* metro dependency 1244: indexNative */).t.BlAMme;
|
||||
const object3 = {};
|
||||
object3.count = parents.length;
|
||||
username = parents[0].username;
|
||||
object3.parent1 = username;
|
||||
username = parents[1]?.username;
|
||||
object3.parent2 = username;
|
||||
username = parents[2]?.username;
|
||||
object3.parent3 = username;
|
||||
const ShareIcon = (require(9798) /* metro dependency 9798: ShareIcon */).ShareIcon;
|
||||
return (
|
||||
<InAppReportsUpsellsTableRow
|
||||
title={value6}
|
||||
disabledTitle={Reflect.apply(formatToPlainString, intl, [BlAMme, object3])}
|
||||
icon={<ShareIcon />}
|
||||
description={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5l/hlt'])}
|
||||
disabled={property}
|
||||
onPress={value5}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun81797() { // fn#81797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10809:224, offset: 0x01edf681, size: 74 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(5118) /* metro dependency 5118: FamilyCenterActionCreators */;
|
||||
value = value.shareIarWithParents();
|
||||
value = value.then(_fun81798);
|
||||
value.catch(_fun81799);
|
||||
}
|
||||
|
||||
function _fun81798() { // fn#81798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10809:265, offset: 0x01edf6cb, size: 201 bytes, params: 1, frame: 21
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = undefined;
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const wr4IT5 = (require(1244) /* metro dependency 1244: indexNative */).t.wr4IT5;
|
||||
const object2 = {};
|
||||
const parentsBinding = parents;
|
||||
object2.count = parentsBinding.length;
|
||||
let username = parentsBinding[0].username;
|
||||
object2.parent1 = username;
|
||||
let property = parentsBinding[1];
|
||||
username = property == null ? value : property.username;
|
||||
object2.parent2 = username;
|
||||
property = parents[2];
|
||||
username = property == null ? value : property.username;
|
||||
object2.parent3 = username;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, ['IAR_SHARE_WITH_PARENT_SUCCESS',
|
||||
Reflect.apply(formatToPlainString, intl, [wr4IT5, object2])]);
|
||||
env1_1(true);
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun81799() { // fn#81799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10809:525, offset: 0x01edf794, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */).showFailedToast();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 8173; source: modules/in_app_reports/native/components/InAppReportsShieldElement.tsx; dependencies: [31, 27, 33, 4501, 5473, 2] */
|
||||
function _fun65597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8358:6, offset: 0x01bd41c1, size: 198 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 0,
|
||||
'alignSelf': 'center', 'marginBottom': 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsShieldElement.tsx');
|
||||
exports.default = ShieldElement;
|
||||
}
|
||||
|
||||
function ShieldElement({element}) { // fn#65598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8358:327, offset: 0x01bd4287, size: 125 bytes, params: 2, frame: 17
|
||||
const styles = useStyles();
|
||||
return element == null || element.type !== 'success' ? null : <View style={styles.container}>{((ShieldSpotIllustration) => <ShieldSpotIllustration width={100} height={100} />)((require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration)}</View>;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/* Metro module 8175; source: modules/in_app_reports/native/components/InAppReportsTextElement.tsx; dependencies: [31, 27, 33, 4501, 4597, 4573, 2] */
|
||||
function _fun65607(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8360:6, offset: 0x01bd49a7, size: 241 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
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 value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'marginBottom': 16,
|
||||
'paddingHorizontal': 16}, header: {marginBottom: 8}, body: {marginBottom: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsTextElement.tsx');
|
||||
exports.default = TextElement;
|
||||
}
|
||||
|
||||
function TextElement(a0) { // fn#65608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8360:382, offset: 0x01bd4a98, size: 305 bytes, params: 2, frame: 26
|
||||
var r1;
|
||||
var r0;
|
||||
var items2;
|
||||
const {header, body, is_localized} = a0.element.data;
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const useRef = binding.useRef;
|
||||
const customMarkupNativeModule = importAll(4597) /* metro dependency 4597: CustomMarkupNative */;
|
||||
const getParser = customMarkupNativeModule.getParser;
|
||||
const value2 = Reflect.apply(useRef, binding, [Reflect.apply(getParser, customMarkupNativeModule, [])]);
|
||||
const value3 = null;
|
||||
if (is_localized) {
|
||||
if (value3 != header) {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [value3 != header && ((Text) => <Text style={styles.header} variant="heading-md/extrabold" color="mobile-text-heading-primary">{header}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
items2[1] = value3 != body && ((Text) => <Text style={styles.body} variant="text-md/medium">{value2.current(body)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
r1 = <View {...viewBindingProps}>{items2}</View>;
|
||||
} else if (value3 == body) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [value3 != header && ((Text) => <Text style={styles.header} variant="heading-md/extrabold" color="mobile-text-heading-primary">{header}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
items2[1] = value3 != body && ((Text) => <Text style={styles.body} variant="text-md/medium">{value2.current(body)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
r1 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
/* Metro module 8174; source: modules/in_app_reports/native/components/InAppReportsTextLineElement.tsx; dependencies: [5, 57, 31, 27, 482, 33, 4501, 697, 6597, 6518, 4597, 477, 4092, 3853, 4573, 1305, 4578, 1244, 6797, 3856, 2] */
|
||||
function _fun65599(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:6, offset: 0x01bd4304, size: 548 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_6 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_7 = value.View;
|
||||
const env0_8 = value.Linking;
|
||||
const Fonts = (require(482) /* metro dependency 482: 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 = {container: {'marginBottom': 16, 'paddingHorizontal': 16}};
|
||||
object2.header = {marginBottom: 8};
|
||||
object2.description = {marginBottom: 16};
|
||||
object2.trailingButtonContainer = {paddingHorizontal: 8};
|
||||
object2.smsInfoContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const object3 = {'flex': 1, 'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
|
||||
'justifyContent': 'space-between', 'borderRadius': null, 'borderColor': null, 'borderWidth': 1, 'padding': 8,
|
||||
'backgroundColor': null, 'marginBottom': 8};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object3.borderColor = BACKGROUND_BASE_LOWEST;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object3.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
object2.smsNumberContainer = object3;
|
||||
const STATUS_POSITIVE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE_BACKGROUND;
|
||||
object2.smsNumberContainerSuccess = {borderColor: STATUS_POSITIVE_BACKGROUND};
|
||||
const object4 = {};
|
||||
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
||||
const DISPLAY_SEMIBOLD = Fonts.DISPLAY_SEMIBOLD;
|
||||
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
|
||||
copyDataProperties(object4, textStyles(DISPLAY_SEMIBOLD, INTERACTIVE_TEXT_ACTIVE, 14), undefined);
|
||||
object2.smsNumberText = object4;
|
||||
object2.startButtonContainer = {'paddingHorizontal': 12, 'marginBottom': 8, 'marginLeft': 12};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsTextLineElement.tsx');
|
||||
exports.default = TextLineElement;
|
||||
}
|
||||
|
||||
function TextLineElement(a0) { // fn#65600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:1094, offset: 0x01bd4528, size: 726 bytes, params: 2, frame: 32
|
||||
var r8;
|
||||
var value5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items2;
|
||||
var items3;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items4;
|
||||
const data = a0.element.data;
|
||||
const title = data.title;
|
||||
const body = data.body;
|
||||
const sms = data.sms;
|
||||
const env0_1 = data.sms_body;
|
||||
const is_localized = data.is_localized;
|
||||
const styles = useStyles();
|
||||
const [property, env0_2] = env0_5(env0_6.useState(false), 2);
|
||||
if (is_localized) {
|
||||
value5 = _fun65602();
|
||||
r8 = property ? styles.smsNumberContainerSuccess : {};
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items2 = [<Text style={styles.header} variant="heading-md/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{title}</Text>];
|
||||
items2[1] = <Text style={styles.description} variant="text-md/medium">{(importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun65601)(body)}</Text>;
|
||||
var viewBindingProps2 = {style: styles.smsInfoContainer};
|
||||
var viewBindingProps3 = {style: [styles.smsNumberContainer, r8]};
|
||||
items3 = [((LegacyText) => <LegacyText style={styles.smsNumberText}>{sms}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)];
|
||||
string = intl.string;
|
||||
items3[1] = <View style={styles.trailingButtonContainer}><Button text={property ? Reflect.apply(string, intl,
|
||||
[t.t5VZ88]) : Reflect.apply(string, intl,
|
||||
[t.OpuAlK])} size="sm" onPress={onPress_65606} variant="secondary" /></View>;
|
||||
items4 = [<View {...viewBindingProps3}>{items3}</View>];
|
||||
string = intl.string;
|
||||
items4[1] = <View style={styles.startButtonContainer}><Button text={Reflect.apply(string, intl,
|
||||
[t.BDYHSe])} size="md" onPress={value5} /></View>;
|
||||
items2[2] = <View {...viewBindingProps2}>{items4}</View>;
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun65601() { // fn#65601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:1247, offset: 0x01bd47fe, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importAll(4597) /* metro dependency 4597: CustomMarkupNative */).getParser();
|
||||
}
|
||||
|
||||
function _fun65602() { // fn#65602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:1298, offset: 0x01bd4823, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_4(_fun65604);
|
||||
return _fun65605;
|
||||
}
|
||||
|
||||
function TextLineElementOnPress() { // fn#65606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:2195, owner: TextLineElement.onPress, offset: 0x01bd4959, size: 78 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
value.copy(sms);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentCopiedToClipboard();
|
||||
env0_2(true);
|
||||
}
|
||||
|
||||
function* _fun65604() { // fn#65604, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:1318, offset: 0x01bd4852, size: 263 bytes, params: 1, frame: 20
|
||||
var r9;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_0;
|
||||
r9 = binding(env3_3[11]).isIOS() ? env3_0(env3_3[12]).getSystemVersionMajor() < 8 ? ';' : '&' : '?';
|
||||
var value9 = 'sms:' + require;
|
||||
var value10 = '';
|
||||
var value13 = value9 + (importDefault != null ? value10 + r9 + 'body=' + global.encodeURIComponent(importDefault) : value10);
|
||||
binding = env3_8;
|
||||
yield binding.canOpenURL(value13);
|
||||
var value14 = undefined;
|
||||
if (false) {
|
||||
return value14;
|
||||
}
|
||||
if (value14) {
|
||||
env3_1(env3_3[13]).openURL(value13);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 10622; source: modules/in_app_reports/native/components/InAppReportsUpsellsTableRow.tsx; dependencies: [31, 33, 6238, 2] */
|
||||
function _fun81793(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10808:6, offset: 0x01edf2d3, size: 131 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 env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsUpsellsTableRow.tsx');
|
||||
exports.default = InAppReportsUpsellsTableRow;
|
||||
}
|
||||
|
||||
function InAppReportsUpsellsTableRow({title, disabledTitle, description, variant, disabled, onPress, icon}) { // fn#81794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10808:234, offset: 0x01edf356, size: 143 bytes, params: 2, frame: 22
|
||||
variant = variant === undefined ? 'default' : variant;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
label={disabled ? disabledTitle ?? title : title}
|
||||
subLabel={disabled ? null : description}
|
||||
onPress={onPress}
|
||||
icon={icon}
|
||||
disabled={disabled}
|
||||
variant={variant}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 10614; source: modules/in_app_reports/native/components/InAppReportsUserPreview.tsx; dependencies: [31, 27, 33, 4501, 697, 4000, 4573, 1244, 1305, 2] */
|
||||
function _fun81767(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10800:6, offset: 0x01edd81b, size: 322 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'alignSelf': 'stretch', 'marginHorizontal': 16, 'marginBottom': 16}};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
object2.title = {'lineHeight': 16, 'marginBottom': 8};
|
||||
const object4 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start', 'minHeight': 40,
|
||||
'borderRadius': null, 'borderWidth': 1, 'padding': 12};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.userContainer = object4;
|
||||
object2.userProfileInfo = {marginLeft: 8};
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsUserPreview.tsx');
|
||||
exports.default = UserPreview;
|
||||
}
|
||||
|
||||
function UserPreview({user}) { // fn#81768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10800:635, offset: 0x01edd95d, size: 501 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value2 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Rsth7z = (require(1244) /* metro dependency 1244: indexNative */).t.Rsth7z;
|
||||
const text = <Text style={styles.title} accessibilityRole="header" variant="text-xs/bold">{Reflect.apply(string,
|
||||
intl, [Rsth7z]).toUpperCase()}</Text>;
|
||||
const userContainer = styles.userContainer;
|
||||
const items2 = [userContainer];
|
||||
items2[1] = {borderColor: value2};
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const LARGE_48 = AvatarSizes.LARGE_48;
|
||||
const avatar = <Avatar size={LARGE_48} user={user} guildId={undefined} />;
|
||||
const r10 = user.globalName != null && <Text variant="text-md/semibold" color="mobile-text-heading-primary">{user.globalName}</Text>;
|
||||
const username = user.username;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{text}
|
||||
<View style={items2}>
|
||||
{avatar}
|
||||
<View style={styles.userProfileInfo}>
|
||||
{r10}
|
||||
<Text color="text-default" variant="text-sm/normal">
|
||||
{username}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,792 @@
|
||||
/* Metro module 8161; source: modules/in_app_reports/native/components/NodeView.tsx; dependencies: [57, 31, 27, 4649, 1379, 3784, 8162, 8159, 661, 482, 33, 4501, 697, 6518, 4597, 4573, 4000, 4068, 566, 5278, 8163, 1484, 4559, 4570, 8156, 8154, 4863, 3869, 8165, 8169, 8170, 6618, 8173, 8174, 8175, 8176, 10614, 10615, 10616, 10617, 10618, 10619, 10620, 10621, 10623, 10624, 10626, 10631, 10632, 10635, 10636, 10637, 10640, 2] */
|
||||
function _fun65477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:6, offset: 0x01bd0a6a, size: 884 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
const _arrayLikeToArray_65480 = 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 getElementForType = function({elements}, a1) {
|
||||
var env0_0 = a1;
|
||||
return elements.find(_fun65482);
|
||||
};
|
||||
const getElementsForType = function({elements}, a1) {
|
||||
var env0_0 = 'external_link';
|
||||
return elements.filter(_fun65484);
|
||||
};
|
||||
const hasAnyRemediationElement = function({elements}) {
|
||||
return elements.some(_fun65486);
|
||||
};
|
||||
const NullComponent = function() {
|
||||
return null;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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 devSettingsStore = importDefault(4649) /* metro dependency 4649: DevSettingsStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_11 = (require(8162) /* metro dependency 8162: MenuConstants */).REMEDIATION_ELEMENT_TYPES;
|
||||
const env0_12 = (require(8159) /* metro dependency 8159: InAppReportsConstants */).IN_APP_REPORTS_NODE;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_13 = value.AnalyticEvents;
|
||||
const env0_14 = value.ChannelTypes;
|
||||
const env0_15 = (require(482) /* metro dependency 482: Constants */).Permissions;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_16 = value.jsx;
|
||||
const env0_17 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.container = {'flex': 1, 'alignSelf': 'stretch', 'justifyContent': 'flex-start', 'alignItems': 'center',
|
||||
'backgroundColor': null, 'marginTop': 30, backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
object2.scrollView = {'flex': 1, 'alignSelf': 'stretch', 'marginTop': 24};
|
||||
object2.childrenContainer = {'flex': 1, 'alignSelf': 'stretch', 'paddingHorizontal': 16};
|
||||
object2.headerContainer = {'alignSelf': 'stretch', 'marginBottom': 24, 'paddingHorizontal': 16};
|
||||
object2.header = {'marginBottom': 8, 'textAlign': 'center'};
|
||||
object2.subheader = {'lineHeight': 20, 'marginBottom': 8, 'textAlign': 'center'};
|
||||
object2.description = {'lineHeight': 16, 'marginBottom': 8, 'textAlign': 'center'};
|
||||
const object6 = {'alignSelf': 'stretch', 'backgroundColor': null, 'borderRadius': null, 'borderColor': null,
|
||||
'borderWidth': 1, 'padding': 8, 'flexDirection': 'row', 'marginBottom': 16, 'marginHorizontal': 16};
|
||||
let BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
|
||||
object6.backgroundColor = BLUE_345;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
|
||||
object6.borderColor = BLUE_345;
|
||||
object2.infoBox = object6;
|
||||
object2.infoBoxText = {'flex': 1, 'lineHeight': 18, 'marginStart': 8, 'marginTop': 3};
|
||||
const object7 = {marginBottom: 8};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object2.childButton = object7;
|
||||
const object8 = {'minHeight': 60, 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start',
|
||||
'backgroundColor': null, 'paddingVertical': 16, 'paddingStart': 16, 'paddingEnd': 8};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object8.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object2.childContainer = object8;
|
||||
object2.childContent = {flex: 1};
|
||||
object2.childButtonText = {lineHeight: 20};
|
||||
object2.debugText = {'marginTop': 4, 'lineHeight': 16};
|
||||
const env0_18 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/NodeView.tsx');
|
||||
exports.default = NodeView;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_65478(a0, a1) { // fn#65478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:353, offset: 0x01bd0dde, 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 _fun65479;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_65480(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_65480(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_65480(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun65479;
|
||||
}
|
||||
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 getElementForType({elements}, a1) { // fn#65481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4394, offset: 0x01bd0f50, size: 36 bytes, params: 3, frame: 11
|
||||
const env0_0 = a1;
|
||||
return elements.find(function({type}) {
|
||||
return type === require;
|
||||
});
|
||||
}
|
||||
|
||||
function getElementsForType({elements}, a1) { // fn#65483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4472, offset: 0x01bd0f74, size: 38 bytes, params: 3, frame: 11
|
||||
return elements.filter(_fun65484);
|
||||
}
|
||||
|
||||
function hasAnyRemediationElement({elements}) { // fn#65485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4553, offset: 0x01bd0f9a, size: 29 bytes, params: 2, frame: 11
|
||||
return elements.some(function({type}) {
|
||||
return REMEDIATION_ELEMENT_TYPES.includes(type);
|
||||
});
|
||||
}
|
||||
|
||||
function HeaderView(a0) { // fn#65488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:2506, offset: 0x01bd0fd2, size: 398 bytes, params: 2, frame: 26
|
||||
const {header, subheader, description} = a0.node;
|
||||
const headerRef = a0.headerRef;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun65489);
|
||||
const value3 = null;
|
||||
const items2 = [value3 != header && header !== '' && ((Text) => <Text ref={headerRef} style={styles.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{header}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
items2[1] = value3 != subheader && subheader.length > 0 ? ((Text) => <Text style={styles.subheader} variant="text-md/medium" color="text-default">{value2(subheader)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value3;
|
||||
items2[2] = value3 != description && description.length > 0 ? ((Text) => <Text style={styles.description} variant="text-xs/medium" color="text-default">{description}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value3;
|
||||
return (
|
||||
<View style={styles.headerContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function InfoView(a0) { // fn#65490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:3083, offset: 0x01bd1185, size: 298 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var object2;
|
||||
var infoBox;
|
||||
var items2;
|
||||
var moduleValue;
|
||||
var hexWithOpacity;
|
||||
var backgroundColor;
|
||||
var CircleInformationIcon;
|
||||
const info = a0.node.info;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun65491);
|
||||
const value3 = null;
|
||||
if (value3 == info) {
|
||||
r0 = value3;
|
||||
} else {
|
||||
object2 = {};
|
||||
infoBox = styles.infoBox;
|
||||
items2 = [infoBox];
|
||||
moduleValue = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
hexWithOpacity = moduleValue.hexWithOpacity;
|
||||
infoBox = styles.infoBox;
|
||||
backgroundColor = infoBox.backgroundColor;
|
||||
items2[1] = {backgroundColor: Reflect.apply(hexWithOpacity, moduleValue, [backgroundColor, 0.1])};
|
||||
object2.style = items2;
|
||||
CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
infoBox = styles.infoBox;
|
||||
backgroundColor = infoBox.backgroundColor;
|
||||
value = <CircleInformationIcon size="md" color={backgroundColor} />;
|
||||
value = <View {...object2}>{value}{((Text) => <Text style={styles.infoBoxText} variant="text-sm/normal" color="interactive-text-active">{value2(info)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ChildItem(a0) { // fn#65492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:3483, offset: 0x01bd12af, size: 486 bytes, params: 2, frame: 28
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const child = a0.child;
|
||||
const nodeMap = a0.nodeMap;
|
||||
const value = Object.create(null);
|
||||
value.child = 0;
|
||||
value.nodeMap = 0;
|
||||
const env0_1 = copyDataProperties({}, a0, value, undefined);
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const value3 = binding(child, 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
const binding2 = env0_5;
|
||||
const useState = binding2.useState;
|
||||
const property3 = binding(Reflect.apply(useState, binding2, [function() {
|
||||
return _fun65494;
|
||||
}]), 1)[0];
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([DevSettingsStore], function() {
|
||||
return DevSettingsStore.get('iar_show_report_sub_type_labels');
|
||||
});
|
||||
const property4 = nodeMap[property2];
|
||||
const report_type = property4 == null ? value2 : property4.report_type;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
return (
|
||||
<PressableHighlight
|
||||
style={styles.childButton}
|
||||
accessibilityRole="button"
|
||||
onPress={property3}
|
||||
>
|
||||
<View style={styles.childContainer}>
|
||||
<View style={styles.childContent}>
|
||||
<Text
|
||||
style={styles.childButtonText}
|
||||
variant="text-md/semibold"
|
||||
color="mobile-text-heading-primary"
|
||||
>
|
||||
{property}
|
||||
</Text>
|
||||
{value4 && report_type != null && <Text style={styles.debugText} variant="text-xs/normal" color="text-muted">{report_type}</Text>}
|
||||
</View>
|
||||
{((Component) => <Component />)(importDefault(8163) /* metro dependency 8163: Arrow */)}
|
||||
</View>
|
||||
</PressableHighlight>
|
||||
);
|
||||
}
|
||||
|
||||
function ChildrenView(a0) { // fn#65496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4154, offset: 0x01bd14ce, size: 120 bytes, params: 2, frame: 18
|
||||
const children = a0.node.children;
|
||||
const env0_0 = a0.onSelectChild;
|
||||
const env0_1 = a0.nodeMap;
|
||||
const styles = useStyles();
|
||||
const value2 = null;
|
||||
return value2 == children || children.length === 0 ? value2 : <View style={styles.childrenContainer}>{children.map(_fun65497)}</View>;
|
||||
}
|
||||
|
||||
function NodeView(a0) { // fn#65498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4781, offset: 0x01bd15b2, size: 3030 bytes, params: 2, frame: 49
|
||||
var r0;
|
||||
var r30;
|
||||
var r18;
|
||||
var r32;
|
||||
var InAppReportsRemediationsElement;
|
||||
var items2;
|
||||
var value42;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value4 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
|
||||
const binding = env0_5;
|
||||
const value5 = null;
|
||||
const value6 = binding.useRef(value5);
|
||||
const env0_4 = binding.useRef(false);
|
||||
binding.useEffect(_fun65499, [value3, value4]);
|
||||
const node = a0.node;
|
||||
const reportType = a0.reportType;
|
||||
const reportSubType = a0.reportSubType;
|
||||
const history = a0.history;
|
||||
const nodeMap = a0.nodeMap;
|
||||
const closeModal = a0.closeModal;
|
||||
const addOnCloseCallback = a0.addOnCloseCallback;
|
||||
const onSubmit = a0.onSubmit;
|
||||
const reportId = a0.reportId;
|
||||
const onNavigate = a0.onNavigate;
|
||||
const value7 = binding.useMemo(function() {
|
||||
return reportType.name !== 'message' ? undefined : reportType.record.channel_id;
|
||||
}, [reportType]);
|
||||
const getElementForTypeBinding = getElementForType;
|
||||
const elementForTypeBinding = getElementForTypeBinding(node, 'checkbox');
|
||||
const elementForTypeBinding2 = getElementForTypeBinding(node, 'text_line_resource');
|
||||
const elementForTypeBinding3 = getElementForTypeBinding(node, 'text');
|
||||
const ReportMenuTypeSets = (require(8156) /* metro dependency 8156: ReportMenuType */).ReportMenuTypeSets;
|
||||
const REPORT_TO_MOD = ReportMenuTypeSets.REPORT_TO_MOD;
|
||||
const value11 = REPORT_TO_MOD.has(reportType.name);
|
||||
let useState = binding.useState;
|
||||
const value12 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_4;
|
||||
const value13 = binding2(value12, 2);
|
||||
const property = value13[0];
|
||||
const env0_13 = value13[1];
|
||||
useState = binding.useState;
|
||||
const value14 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value14[0];
|
||||
const env0_15 = value14[1];
|
||||
useState = binding.useState;
|
||||
const value15 = binding2(Reflect.apply(useState, binding, [function() {
|
||||
return {};
|
||||
}]), 2);
|
||||
const property3 = value15[0];
|
||||
const env0_17 = value15[1];
|
||||
useState = binding.useState;
|
||||
const value16 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property4 = value16[0];
|
||||
const env0_18 = value16[1];
|
||||
const value17 = binding.useCallback(_fun65505, [node, elementForTypeBinding, property3]);
|
||||
binding.useEffect(_fun65506, [elementForTypeBinding]);
|
||||
binding.useEffect(_fun65509, [value3, a0]);
|
||||
binding.useEffect(_fun65511, [node.is_auto_submit, property2, onSubmit, node.id]);
|
||||
const value18 = binding.useCallback(_fun65512, [node, nodeMap, value3, history, onNavigate, closeModal, reportType,
|
||||
value17]);
|
||||
binding.useEffect(_fun65513, [node, history, value3]);
|
||||
const value19 = binding.useCallback(_fun65514, []);
|
||||
const value20 = (require(8165) /* metro dependency 8165: IarSettingsUpsellsConfigRegistry */).useIarReportSettingsUpsells(reportSubType);
|
||||
const value21 = value5 != getElementForTypeBinding(node, 'ignore_users');
|
||||
if (value21) {
|
||||
r0 = reportType.name === 'message' || reportType.name === 'first_dm';
|
||||
r0 = !r0 ? reportType.name === 'user' : r0;
|
||||
r0 = !r0 ? reportType.name === 'report_to_mod_message' : r0;
|
||||
r30 = r0;
|
||||
} else {
|
||||
r30 = value21;
|
||||
}
|
||||
const value26 = (require(8169) /* metro dependency 8169: useUserIsTeen */).useUserIsTeen();
|
||||
const value27 = (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUsers();
|
||||
let r29 = value26 && value27.length > 0 && value5 != getElementForType(node, 'share_with_parents');
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const items3 = [((Component) => <Component element={getElementForType(node,
|
||||
'success')} />)(importDefault(8173) /* metro dependency 8173: InAppReportsShieldElement */)];
|
||||
items3[1] = <HeaderView node={node} headerRef={value6} />;
|
||||
items3[2] = <InfoView node={node} />;
|
||||
items3[3] = value5 != elementForTypeBinding2 ? ((Component) => <Component element={elementForTypeBinding2} />)(importDefault(8174) /* metro dependency 8174: InAppReportsTextLineElement */) : value5;
|
||||
items3[4] = value5 != elementForTypeBinding3 && ((Component) => <Component element={elementForTypeBinding3} />)(importDefault(8175) /* metro dependency 8175: InAppReportsTextElement */);
|
||||
items3[5] = value5 == getElementForType(node,
|
||||
'message_preview') ? value5 : reportType.name === 'message' || reportType.name === 'first_dm' ? ((Component) => <Component message={reportType.record} />)(importDefault(8176) /* metro dependency 8176: InAppReportsMessagePreview */) : reportType.name !== 'report_to_mod_message' ? value5 : ((Component) => <Component message={reportType.record} />)(importDefault(8176) /* metro dependency 8176: InAppReportsMessagePreview */);
|
||||
items3[6] = value5 != getElementForType(node,
|
||||
'user_preview') ? reportType.name !== 'user' ? value5 : ((Component) => <Component user={reportType.record} />)(importDefault(10614) /* metro dependency 10614: InAppReportsUserPreview */) : value5;
|
||||
items3[7] = value5 != getElementForType(node,
|
||||
'channel_preview') ? reportType.name !== 'stage_channel' ? value5 : ((Component) => <Component stageInstance={reportType.record} />)(importDefault(10615) /* metro dependency 10615: InAppReportsChannelPreview */) : value5;
|
||||
items3[8] = value5 != getElementForType(node,
|
||||
'guild_preview') ? reportType.name !== 'guild' ? value5 : ((Component) => <Component guild={reportType.record} />)(importDefault(10616) /* metro dependency 10616: InAppReportsGuildPreviewElement */) : value5;
|
||||
items3[9] = value5 != getElementForType(node,
|
||||
'guild_scheduled_event_preview') ? reportType.name !== 'guild_scheduled_event' ? value5 : ((Component) => <Component event={reportType.record} />)(importDefault(10617) /* metro dependency 10617: InAppReportsGuildScheduledEventPreview */) : value5;
|
||||
items3[10] = value5 != getElementForType(node,
|
||||
'guild_discovery_preview') ? reportType.name !== 'guild_discovery' ? value5 : ((Component) => <Component guild={reportType.record} />)(importDefault(10618) /* metro dependency 10618: InAppReportsGuildDiscoveryPreviewElement */) : value5;
|
||||
items3[11] = ((Component) => <Component element={getElementForType(node,
|
||||
'breadcrumbs')} menuName={reportType.name} history={history} />)(importDefault(10619) /* metro dependency 10619: InAppReportsBreadCrumbs */);
|
||||
const hasAnyRemediationElement2 = hasAnyRemediationElement(node);
|
||||
if (hasAnyRemediationElement2) {
|
||||
InAppReportsRemediationsElement = importDefault(10620) /* metro dependency 10620: InAppReportsRemediationsElement */;
|
||||
r32 = r30 && ((Component) => <Component user={reportType.name === 'user' ? reportType.record : reportType.record.author} channelId={value7} reportId={reportId} />)(importDefault(10621) /* metro dependency 10621: InAppReportsIgnoreUserElement */);
|
||||
items2 = [r32];
|
||||
r29 = r29 && ((Component) => <Component parents={value27} />)(importDefault(10623) /* metro dependency 10623: InAppReportsShareWithParentElement */);
|
||||
items2[1] = r29;
|
||||
value42 = value5 != getElementForType(node, 'block_users');
|
||||
if (value42) {
|
||||
r32 = reportType.name === 'message' || reportType.name === 'first_dm';
|
||||
r32 = !r32 ? reportType.name === 'user' : r32;
|
||||
r32 = !r32 ? reportType.name === 'report_to_mod_message' : r32;
|
||||
r29 = r32;
|
||||
} else {
|
||||
r29 = value42;
|
||||
}
|
||||
r29 = r29 && ((Component) => <Component user={reportType.name === 'user' ? reportType.record : reportType.record.author} channelId={value7} reportId={reportId} />)(importDefault(10624) /* metro dependency 10624: InAppReportsBlockUserElement */);
|
||||
items2[2] = r29;
|
||||
r29 = !r30 && value5 != getElementForType(node, 'mute_users');
|
||||
if (r29) {
|
||||
r30 = reportType.name === 'message' || reportType.name === 'first_dm';
|
||||
r30 = !r30 ? reportType.name === 'user' : r30;
|
||||
r30 = !r30 ? reportType.name === 'report_to_mod_message' : r30;
|
||||
r29 = r30;
|
||||
}
|
||||
r29 = r29 && ((Component) => <Component user={reportType.name === 'user' ? reportType.record : reportType.record.author} channelId={value7} reportId={reportId} />)(importDefault(10626) /* metro dependency 10626: InAppReportsMuteUserElement */);
|
||||
items2[3] = r29;
|
||||
r29 = value5 != getElementForType(node,
|
||||
'delete_message') && (reportType.name === 'message' || reportType.name === 'report_to_mod_message');
|
||||
r29 = r29 && value19(reportType.record);
|
||||
r29 = r29 && ((Component) => <Component message={reportType.record} reportId={reportId} />)(importDefault(10631) /* metro dependency 10631: InAppReportsDeleteMessageElement */);
|
||||
items2[4] = r29;
|
||||
r29 = value5 != getElementForType(node, 'leave_guild') && reportType.name === 'guild';
|
||||
r29 = r29 && ((Component) => <Component guild={reportType.record} reportId={reportId} addCallback={addOnCloseCallback} />)(importDefault(10632) /* metro dependency 10632: InAppReportsLeaveGuildElement */);
|
||||
items2[5] = r29;
|
||||
r18 = <InAppReportsRemediationsElement>{items2}</InAppReportsRemediationsElement>;
|
||||
} else {
|
||||
r18 = hasAnyRemediationElement2;
|
||||
}
|
||||
items3[12] = r18;
|
||||
items3[13] = value5 != getElementForType(node,
|
||||
'settings_upsells') && (reportType.name === 'message' || reportType.name === 'report_to_mod_message') && value5 != value20 && ((Component) => <Component settingsUpsells={value20} channelId={reportType.record.channel_id} reportId={reportId} reportType={reportType} reportSubType={reportSubType} />)(importDefault(10635) /* metro dependency 10635: InAppReportsSettingsUpsellsElement */);
|
||||
items3[14] = ((Component) => <Component element={elementForTypeBinding} state={property3} onPress={onPress_65515} />)(importDefault(10636) /* metro dependency 10636: InAppReportsMultiSelect */);
|
||||
items3[15] = <ChildrenView node={node} onSelectChild={value18} nodeMap={nodeMap} />;
|
||||
items3[16] = value5 != getElementForType(node,
|
||||
'external_link') ? ((Component) => <Component elements={getElementsForType(node,
|
||||
'external_link')} />)(importDefault(10637) /* metro dependency 10637: InAppReportsExternalLinkElement */) : value5;
|
||||
return (
|
||||
<SafeAreaPaddingView
|
||||
style={styles.container}
|
||||
bottom
|
||||
top
|
||||
>
|
||||
<ScrollView style={styles.scrollView}>
|
||||
{items3}
|
||||
</ScrollView>
|
||||
{((Component) => <Component isModeratorReport={value11} disabled={property || (value5 == elementForTypeBinding ? value2 : elementForTypeBinding.should_submit_data) === true && global.Object.keys(property3).length === 0} button={node.button} hasError={property4} onPress={onPress_65516} />)(importDefault(10640) /* metro dependency 10640: InAppReportsBottomButton */)}
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun65489() { // fn#65489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:2588, offset: 0x01bd1160, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importAll(4597) /* metro dependency 4597: CustomMarkupNative */).getParser();
|
||||
}
|
||||
|
||||
function _fun65493() { // fn#65493, offset: 0x01bd1495, size: 9 bytes, params: 1, frame: 1
|
||||
return _fun65494;
|
||||
}
|
||||
|
||||
function _fun65497(a0) { // fn#65497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4295, offset: 0x01bd1546, size: 108 bytes, params: 2, frame: 19
|
||||
const value2 = env1_4(a0, 2);
|
||||
return (
|
||||
<ChildItem
|
||||
child={a0}
|
||||
nodeMap={nodeMap}
|
||||
onPress={onSelectChild}
|
||||
key={'' + value2[0] + '+' + value2[1]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun65499() { // fn#65499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4924, offset: 0x01bd2188, size: 87 bytes, params: 1, frame: 15
|
||||
var closure;
|
||||
if (env0_2) {
|
||||
closure = focusHeader;
|
||||
var env0_1Binding = env0_1.addListener('transitionEnd', _fun65501);
|
||||
var env0_2 = global.setTimeout(closure, 500);
|
||||
return _fun65502;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65505(a0) { // fn#65505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:5776, offset: 0x01bd22ac, size: 75 bytes, params: 2, frame: 5
|
||||
return {nodeRef: node.id, destination: a0, multiSelect: env0_12 != null ? {name: env0_12.name,
|
||||
state: env0_16} : undefined};
|
||||
}
|
||||
|
||||
function _fun65506() { // fn#65506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:5882, offset: 0x01bd22f7, size: 133 bytes, params: 1, frame: 24
|
||||
var environment;
|
||||
var r1;
|
||||
var data;
|
||||
var closure;
|
||||
var value2;
|
||||
var value3;
|
||||
var done;
|
||||
var value4;
|
||||
var value5;
|
||||
var property;
|
||||
var property2;
|
||||
var value6;
|
||||
reducibleJoin4: while (true) {
|
||||
if (env0_12 == null) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
data = env0_12.data;
|
||||
if (data == null) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
closure = _loop_65507;
|
||||
value = environment.__proto__;
|
||||
value2 = _createForOfIteratorHelperLoose_65478(data);
|
||||
value3 = value2();
|
||||
done = value3.done;
|
||||
if (done) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value3;
|
||||
reducibleLoop3: while (true) {
|
||||
value4 = r1.value;
|
||||
value5 = env1_4(value4, 4);
|
||||
property = value5[0];
|
||||
property2 = value5[1];
|
||||
value5[2];
|
||||
var env0_0 = value5[3];
|
||||
closure(property, property2);
|
||||
value6 = value2();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value6;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65509() { // fn#65509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:6124, offset: 0x01bd23ce, size: 32 bytes, params: 1, frame: 13
|
||||
return env0_1.addListener('beforeRemove', _fun65510);
|
||||
}
|
||||
|
||||
function _fun65511() { // fn#65511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:6226, offset: 0x01bd241a, size: 92 bytes, params: 1, frame: 13
|
||||
var onSubmitBinding;
|
||||
var object2;
|
||||
var id;
|
||||
if (node.is_auto_submit && !env0_14) {
|
||||
env0_15(true);
|
||||
onSubmitBinding = onSubmit;
|
||||
object2 = {};
|
||||
nodeBinding = node;
|
||||
id = nodeBinding.id;
|
||||
object2.nodeRef = id;
|
||||
id = nodeBinding.id;
|
||||
object2.destination = ['', id];
|
||||
onSubmitBinding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65512(a0) { // fn#65512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:6354, offset: 0x01bd2476, size: 436 bytes, params: 2, frame: 23
|
||||
var r12;
|
||||
var reportTypeBinding;
|
||||
const ReportNames = (require(8154) /* metro dependency 8154: MenuTypes */).ReportNames;
|
||||
var id;
|
||||
var defaultImport;
|
||||
var object2;
|
||||
var binding;
|
||||
var push;
|
||||
var historyBinding;
|
||||
var items2;
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
let property = env1_4(a0, 2)[1];
|
||||
const value5 = env0_19(a0);
|
||||
property = nodeMap[property];
|
||||
if (property == null) {
|
||||
closeModal();
|
||||
} else {
|
||||
if (getElementForType(property, 'skip') == null) {
|
||||
if (reportType.name === ReportNames.MESSAGE) {
|
||||
reportTypeBinding = reportType;
|
||||
id = reportTypeBinding.record.id;
|
||||
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
defaultImport.trackWithMetadata(AnalyticEvents.IAR_NAVIGATE, {message_id: id,
|
||||
content_type: reportTypeBinding.name,
|
||||
report_sub_type: property.report_type, current_node: node.id, next_node: property.id});
|
||||
r12 = id;
|
||||
} else if (reportType.name === ReportNames.FIRST_DM) {
|
||||
reportTypeBinding = reportType;
|
||||
id = reportTypeBinding.record.id;
|
||||
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
defaultImport.trackWithMetadata(AnalyticEvents.IAR_NAVIGATE, {message_id: id,
|
||||
content_type: reportTypeBinding.name,
|
||||
report_sub_type: property.report_type, current_node: node.id, next_node: property.id});
|
||||
r12 = id;
|
||||
}
|
||||
binding = env0_1;
|
||||
push = binding.push;
|
||||
object2 = {node: property};
|
||||
historyBinding = history;
|
||||
items2 = [];
|
||||
value = arraySpread(items2, historyBinding, 0, r12);
|
||||
items2[value] = value5;
|
||||
value + 1;
|
||||
object2.history = items2;
|
||||
Reflect.apply(push, binding, [IN_APP_REPORTS_NODE, object2]);
|
||||
if (onNavigate != null) {
|
||||
onNavigate(property.key);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
var button = property.button;
|
||||
if ((button == null ? value2 : button.type) === 'next') {
|
||||
return env0_20(['', property.button.target]);
|
||||
}
|
||||
if (reportType.name === ReportNames.MESSAGE) {
|
||||
reportTypeBinding = reportType;
|
||||
id = reportTypeBinding.record.id;
|
||||
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
defaultImport.trackWithMetadata(AnalyticEvents.IAR_NAVIGATE, {message_id: id,
|
||||
content_type: reportTypeBinding.name,
|
||||
report_sub_type: property.report_type, current_node: node.id, next_node: property.id});
|
||||
r12 = id;
|
||||
} else if (reportType.name === ReportNames.FIRST_DM) {
|
||||
reportTypeBinding = reportType;
|
||||
id = reportTypeBinding.record.id;
|
||||
defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
defaultImport.trackWithMetadata(AnalyticEvents.IAR_NAVIGATE, {message_id: id,
|
||||
content_type: reportTypeBinding.name,
|
||||
report_sub_type: property.report_type, current_node: node.id, next_node: property.id});
|
||||
r12 = id;
|
||||
}
|
||||
binding = env0_1;
|
||||
push = binding.push;
|
||||
object2 = {node: property};
|
||||
historyBinding = history;
|
||||
items2 = [];
|
||||
value = arraySpread(items2, historyBinding, 0, r12);
|
||||
items2[value] = value5;
|
||||
value + 1;
|
||||
object2.history = items2;
|
||||
Reflect.apply(push, binding, [IN_APP_REPORTS_NODE, object2]);
|
||||
if (onNavigate != null) {
|
||||
onNavigate(property.key);
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun65513() { // fn#65513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:6860, offset: 0x01bd262a, size: 126 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var setOptions;
|
||||
const button = node.button;
|
||||
const value2 = undefined;
|
||||
let r2 = (button == null ? value2 : button.type) === 'done' || (node.button == null ? value2 : node.button.type) === 'cancel';
|
||||
r2 = !r2 ? history.length === 0 : r2;
|
||||
if (r2) {
|
||||
binding = env0_1;
|
||||
setOptions = binding.setOptions;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(setOptions, binding, [{headerLeft: NullComponent}]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun65514(a0) { // fn#65514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:7055, offset: 0x01bd26a8, size: 125 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var r0;
|
||||
const value = environment.__proto__;
|
||||
const getChannel = ChannelStore.getChannel;
|
||||
const getChannelId = a0.getChannelId;
|
||||
const value2 = Reflect.apply(getChannel, ChannelStore, [Reflect.apply(getChannelId, a0, [])]);
|
||||
const value3 = value2 != null;
|
||||
if (value3) {
|
||||
r1 = value2.type !== ChannelTypes.DM && value2.type !== ChannelTypes.GROUP_DM;
|
||||
r1 = r1 && PermissionStore.canWithPartialContext(Permissions.MANAGE_MESSAGES, {channelId: value2.id});
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function NodeViewOnPress(a0, a1) { // fn#65515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:9746, owner: NodeView.onPress, offset: 0x01bd2725, size: 55 bytes, params: 3, frame: 14
|
||||
const object2 = {};
|
||||
const binding = env0_16;
|
||||
copyDataProperties(object2, binding, undefined);
|
||||
if (a0 in binding) {
|
||||
delete object2[a0];
|
||||
} else {
|
||||
object2[a0] = a1;
|
||||
}
|
||||
env0_17(object2);
|
||||
}
|
||||
|
||||
function NodeViewOnPress_65516(a0) { // fn#65516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:10114, owner: NodeView.onPress, offset: 0x01bd275c, size: 129 bytes, params: 2, frame: 11
|
||||
const type = a0.type;
|
||||
if (type === 'done') {
|
||||
env0_20(['', -1]);
|
||||
} else if (type === 'cancel') {
|
||||
env0_20(['', -1]);
|
||||
} else if (type === 'next') {
|
||||
env0_20(['', a0.target]);
|
||||
} else if (type === 'submit') {
|
||||
_fun65517();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65494() { // fn#65494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:3563, offset: 0x01bd149e, size: 23 bytes, params: 1, frame: 11
|
||||
const binding = env1_1;
|
||||
return binding.onPress(child);
|
||||
}
|
||||
|
||||
function focusHeader() { // fn#65500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:4951, offset: 0x01bd21df, size: 88 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (!env1_4.current) {
|
||||
env1_4.current = true;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
moduleValue = require(4570) /* metro dependency 4570: setAccessibilityFocusAndroid */;
|
||||
moduleValue.setAccessibilityFocus({ref: env1_3, delay: 300});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65501({data}) { // fn#65501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:5067, offset: 0x01bd2237, size: 46 bytes, params: 2, frame: 11
|
||||
if (data?.closing !== true) {
|
||||
focusHeader();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65502() { // fn#65502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:5172, offset: 0x01bd2265, size: 32 bytes, params: 1, frame: 11
|
||||
env0_1();
|
||||
global.clearTimeout(env0_2);
|
||||
}
|
||||
|
||||
function _loop_65507(a0, a1) { // fn#65507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:5939, offset: 0x01bd237c, size: 52 bytes, params: 3, frame: 11
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
if (env0_0 === true) {
|
||||
value = environment.__proto__;
|
||||
env1_17(_fun65508);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65510() { // fn#65510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:6158, offset: 0x01bd23ee, size: 44 bytes, params: 1, frame: 11
|
||||
if (env1_0.onNavigate != null) {
|
||||
env1_0.onNavigate('..');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun65517() { // fn#65517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:10224, offset: 0x01bd27dd, size: 113 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_13(true);
|
||||
value = onSubmit(env1_19(['', env1_0.successNodeId]));
|
||||
value = value.then(_fun65518);
|
||||
value = value.catch(_fun65519);
|
||||
value.finally(_fun65520);
|
||||
}
|
||||
|
||||
function _fun65518() { // fn#65518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:10276, offset: 0x01bd284e, size: 117 bytes, params: 1, frame: 14
|
||||
var value3;
|
||||
var AccessibilityAnnouncer;
|
||||
const value2 = undefined;
|
||||
env2_18(false);
|
||||
const property = nodeMap[env2_0.successNodeId];
|
||||
if ((property == null ? value2 : property.header) != null) {
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
AccessibilityAnnouncer.announce(property.header);
|
||||
}
|
||||
env2_20(env0_0);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun65519() { // fn#65519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8346:10413, offset: 0x01bd28c3, size: 18 bytes, params: 1, frame: 11
|
||||
env2_18(true);
|
||||
}
|
||||
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/* Metro module 15707; source: modules/in_app_reports/native/components/feedback/InAppReportsFeedbackActionSheet.tsx; dependencies: [31, 661, 9906, 33, 15708, 15709, 9927, 1244, 683, 15710, 9909, 3856, 2] */
|
||||
function _fun120545(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15915:6, offset: 0x0252f42d, size: 182 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 env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_4 = (require(9906) /* metro dependency 9906: Constants */).FeedbackType;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/feedback/InAppReportsFeedbackActionSheet.tsx');
|
||||
exports.default = InAppReportsFeedbackActionSheet;
|
||||
}
|
||||
|
||||
function InAppReportsFeedbackActionSheet({reportId, reportType}) { // fn#120546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15915:296, offset: 0x0252f4e3, size: 327 bytes, params: 2, frame: 22
|
||||
const value2 = (importDefault(15708) /* metro dependency 15708: getInAppReportsFeedbackOptions */)();
|
||||
const value3 = (require(15709) /* metro dependency 15709: migration */).improperGetEnglishIntlMessageText('CALL_FEEDBACK_OPTION_OTHER');
|
||||
const feedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
|
||||
const object2 = {'headerLabel': null, 'showHeaderCloseButton': true, 'hideDontShowAgainCheckbox': true};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const MP5lDj = (require(1244) /* metro dependency 1244: indexNative */).t.MP5lDj;
|
||||
object2.headerLabel = Reflect.apply(string, intl, [MP5lDj]);
|
||||
object2.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7Ct0Dj']);
|
||||
string = intl.string;
|
||||
const FJmoxF = (require(1244) /* metro dependency 1244: indexNative */).t.FJmoxF;
|
||||
object2.reasonsHeaderLabel = Reflect.apply(string, intl, [FJmoxF]);
|
||||
object2.reasons = value2;
|
||||
object2.feedbackReasons = [value3];
|
||||
object2.otherKey = value3;
|
||||
object2.trackOpen = function() {
|
||||
var defaultImport = importDefault(dependencyMap[8]);
|
||||
var IAR_FEEDBACK_MODAL_VIEWED = AnalyticEvents.IAR_FEEDBACK_MODAL_VIEWED;
|
||||
defaultImport.track(IAR_FEEDBACK_MODAL_VIEWED, {report_id: reportId, report_type: reportType});
|
||||
};
|
||||
object2.trackReport = trackReport;
|
||||
return ((Component) => <Component {...object2} />)(feedbackActionSheet);
|
||||
}
|
||||
|
||||
function InAppReportsFeedbackActionSheetTrackReport({rating, reason, feedback, dontShowAgain}) { // fn#120548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15915:831, owner: InAppReportsFeedbackActionSheet.trackReport, offset: 0x0252f671, size: 237 bytes, params: 2, frame: 18
|
||||
const value = null;
|
||||
(importDefault(15710) /* metro dependency 15710: trackInAppReportsFeedback */)({rating: rating,
|
||||
problem: value != reason ? reason.value : value, feedback: value != feedback ? feedback : '',
|
||||
reportId: reportId, reportType: reportType, dontShowAgain: value != dontShowAgain && dontShowAgain});
|
||||
if (dontShowAgain) {
|
||||
(require(9909) /* metro dependency 9909: FeedbackUtils */).processOptOut({feedbackType: FeedbackType.IN_APP_REPORTS,
|
||||
|
||||
location: 'InAppReportsFeedbackActionSheet'});
|
||||
}
|
||||
if (value != rating) {
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,283 @@
|
||||
/* Metro module 8155; source: modules/in_app_reports/showReportModal.native.tsx; dependencies: [5, 8156, 8157, 5080, 8158, 1962, 2] */
|
||||
function _fun65389(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8340:6, offset: 0x01bce0e1, size: 146 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/showReportModal.native.tsx');
|
||||
exports.showReportModal = function() {
|
||||
return _showReportModal.apply(this, arguments);
|
||||
};
|
||||
exports.hideReportModal = hideReportModal;
|
||||
}
|
||||
|
||||
function _showReportModal() { // fn#65390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8340:134, offset: 0x01bce173, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun65392).apply(this, arguments);
|
||||
}
|
||||
|
||||
function hideReportModal() { // fn#65394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8340:723, offset: 0x01bce2e3, size: 42 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(env0_4);
|
||||
}
|
||||
|
||||
async function _fun65392(a0, a1, {onSubmit, isEligibleForFeedback}) { // fn#65392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8340:189, offset: 0x01bce1b5, size: 302 bytes, params: 4, frame: 24
|
||||
var r12;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var ReportMenuTypeSets;
|
||||
var REPORT_TO_MOD;
|
||||
var has;
|
||||
var name;
|
||||
var value5;
|
||||
var binding3;
|
||||
var value6;
|
||||
var getReportMenu;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var getReportMenuForModeratorReport;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var binding4;
|
||||
var value13;
|
||||
var pushLazy;
|
||||
var value14;
|
||||
var paths;
|
||||
var value15;
|
||||
var object2;
|
||||
var error;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
reducibleJoin3: while (true) {
|
||||
if (isEligibleForFeedback !== undefined) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
value = true;
|
||||
isEligibleForFeedback = value;
|
||||
break reducibleJoin3;
|
||||
}
|
||||
await undefined;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
reducibleJoin7: while (true) {
|
||||
reduciblePort59: while (true) {
|
||||
exceptionLanding58: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
break reducibleJoin7;
|
||||
}
|
||||
break reduciblePort59;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = binding2[1];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
ReportMenuTypeSets = value4.ReportMenuTypeSets;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
REPORT_TO_MOD = ReportMenuTypeSets.REPORT_TO_MOD;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
has = REPORT_TO_MOD.has;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
name = a0.name;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(has, REPORT_TO_MOD, [name]);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = binding3[2];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
if (value5) {
|
||||
try {
|
||||
getReportMenuForModeratorReport = value6.getReportMenuForModeratorReport;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value10 = Reflect.apply(getReportMenuForModeratorReport, value6, [a0, a1]);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
await value10;
|
||||
try {
|
||||
value11 = undefined;
|
||||
value12 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
reducibleJoin36: while (true) {
|
||||
if (value12) {
|
||||
return value11;
|
||||
}
|
||||
r12 = value11;
|
||||
break reducibleJoin36;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
getReportMenu = value6.getReportMenu;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(getReportMenu, value6, [a0, a1]);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
await value7;
|
||||
try {
|
||||
value8 = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
reducibleJoin36: while (true) {
|
||||
if (value9) {
|
||||
return value8;
|
||||
}
|
||||
r12 = value8;
|
||||
break reducibleJoin36;
|
||||
}
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = binding4[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value13 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
pushLazy = value13.pushLazy;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = binding4[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value14 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
property = binding4[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
paths = binding4.paths;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
value15 = value14(property, paths);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
object2.menu = r12;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
object2.reportType = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
object2.afterSubmit = onSubmit;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
object2.isEligibleForFeedback = isEligibleForFeedback;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(pushLazy, value13, [value15, object2, binding]);
|
||||
} catch (error) {
|
||||
break exceptionLanding58;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 15710; source: modules/in_app_reports/trackInAppReportsFeedback.tsx; dependencies: [661, 683, 2] */
|
||||
function _fun120553(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15918:6, offset: 0x0252f9a4, size: 120 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/trackInAppReportsFeedback.tsx');
|
||||
exports.default = trackInAppReportsFeedback;
|
||||
}
|
||||
|
||||
function trackInAppReportsFeedback({problem, feedback, reportType, reportId, rating, dontShowAgain}) { // fn#120554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15918:217, offset: 0x0252fa1c, size: 133 bytes, params: 2, frame: 20
|
||||
reportId = reportId === undefined ? null : reportId;
|
||||
rating = rating === undefined ? null : rating;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const IAR_FEEDBACK_SUBMITTED = AnalyticEvents.IAR_FEEDBACK_SUBMITTED;
|
||||
Reflect.apply(track, defaultImport, [IAR_FEEDBACK_SUBMITTED, {reason: problem, report_type: reportType,
|
||||
report_id: reportId, rating: rating, feedback: feedback, dont_show_again: dontShowAgain}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user