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

75 lines
4.1 KiB
TypeScript

/* Metro module 11482; source: modules/safety_hub/native/ClassificationEvidence.tsx; dependencies: [31, 27, 33, 4501, 1305, 697, 4573, 1244, 11483, 2] */
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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
function _fun87964(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11668:6, offset: 0x01fcfc98, size: 373 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {};
const generateBoxShadowStyle = NativeModule.generateBoxShadowStyle;
const FOUR_DP_ELEVATION_SHADOW_PARAMS = NativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
object.cardShadow = Reflect.apply(generateBoxShadowStyle, NativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
const object2 = {borderWidth: 1};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.borderColor = BACKGROUND_BASE_LOWEST;
const CHANNELTEXTAREA_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.CHANNELTEXTAREA_BACKGROUND;
object2.backgroundColor = CHANNELTEXTAREA_BACKGROUND;
object2.padding = 20;
object.flaggedContent = object2;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.sectionContainer = {display: 'flex', gap: PX_8};
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/safety_hub/native/ClassificationEvidence.tsx');
exports.default = ClassificationEvidence;
function ClassificationEvidence({flaggedContent}) { // fn#87965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11668:588, offset: 0x01fcfe0d, size: 253 bytes, params: 2, frame: 25
var r0;
var Text;
var intl;
var items2;
var object;
var value;
const styles = useStyles();
if (flaggedContent.length === 0) {
r0 = null;
} else {
var viewBindingProps = {style: styles.sectionContainer};
Text = (require(4573) /* metro dependency 4573: Text */).Text;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2 = [
<Text variant="eyebrow" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.s64CMg)}
</Text>,
];
var viewProps = {style: [styles.flaggedContent, styles.cardShadow]};
value = importDefault(11483) /* metro dependency 11483: ClassificationMessageEvidence */;
items2[1] = (
<View {...viewProps}>
{((Component) => <Component flaggedContent={flaggedContent} />)(value)}
</View>
);
value = (
<View {...viewBindingProps}>
{items2}
</View>
);
r0 = value;
}
return r0;
}
}
global.__d(_fun87964, 11482, [31, 27, 33, 4501, 1305, 697, 4573, 1244, 11483,
2]) /* metro module 11482, dependencies: [31, 27, 33, 4501, 1305, 697, 4573, 1244, 11483, 2] */;