Files
discord-decomp/sources/modules/safety_hub/native/AppealIngestionSpeedBump.tsx
T
2026-07-28 01:06:53 +03:00

89 lines
7.1 KiB
TypeScript

/* Metro module 11490; source: modules/safety_hub/native/AppealIngestionSpeedBump.tsx; dependencies: [31, 27, 11473, 5267, 661, 33, 4501, 566, 11479, 11491, 1244, 11489, 11492, 11493, 11494, 6766, 2] */
import SafetyHubStore from '../SafetyHubStore.tsx'; /* Metro dependency 11473 */
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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SafetyHubConstantsModule from '../SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as AppealIngestionModalModule from './AppealIngestionModal.tsx'; /* Metro dependency 11489 */
import * as UseEmitAppealIngestionEventModule from '../hooks/useEmitAppealIngestionEvent.tsx'; /* Metro dependency 11491 */
function _fun88048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:6, offset: 0x01fd2a41, size: 284 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = SafetyHubConstantsModule;
const env0_5 = value.SafetyHubAnalyticsActions;
const env0_6 = value.SafetyHubLinks;
value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
const env0_10 = (CreateStylesModule).createStyles({container: {'flex': 1,
'alignSelf': 'stretch', 'paddingHorizontal': 16}});
(FileImportTrackerModule).fileFinishedImporting('modules/safety_hub/native/AppealIngestionSpeedBump.tsx');
exports.default = AppealIngestionSpeedBump;
function AppealIngestionSpeedBump({isCoppa, isSpam}) { // fn#88049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:436, offset: 0x01fd2b5d, size: 1002 bytes, params: 2, frame: 32
const styles = useStyles();
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification((require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
function() {
return SafetyHubStore.getAppealClassificationId();
}) ?? EMPTY_STRING_SNOWFLAKE_ID);
const env0_0 = (UseEmitAppealIngestionEventModule).useEmitAppealIngestionEvent();
const isDsaEligible = value3.isDsaEligible;
const r15 = value3.classification?.explainer_link ?? '';
const r19 = value3.classification?.flagged_content ?? [];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const value5 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['C5q+pW']]);
string = intl.string;
const URt7VI = (require(1244) /* metro dependency 1244: indexNative */).t.URt7VI;
const value6 = Reflect.apply(string, intl, [URt7VI]);
const AppealIngestionModalScreen = (AppealIngestionModalModule).AppealIngestionModalScreen;
const AppealIngestionModalHeader = (AppealIngestionModalModule).AppealIngestionModalHeader;
const appealIngestionModalHeader = <AppealIngestionModalHeader headerText={value5} subHeaderText={value6} />;
const items2 = [
r19.length > 0 && ((Component) => <Component flaggedContent={r19} />)(importDefault(11492) /* metro dependency 11492: AppealIngestionActivitySummary */),
];
items2[1] = ((Component) => <Component classification={value3.classification} />)(importDefault(11493) /* metro dependency 11493: AppealIngestionPolicySummary */);
items2[2] = isCoppa && ((Component) => <Component text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['gJs+kf'])} url={SafetyHubLinks.AGE_VERIFICATION_LINK} onPress={onPress_88051} />)(importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */);
items2[3] = isSpam && !isCoppa && ((Component) => <Component text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.NBsJvm)} url={SafetyHubLinks.SPAM_LINK} onPress={onPress_88052} />)(importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */);
items2[4] = !isCoppa && ((Component) => <Component text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Vtyn/7'])} url={r15} onPress={onPress_88053} />)(importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */);
items2[5] = isDsaEligible && ((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-xs/normal">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.WMUgCX,
{})}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround);
return (
<AppealIngestionModalScreen>
{appealIngestionModalHeader}
<View style={styles.container}>
{items2}
</View>
</AppealIngestionModalScreen>
);
function AppealIngestionSpeedBumpOnPress() { // fn#88051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:1259, owner: AppealIngestionSpeedBump.onPress, offset: 0x01fd2f5a, size: 29 bytes, params: 1, frame: 11
const binding = env0_0;
const ClickAgeVerificationLink = SafetyHubAnalyticsActions.ClickAgeVerificationLink;
return binding(ClickAgeVerificationLink);
}
function AppealIngestionSpeedBumpOnPress_88052() { // fn#88052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:1383, owner: AppealIngestionSpeedBump.onPress, offset: 0x01fd2f77, size: 29 bytes, params: 1, frame: 11
const binding = env0_0;
const ClickSpamWebformLink = SafetyHubAnalyticsActions.ClickSpamWebformLink;
return binding(ClickSpamWebformLink);
}
function AppealIngestionSpeedBumpOnPress_88053() { // fn#88053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:1493, owner: AppealIngestionSpeedBump.onPress, offset: 0x01fd2f94, size: 29 bytes, params: 1, frame: 11
const binding = env0_0;
const ClickLearnMoreLink = SafetyHubAnalyticsActions.ClickLearnMoreLink;
return binding(ClickLearnMoreLink);
}
}
}
global.__d(_fun88048, 11490, [31, 27, 11473, 5267, 661, 33, 4501, 566, 11479, 11491, 1244, 11489, 11492, 11493,
11494, 6766,
2]) /* metro module 11490, dependencies: [31, 27, 11473, 5267, 661, 33, 4501, 566, 11479, 11491, 1244, 11489, 11492, 11493, 11494, 6766, 2] */;