/* Metro module 11470; source: modules/safety_hub/native/ClassificationDetailModal.tsx; dependencies: [31, 661, 11471, 33, 4501, 697, 5080, 5282, 11472, 7007, 11503, 11480, 1485, 5280, 1244, 2] */ import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ 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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as Module01485Module from '../../../by-id/module-01485.js'; /* Metro dependency 1485 */ import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */ import * as SettingsAccountConstantsModule from '../../user_settings/account/native/SettingsAccountConstants.tsx'; /* Metro dependency 11471 */ import * as UseSafetyHubInitializedModule from '../hooks/useSafetyHubInitialized.tsx'; /* Metro dependency 11503 */ function _fun87812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:6, offset: 0x01fcc2a1, size: 268 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {CLASSIFICATION_DETAIL: 'CLASSIFICATION_DETAIL'}; const createStyles = CreateStylesModule.createStyles; const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER; const env0_9 = Reflect.apply(createStyles, CreateStylesModule, [{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]); (FileImportTrackerModule).fileFinishedImporting('modules/safety_hub/native/ClassificationDetailModal.tsx'); exports.default = ClassificationDetailModal; function ClassificationDetailModal({classificationId, source, shouldRedirectToAccountStanding}) { // fn#87813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:453, offset: 0x01fcc3ad, size: 293 bytes, params: 2, frame: 22 shouldRedirectToAccountStanding = !(shouldRedirectToAccountStanding === undefined) && shouldRedirectToAccountStanding; const styles = useStyles(); const value2 = (UseSafetyHubInitializedModule).useSafetyHubInitialized(); const binding = value2; binding.useEffect(_fun87814, [value2]); (Module01485Module).useIsFocused(); const value3 = binding.useMemo(function() { return _fun87816(classificationId, shouldRedirectToAccountStanding, styles, source); }, [classificationId, shouldRedirectToAccountStanding, styles, source]); const Navigator = (NavigatorNativeModule).Navigator; const CLASSIFICATION_DETAIL = env0_8.CLASSIFICATION_DETAIL; const intl = (IndexNativeModule).intl; return ( ); function _fun87814() { // fn#87814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:616, offset: 0x01fcc4d2, size: 49 bytes, params: 1, frame: 11 var value; if (!ReactModule) { value = environment.__proto__; value = importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */; value.getSafetyHubData(); } } function _fun87815() { // fn#87815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:700, offset: 0x01fcc503, size: 36 bytes, params: 1, frame: 17 return getScreens_87816(classificationId, shouldRedirectToAccountStanding, styles, source); function getScreens_87816(a0, a1, {headerStyle}, a3) { // fn#87816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:704, offset: 0x01fcc527, size: 134 bytes, params: 5, frame: 16 var environment; const env0_0 = a0; const env0_1 = a1; const env0_2 = a3; const getScreens_87816CloseModal2 = getScreens_87816CloseModal; const value = environment.__proto__.__proto__; const CLASSIFICATION_DETAIL = env2_8.CLASSIFICATION_DETAIL; const object2 = {}; object2.headerStyle = headerStyle; object2.headerTitle = function() { return null; }; object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(getScreens_87816CloseModal2); object2.render = render_87819; return {[CLASSIFICATION_DETAIL]: object2}; function getScreens_87816CloseModal() { // fn#87817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:748, owner: getScreens_87816.closeModal, offset: 0x01fcc5ad, size: 37 bytes, params: 1, frame: 11 const value = environment.__proto__.__proto__.__proto__; return (ModalActionCreators).pop(); } function getScreens_87816Render() { // fn#87819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:906, owner: getScreens_87816.render, offset: 0x01fcc5d2, size: 85 bytes, params: 1, frame: 16 var environment; const value = environment.__proto__.__proto__.__proto__; return ((Component) => )(importDefault(11472) /* metro dependency 11472: ClassificationDetail */); function renderOnClose_87820() { // fn#87820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:957, owner: getScreens_87816.render.onClose, offset: 0x01fcc627, size: 95 bytes, params: 1, frame: 14 getScreens_87816CloseModal(); if (require) { value = environment.__proto__.__proto__.__proto__.__proto__; (require(7007) /* metro dependency 7007: openUserSettings */).openUserSettings({screen: UserSettingsSections.ACCOUNT, params: {initialTab: AccountSettingsTabs.STANDING}}); } } } } } } } global.__d(_fun87812, 11470, [31, 661, 11471, 33, 4501, 697, 5080, 5282, 11472, 7007, 11503, 11480, 1485, 5280, 1244, 2]) /* metro module 11470, dependencies: [31, 661, 11471, 33, 4501, 697, 5080, 5282, 11472, 7007, 11503, 11480, 1485, 5280, 1244, 2] */;