Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,41 @@
|
||||
/* Metro module 11290; source: modules/self_mod/stranger_danger/hooks/useStrangerDangerWarning.tsx; dependencies: [1878, 9706, 566, 11291, 11292, 11293, 8169, 9705, 2] */
|
||||
function _fun86179(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11476:6, offset: 0x01f8ac65, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_3 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/stranger_danger/hooks/useStrangerDangerWarning.tsx');
|
||||
exports.useStrangerDangerWarning = useStrangerDangerWarning;
|
||||
}
|
||||
|
||||
function useStrangerDangerWarning(a0) { // fn#86180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11476:263, offset: 0x01f8aced, size: 247 bytes, params: 2, frame: 20
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value3 = (require(11291) /* metro dependency 11291: useIsSpamMessageRequest */).useIsSpamMessageRequest(a0);
|
||||
const value4 = (require(11292) /* metro dependency 11292: useIsMessageRequest */).useIsMessageRequest(a0);
|
||||
const useChannelSafetyWarningModule = require(11293) /* metro dependency 11293: useChannelSafetyWarning */;
|
||||
const useChannelSafetyWarning = useChannelSafetyWarningModule.useChannelSafetyWarning;
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
const value5 = Reflect.apply(useChannelSafetyWarning, useChannelSafetyWarningModule, [a0, STRANGER_DANGER]);
|
||||
const value6 = (require(8169) /* metro dependency 8169: useUserIsTeen */).useUserIsTeen();
|
||||
const r6 = currentUser == null ? value2 : currentUser.isStaff();
|
||||
const useInappropriateConversationWarningsForChannel = (require(9705) /* metro dependency 9705: useInappropriateConversationWarningsForChannel */).useInappropriateConversationWarningsForChannel;
|
||||
value = Reflect.apply(useInappropriateConversationWarningsForChannel, value, [a0]).length > 0;
|
||||
if (!value6) {
|
||||
if (r6 !== true) {
|
||||
return value2;
|
||||
}
|
||||
}
|
||||
if (value3) {
|
||||
return value2;
|
||||
}
|
||||
if (value4) {
|
||||
return value2;
|
||||
}
|
||||
return value ? value2 : value5;
|
||||
}
|
||||
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
/* Metro module 11307; source: modules/self_mod/stranger_danger/native/components/StrangerDangerMoreTipsModalActionItems.tsx; dependencies: [57, 31, 3793, 1878, 9706, 33, 566, 3995, 9731, 8783, 1244, 8999, 8998, 10625, 6231, 11308, 2] */
|
||||
function _fun86257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:6, offset: 0x01f8deed, size: 212 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 relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_7 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningTypes;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/stranger_danger/native/components/StrangerDangerMoreTipsModalActionItems.tsx');
|
||||
exports.default = StrangerDangerMoreTipsModalActionItems;
|
||||
}
|
||||
|
||||
function StrangerDangerMoreTipsModalActionItems({channelId, warningId, senderId, onBlockPressed}) { // fn#86258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:317, offset: 0x01f8dfc1, size: 445 bytes, params: 2, frame: 27
|
||||
const env0_3 = onBlockPressed;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(senderId);
|
||||
}, [senderId]);
|
||||
const binding = value2;
|
||||
const value3 = binding.useMemo(_fun86260, [value2]);
|
||||
const {isIgnored,
|
||||
isBlocked} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RelationshipStore],
|
||||
function() {
|
||||
var object = {};
|
||||
var senderIdBinding = senderId;
|
||||
object.isIgnored = RelationshipStore.isIgnored(senderIdBinding);
|
||||
object.isBlocked = RelationshipStore.isBlocked(senderIdBinding);
|
||||
return object;
|
||||
}, [senderId]);
|
||||
const [property, property2] = env0_3(binding.useState(isIgnored), 2);
|
||||
const value9 = binding.useMemo(_fun86264, [property, isBlocked, value3, binding.useCallback(_fun86262, [channelId,
|
||||
warningId, senderId, property2]), binding.useCallback(_fun86263, [channelId, warningId, senderId, property2]),
|
||||
onBlockPressed]);
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup hasIcons>
|
||||
{value9.map(_fun86265)}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun86260() { // fn#86260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:494, offset: 0x01f8e199, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(env0_4);
|
||||
}
|
||||
|
||||
function _fun86262() { // fn#86262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:711, offset: 0x01f8e1f8, size: 156 bytes, params: 1, frame: 22
|
||||
const value = environment.__proto__;
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackCtaEvent = safetyWarningUtilsModule.trackCtaEvent;
|
||||
const object2 = {};
|
||||
const channelIdBinding = channelId;
|
||||
object2.channelId = channelIdBinding;
|
||||
object2.warningId = warningId;
|
||||
const senderIdBinding = senderId;
|
||||
object2.senderId = senderIdBinding;
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
object2.warningType = STRANGER_DANGER;
|
||||
const CtaEventTypes = safetyWarningUtilsModule.CtaEventTypes;
|
||||
const USER_MODAL_IGNORE = CtaEventTypes.USER_MODAL_IGNORE;
|
||||
object2.cta = USER_MODAL_IGNORE;
|
||||
Reflect.apply(trackCtaEvent, safetyWarningUtilsModule, [object2]);
|
||||
(importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */).ignoreUser(senderIdBinding,
|
||||
'mobile_stranger_danger_more', channelIdBinding);
|
||||
env0_8(true);
|
||||
}
|
||||
|
||||
function _fun86263() { // fn#86263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:940, offset: 0x01f8e294, size: 156 bytes, params: 1, frame: 22
|
||||
const value = environment.__proto__;
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackCtaEvent = safetyWarningUtilsModule.trackCtaEvent;
|
||||
const object2 = {};
|
||||
const channelIdBinding = channelId;
|
||||
object2.channelId = channelIdBinding;
|
||||
object2.warningId = warningId;
|
||||
const senderIdBinding = senderId;
|
||||
object2.senderId = senderIdBinding;
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
object2.warningType = STRANGER_DANGER;
|
||||
const CtaEventTypes = safetyWarningUtilsModule.CtaEventTypes;
|
||||
const USER_MODAL_UNIGNORE = CtaEventTypes.USER_MODAL_UNIGNORE;
|
||||
object2.cta = USER_MODAL_UNIGNORE;
|
||||
Reflect.apply(trackCtaEvent, safetyWarningUtilsModule, [object2]);
|
||||
(importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */).unignoreUser(senderIdBinding,
|
||||
'mobile_stranger_danger_more', channelIdBinding);
|
||||
env0_8(false);
|
||||
}
|
||||
|
||||
function _fun86264() { // fn#86264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:1169, offset: 0x01f8e330, size: 539 bytes, params: 1, frame: 21
|
||||
let object2 = {};
|
||||
const binding = env0_7;
|
||||
const value3 = undefined;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let formatToPlainString = intl.formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.title = binding ? Reflect.apply(formatToPlainString, intl, [t.ZLIKgJ,
|
||||
{username: env0_5}]) : Reflect.apply(formatToPlainString, intl, [t.QiyPaJ, {username: env0_5}]);
|
||||
object2.description = env0_7 ? value3 : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.naWE6W);
|
||||
object2.onClick = env0_7 ? env0_10 : env0_9;
|
||||
object2.icon = ((Component) => <Component />)(env0_7 ? (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon : (require(8998) /* metro dependency 8998: EyeSlashIcon */).EyeSlashIcon);
|
||||
const isBlockedBinding = isBlocked;
|
||||
object2.disabled = isBlockedBinding;
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
object2.title = isBlockedBinding ? Reflect.apply(formatToPlainString, intl, [t.bluEjH,
|
||||
{username: env0_5}]) : Reflect.apply(formatToPlainString, intl, [t['gc/wxc'], {username: env0_5}]);
|
||||
object2.description = isBlocked ? value3 : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.G08MKu);
|
||||
object2.onClick = onBlockPressed;
|
||||
const DenyIcon = (require(10625) /* metro dependency 10625: DenyIcon */).DenyIcon;
|
||||
object2.icon = <DenyIcon color="text-feedback-critical" />;
|
||||
object2.variant = 'danger';
|
||||
object2.disabled = isBlocked;
|
||||
items2[1] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun86265(a0, a1) { // fn#86265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11493:1835, offset: 0x01f8e54b, size: 75 bytes, params: 3, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const Fragment = env1_4.Fragment;
|
||||
return (
|
||||
<Fragment key={a1}>
|
||||
{((Component) => <Component {...a0} />)(importDefault(11308) /* metro dependency 11308: MoreYouCanDoRow */)}
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
/* Metro module 11306; source: modules/self_mod/stranger_danger/native/components/StrangerDangerWarningBanner.tsx; dependencies: [31, 3793, 9706, 9734, 661, 8781, 33, 4501, 697, 566, 9731, 9732, 5080, 4080, 8794, 1962, 480, 11298, 1244, 11301, 4573, 11307, 2] */
|
||||
function _fun86244(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:6, offset: 0x01f8d6a2, size: 335 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = StrangerDangerWarningBanner;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_5 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningTypes;
|
||||
let value = require(9734) /* metro dependency 9734: Constants */;
|
||||
const env0_6 = value.STRANGER_DANGER_MORE_TIPS_MODAL_KEY;
|
||||
const env0_7 = value.getStrangerDangerSafetyTips;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_9 = (require(8781) /* metro dependency 8781: RestrictionConfirmationConstants */).BLOCK_CONFIRMATION_ACTION_SHEET_KEY;
|
||||
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const env0_11 = Reflect.apply(createStyles, value, [{moreTipsHeader: {backgroundColor: BACKGROUND_BASE_LOWER,
|
||||
shadowColor: 'transparent'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/stranger_danger/native/components/StrangerDangerWarningBanner.tsx');
|
||||
exports.default = closure;
|
||||
exports.StrangerDangerWarningBanner = closure;
|
||||
}
|
||||
|
||||
function StrangerDangerWarningBanner({channelId, warningId, senderId}) { // fn#86245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:434, offset: 0x01f8d7f1, size: 668 bytes, params: 2, frame: 25
|
||||
var object6;
|
||||
var items;
|
||||
var object4;
|
||||
var intl3;
|
||||
const env0_3 = useStyles();
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
|
||||
return RelationshipStore.isBlocked(senderId);
|
||||
}, [senderId]);
|
||||
env0_3.useEffect(function() {
|
||||
var moduleValue = require(dependencyMap[10]);
|
||||
var SAFETY_WARNING_VIEWED = AnalyticEvents.SAFETY_WARNING_VIEWED;
|
||||
moduleValue.trackViewedEvent(SAFETY_WARNING_VIEWED, {channelId: channelId, warningId: warningId,
|
||||
senderId: senderId,
|
||||
warningType: SafetyWarningTypes.STRANGER_DANGER});
|
||||
}, [channelId, warningId, senderId]);
|
||||
const value3 = env0_3.useCallback(function() {
|
||||
require(dependencyMap[11]).dismissChannelSafetyWarnings(channelId, [warningId]);
|
||||
importDefault(dependencyMap[12]).popWithKey(STRANGER_DANGER_MORE_TIPS_MODAL_KEY);
|
||||
}, [channelId, warningId]);
|
||||
const value5 = env0_3.useCallback(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun86252;
|
||||
}, [env0_3.useCallback(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun86250;
|
||||
}, [value3, channelId, warningId, senderId]), value3, channelId, warningId, senderId]);
|
||||
const SafetyWarningBanner = importDefault(11298) /* metro dependency 11298: SafetyWarningBanner */;
|
||||
object6 = {channelId: channelId, warningId: warningId, senderId: senderId};
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
object6.warningType = STRANGER_DANGER;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object6.header = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.iOkDpM]);
|
||||
string = intl.string;
|
||||
const ISUbcM = (require(1244) /* metro dependency 1244: indexNative */).t.ISUbcM;
|
||||
object6.description = Reflect.apply(string, intl, [ISUbcM]);
|
||||
object6.onDismiss = value3;
|
||||
const object5 = {};
|
||||
const intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object5.text = intl2.string((require(1244) /* metro dependency 1244: indexNative */).t['Qk/c48']);
|
||||
object5.variant = 'primary';
|
||||
object5.onpress = onpress;
|
||||
const items2 = [object5];
|
||||
if (value2) {
|
||||
items = [];
|
||||
} else {
|
||||
object4 = {};
|
||||
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object4.text = intl3.string((require(1244) /* metro dependency 1244: indexNative */).t.ie0QdN);
|
||||
object4.variant = 'destructive';
|
||||
object4.onpress = value5((require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes.USER_BANNER_BLOCK_CONFIRM);
|
||||
items = [object4];
|
||||
}
|
||||
arraySpread(items2, items, 1, intl);
|
||||
object6.buttons = items2;
|
||||
return <SafetyWarningBanner {...object6} />;
|
||||
}
|
||||
|
||||
function _fun86249(a0) { // fn#86249, offset: 0x01f8db60, size: 18 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun86250;
|
||||
}
|
||||
|
||||
function _fun86251(a0) { // fn#86251, offset: 0x01f8dbda, size: 18 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun86252;
|
||||
}
|
||||
|
||||
function StrangerDangerWarningBannerOnpress() { // fn#86255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:1636, owner: StrangerDangerWarningBanner.onpress, offset: 0x01f8dd36, size: 374 bytes, params: 1, frame: 27
|
||||
const defaultImport = importDefault(dependencyMap[12]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
const value2 = require(dependencyMap[15])(dependencyMap[19], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
object2.modalKey = STRANGER_DANGER_MORE_TIPS_MODAL_KEY;
|
||||
object2.headerStyle = styles.moreTipsHeader;
|
||||
const channelIdBinding = channelId;
|
||||
object2.channelId = channelIdBinding;
|
||||
const warningIdBinding = warningId;
|
||||
object2.warningId = warningIdBinding;
|
||||
const senderIdBinding = senderId;
|
||||
object2.senderId = senderIdBinding;
|
||||
const intl = require(dependencyMap[18]).intl;
|
||||
const string = intl.string;
|
||||
const DJMZX6 = require(dependencyMap[18]).t.DJMZX6;
|
||||
object2.description = Reflect.apply(string, intl, [DJMZX6]);
|
||||
object2.safetyTips = getStrangerDangerSafetyTips().map(_fun86256);
|
||||
const defaultImport2 = importDefault(dependencyMap[21]);
|
||||
const binding = env0_6;
|
||||
const CtaEventTypes = require(dependencyMap[10]).CtaEventTypes;
|
||||
const USER_MODAL_BLOCK_CONFIRM = CtaEventTypes.USER_MODAL_BLOCK_CONFIRM;
|
||||
object2.actionItems = ((Component) => <Component channelId={channelIdBinding} warningId={warningIdBinding} senderId={senderIdBinding} onBlockPressed={binding(USER_MODAL_BLOCK_CONFIRM)} />)(defaultImport2);
|
||||
Reflect.apply(pushLazy, defaultImport, [value2, object2, STRANGER_DANGER_MORE_TIPS_MODAL_KEY]);
|
||||
const moduleValue2 = require(dependencyMap[10]);
|
||||
const trackCtaEvent = moduleValue2.trackCtaEvent;
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
const OPEN_MORE_TIPS = CtaEventTypes.OPEN_MORE_TIPS;
|
||||
Reflect.apply(trackCtaEvent, moduleValue2, [{channelId: channelIdBinding, warningId: warningIdBinding,
|
||||
senderId: senderIdBinding, warningType: STRANGER_DANGER, cta: OPEN_MORE_TIPS}]);
|
||||
}
|
||||
|
||||
function _fun86250() { // fn#86250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:848, offset: 0x01f8db72, size: 104 bytes, params: 1, frame: 15
|
||||
env1_4();
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackCtaEvent = safetyWarningUtilsModule.trackCtaEvent;
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
Reflect.apply(trackCtaEvent, safetyWarningUtilsModule, [{channelId: channelId, warningId: warningId,
|
||||
senderId: senderId, warningType: STRANGER_DANGER, cta: env0_0}]);
|
||||
}
|
||||
|
||||
function _fun86252() { // fn#86252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:987, offset: 0x01f8dbec, size: 175 bytes, params: 1, frame: 21
|
||||
const defaultImport = importDefault(dependencyMap[13]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const value2 = require(dependencyMap[15])(dependencyMap[14], dependencyMap.paths);
|
||||
const object2 = {};
|
||||
object2.userId = senderId;
|
||||
object2.channelId = channelId;
|
||||
object2.onBlock = env1_5(env0_0);
|
||||
object2.onSuccess = onSuccess_86253;
|
||||
object2.onIgnore = onIgnore;
|
||||
const ImpressionNames = require(dependencyMap[16]).ImpressionNames;
|
||||
const BLOCK_USER_CONFIRMATION = ImpressionNames.BLOCK_USER_CONFIRMATION;
|
||||
object2.impressionName = BLOCK_USER_CONFIRMATION;
|
||||
Reflect.apply(openLazy, defaultImport, [value2, BLOCK_CONFIRMATION_ACTION_SHEET_KEY, object2]);
|
||||
}
|
||||
|
||||
function _fun86256(a0, a1) { // fn#86256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:1831, offset: 0x01f8deac, size: 65 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return <Text {...{variant: 'text-sm/medium', children: a0}} key={a1} />;
|
||||
}
|
||||
|
||||
function onSuccess_86253() { // fn#86253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:1081, offset: 0x01f8dc9b, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function onIgnore() { // fn#86254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11492:1121, offset: 0x01f8dcc0, size: 118 bytes, params: 1, frame: 18
|
||||
env2_4();
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackCtaEvent = safetyWarningUtilsModule.trackCtaEvent;
|
||||
const object2 = {};
|
||||
object2.channelId = channelId;
|
||||
object2.warningId = warningId;
|
||||
object2.senderId = senderId;
|
||||
const STRANGER_DANGER = SafetyWarningTypes.STRANGER_DANGER;
|
||||
object2.warningType = STRANGER_DANGER;
|
||||
const CtaEventTypes = safetyWarningUtilsModule.CtaEventTypes;
|
||||
const USER_BANNER_IGNORE_CONFIRM = CtaEventTypes.USER_BANNER_IGNORE_CONFIRM;
|
||||
object2.cta = USER_BANNER_IGNORE_CONFIRM;
|
||||
Reflect.apply(trackCtaEvent, safetyWarningUtilsModule, [object2]);
|
||||
}
|
||||
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
/* Metro module 11301; source: modules/self_mod/stranger_danger/native/components/more_tips_modal/MoreTipsModal.tsx; dependencies: [31, 27, 9706, 661, 33, 4501, 697, 9754, 4573, 1244, 11302, 5277, 5080, 8160, 1305, 1585, 632, 9731, 4826, 4831, 5280, 2] */
|
||||
function _fun86219(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:6, offset: 0x01f8c4fe, size: 479 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.ScrollView;
|
||||
const channelSafetyWarningsStore = importDefault(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.scroll = {backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const object4 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.marginHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.marginBottom = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.gap = PX_16;
|
||||
object2.contentContainer = object4;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.tipsContainer = {gap: PX_8};
|
||||
object2.learnMore = {alignItems: 'center'};
|
||||
const object5 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginTop = PX_16;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.marginBottom = PX_4;
|
||||
object2.header = object5;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/stranger_danger/native/components/more_tips_modal/MoreTipsModal.tsx');
|
||||
exports.default = MoreTipsModal;
|
||||
}
|
||||
|
||||
function MoreTipsModalScreen({channelId, warningId, senderId, description, safetyTips, actionItems, learnMore}) { // fn#86220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:545, offset: 0x01f8c6dd, size: 457 bytes, params: 2, frame: 33
|
||||
const styles = useStyles();
|
||||
const items2 = [<View style={styles.tipsContainer}>{((Component) => <Component description={description} safetyTips={safetyTips} showHeader />)(importDefault(9754) /* metro dependency 9754: SafetyTipsSection */)}{learnMore != null ? <View style={styles.learnMore}>{learnMore}</View> : null}</View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const K5FKtc = (require(1244) /* metro dependency 1244: indexNative */).t.K5FKtc;
|
||||
items2[1] = <View><Text variant="eyebrow" color="text-default" style={styles.header}>{Reflect.apply(string, intl,
|
||||
[K5FKtc])}</Text>{actionItems}</View>;
|
||||
items2[2] = ((Component) => <Component channelId={channelId} warningId={warningId} senderId={senderId} />)(importDefault(11302) /* metro dependency 11302: WasThisHelpfulSection */);
|
||||
return (
|
||||
<ScrollView keyboardShouldPersistTaps="handled" style={styles.scroll}>
|
||||
<View style={styles.contentContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_86221({headerStyle, modalKey, channelId, warningId, senderId, description, safetyTips, actionItems, learnMore}) { // fn#86221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:1123, offset: 0x01f8c8a6, size: 155 bytes, params: 2, frame: 5
|
||||
return {MORE_TIPS: {headerRight: headerRight_86222, headerTitle: function() {
|
||||
return null;
|
||||
}, headerLeft: function() {
|
||||
return null;
|
||||
}, headerStyle: headerStyle, render: render_86226}};
|
||||
}
|
||||
|
||||
function MoreTipsModal(a0) { // fn#86227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:1656, offset: 0x01f8ca63, size: 222 bytes, params: 2, frame: 23
|
||||
const channelId = a0.channelId;
|
||||
const warningId = a0.warningId;
|
||||
const senderId = a0.senderId;
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const channelSafetyWarning = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelSafetyWarningsStore],
|
||||
function() {
|
||||
return ChannelSafetyWarningsStore.getChannelSafetyWarning(channelId, warningId);
|
||||
});
|
||||
channelSafetyWarning.useEffect(_fun86229, [channelId, warningId, senderId, channelSafetyWarning]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
return (
|
||||
<Navigator
|
||||
screens={getScreens_86221(a0)}
|
||||
initialRouteName="MORE_TIPS"
|
||||
headerStatusBarHeight={top}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function getScreens_86221HeaderRight() { // fn#86222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:1289, owner: getScreens_86221.headerRight, offset: 0x01f8c941, size: 158 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {onPress: onPress_86223, source: importDefault(8160) /* metro dependency 8160 */};
|
||||
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
|
||||
const MEDIUM = IconSizes.MEDIUM;
|
||||
headerActionButtonProps.iconSize = MEDIUM;
|
||||
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_86221Render() { // fn#86226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:1531, owner: getScreens_86221.render, offset: 0x01f8ca0c, size: 87 bytes, params: 1, frame: 14
|
||||
return (
|
||||
<MoreTipsModalScreen
|
||||
channelId={channelId}
|
||||
warningId={warningId}
|
||||
senderId={senderId}
|
||||
description={description}
|
||||
safetyTips={safetyTips}
|
||||
actionItems={actionItems}
|
||||
learnMore={learnMore}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun86229() { // fn#86229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:1836, offset: 0x01f8cb61, size: 174 bytes, params: 1, frame: 18
|
||||
const value2 = undefined;
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackViewedEvent = safetyWarningUtilsModule.trackViewedEvent;
|
||||
const SAFETY_WARNING_MODAL_VIEWED = AnalyticEvents.SAFETY_WARNING_MODAL_VIEWED;
|
||||
Reflect.apply(trackViewedEvent, safetyWarningUtilsModule, [SAFETY_WARNING_MODAL_VIEWED, {channelId: channelId,
|
||||
warningId: warningId, senderId: senderId,
|
||||
warningType: channelSafetyWarning == null ? value2 : channelSafetyWarning.type}]);
|
||||
const defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
const increment = defaultImport.increment;
|
||||
const MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
|
||||
const SAFETY_WARNING_MODAL_VIEW = MetricEvents.SAFETY_WARNING_MODAL_VIEW;
|
||||
Reflect.apply(increment, defaultImport, [{name: SAFETY_WARNING_MODAL_VIEW}]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function headerRightOnPress() { // fn#86223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11487:1332, owner: getScreens_86221.headerRight.onPress, offset: 0x01f8c9df, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
|
||||
return value.popWithKey(modalKey);
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/* Metro module 11308; source: modules/self_mod/stranger_danger/native/components/more_tips_modal/MoreYouCanDoRow.tsx; dependencies: [31, 33, 6238, 2] */
|
||||
function _fun86266(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11494:6, offset: 0x01f8e596, 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/self_mod/stranger_danger/native/components/more_tips_modal/MoreYouCanDoRow.tsx');
|
||||
exports.default = MoreYouCanDoRow;
|
||||
}
|
||||
|
||||
function MoreYouCanDoRow({title, description, variant, onClick, icon, disabled}) { // fn#86267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11494:248, offset: 0x01f8e619, size: 104 bytes, params: 2, frame: 19
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
label={title}
|
||||
subLabel={description}
|
||||
onPress={onClick}
|
||||
icon={icon}
|
||||
variant={variant}
|
||||
disabled={disabled}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
/* Metro module 11302; source: modules/self_mod/stranger_danger/native/components/more_tips_modal/WasThisHelpfulSection.tsx; dependencies: [31, 27, 9706, 9734, 33, 4501, 697, 632, 9732, 3857, 1244, 8035, 8036, 9731, 4573, 1305, 11303, 11304, 2] */
|
||||
function _fun86230(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11488:6, offset: 0x01f8cc0f, size: 618 bytes, params: 8, frame: 25
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.Pressable;
|
||||
const env0_5 = value.View;
|
||||
const channelSafetyWarningsStore = importDefault(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */;
|
||||
const env0_7 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningFeedbackTypes;
|
||||
value = require(9734) /* metro dependency 9734: Constants */;
|
||||
const env0_8 = value.DOWNVOTE_FEEDBACK_CONFIRMATION_TOAST_KEY;
|
||||
const FEEDBACK_BUTTON_ACTIVE_BACKGROUND_COLOR = value.FEEDBACK_BUTTON_ACTIVE_BACKGROUND_COLOR;
|
||||
const env0_9 = value.TOAST_SHIELD_ICON_COLOR;
|
||||
const env0_10 = value.UPVOTE_FEEDBACK_CONFIRMATION_TOAST_KEY;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {container: {'flexDirection': 'column', 'alignItems': 'center'}};
|
||||
const object5 = {flexDirection: 'row'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.marginTop = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.gap = PX_8;
|
||||
object4.buttonsContainer = object5;
|
||||
const object6 = {};
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object6.width = PX_32;
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object6.height = PX_32;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object6.alignItems = 'center';
|
||||
object6.justifyContent = 'center';
|
||||
object4.buttonsBackground = object6;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.buttonsBackgroundInactive = {backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
const MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT;
|
||||
object4.buttonsBackgroundActive = {borderWidth: 1, borderColor: MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT,
|
||||
backgroundColor: FEEDBACK_BUTTON_ACTIVE_BACKGROUND_COLOR};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object4.buttonIconInactive = {color: INTERACTIVE_TEXT_DEFAULT};
|
||||
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
|
||||
object4.buttonIconActive = {color: INTERACTIVE_TEXT_ACTIVE};
|
||||
object4.toastContainer = {'paddingHorizontal': 8, 'paddingVertical': 12};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/self_mod/stranger_danger/native/components/more_tips_modal/WasThisHelpfulSection.tsx');
|
||||
exports.default = WasThisHelpfulSection;
|
||||
}
|
||||
|
||||
function WasThisHelpfulSection({channelId, warningId, senderId}) { // fn#86231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11488:1243, offset: 0x01f8ce79, size: 861 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const env0_3 = styles;
|
||||
const channelSafetyWarning = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelSafetyWarningsStore],
|
||||
function() {
|
||||
return ChannelSafetyWarningsStore.getChannelSafetyWarning(channelId, warningId);
|
||||
});
|
||||
const binding = env0_3;
|
||||
const value2 = binding.useMemo(function() {
|
||||
return channelSafetyWarning?.feedback_type === SafetyWarningFeedbackTypes.UPVOTE;
|
||||
}, [channelSafetyWarning]);
|
||||
const value3 = binding.useMemo(function() {
|
||||
return channelSafetyWarning?.feedback_type === SafetyWarningFeedbackTypes.DOWNVOTE;
|
||||
}, [channelSafetyWarning]);
|
||||
const env0_5 = binding.useCallback(_fun86235, [channelId, warningId, styles.toastContainer, senderId,
|
||||
channelSafetyWarning]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const L84yVm = (require(1244) /* metro dependency 1244: indexNative */).t.L84yVm;
|
||||
const text = <Text variant="text-sm/normal" color="mobile-text-heading-primary">{Reflect.apply(string, intl,
|
||||
[L84yVm])}</Text>;
|
||||
const pressableProps = {style: [styles.buttonsBackground,
|
||||
value2 ? styles.buttonsBackgroundActive : styles.buttonsBackgroundInactive], disabled: value2,
|
||||
onPress: onPress_86236,
|
||||
accessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2GrOCN'])};
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
let Sizes = Icon2.Sizes;
|
||||
let SMALL_20 = Sizes.SMALL_20;
|
||||
const pressable = <Pressable {...pressableProps}><Icon size={SMALL_20} source={importDefault(11303) /* metro dependency 11303 */} color={value2 ? styles.buttonIconActive.color : styles.buttonIconInactive.color} /></Pressable>;
|
||||
const pressableProps2 = {style: [styles.buttonsBackground,
|
||||
value3 ? styles.buttonsBackgroundActive : styles.buttonsBackgroundInactive], disabled: value3,
|
||||
onPress: onPress_86237};
|
||||
string = intl.string;
|
||||
const COp9BO = (require(1244) /* metro dependency 1244: indexNative */).t.COp9BO;
|
||||
pressableProps2.accessibilityLabel = Reflect.apply(string, intl, [COp9BO]);
|
||||
const Icon3 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
Sizes = Icon3.Sizes;
|
||||
SMALL_20 = Sizes.SMALL_20;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{text}
|
||||
<View style={styles.buttonsContainer}>
|
||||
{pressable}
|
||||
<Pressable {...pressableProps2}>
|
||||
<Icon
|
||||
size={SMALL_20}
|
||||
source={importDefault(11304) /* metro dependency 11304 */}
|
||||
color={value3 ? styles.buttonIconActive.color : styles.buttonIconInactive.color}
|
||||
/>
|
||||
</Pressable>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun86235(a0, a1) { // fn#86235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11488:1546, offset: 0x01f8d234, size: 333 bytes, params: 3, frame: 21
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const channelSafetyWarningsActionCreatorsModule = require(9732) /* metro dependency 9732: ChannelSafetyWarningsActionCreators */;
|
||||
channelSafetyWarningsActionCreatorsModule.setChannelSafetyWarningFeedback(channelId, warningId, a0);
|
||||
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = defaultImport.open;
|
||||
const object2 = {};
|
||||
const UPVOTE = SafetyWarningFeedbackTypes.UPVOTE;
|
||||
object2.key = a0 === UPVOTE ? UPVOTE_FEEDBACK_CONFIRMATION_TOAST_KEY : DOWNVOTE_FEEDBACK_CONFIRMATION_TOAST_KEY;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['gd/Yqs']);
|
||||
object2.icon = importDefault(8035) /* metro dependency 8035 */;
|
||||
const ShieldIcon = (require(8036) /* metro dependency 8036: ShieldIcon */).ShieldIcon;
|
||||
object2.IconComponent = ShieldIcon;
|
||||
object2.iconColor = TOAST_SHIELD_ICON_COLOR;
|
||||
object2.containerStyle = styles.toastContainer;
|
||||
object2.recolorLegacyIcon = true;
|
||||
Reflect.apply(open, defaultImport, [object2]);
|
||||
(require(9731) /* metro dependency 9731: SafetyWarningUtils */).trackCtaEvent({channelId: channelId,
|
||||
warningId: warningId, senderId: senderId,
|
||||
warningType: channelSafetyWarning == null ? value2 : channelSafetyWarning.type, cta: a1});
|
||||
return value2;
|
||||
}
|
||||
|
||||
function WasThisHelpfulSectionOnPress() { // fn#86236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11488:2250, owner: WasThisHelpfulSection.onPress, offset: 0x01f8d381, size: 62 bytes, params: 1, frame: 14
|
||||
const binding = env0_5;
|
||||
const UPVOTE = SafetyWarningFeedbackTypes.UPVOTE;
|
||||
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
|
||||
const FEEDBACK_UPVOTE = CtaEventTypes.FEEDBACK_UPVOTE;
|
||||
return binding(UPVOTE, FEEDBACK_UPVOTE);
|
||||
}
|
||||
|
||||
function WasThisHelpfulSectionOnPress_86237() { // fn#86237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11488:2615, owner: WasThisHelpfulSection.onPress, offset: 0x01f8d3bf, size: 62 bytes, params: 1, frame: 14
|
||||
const binding = env0_5;
|
||||
const DOWNVOTE = SafetyWarningFeedbackTypes.DOWNVOTE;
|
||||
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
|
||||
const FEEDBACK_DOWNVOTE = CtaEventTypes.FEEDBACK_DOWNVOTE;
|
||||
return binding(DOWNVOTE, FEEDBACK_DOWNVOTE);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user