Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,39 @@
|
||||
/* Metro module 11305; source: modules/ato_alerts/native/components/LikelyAtoMoreTipsModalActionItems.tsx; dependencies: [31, 1878, 33, 566, 3995, 6231, 6238, 1244, 10629, 2] */
|
||||
function _fun86240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11491:6, offset: 0x01f8d489, size: 158 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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ato_alerts/native/components/LikelyAtoMoreTipsModalActionItems.tsx');
|
||||
exports.default = LikelyAtoMoreTipsModalActionItems;
|
||||
}
|
||||
|
||||
function LikelyAtoMoreTipsModalActionItems({senderId, handleMutePressed}) { // fn#86241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11491:248, offset: 0x01f8d527, size: 334 bytes, params: 2, frame: 25
|
||||
const value3 = env0_3.useMemo(_fun86243,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(senderId);
|
||||
}, [senderId])]);
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.label = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['F/ID+9'],
|
||||
{username: value3});
|
||||
object.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.w2ve0t);
|
||||
object.onPress = handleMutePressed;
|
||||
const BellSlashIcon = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon;
|
||||
object.icon = <BellSlashIcon />;
|
||||
return (
|
||||
<TableRowGroup hasIcons>
|
||||
<TableRow {...object} />
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun86243() { // fn#86243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11491:399, offset: 0x01f8d675, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(env0_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
/* Metro module 11296; source: modules/ato_alerts/native/components/LikelyAtoWarningBanner.tsx; dependencies: [31, 9706, 11297, 661, 670, 33, 4501, 697, 9731, 9732, 5080, 10627, 6264, 3853, 11298, 1244, 11301, 1962, 4573, 11305, 6766, 2] */
|
||||
function _fun86200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:6, offset: 0x01f8b41a, size: 348 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = LikelyAtoWarningBanner;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningTypes;
|
||||
let value = require(11297) /* metro dependency 11297: Constants */;
|
||||
const env0_5 = value.getLikelyAtoMoreTips;
|
||||
const env0_6 = value.LIKELY_ATO_MORE_TIPS_MODAL_KEY;
|
||||
const env0_7 = value.LEARN_MORE_HC_ARTICLE;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_9 = (require(670) /* metro dependency 670: UserSettingsConstants */).MuteUntilSeconds;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.Fragment;
|
||||
const env0_12 = value.jsxs;
|
||||
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_13 = Reflect.apply(createStyles, value, [{moreTipsHeader: {backgroundColor: BACKGROUND_BASE_LOWER,
|
||||
shadowColor: 'transparent'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ato_alerts/native/components/LikelyAtoWarningBanner.tsx');
|
||||
exports.default = closure;
|
||||
exports.LikelyAtoWarningBanner = closure;
|
||||
}
|
||||
|
||||
function LikelyAtoWarningBanner({channelId, warningId, senderId}) { // fn#86201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:445, offset: 0x01f8b576, size: 520 bytes, params: 2, frame: 21
|
||||
var object6;
|
||||
const env0_3 = useStyles();
|
||||
env0_3.useEffect(function() {
|
||||
var moduleValue = require(dependencyMap[8]);
|
||||
var SAFETY_WARNING_VIEWED = AnalyticEvents.SAFETY_WARNING_VIEWED;
|
||||
moduleValue.trackViewedEvent(SAFETY_WARNING_VIEWED, {channelId: channelId, warningId: warningId,
|
||||
senderId: senderId,
|
||||
warningType: SafetyWarningTypes.LIKELY_ATO});
|
||||
}, [channelId, warningId, senderId]);
|
||||
const value2 = env0_3.useCallback(function() {
|
||||
require(dependencyMap[9]).dismissChannelSafetyWarnings(channelId, [warningId]);
|
||||
importDefault(dependencyMap[10]).popWithKey(LIKELY_ATO_MORE_TIPS_MODAL_KEY);
|
||||
}, [channelId, warningId]);
|
||||
const env0_5 = env0_3.useCallback(_fun86204, [channelId, senderId, warningId, value2]);
|
||||
const SafetyWarningBanner = importDefault(11298) /* metro dependency 11298: SafetyWarningBanner */;
|
||||
object6 = {channelId: channelId, warningId: warningId, senderId: senderId};
|
||||
const LIKELY_ATO = SafetyWarningTypes.LIKELY_ATO;
|
||||
object6.warningType = LIKELY_ATO;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const R8UsiI = (require(1244) /* metro dependency 1244: indexNative */).t.R8UsiI;
|
||||
object6.header = Reflect.apply(string, intl, [R8UsiI]);
|
||||
object6.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lI8nQl);
|
||||
object6.onDismiss = value2;
|
||||
const object4 = {};
|
||||
object4.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tC1pvL);
|
||||
object4.variant = 'primary';
|
||||
object4.onpress = onpress;
|
||||
const items2 = [object4];
|
||||
const object5 = {};
|
||||
object5.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ftIK2A);
|
||||
object5.variant = 'secondary';
|
||||
object5.onpress = onpress_86209;
|
||||
items2[1] = object5;
|
||||
object6.buttons = items2;
|
||||
return <SafetyWarningBanner {...object6} />;
|
||||
}
|
||||
|
||||
function _fun86204(a0) { // fn#86204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:785, offset: 0x01f8b836, size: 178 bytes, params: 2, frame: 19
|
||||
const muteSettingsUtilsModule = require(10627) /* metro dependency 10627: MuteSettingsUtils */;
|
||||
const handleMuteSettingPress = muteSettingsUtilsModule.handleMuteSettingPress;
|
||||
const channelIdBinding = channelId;
|
||||
const ALWAYS = MuteUntilSeconds.ALWAYS;
|
||||
Reflect.apply(handleMuteSettingPress, muteSettingsUtilsModule, [{channelId: channelIdBinding, guildId: null,
|
||||
muteDurationSeconds: ALWAYS}]);
|
||||
const defaultImport = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
|
||||
const showMuteSuccessToast = defaultImport.showMuteSuccessToast;
|
||||
const senderIdBinding = senderId;
|
||||
Reflect.apply(showMuteSuccessToast, defaultImport, [senderIdBinding, channelIdBinding]);
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackCtaEvent = safetyWarningUtilsModule.trackCtaEvent;
|
||||
const LIKELY_ATO = SafetyWarningTypes.LIKELY_ATO;
|
||||
Reflect.apply(trackCtaEvent, safetyWarningUtilsModule, [{channelId: channelIdBinding, warningId: warningId,
|
||||
senderId: senderIdBinding, warningType: LIKELY_ATO, cta: a0}]);
|
||||
env0_4();
|
||||
}
|
||||
|
||||
function handleLearnMore() { // fn#86205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:1037, owner: LikelyAtoWarningBanner.handleLearnMore, offset: 0x01f8b8e8, size: 141 bytes, params: 1, frame: 18
|
||||
const safetyWarningUtilsModule = require(9731) /* metro dependency 9731: SafetyWarningUtils */;
|
||||
const trackCtaEvent = safetyWarningUtilsModule.trackCtaEvent;
|
||||
const object2 = {};
|
||||
object2.channelId = channelId;
|
||||
object2.warningId = warningId;
|
||||
object2.senderId = senderId;
|
||||
const LIKELY_ATO = SafetyWarningTypes.LIKELY_ATO;
|
||||
object2.warningType = LIKELY_ATO;
|
||||
const CtaEventTypes = safetyWarningUtilsModule.CtaEventTypes;
|
||||
const USER_MODAL_LEARN_MORE = CtaEventTypes.USER_MODAL_LEARN_MORE;
|
||||
object2.cta = USER_MODAL_LEARN_MORE;
|
||||
Reflect.apply(trackCtaEvent, safetyWarningUtilsModule, [object2]);
|
||||
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(LEARN_MORE_HC_ARTICLE);
|
||||
}
|
||||
|
||||
function LikelyAtoWarningBannerOnpress() { // fn#86206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:1467, owner: LikelyAtoWarningBanner.onpress, offset: 0x01f8b975, size: 453 bytes, params: 1, frame: 29
|
||||
const defaultImport = importDefault(dependencyMap[10]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
const value2 = require(dependencyMap[17])(dependencyMap[16], dependencyMap.paths);
|
||||
let object2 = {};
|
||||
object2.modalKey = LIKELY_ATO_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[15]).intl;
|
||||
object2.description = intl.string(require(dependencyMap[15]).t['/uid3p']);
|
||||
object2.safetyTips = getLikelyAtoMoreTips().map(_fun86207);
|
||||
object2.actionItems = ((Component) => <Component senderId={senderIdBinding} handleMutePressed={handleMutePressed} />)(importDefault(dependencyMap[19]));
|
||||
const TextWithIOSLinkWorkaround = require(dependencyMap[20]).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const UkH122 = require(dependencyMap[15]).t.UkH122;
|
||||
object2.learnMore = <TextWithIOSLinkWorkaround variant="text-sm/normal" color="text-link">{Reflect.apply(format,
|
||||
intl, [UkH122, {learnMoreLink: handleLearnMore}])}</TextWithIOSLinkWorkaround>;
|
||||
Reflect.apply(pushLazy, defaultImport, [value2, object2, LIKELY_ATO_MORE_TIPS_MODAL_KEY]);
|
||||
const moduleValue2 = require(dependencyMap[8]);
|
||||
const trackCtaEvent = moduleValue2.trackCtaEvent;
|
||||
object2 = {channelId: channelIdBinding, warningId: warningIdBinding, senderId: senderIdBinding};
|
||||
const LIKELY_ATO = SafetyWarningTypes.LIKELY_ATO;
|
||||
object2.warningType = LIKELY_ATO;
|
||||
const CtaEventTypes = require(dependencyMap[8]).CtaEventTypes;
|
||||
const OPEN_MORE_TIPS = CtaEventTypes.OPEN_MORE_TIPS;
|
||||
object2.cta = OPEN_MORE_TIPS;
|
||||
Reflect.apply(trackCtaEvent, moduleValue2, [object2]);
|
||||
}
|
||||
|
||||
function LikelyAtoWarningBannerOnpress_86209() { // fn#86209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:2360, owner: LikelyAtoWarningBanner.onpress, offset: 0x01f8bc01, size: 51 bytes, params: 1, frame: 12
|
||||
const binding = env0_5;
|
||||
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
|
||||
const USER_BANNER_MUTE = CtaEventTypes.USER_BANNER_MUTE;
|
||||
return binding(USER_BANNER_MUTE);
|
||||
}
|
||||
|
||||
function _fun86207(a0, a1) { // fn#86207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:1665, offset: 0x01f8bb3a, size: 148 bytes, params: 3, frame: 24
|
||||
const jsxRuntimeEnv2_11Binding = jsxRuntimeEnv2_11;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<>
|
||||
<Text
|
||||
variant="text-md/medium"
|
||||
color="mobile-text-heading-primary"
|
||||
key={a1}
|
||||
>
|
||||
{a0.title}
|
||||
</Text>
|
||||
<Text
|
||||
variant="text-xs/medium"
|
||||
color="text-subtle"
|
||||
key={a1}
|
||||
>
|
||||
{a0.description}
|
||||
</Text>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function handleMutePressed() { // fn#86208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11482:1933, owner: LikelyAtoWarningBanner.onpress.handleMutePressed, offset: 0x01f8bbce, size: 51 bytes, params: 1, frame: 12
|
||||
const binding = env1_5;
|
||||
const CtaEventTypes = (require(9731) /* metro dependency 9731: SafetyWarningUtils */).CtaEventTypes;
|
||||
const USER_MODAL_MUTE = CtaEventTypes.USER_MODAL_MUTE;
|
||||
return binding(USER_MODAL_MUTE);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user