This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,35 +1,41 @@
/* Metro module 8166; source: modules/in_app_reports/IarSettingsUpsellsConfigDmSpamFilter.tsx; dependencies: [1244, 8154, 677, 3829, 1314, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChannelTypesModule from '../../external/discord_common/js/shared/shared-constants/ChannelTypes.tsx'; /* Metro dependency 677 */
import * as UserSettingsModule from '../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as MenuTypesModule from './MenuTypes.tsx'; /* Metro dependency 8154 */
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() {
object = {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 ReportSubType = (MenuTypesModule).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() {
object.eligibleReportSubtypes = [SUB_SPAM];
const {DM, GROUP_DM} = (ChannelTypesModule).ChannelTypes;
object.eligibleChannelTypes = [DM, GROUP_DM];
object.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;
}
object.predicate = predicate_65539;
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigDmSpamFilter.tsx');
exports.default = object;
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 = (UserSettingsModule).DmSpamFilterV2;
const setting = DmSpamFilterV2.getSetting();
DmSpamFilterV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).DmSpamFilterV2;
const DISABLED = DmSpamFilterV2.DISABLED;
return setting === DISABLED;
}
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;
}
global.__d(_fun65534, 8166, [1244, 8154, 677, 3829, 1314,
2]) /* metro module 8166, dependencies: [1244, 8154, 677, 3829, 1314, 2] */;
@@ -1,114 +1,119 @@
/* Metro module 8165; source: modules/in_app_reports/IarSettingsUpsellsConfigRegistry.tsx; dependencies: [31, 8154, 8166, 8167, 8168, 1360, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as GlobalUtilsModule from '../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as MenuTypesModule from './MenuTypes.tsx'; /* Metro dependency 8154 */
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;
object = {};
const SettingsUpsells = (MenuTypesModule).SettingsUpsells;
const SAFETY_DM_SPAM_FILTER = SettingsUpsells.SAFETY_DM_SPAM_FILTER;
object2[SAFETY_DM_SPAM_FILTER] = importDefault(8166) /* metro dependency 8166: IarSettingsUpsellsConfigDmSpamFilter */;
object[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 */;
object[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;
object[SAFETY_SC_FILTERS_GRAPHIC_MEDIA] = importDefault(8168) /* metro dependency 8168: IarSettingsUpsellsConfigScFiltersGraphicMedia */;
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigRegistry.tsx');
exports.SettingsUpsellsConfigRegistry = object;
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 ReactModule.useMemo(_fun65527, [a0]);
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 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 _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 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();
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 ReactModule.useMemo(_fun65531, [a0, a1]);
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((GlobalUtilsModule).isNotNullish);
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 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;
}
}
}
}
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;
}
global.__d(_fun65525, 8165, [31, 8154, 8166, 8167, 8168, 1360,
2]) /* metro module 8165, dependencies: [31, 8154, 8166, 8167, 8168, 1360, 2] */;
@@ -1,53 +1,58 @@
/* Metro module 8168; source: modules/in_app_reports/IarSettingsUpsellsConfigScFiltersGraphicMedia.tsx; dependencies: [4844, 1314, 1244, 8154, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Preloaded_user_settingsModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as SensitiveMediaGoreRedactionSettingsUtilsModule from '../explicit_media_redaction/SensitiveMediaGoreRedactionSettingsUtils.tsx'; /* Metro dependency 4844 */
import * as MenuTypesModule from './MenuTypes.tsx'; /* Metro dependency 8154 */
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() {
object = {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;
const {SUB_GORE, SUB_GLORIFYING_VIOLENCE} = (MenuTypesModule).ReportSubType;
object.eligibleReportSubtypes = [SUB_GORE, SUB_GLORIFYING_VIOLENCE];
object.onApply = onApply_65550;
object.predicate = predicate_65551;
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigScFiltersGraphicMedia.tsx');
exports.default = object;
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 updateGoreContentSetting = SensitiveMediaGoreRedactionSettingsUtilsModule.updateGoreContentSetting;
const {goreContentGuilds, goreContentFriendDm,
goreContentNonFriendDm} = SensitiveMediaGoreRedactionSettingsUtilsModule.getGoreContentSettingOrDefault();
const object = {};
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
let SHOW = ExplicitContentRedaction.SHOW;
if (goreContentGuilds === SHOW) {
object.goreContentGuilds = ExplicitContentRedaction.BLUR;
}
SHOW = ExplicitContentRedaction.SHOW;
if (goreContentFriendDm === SHOW) {
object.goreContentFriendDm = ExplicitContentRedaction.BLUR;
}
SHOW = ExplicitContentRedaction.SHOW;
if (goreContentNonFriendDm === SHOW) {
object.goreContentNonFriendDm = ExplicitContentRedaction.BLUR;
}
return Reflect.apply(updateGoreContentSetting, SensitiveMediaGoreRedactionSettingsUtilsModule, [object]);
}
SHOW = ExplicitContentRedaction.SHOW;
if (goreContentNonFriendDm === SHOW) {
object2.goreContentNonFriendDm = ExplicitContentRedaction.BLUR;
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} = (SensitiveMediaGoreRedactionSettingsUtilsModule).getGoreContentSettingOrDefault();
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const SHOW = ExplicitContentRedaction.SHOW;
let r0 = goreContentGuilds === SHOW || goreContentFriendDm === ExplicitContentRedaction.SHOW;
r0 = !r0 ? goreContentNonFriendDm === ExplicitContentRedaction.SHOW : r0;
return r0;
}
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;
}
global.__d(_fun65546, 8168, [4844, 1314, 1244, 8154,
2]) /* metro module 8168, dependencies: [4844, 1314, 1244, 8154, 2] */;
@@ -1,10 +1,14 @@
/* Metro module 8167; source: modules/in_app_reports/IarSettingsUpsellsConfigScFiltersSexualMedia.tsx; dependencies: [4842, 1314, 1244, 8154, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Preloaded_user_settingsModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as SensitiveMediaExplicitRedactionSettingsUtilsModule from '../explicit_media_redaction/SensitiveMediaExplicitRedactionSettingsUtils.tsx'; /* Metro dependency 4842 */
import * as MenuTypesModule from './MenuTypes.tsx'; /* Metro dependency 8154 */
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() {
object = {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);
@@ -12,43 +16,44 @@ function _fun65540(global, require, importDefault, importAll, module, exports, d
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;
SUB_UNSOLICITED_PORN} = (MenuTypesModule).ReportSubType;
object.eligibleReportSubtypes = [SUB_CSAM, SUB_LOLI, SUB_NCP, SUB_SEXUALLY_DEGRADING_CONTENT, SUB_UNSOLICITED_PORN];
object.onApply = onApply_65544;
object.predicate = predicate_65545;
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/IarSettingsUpsellsConfigScFiltersSexualMedia.tsx');
exports.default = object;
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 updateExplicitContentSetting = SensitiveMediaExplicitRedactionSettingsUtilsModule.updateExplicitContentSetting;
const {explicitContentGuilds, explicitContentFriendDm,
explicitContentNonFriendDm} = SensitiveMediaExplicitRedactionSettingsUtilsModule.getExplicitContentSettingOrDefault();
const object = {};
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
let SHOW = ExplicitContentRedaction.SHOW;
if (explicitContentGuilds === SHOW) {
object.explicitContentGuilds = ExplicitContentRedaction.BLUR;
}
SHOW = ExplicitContentRedaction.SHOW;
if (explicitContentFriendDm === SHOW) {
object.explicitContentFriendDm = ExplicitContentRedaction.BLUR;
}
SHOW = ExplicitContentRedaction.SHOW;
if (explicitContentNonFriendDm === SHOW) {
object.explicitContentNonFriendDm = ExplicitContentRedaction.BLUR;
}
return Reflect.apply(updateExplicitContentSetting, SensitiveMediaExplicitRedactionSettingsUtilsModule, [object]);
}
SHOW = ExplicitContentRedaction.SHOW;
if (explicitContentNonFriendDm === SHOW) {
object2.explicitContentNonFriendDm = ExplicitContentRedaction.BLUR;
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} = (SensitiveMediaExplicitRedactionSettingsUtilsModule).getExplicitContentSettingOrDefault();
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const SHOW = ExplicitContentRedaction.SHOW;
let r0 = explicitContentGuilds === SHOW || explicitContentFriendDm === ExplicitContentRedaction.SHOW;
r0 = !r0 ? explicitContentNonFriendDm === ExplicitContentRedaction.SHOW : r0;
return r0;
}
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;
}
global.__d(_fun65540, 8167, [4842, 1314, 1244, 8154,
2]) /* metro module 8167, dependencies: [4842, 1314, 1244, 8154, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 8162; source: modules/in_app_reports/MenuConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/MenuConstants.tsx');
exports.REMEDIATION_ELEMENT_TYPES = ['ignore_users', 'block_users', 'leave_guild', 'delete_message',
'deauthorize_app', 'share_with_parents'];
}
global.__d(_fun65521, 8162, [2]) /* metro module 8162, dependencies: [2] */;
+4 -1
View File
@@ -1,8 +1,10 @@
/* Metro module 8154; source: modules/in_app_reports/MenuTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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',
@@ -21,3 +23,4 @@ function _fun65388(global, require, importDefault, importAll, module, exports, d
SAFETY_SC_FILTERS_GRAPHIC_MEDIA: 'safety_sc_filters_graphic_media'};
}
global.__d(_fun65388, 8154, [2]) /* metro module 8154, dependencies: [2] */;
+474 -483
View File
@@ -1,4 +1,15 @@
/* Metro module 8153; source: modules/in_app_reports/ReportModals.tsx; dependencies: [5, 1384, 3794, 1885, 661, 8154, 8155, 8157, 1418, 4863, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import StageInstanceStore from '../stage_channels/StageInstanceStore.tsx'; /* Metro dependency 1384 */
import UserRecord from '../../records/UserRecord.tsx'; /* Metro dependency 1885 */
import MessageRecord from '../../records/MessageRecord.tsx'; /* Metro dependency 3794 */
import AppAnalyticsUtils from '../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as GuildRecordUtilsModule from '../../utils/GuildRecordUtils.tsx'; /* Metro dependency 1418 */
import * as MenuTypesModule from './MenuTypes.tsx'; /* Metro dependency 8154 */
import * as ShowReportModalNativeModule from './showReportModal.native.tsx'; /* Metro dependency 8155 */
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) {
@@ -10,12 +21,7 @@ function _fun65360(global, require, importDefault, importAll, module, exports, d
};
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');
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/ReportModals.tsx');
exports.showReportModalForGuild = showReportModalForGuild;
exports.showReportModalForGuildDirectoryEntry = showReportModalForGuildDirectoryEntry;
exports.showReportModalForMessage = showReportModalForMessage;
@@ -40,498 +46,483 @@ function _fun65360(global, require, importDefault, importAll, module, exports, d
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;
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 Module00005(_fun65363).apply(this, arguments);
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 object;
var value3;
var ReportNames;
var FIRST_DM;
var object2;
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;
}
break reducibleJoin4;
return undefined;
}
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 {
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 {
object = {};
} 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 {
object.name = FIRST_DM;
} catch (error) {
break exceptionLanding29;
}
try {
object.record = a0;
} catch (error) {
break exceptionLanding29;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding29;
}
try {
object2.variant = '_first_dm_ham_v1';
} catch (error) {
break exceptionLanding29;
}
try {
value = Reflect.apply(submitHeadlessReport, value, [object, object2]);
} 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 {
binding = env2_0;
a1();
} catch (error) {
break exceptionLanding29;
}
break reducibleJoin4;
break reducibleJoin30;
}
}
}
}
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 Module00005(_fun65366).apply(this, arguments);
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 object;
var value3;
var ReportNames;
var MESSAGE;
var object2;
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 {
object = {};
} 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 {
object.name = MESSAGE;
} catch (error) {
break exceptionLanding29;
}
try {
object.record = a0;
} catch (error) {
break exceptionLanding29;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding29;
}
try {
object2.variant = 'safety_alerts_headless_v1';
} catch (error) {
break exceptionLanding29;
}
try {
value = Reflect.apply(submitHeadlessReport, value, [object, object2]);
} 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 (a2 == null) {
if (value) {
break reducibleJoin31;
}
a2();
try {
a1();
} catch (error) {
break exceptionLanding29;
}
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;
}
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 = (MenuTypesModule).ReportNames;
let GUILD = ReportNames.GUILD;
trackShowReportModalAnalyticsBinding(GUILD, {guild_id: a0.id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
GUILD = ReportNames.GUILD;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let GUILD_DIRECTORY_ENTRY = ReportNames.GUILD_DIRECTORY_ENTRY;
trackShowReportModalAnalyticsBinding(GUILD_DIRECTORY_ENTRY, {channel_id: a0.channelId, guild_id: a0.guildId});
const showReportModal = ShowReportModalNativeModule.showReportModal;
GUILD_DIRECTORY_ENTRY = ReportNames.GUILD_DIRECTORY_ENTRY;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let MESSAGE = ReportNames.MESSAGE;
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: a0.id, channel_id: a0.channel_id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
MESSAGE = ReportNames.MESSAGE;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let MESSAGE = ReportNames.MESSAGE;
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: a0.id, channel_id: a0.channel_id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
MESSAGE = ReportNames.MESSAGE;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let GUILD = ReportNames.GUILD;
trackShowReportModalAnalyticsBinding(GUILD, {guild_id: a0.id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
GUILD = ReportNames.GUILD;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).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 = (MenuTypesModule).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 showReportModal = ShowReportModalNativeModule.showReportModal;
GUILD_SCHEDULED_EVENT = ReportNames.GUILD_SCHEDULED_EVENT;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let FIRST_DM = ReportNames.FIRST_DM;
trackShowReportModalAnalyticsBinding(FIRST_DM, {message_id: a0.id, channel_id: a0.channel_id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
FIRST_DM = ReportNames.FIRST_DM;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let USER = ReportNames.USER;
trackShowReportModalAnalyticsBinding(USER, {reported_user_id: a0.id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
USER = ReportNames.USER;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).ReportNames;
let USER = ReportNames.USER;
trackShowReportModalAnalyticsBinding(USER, {reported_user_id: a0.id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
USER = ReportNames.USER;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 userRecord2 = new UserRecord({});
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
const UnauthenticatedReportNames = (MenuTypesModule).UnauthenticatedReportNames;
let USER = UnauthenticatedReportNames.USER;
trackShowReportModalAnalyticsBinding(USER, {reported_user_id: userRecord2.id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
USER = UnauthenticatedReportNames.USER;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{name: USER, record: userRecord2}, {}, {'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 = (GuildRecordUtilsModule).dangerouslyConstructGuildRecordFromUntypedObject({});
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
const UnauthenticatedReportNames = (MenuTypesModule).UnauthenticatedReportNames;
let GUILD = UnauthenticatedReportNames.GUILD;
trackShowReportModalAnalyticsBinding(GUILD, {guild_id: value2.id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
GUILD = UnauthenticatedReportNames.GUILD;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = (MenuTypesModule).UnauthenticatedReportNames;
let MEDIA_TAKEDOWN = UnauthenticatedReportNames.MEDIA_TAKEDOWN;
trackShowReportModalAnalyticsBinding(MEDIA_TAKEDOWN, {});
const showReportModal = ShowReportModalNativeModule.showReportModal;
MEDIA_TAKEDOWN = UnauthenticatedReportNames.MEDIA_TAKEDOWN;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 messageRecord2 = new MessageRecord({});
const trackShowReportModalAnalyticsBinding = trackShowReportModalAnalytics;
const UnauthenticatedReportNames = (MenuTypesModule).UnauthenticatedReportNames;
let MESSAGE = UnauthenticatedReportNames.MESSAGE;
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: undefined, channel_id: undefined});
const showReportModal = ShowReportModalNativeModule.showReportModal;
MESSAGE = UnauthenticatedReportNames.MESSAGE;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{name: MESSAGE, record: messageRecord2}, {}, {'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 = (MenuTypesModule).ReportNames;
let MESSAGE = ReportNames.MESSAGE;
trackShowReportModalAnalyticsBinding(MESSAGE, {message_id: a0.id, channel_id: a0.channel_id});
const showReportModal = ShowReportModalNativeModule.showReportModal;
MESSAGE = ReportNames.MESSAGE;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 showReportModal = ShowReportModalNativeModule.showReportModal;
const ReportNames = (MenuTypesModule).ReportNames;
const WIDGET = ReportNames.WIDGET;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{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 = 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 = (MenuTypesModule).ReportNames;
let APPLICATION = ReportNames.APPLICATION;
trackShowReportModalAnalyticsBinding(APPLICATION, {application_id: application.id, guild_id: contextualGuildId,
channel_id: contextualChannelId});
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 showReportModal = ShowReportModalNativeModule.showReportModal;
const ModeratorReportNames = (MenuTypesModule).ModeratorReportNames;
const MESSAGE = ModeratorReportNames.MESSAGE;
Reflect.apply(showReportModal, ShowReportModalNativeModule, [{name: MESSAGE, record: a0}, {}, {onSubmit: a1,
isEligibleForFeedback: false}]);
}
}
global.__d(_fun65360, 8153, [5, 1384, 3794, 1885, 661, 8154, 8155, 8157, 1418, 4863,
2]) /* metro module 8153, dependencies: [5, 1384, 3794, 1885, 661, 8154, 8155, 8157, 1418, 4863, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,26 +1,30 @@
/* Metro module 8782; source: modules/in_app_reports/SafetyExperienceIarUserReportingExperiment.tsx; dependencies: [4620, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ExperimentsModule from '../experiments/index.tsx'; /* Metro dependency 4620 */
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 */;
let value = ExperimentsModule;
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');
(FileImportTrackerModule).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;
}
}
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;
}
global.__d(_fun68662, 8782, [4620, 2]) /* metro module 8782, dependencies: [4620, 2] */;
@@ -1,27 +1,31 @@
/* Metro module 15708; source: modules/in_app_reports/getInAppReportsFeedbackOptions.tsx; dependencies: [1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
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');
(FileImportTrackerModule).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 = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).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;
}
}
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;
}
global.__d(_fun120549, 15708, [1244, 2]) /* metro module 15708, dependencies: [1244, 2] */;
@@ -1,93 +1,114 @@
/* Metro module 8795; source: modules/in_app_reports/native/BotReportChooser.tsx; dependencies: [31, 4234, 33, 6805, 4573, 1244, 6807, 4080, 8153, 566, 6772, 2] */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ApplicationStore from '../../applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ApplicationActionCreatorsModule from '../../applications/ApplicationActionCreators.tsx'; /* Metro dependency 6772 */
import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as ActionSheetRowNativeModule from '../../../design/components/Sheet/native/ActionSheetRow.native.tsx'; /* Metro dependency 6807 */
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');
ReactModule;
(FileImportTrackerModule).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 = (ActionSheetRowNativeModule).ActionSheetRow;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<ActionSheetRow
label={<Text variant="heading-md/semibold">
{intl.string((IndexNativeModule).t.eyEkG1)}
</Text>}
subLabel={<Text variant="text-xs/medium">
{intl.string((IndexNativeModule).t.ptItsj)}
</Text>}
onPress={onPress_68785}
arrow
/>
);
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__;
(ActionSheetActionCreators).hideActionSheet(env1_6);
value = require(8153) /* metro dependency 8153: ReportModals */;
value.showReportModalForUser(user, contextualGuildId, onSubmit, appContext);
}
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});
}
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
const appIdForBotUserId = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStore],
function() {
return ApplicationStore.getAppIdForBotUserId(user.id);
});
const useApplication = ApplicationActionCreatorsModule.useApplication;
const data = Reflect.apply(useApplication, ApplicationActionCreatorsModule, [appIdForBotUserId]).data;
const ActionSheetRow = (ActionSheetRowNativeModule).ActionSheetRow;
object = {};
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.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;
object.subLabel = (
<Text variant="text-xs/medium">
{Reflect.apply(string, intl, [UGg603])}
</Text>
);
object.onPress = onPress_68788;
object.arrow = true;
object.disabled = data == null;
return <ActionSheetRow {...object} />;
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});
}
}
}
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 = (ActionSheetNativeModule).ActionSheet;
const object = {};
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Bd10bR = (IndexNativeModule).t.Bd10bR;
object.header = (
<Text style={{textAlign: 'center'}} variant="redesign/heading-18/bold">
{Reflect.apply(string, intl, [Bd10bR])}
</Text>
);
const ActionSheetRow = (ActionSheetRowNativeModule).ActionSheetRow;
const Group = ActionSheetRow.Group;
return (
<ActionSheet {...object}>
<Group hasIcons={false}>
<ReportAppProfile {...a0} />
<ReportAppBehavior {...a0} />
</Group>
</ActionSheet>
);
}
}
global.__d(_fun68783, 8795, [31, 4234, 33, 6805, 4573, 1244, 6807, 4080, 8153, 566, 6772,
2]) /* metro module 8795, dependencies: [31, 4234, 33, 6805, 4573, 1244, 6807, 4080, 8153, 566, 6772, 2] */;
@@ -1,27 +1,35 @@
/* Metro module 8163; source: modules/in_app_reports/native/components/Arrow.tsx; dependencies: [31, 33, 4501, 697, 1305, 8164, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import Module08164 from '../../../../by-id/module-08164.js'; /* Metro dependency 8164 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
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');
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const INTERACTIVE_TEXT_DEFAULT = (Native).colors.INTERACTIVE_TEXT_DEFAULT;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [{tintColor: {tintColor: INTERACTIVE_TEXT_DEFAULT}}]);
(FileImportTrackerModule).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 = (NativeModule).Icon;
const iconProps = {source: Module08164};
const Icon2 = (NativeModule).Icon;
const Sizes = Icon2.Sizes;
const MEDIUM = Sizes.MEDIUM;
iconProps.size = MEDIUM;
iconProps.style = styles.tintColor;
return <Icon {...iconProps} />;
}
}
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} />;
}
global.__d(_fun65522, 8163, [31, 33, 4501, 697, 1305, 8164,
2]) /* metro module 8163, dependencies: [31, 33, 4501, 697, 1305, 8164, 2] */;
@@ -1,174 +1,204 @@
/* 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] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseMountEffect from '../../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */
import Module08160 from '../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import NodeView from './NodeView.tsx'; /* Metro dependency 8161 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FamilyCenterUtilsModule from '../../../parent_tools/FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
import * as HeaderActionButtonNativeModule from '../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as ShowReportModalNativeModule from '../../showReportModal.native.tsx'; /* Metro dependency 8155 */
import * as ReportUtilsModule from '../../ReportUtils.tsx'; /* Metro dependency 8157 */
import * as InAppReportsConstantsModule from './InAppReportsConstants.tsx'; /* Metro dependency 8159 */
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');
(FileImportTrackerModule).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;
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 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 = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160, 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} />;
}
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();
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']: onSubmit}} {...{['closeModal']: closeModal}} {...{['addOnCloseCallback']: addOnCloseCallback}} {...{['reportId']: reportId}} {...{['onNavigate']: onNavigate}} />)(NodeView);
function onSubmit(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);
}
}
}
return value;
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 nodes = menu.nodes;
const root_node_id = menu.root_node_id;
const env0_6 = menu.success_node_id;
const env0_7 = menu.fail_node_id;
const binding = root_node_id;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [undefined]);
const binding2 = nodes;
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];
(UseMountEffect)(_fun65463);
const InAppReportModalCloseModal2 = InAppReportModalCloseModal;
const useMemo = binding.useMemo;
let object = [InAppReportModalCloseModal2, 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 _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__;
(FamilyCenterUtilsModule).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 _fun65465(a0) { // fn#65465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1228, offset: 0x01bd074a, size: 37 bytes, params: 2, frame: 13
const items2 = [];
const value = arraySpread(items2, a0, 0, undefined);
items2[value] = env0_0;
value + 1;
return items2;
}
}
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__;
ReportUtilsModule.trackCloseReportModalAnalytics(reportType, env0_12, env0_8);
(ShowReportModalNativeModule).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 object = {};
object.initialStack = [{name: IN_APP_REPORTS_NODE, params: {node: property, history: []}}];
object.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 object;
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* _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;
}
function _fun65472() { // fn#65472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1678, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
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 _fun65474(a0) { // fn#65474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8343:1970, offset: 0x01bd074a, size: 37 bytes, params: 2, frame: 13
const items2 = [];
const value = arraySpread(items2, a0, 0, undefined);
items2[value] = env0_0;
value + 1;
return items2;
}
}
}
}
}
global.__d(_fun65456, 8158, [5, 57, 31, 8159, 33, 5277, 8160, 1244, 8161, 4594, 5187, 8157, 8155, 5280,
2]) /* metro module 8158, dependencies: [5, 57, 31, 8159, 33, 5277, 8160, 1244, 8161, 4594, 5187, 8157, 8155, 5280, 2] */;
@@ -1,66 +1,81 @@
/* 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] */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import RelationshipStore from '../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import AppAnalyticsUtils from '../../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import SafetyToastsActionCreatorsNative from '../../../safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import RelationshipActionCreators from '../../../../actions/RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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');
(FileImportTrackerModule).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 = (IndexNativeModule).intl;
var formatToPlainString;
const t = (IndexNativeModule).t;
var property;
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 _fun81804() { // fn#81804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10810:481, offset: 0x01edf201, size: 93 bytes, params: 1, frame: 17
let value = environment.__proto__;
value = undefined;
return (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(ReactModule == null ? value : ReactModule.guild_id,
ReactModule == null ? value : ReactModule.id, user);
}
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 = 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 = RelationshipActionCreators;
defaultImport2.blockUser(userBinding.id, {location: 'ReportMenuBlockUser-iOS'});
const defaultImport3 = SafetyToastsActionCreatorsNative;
defaultImport3.showBlockSuccessToast(userBinding.id, channelId);
}
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);
}
global.__d(_fun81800, 10624, [31, 1379, 3793, 661, 33, 566, 4617, 4863, 8783, 6264, 10622, 1244, 10625,
2]) /* metro module 10624, dependencies: [31, 1379, 3793, 661, 33, 566, 4617, 4863, 8783, 6264, 10622, 1244, 10625, 2] */;
@@ -1,97 +1,120 @@
/* 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] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
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 */;
ReactModule;
const Fonts = (ConstantsModule).Fonts;
let value = JsxRuntimeModule;
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,
object = {container: {'flex': 0, 'alignSelf': 'stretch', 'paddingBottom': 12}};
object.paddingHorizontal = {paddingHorizontal: 16};
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
object.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;
object.descriptionText = {'lineHeight': 16, 'textAlign': 'center', 'marginBottom': 12};
const RED_400 = (Native).unsafe_rawColors.RED_400;
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object2.errorText = {'color': null, 'fontSize': 12, 'lineHeight': 16, 'fontFamily': null, 'textAlign': 'center',
object.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');
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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;
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;
}
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}
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 = (ButtonNativeModule).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>
</View>
);
);
}
}
global.__d(_fun81863, 10640, [31, 27, 482, 33, 4501, 697, 1244, 2324, 4573, 4578, 1305,
2]) /* metro module 10640, dependencies: [31, 27, 482, 33, 4501, 697, 1244, 2324, 4573, 4578, 1305, 2] */;
@@ -1,70 +1,113 @@
/* Metro module 10619; source: modules/in_app_reports/native/components/InAppReportsBreadCrumbs.tsx; dependencies: [31, 27, 33, 4501, 697, 22, 4573, 8156, 1244, 2324, 2] */
import Module00022 from '../../../../by-id/module-00022.js'; /* Metro dependency 22 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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},
object = {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,
const BACKGROUND_BRAND = (Native).colors.BACKGROUND_BRAND;
object.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,
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object.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');
object.breadCrumbText = {'marginStart': 8, 'lineHeight': 20};
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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 = Module00022;
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 _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 = (TextModule).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>
);
}
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
@@ -90,16 +133,5 @@ function _fun81782({destination, multiSelect}) { // fn#81782, source: /ci/build/
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>
);
}
global.__d(_fun81780, 10619, [31, 27, 33, 4501, 697, 22, 4573, 8156, 1244, 2324,
2]) /* metro module 10619, dependencies: [31, 27, 33, 4501, 697, 22, 4573, 8156, 1244, 2324, 2] */;
@@ -1,72 +1,99 @@
/* 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] */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GuildIconModule from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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}};
object = {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');
object.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
object.title = {'lineHeight': 16, 'marginBottom': 8};
const object3 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.itemContainer = object3;
object.guildInfo = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
object.guildName = {'lineHeight': 18, 'marginStart': 8};
object.topic = {'lineHeight': 20, 'marginTop': 8};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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}>
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 value2 = ColorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const InbJ8x = (IndexNativeModule).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 = GuildIcon;
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const XXSMALL = GuildIconSizes.XXSMALL;
value = ((Component) => <Component guild={guild} size={XXSMALL} selected={false} />)(value);
value = (
<View style={styles.guildInfo}>
{value}
<Text
style={styles.topic}
variant="text-md/bold"
color="mobile-text-heading-primary"
style={styles.guildName}
variant="text-sm/medium"
color="text-default"
>
{stageInstance.topic}
{guild.name}
</Text>
</View>
</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>
);
}
}
global.__d(_fun81769, 10615, [31, 27, 1867, 33, 4501, 697, 566, 4000, 4573, 1244, 6819,
2]) /* metro module 10615, dependencies: [31, 27, 1867, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 2] */;
@@ -1,8 +1,11 @@
/* Metro module 8159; source: modules/in_app_reports/native/components/InAppReportsConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsConstants.tsx');
exports.IN_APP_REPORTS_NODE = 'IN_APP_REPORTS_NODE';
}
global.__d(_fun65475, 8159, [2]) /* metro module 8159, dependencies: [2] */;
@@ -1,65 +1,71 @@
/* 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] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import MessageStore from '../../../../stores/MessageStore.tsx'; /* Metro dependency 4814 */
import AppAnalyticsUtils from '../../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import MessageActionCreators from '../../../../actions/MessageActionCreators.tsx'; /* Metro dependency 7067 */
import InAppReportsUpsellsTableRow from './InAppReportsUpsellsTableRow.tsx'; /* Metro dependency 10622 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as TrashIconModule from '../../../../design/components/Icon/native/redesign/generated/TrashIcon.tsx'; /* Metro dependency 4071 */
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');
(FileImportTrackerModule).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
const [property, env0_2] = Module00057(ReactModule.useState(false), 2);
const useStateFromStores = FluxModule.useStateFromStores;
ReactModule.useEffect(_fun81830, [Reflect.apply(useStateFromStores, FluxModule, [[MessageStore], _fun81829,
[message]])]);
const value5 = ReactModule.useCallback(_fun81831, [message, reportId]);
object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.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;
object.disabledTitle = Reflect.apply(string, intl, [AT2KSd]);
object.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dK8S0w);
object.disabled = property;
object.variant = 'danger';
object.onPress = value5;
const TrashIcon = (TrashIconModule).TrashIcon;
object.icon = <TrashIcon color="text-feedback-critical" />;
return ((Component) => <Component {...object} />)(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 messageStoreBinding = MessageStore;
const getMessage = messageStoreBinding.getMessage;
const messageBinding = message;
value = messageBinding.getChannelId();
value = Reflect.apply(getMessage, messageStoreBinding, [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(Module00057);
}
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 = 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 = MessageActionCreators;
const deleteMessage = defaultImport2.deleteMessage;
const messageBinding = message;
Reflect.apply(deleteMessage, defaultImport2, [messageBinding.getChannelId(), messageBinding.id]);
}
}
}
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]);
}
global.__d(_fun81827, 10631, [57, 31, 4814, 661, 33, 566, 4863, 7067, 10622, 1244, 4071,
2]) /* metro module 10631, dependencies: [57, 31, 4814, 661, 33, 566, 4863, 7067, 10622, 1244, 4071, 2] */;
@@ -1,83 +1,90 @@
/* Metro module 10637; source: modules/in_app_reports/native/components/InAppReportsExternalLinkElement.tsx; dependencies: [27, 33, 4501, 4573, 1244, 7975, 6242, 10638, 3853, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
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,
const env0_6 = (CreateStylesModule).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');
(FileImportTrackerModule).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 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 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;
}
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 (
<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"
/>
<View style={styles.linksContainer}>
{[r7, elements.map(_fun81859)]}
</View>
);
} else {
return null;
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} />;
}
}
}
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} />;
}
global.__d(_fun81853, 10637, [27, 33, 4501, 4573, 1244, 7975, 6242, 10638, 3853,
2]) /* metro module 10637, dependencies: [27, 33, 4501, 4573, 1244, 7975, 6242, 10638, 3853, 2] */;
@@ -1,65 +1,81 @@
/* 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] */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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}};
object = {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');
object.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
object.title = {'textTransform': 'uppercase', 'lineHeight': 16, 'marginBottom': 8};
const object3 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.itemContainer = object3;
object.guildInfo = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
object.guildName = {'lineHeight': 18, 'marginStart': 8};
const object4 = {'borderRadius': null, 'width': 18, 'height': 18};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.guildIcon = object4;
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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>
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 value2 = ColorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const text = (
<Text
style={styles.title}
accessibilityRole="header"
variant="text-xs/bold"
>
{intl.string((IndexNativeModule).t.nTe4HC)}
</Text>
);
const items2 = [styles.itemContainer];
items2[1] = {borderColor: value2};
let value = 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>
</View>
);
);
}
}
global.__d(_fun81777, 10618, [31, 27, 4502, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 1418,
2]) /* metro module 10618, dependencies: [31, 27, 4502, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 1418, 2] */;
@@ -1,57 +1,74 @@
/* Metro module 10616; source: modules/in_app_reports/native/components/InAppReportsGuildPreviewElement.tsx; dependencies: [31, 27, 33, 4501, 697, 4000, 4573, 1244, 6819, 2] */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GuildIconModule from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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}};
object = {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,
object.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
object.title = {'lineHeight': 16, 'marginBottom': 8};
const object3 = {'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');
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.guildContainer = object3;
object.guildInfo = {marginLeft: 8};
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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>
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 value2 = ColorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const text = (
<Text
style={styles.title}
accessibilityRole="header"
variant="text-xs/bold"
>
{intl.string((IndexNativeModule).t['0ox7Hq']).toUpperCase()}
</Text>
);
const items2 = [styles.guildContainer];
items2[1] = {borderColor: value2};
let value = GuildIcon;
const GuildIconSizes = (GuildIconModule).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>
</View>
);
);
}
}
global.__d(_fun81772, 10616, [31, 27, 33, 4501, 697, 4000, 4573, 1244, 6819,
2]) /* metro module 10616, dependencies: [31, 27, 33, 4501, 697, 4000, 4573, 1244, 6819, 2] */;
@@ -1,69 +1,96 @@
/* 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] */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GuildIconModule from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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}};
object = {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');
object.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
object.title = {'lineHeight': 16, 'marginBottom': 8};
const object3 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.itemContainer = object3;
object.guildInfo = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
object.guildName = {'lineHeight': 18, 'marginStart': 8};
object.eventName = {'lineHeight': 20, 'marginTop': 8};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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}>
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 value2 = ColorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const SDTOL7 = (IndexNativeModule).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 = GuildIcon;
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const XXSMALL = GuildIconSizes.XXSMALL;
value = ((Component) => <Component guild={guild} size={XXSMALL} selected={false} />)(value);
value = (
<View style={styles.guildInfo}>
{value}
<Text
style={styles.eventName}
variant="text-md/bold"
color="mobile-text-heading-primary"
style={styles.guildName}
variant="text-sm/medium"
color="text-default"
>
{event.name}
{guild.name}
</Text>
</View>
</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>
);
}
}
global.__d(_fun81774, 10617, [31, 27, 1867, 33, 4501, 697, 566, 4000, 4573, 1244, 6819,
2]) /* metro module 10617, dependencies: [31, 27, 1867, 33, 4501, 697, 566, 4000, 4573, 1244, 6819, 2] */;
@@ -1,52 +1,71 @@
/* 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] */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import RelationshipStore from '../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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');
(FileImportTrackerModule).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;
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 = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const items = [RelationshipStore];
const {isIgnored, isBlocked} = Reflect.apply(useStateFromStoresObject, FluxModule, [items, function() {
var object = {};
var relationshipStoreBinding = RelationshipStore;
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)} />;
object.isIgnored = relationshipStoreBinding.isIgnored(userBinding.id);
object.isBlocked = relationshipStoreBinding.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;
function _fun81791() { // fn#81791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10807:559, offset: 0x01edf201, size: 93 bytes, params: 1, frame: 17
let value = environment.__proto__;
value = undefined;
return (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(ReactModule == null ? value : ReactModule.guild_id,
ReactModule == null ? value : ReactModule.id, user);
}
}
return r0;
}
global.__d(_fun81787, 10621, [31, 1379, 3793, 661, 33, 566, 4617, 4863, 8783, 10622, 1244, 8998,
2]) /* metro module 10621, dependencies: [31, 1379, 3793, 661, 33, 566, 4617, 4863, 8783, 10622, 1244, 8998, 2] */;
@@ -1,81 +1,87 @@
/* 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] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AlertActionCreators from '../../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
import Alert from '../../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
import InAppReportsUpsellsTableRow from './InAppReportsUpsellsTableRow.tsx'; /* Metro dependency 10622 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DoorExitIconModule from '../../../../design/components/Icon/native/redesign/generated/DoorExitIcon.tsx'; /* Metro dependency 10633 */
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');
(FileImportTrackerModule).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
const [property, env0_3] = env0_3Binding(ReactModule.useState(false), 2);
ReactModule.useEffect(_fun81834, [guild != null]);
const env0_5 = ReactModule.useCallback(_fun81835, [addCallback, reportId, guild]);
object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cU96ip);
object.disabledTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rJGMXU);
object.description = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['26mR6/'],
{guildName: guild?.name});
object.disabled = property;
object.variant = 'danger';
object.onPress = onPress_81837;
const DoorExitIcon = (DoorExitIconModule).DoorExitIcon;
object.icon = <DoorExitIcon color="text-feedback-critical" />;
return <InAppReportsUpsellsTableRow {...object} />;
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 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 _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 _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);
}
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 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 = AlertActionCreators;
const show = defaultImport.show;
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
const J2TBi3 = t.J2TBi3;
object.title = Reflect.apply(string, intl, [J2TBi3]);
const formatToPlainString = intl.formatToPlainString;
const TB1og8 = t.TB1og8;
object.body = Reflect.apply(formatToPlainString, intl, [TB1og8, {name: guild == null ? value2 : guild.name}]);
object.confirmText = intl.string(t.p89ACt);
object.cancelText = intl.string(t.gm1Vej);
object.onConfirm = env0_5;
const Colors = (Alert).Colors;
const RED = Colors.RED;
object.confirmColor = RED;
Reflect.apply(show, defaultImport, [object]);
return value2;
}
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);
}
global.__d(_fun81832, 10632, [57, 31, 661, 33, 9112, 4863, 10622, 1244, 4496, 4596, 10633,
2]) /* metro module 10632, dependencies: [57, 31, 661, 33, 9112, 4863, 10622, 1244, 4496, 4596, 10633, 2] */;
@@ -1,52 +1,60 @@
/* Metro module 8176; source: modules/in_app_reports/native/components/InAppReportsMessagePreview.tsx; dependencies: [31, 27, 33, 4501, 697, 8177, 4000, 4573, 1244, 9773, 2] */
import ChatItem from '../../../../components_native/chat/ChatItem.tsx'; /* Metro dependency 9773 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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}};
object = {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]);
object.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
object.title = {'lineHeight': 16, 'marginBottom': 8};
const object3 = {'minHeight': 40, 'borderRadius': null, 'borderWidth': 1, 'padding': 8};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.chatItemContainer = object3;
const env0_6 = Reflect.apply(createStyles, value, [object]);
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');
(FileImportTrackerModule).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 */)}
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 value2 = ColorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={styles.container}>
<Text
style={styles.title}
accessibilityRole="header"
variant="text-xs/bold"
>
{intl.string((IndexNativeModule).t.iouM3a)}
</Text>
<View style={[styles.chatItemContainer, {borderColor: value2}]}>
{((Component) => <Component rowGenerator={env0_7} maxHeight={120} message={message} />)(ChatItem)}
</View>
</View>
</View>
);
);
}
}
global.__d(_fun65609, 8176, [31, 27, 33, 4501, 697, 8177, 4000, 4573, 1244, 9773,
2]) /* metro module 8176, dependencies: [31, 27, 33, 4501, 697, 8177, 4000, 4573, 1244, 9773, 2] */;
@@ -1,111 +1,118 @@
/* Metro module 10636; source: modules/in_app_reports/native/components/InAppReportsMultiSelect.tsx; dependencies: [31, 27, 33, 4501, 697, 6231, 8950, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableCheckboxRowNativeModule from '../../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
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 = {};
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.paddingHorizontal = PX_16;
object2.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');
object2.paddingVertical = PX_16;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).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;
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 (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 (element.type !== 'checkbox') {
return null;
}
const data = element.data;
const TableRowGroup = (TableRowGroupNativeModule).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 = (TableCheckboxRowNativeModule).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);
}
}
}
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);
}
global.__d(_fun81849, 10636, [31, 27, 33, 4501, 697, 6231, 8950,
2]) /* metro module 10636, dependencies: [31, 27, 33, 4501, 697, 6231, 8950, 2] */;
@@ -1,83 +1,95 @@
/* 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] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import AppAnalyticsUtils from '../../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import SafetyToastsActionCreatorsNative from '../../../safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as MuteSettingsUtilsModule from '../../../main_tabs_v2/native/sidebar/details/screens/MuteSettingsUtils.tsx'; /* Metro dependency 10627 */
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');
(FileImportTrackerModule).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 = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const channelStoreBinding = ChannelStore;
const dMFromUserId = channelStoreBinding.getDMFromUserId(user.id);
const dMFromUserId2 = dMFromUserId;
const useStateFromStores = FluxModule.useStateFromStores;
const items = [channelStoreBinding];
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 = dMFromUserId2(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 (MuteSettingsUtilsModule).getMuteSettings(Module00057);
}
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 = 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 handleMuteSettingPress = MuteSettingsUtilsModule.handleMuteSettingPress;
const ALWAYS = MuteUntilSeconds.ALWAYS;
Reflect.apply(handleMuteSettingPress, MuteSettingsUtilsModule, [{channelId: Module00057, guildId: null,
muteDurationSeconds: ALWAYS}]);
const defaultImport2 = SafetyToastsActionCreatorsNative;
defaultImport2.showMuteSuccessToast(userBinding.id, channelId);
}
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);
}
global.__d(_fun81808, 10626, [57, 31, 1379, 661, 670, 33, 566, 4617, 10627, 4863, 6264, 10622, 1244, 10629,
2]) /* metro module 10626, dependencies: [57, 31, 1379, 661, 670, 33, 566, 4617, 10627, 4863, 6264, 10622, 1244, 10629, 2] */;
@@ -1,36 +1,44 @@
/* Metro module 10620; source: modules/in_app_reports/native/components/InAppReportsRemediationsElement.tsx; dependencies: [31, 27, 33, 4501, 697, 6231, 1244, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
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');
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {};
const PX_16 = (Native).space.PX_16;
object2.paddingHorizontal = PX_16;
const PX_32 = (Native).space.PX_32;
object2.marginBottom = PX_32;
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).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 = (TableRowGroupNativeModule).TableRowGroup;
const intl = (IndexNativeModule).intl;
return (
<View style={styles.container}>
<TableRowGroup
title={intl.string((IndexNativeModule).t['k+QA9N'])}
hasIcons
>
{children}
</TableRowGroup>
</View>
);
}
}
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>
);
}
global.__d(_fun81785, 10620, [31, 27, 33, 4501, 697, 6231, 1244,
2]) /* metro module 10620, dependencies: [31, 27, 33, 4501, 697, 6231, 1244, 2] */;
@@ -1,14 +1,23 @@
/* 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] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import AppAnalyticsUtils from '../../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import InAppReportsUpsellsTableRow from './InAppReportsUpsellsTableRow.tsx'; /* Metro dependency 10622 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SettingsIconModule from '../../../../design/components/Icon/native/redesign/generated/SettingsIcon.tsx'; /* Metro dependency 7002 */
import * as OpenUserSettingsModule from '../../../user_settings/core/native/openUserSettings.tsx'; /* Metro dependency 7007 */
import * as ReportUtilsModule from '../../ReportUtils.tsx'; /* Metro dependency 8157 */
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 */;
let value = ConstantsModule;
const env0_7 = value.AnalyticEvents;
const env0_8 = value.UserSettingsSections;
value = require(33) /* metro dependency 33 */;
@@ -16,94 +25,102 @@ function _fun81841(global, require, importDefault, importAll, module, exports, d
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');
object = {};
const PX_16 = (Native).space.PX_16;
object.container = {paddingHorizontal: PX_16};
const PX_8 = (Native).space.PX_8;
object.settingsContainer = {width: '100%', marginBottom: PX_8};
const PX_4 = (Native).space.PX_4;
object.goToSettingsText = {marginTop: PX_4};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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] = Module00057(ReactModule.useState(false), 2);
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
trackSettingsUpsellsAction(require(dependencyMap[9]).TrackIarSettingsUpsellsActionType.SETTINGS_UPSELLS_VIEWED);
});
const object = {title: title, disabledTitle: disabledTitle, description: description, disabled: property,
onPress: onPress_81844};
const SettingsIcon = (SettingsIconModule).SettingsIcon;
object.icon = <SettingsIcon />;
return <InAppReportsUpsellsTableRow {...object} />;
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 = (ReportUtilsModule).TrackIarSettingsUpsellsActionType;
const SETTINGS_UPSELLS_APPLY_CLICKED = TrackIarSettingsUpsellsActionType.SETTINGS_UPSELLS_APPLY_CLICKED;
trackSettingsUpsellsActionBinding(SETTINGS_UPSELLS_APPLY_CLICKED);
}
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 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 = (IndexNativeModule).intl;
const t = (IndexNativeModule).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 = (ReportUtilsModule).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 _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 _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
const openUserSettings = OpenUserSettingsModule.openUserSettings;
const CONTENT_AND_SOCIAL = UserSettingsSections.CONTENT_AND_SOCIAL;
Reflect.apply(openUserSettings, OpenUserSettingsModule, [{screen: CONTENT_AND_SOCIAL}]);
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const IAR_SETTINGS_UPSELLS_ACTION = AnalyticEvents.IAR_SETTINGS_UPSELLS_ACTION;
object = {};
object.report_id = reportId;
object.report_type = reportType.name;
object.report_subtype = reportSubType;
const TrackIarSettingsUpsellsActionType = (ReportUtilsModule).TrackIarSettingsUpsellsActionType;
const SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED = TrackIarSettingsUpsellsActionType.SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED;
object.action = SETTINGS_UPSELLS_GO_TO_SETTINGS_LINK_CLICKED;
Reflect.apply(trackWithMetadata, defaultImport, [IAR_SETTINGS_UPSELLS_ACTION, object]);
}
}
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]);
}
global.__d(_fun81841, 10635, [57, 31, 27, 1379, 661, 33, 4501, 697, 4594, 8157, 10622, 7002, 566, 8165, 6231, 1244,
6766, 7007, 4863,
2]) /* metro module 10635, dependencies: [57, 31, 27, 1379, 661, 33, 4501, 697, 4594, 8157, 10622, 7002, 566, 8165, 6231, 1244, 6766, 7007, 4863, 2] */;
@@ -1,94 +1,100 @@
/* Metro module 10623; source: modules/in_app_reports/native/components/InAppReportsShareWithParentElement.tsx; dependencies: [57, 31, 33, 5118, 3856, 1244, 6264, 10622, 9798, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import SafetyToastsActionCreatorsNative from '../../../safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import InAppReportsUpsellsTableRow from './InAppReportsUpsellsTableRow.tsx'; /* Metro dependency 10622 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ToastUtilsModule from '../../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as ShareIconModule from '../../../../design/components/Icon/native/redesign/generated/ShareIcon.tsx'; /* Metro dependency 9798 */
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');
(FileImportTrackerModule).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 object2;
const [property, env0_1] = Module00057(ReactModule.useState(false), 2);
const value5 = ReactModule.useCallback(_fun81797, [parents]);
if (parents.length === 0) {
return null;
}
const intl = (IndexNativeModule).intl;
let formatToPlainString = intl.formatToPlainString;
const HqyWeO = (IndexNativeModule).t.HqyWeO;
object2 = {count: parents.length};
let username = parents[0].username;
object2.parent1 = username;
username = parents[1]?.username;
object2.parent2 = username;
username = parents[2]?.username;
object2.parent3 = username;
const value6 = Reflect.apply(formatToPlainString, intl, [HqyWeO, object2]);
formatToPlainString = intl.formatToPlainString;
const BlAMme = (IndexNativeModule).t.BlAMme;
const object = {};
object.count = parents.length;
username = parents[0].username;
object.parent1 = username;
username = parents[1]?.username;
object.parent2 = username;
username = parents[2]?.username;
object.parent3 = username;
const ShareIcon = (ShareIconModule).ShareIcon;
return (
<InAppReportsUpsellsTableRow
title={value6}
disabledTitle={Reflect.apply(formatToPlainString, intl, [BlAMme, object])}
icon={<ShareIcon />}
description={intl.string((IndexNativeModule).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 showSafetySuccess = ToastUtilsModule.showSafetySuccess;
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const wr4IT5 = (IndexNativeModule).t.wr4IT5;
const object = {};
const parentsBinding = parents;
object.count = parentsBinding.length;
let username = parentsBinding[0].username;
object.parent1 = username;
let property = parentsBinding[1];
username = property == null ? value : property.username;
object.parent2 = username;
property = parents[2];
username = property == null ? value : property.username;
object.parent3 = username;
Reflect.apply(showSafetySuccess, ToastUtilsModule, ['IAR_SHARE_WITH_PARENT_SUCCESS',
Reflect.apply(formatToPlainString, intl, [wr4IT5, object])]);
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__;
(SafetyToastsActionCreatorsNative).showFailedToast();
}
}
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();
}
global.__d(_fun81795, 10623, [57, 31, 33, 5118, 3856, 1244, 6264, 10622, 9798,
2]) /* metro module 10623, dependencies: [57, 31, 33, 5118, 3856, 1244, 6264, 10622, 9798, 2] */;
@@ -1,19 +1,33 @@
/* Metro module 8173; source: modules/in_app_reports/native/components/InAppReportsShieldElement.tsx; dependencies: [31, 27, 33, 4501, 5473, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
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,
ReactModule;
const env0_4 = (CreateStylesModule).createStyles({container: {'flex': 0,
'alignSelf': 'center', 'marginBottom': 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/in_app_reports/native/components/InAppReportsShieldElement.tsx');
(FileImportTrackerModule).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>
)
);
}
}
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>;
}
global.__d(_fun65597, 8173, [31, 27, 33, 4501, 5473,
2]) /* metro module 8173, dependencies: [31, 27, 33, 4501, 5473, 2] */;
@@ -1,49 +1,69 @@
/* Metro module 8175; source: modules/in_app_reports/native/components/InAppReportsTextElement.tsx; dependencies: [31, 27, 33, 4501, 4597, 4573, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as CustomMarkupNativeModule from '../../../markup/CustomMarkup.native.tsx'; /* Metro dependency 4597 */
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,
const env0_7 = (CreateStylesModule).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');
(FileImportTrackerModule).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;
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 useRef = ReactModule.useRef;
const getParser = CustomMarkupNativeModule.getParser;
const value2 = Reflect.apply(useRef, ReactModule, [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 {
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 = value3;
}
r0 = r1;
} else {
r0 = value3;
return r0;
}
return r0;
}
global.__d(_fun65607, 8175, [31, 27, 33, 4501, 4597, 4573,
2]) /* metro module 8175, dependencies: [31, 27, 33, 4501, 4597, 4573, 2] */;
@@ -1,132 +1,187 @@
/* 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] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import TextStyles from '../../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ToastUtilsModule from '../../../toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as CustomMarkupNativeModule from '../../../markup/CustomMarkup.native.tsx'; /* Metro dependency 4597 */
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 */;
let value = ReactNativeModule;
const env0_7 = value.View;
const env0_8 = value.Linking;
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
const Fonts = (ConstantsModule).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',
object = {container: {'marginBottom': 16, 'paddingHorizontal': 16}};
object.header = {marginBottom: 8};
object.description = {marginBottom: 16};
object.trailingButtonContainer = {paddingHorizontal: 8};
object.smsInfoContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
const object5 = {'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;
object5.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;
object5.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;
object5.backgroundColor = BACKGROUND_BASE_LOW;
object.smsNumberContainer = object5;
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 */;
object.smsNumberContainerSuccess = {borderColor: STATUS_POSITIVE_BACKGROUND};
const object6 = {};
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');
copyDataProperties(object6, TextStyles(DISPLAY_SEMIBOLD, INTERACTIVE_TEXT_ACTIVE, 14), undefined);
object.smsNumberText = object6;
object.startButtonContainer = {'paddingHorizontal': 12, 'marginBottom': 8, 'marginLeft': 12};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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;
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 = (TextModule).Text;
var items2;
var items3;
const Button = (ButtonNativeModule).Button;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).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] = Module00057(ReactModule.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]};
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
items3 = [
<LegacyText style={styles.smsNumberText}>
{sms}
</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>
);
}
if (value14) {
env3_1(env3_3[13]).openURL(value13);
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 (CustomMarkupNativeModule).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* _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);
}
}
}
function _fun65605() { // fn#65605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8359:1543, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
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);
(ToastUtilsModule).presentCopiedToClipboard();
env0_2(true);
}
}
}
global.__d(_fun65599, 8174, [5, 57, 31, 27, 482, 33, 4501, 697, 6597, 6518, 4597, 477, 4092, 3853, 4573, 1305, 4578,
1244, 6797, 3856,
2]) /* metro module 8174, dependencies: [5, 57, 31, 27, 482, 33, 4501, 697, 6597, 6518, 4597, 477, 4092, 3853, 4573, 1305, 4578, 1244, 6797, 3856, 2] */;
@@ -1,26 +1,31 @@
/* Metro module 10622; source: modules/in_app_reports/native/components/InAppReportsUpsellsTableRow.tsx; dependencies: [31, 33, 6238, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
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');
ReactModule;
(FileImportTrackerModule).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 = (TableRowNativeModule).TableRow;
return (
<TableRow
label={disabled ? disabledTitle ?? title : title}
subLabel={disabled ? null : description}
onPress={onPress}
icon={icon}
disabled={disabled}
variant={variant}
/>
);
}
}
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}
/>
);
}
global.__d(_fun81793, 10622, [31, 33, 6238, 2]) /* metro module 10622, dependencies: [31, 33, 6238, 2] */;
@@ -1,62 +1,83 @@
/* Metro module 10614; source: modules/in_app_reports/native/components/InAppReportsUserPreview.tsx; dependencies: [31, 27, 33, 4501, 697, 4000, 4573, 1244, 1305, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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 */;
ReactModule;
let value = JsxRuntimeModule;
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}};
object = {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,
object.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
object.title = {'lineHeight': 16, 'marginBottom': 8};
const object3 = {'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');
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.userContainer = object3;
object.userProfileInfo = {marginLeft: 8};
const env0_5 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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>
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 value2 = ColorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Rsth7z = (IndexNativeModule).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 = (NativeModule).Avatar;
const AvatarSizes = (NativeModule).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>
</View>
);
);
}
}
global.__d(_fun81767, 10614, [31, 27, 33, 4501, 697, 4000, 4573, 1244, 1305,
2]) /* metro module 10614, dependencies: [31, 27, 33, 4501, 697, 4000, 4573, 1244, 1305, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,53 +1,60 @@
/* 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] */
import FeedbackActionSheet from '../../../../feedback/native/FeedbackActionSheet.tsx'; /* Metro dependency 9927 */
import GetInAppReportsFeedbackOptions from '../../../getInAppReportsFeedbackOptions.tsx'; /* Metro dependency 15708 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from '../../../../feedback/Constants.tsx'; /* Metro dependency 9906 */
import * as MigrationModule from '../../../../../intl/migration.tsx'; /* Metro dependency 15709 */
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');
ReactModule;
(FileImportTrackerModule).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 = (GetInAppReportsFeedbackOptions)();
const value3 = (MigrationModule).improperGetEnglishIntlMessageText('CALL_FEEDBACK_OPTION_OTHER');
const object = {'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;
object.headerLabel = Reflect.apply(string, intl, [MP5lDj]);
object.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7Ct0Dj']);
string = intl.string;
const FJmoxF = (require(1244) /* metro dependency 1244: indexNative */).t.FJmoxF;
object.reasonsHeaderLabel = Reflect.apply(string, intl, [FJmoxF]);
object.reasons = value2;
object.feedbackReasons = [value3];
object.otherKey = value3;
object.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});
};
object.trackReport = trackReport_120548;
return ((Component) => <Component {...object} />)(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();
}
}
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();
}
}
global.__d(_fun120545, 15707, [31, 661, 9906, 33, 15708, 15709, 9927, 1244, 683, 15710, 9909, 3856,
2]) /* metro module 15707, dependencies: [31, 661, 9906, 33, 15708, 15709, 9927, 1244, 683, 15710, 9909, 3856, 2] */;
@@ -1,283 +1,288 @@
/* Metro module 8155; source: modules/in_app_reports/showReportModal.native.tsx; dependencies: [5, 8156, 8157, 5080, 8158, 1962, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ModalActionCreators from '../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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) {
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 Module00005(_fun65392).apply(this, arguments);
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 object;
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 {
binding = env2_0;
getReportMenuForModeratorReport = value6.getReportMenuForModeratorReport;
} catch (error) {
break exceptionLanding58;
}
break reducibleJoin7;
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;
}
}
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;
try {
binding = env2_1;
} catch (error) {
break exceptionLanding58;
}
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;
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 {
object = {};
} catch (error) {
break exceptionLanding58;
}
try {
object.menu = r12;
} catch (error) {
break exceptionLanding58;
}
try {
object.reportType = a0;
} catch (error) {
break exceptionLanding58;
}
try {
object.afterSubmit = onSubmit;
} catch (error) {
break exceptionLanding58;
}
try {
object.isEligibleForFeedback = isEligibleForFeedback;
} catch (error) {
break exceptionLanding58;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding58;
}
try {
Reflect.apply(pushLazy, value13, [value15, object, binding]);
} catch (error) {
break exceptionLanding58;
}
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;
}
}
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
(ModalActionCreators).popWithKey(env0_4);
}
}
global.__d(_fun65389, 8155, [5, 8156, 8157, 5080, 8158, 1962,
2]) /* metro module 8155, dependencies: [5, 8156, 8157, 5080, 8158, 1962, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 15710; source: modules/in_app_reports/trackInAppReportsFeedback.tsx; dependencies: [661, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
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');
(FileImportTrackerModule).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 = 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}]);
}
}
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}]);
}
global.__d(_fun120553, 15710, [661, 683, 2]) /* metro module 15710, dependencies: [661, 683, 2] */;