101 lines
6.5 KiB
TypeScript
101 lines
6.5 KiB
TypeScript
/* Metro module 11496; source: modules/safety_hub/native/AppealIngestionFreeTextAppealReasonActionSheet.tsx; dependencies: [57, 31, 27, 11473, 33, 4501, 697, 566, 1244, 6275, 4572, 5278, 5312, 11489, 7681, 4573, 4578, 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 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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
|
|
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 PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
|
|
import * as XSmallIconModule from '../../../design/components/Icon/native/redesign/generated/XSmallIcon.tsx'; /* Metro dependency 5312 */
|
|
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as TextAreaNativeModule from '../../../design/components/TextInput/native/TextArea.native.tsx'; /* Metro dependency 7681 */
|
|
import * as AppealIngestionModalModule from './AppealIngestionModal.tsx'; /* Metro dependency 11489 */
|
|
|
|
function _fun88074(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11682:6, offset: 0x01fd3e66, size: 329 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = JsxRuntimeModule;
|
|
const env0_6 = value.jsx;
|
|
const env0_7 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
|
|
const env0_8 = Reflect.apply(createStyles, value, [{footerText: {textAlign: 'center'}, textArea: {'marginTop': -16,
|
|
'marginBottom': 36}, separator: {'height': 1, 'backgroundColor': null, 'marginHorizontal': -16,
|
|
backgroundColor: BORDER_SUBTLE}, closeIcon: {'alignSelf': 'flex-end', 'flexDirection': 'row',
|
|
'marginBottom': -26}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/safety_hub/native/AppealIngestionFreeTextAppealReasonActionSheet.tsx');
|
|
exports.default = AppealIngestionFreeTextAppealReasonActionSheet;
|
|
function AppealIngestionFreeTextAppealReasonActionSheet({onSave, onClose}) { // fn#88075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11682:545, offset: 0x01fd3faf, size: 840 bytes, params: 2, frame: 32
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const styles = useStyles();
|
|
const freeTextAppealReason = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
|
function() {
|
|
return SafetyHubStore.getFreeTextAppealReason();
|
|
});
|
|
const [property, property2] = Module00057(ReactModule.useState(freeTextAppealReason), 2);
|
|
const r20 = freeTextAppealReason === '' ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uoQFIp) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tnE3bZ);
|
|
const value6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Rk+uJx']);
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const Stack = (StackNativeModule).Stack;
|
|
const PressableOpacity = (PressablesModule).PressableOpacity;
|
|
const XSmallIcon = (XSmallIconModule).XSmallIcon;
|
|
const items2 = [
|
|
<PressableOpacity onPress={onClose} style={styles.closeIcon}>
|
|
<XSmallIcon size="md" />
|
|
</PressableOpacity>,
|
|
];
|
|
const AppealIngestionModalHeader = (AppealIngestionModalModule).AppealIngestionModalHeader;
|
|
items2[1] = <AppealIngestionModalHeader headerText={r20} subHeaderText={value6} />;
|
|
const TextArea = (TextAreaNativeModule).TextArea;
|
|
items2[2] = (
|
|
<TextArea
|
|
maxLength={1024}
|
|
placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bQrZIN)}
|
|
containerStyle={styles.textArea}
|
|
value={property}
|
|
onChange={property2}
|
|
/>
|
|
);
|
|
items2[3] = <View style={styles.separator} />;
|
|
const Text = (TextModule).Text;
|
|
items2[4] = (
|
|
<Text
|
|
variant="text-xs/medium"
|
|
color="text-default"
|
|
style={styles.footerText}
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xfNY3L)}
|
|
</Text>
|
|
);
|
|
const Button = (ButtonNativeModule).Button;
|
|
items2[5] = (
|
|
<Button
|
|
onPress={onPress_88077}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
|
/>
|
|
);
|
|
return (
|
|
<BottomSheet startExpanded>
|
|
<Stack spacing={16}>
|
|
{items2}
|
|
</Stack>
|
|
</BottomSheet>
|
|
);
|
|
function AppealIngestionFreeTextAppealReasonActionSheetOnPress() { // fn#88077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11682:1452, owner: AppealIngestionFreeTextAppealReasonActionSheet.onPress, offset: 0x00c950e6, size: 20 bytes, params: 1, frame: 11
|
|
return onSave(env0_1);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun88074, 11496, [57, 31, 27, 11473, 33, 4501, 697, 566, 1244, 6275, 4572, 5278, 5312, 11489, 7681,
|
|
4573, 4578,
|
|
2]) /* metro module 11496, dependencies: [57, 31, 27, 11473, 33, 4501, 697, 566, 1244, 6275, 4572, 5278, 5312, 11489, 7681, 4573, 4578, 2] */;
|