80 lines
6.2 KiB
TypeScript
80 lines
6.2 KiB
TypeScript
/* Metro module 11497; source: modules/safety_hub/native/AppealIngestionConfirmSubmission.tsx; dependencies: [31, 27, 11473, 661, 33, 4501, 566, 11479, 1244, 11489, 11498, 5266, 4573, 4080, 11496, 1962, 694, 11492, 11493, 2] */
|
|
function _fun88078(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:6, offset: 0x01fd430a, size: 266 bytes, params: 8, frame: 20
|
|
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 safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
|
const env0_5 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID;
|
|
const value = require(33) /* metro dependency 33 */;
|
|
const env0_6 = value.jsx;
|
|
const env0_7 = value.jsxs;
|
|
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
|
'paddingHorizontal': 16}, detailsAction: {marginBottom: 16}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionConfirmSubmission.tsx');
|
|
exports.default = AppealIngestionConfirmSubmission;
|
|
}
|
|
|
|
function AppealIngestionConfirmSubmission({isDsaEligible}) { // fn#88079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:397, offset: 0x01fd4414, size: 821 bytes, params: 2, frame: 31
|
|
const styles = useStyles();
|
|
const fluxModule = require(566) /* metro dependency 566: flux */;
|
|
const useStateFromStores = fluxModule.useStateFromStores;
|
|
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(Reflect.apply(useStateFromStores,
|
|
fluxModule, [[SafetyHubStore], function() {
|
|
return SafetyHubStore.getAppealClassificationId();
|
|
}]) ?? EMPTY_STRING_SNOWFLAKE_ID);
|
|
const appealSignal = fluxModule.useStateFromStores([SafetyHubStore], function() {
|
|
return SafetyHubStore.getAppealSignal();
|
|
});
|
|
const freeTextAppealReason = fluxModule.useStateFromStores([SafetyHubStore], function() {
|
|
return SafetyHubStore.getFreeTextAppealReason();
|
|
});
|
|
const r14 = value3.classification?.flagged_content ?? [];
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['C5q+pW']);
|
|
const value5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['G2g/g5']);
|
|
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
|
const AppealIngestionModalHeader = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalHeader;
|
|
const appealIngestionModalHeader = <AppealIngestionModalHeader headerText={value4} subHeaderText={value5} />;
|
|
const items3 = [((Component) => <Component reasons={[(require(5266) /* metro dependency 5266: SafetyHubUtils */).getAppealSignalDisplayText(appealSignal),
|
|
freeTextAppealReason].filter(function(a0) {
|
|
return a0.length > 0;
|
|
})} />)(importDefault(11498) /* metro dependency 11498: AppealIngestionBreadcrumbs */)];
|
|
items3[1] = isDsaEligible && ((Text) => <Text variant="heading-md/normal" color="text-link" style={styles.detailsAction} onPress={onPress_88084}>{freeTextAppealReason.length > 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tnE3bZ) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uoQFIp)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
|
items3[2] = r14.length > 0 && ((Component) => <Component flaggedContent={r14} />)(importDefault(11492) /* metro dependency 11492: AppealIngestionActivitySummary */);
|
|
items3[3] = ((Component) => <Component classification={value3.classification} />)(importDefault(11493) /* metro dependency 11493: AppealIngestionPolicySummary */);
|
|
return (
|
|
<AppealIngestionModalScreen>
|
|
{appealIngestionModalHeader}
|
|
<View style={styles.container}>
|
|
{items3}
|
|
</View>
|
|
</AppealIngestionModalScreen>
|
|
);
|
|
}
|
|
|
|
function AppealIngestionConfirmSubmissionOnPress() { // fn#88084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:1217, owner: AppealIngestionConfirmSubmission.onPress, offset: 0x01fd476f, size: 108 bytes, params: 1, frame: 17
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const defaultImport = importDefault(dependencyMap[13]);
|
|
const openLazy = defaultImport.openLazy;
|
|
value = require(dependencyMap[15]);
|
|
value = value(dependencyMap[14], dependencyMap.paths);
|
|
return Reflect.apply(openLazy, defaultImport, [value, 'AppealIngestionFreeTextAppealReasonActionSheet',
|
|
{onSave: onSave, onClose: onClose_88086}]);
|
|
}
|
|
|
|
function onPressOnSave_88085(a0) { // fn#88085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:1320, owner: AppealIngestionConfirmSubmission.onPress.onSave, offset: 0x01fd47db, size: 86 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__.__proto__;
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_APPEAL_SIGNAL_CUSTOM_INPUT_CHANGE',
|
|
userInput: a0});
|
|
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppealIngestionFreeTextAppealReasonActionSheet');
|
|
}
|
|
|
|
function onPressOnClose_88086() { // fn#88086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:1493, owner: AppealIngestionConfirmSubmission.onPress.onClose, offset: 0x01fd4831, size: 44 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__;
|
|
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppealIngestionFreeTextAppealReasonActionSheet');
|
|
}
|
|
|