/* Metro module 13272; source: modules/safety_hub/native/SafetyHubPage.tsx; dependencies: [31, 27, 11473, 5267, 661, 33, 1244, 4573, 5076, 1305, 566, 4501, 697, 13273, 11503, 11481, 13274, 4594, 11480, 683, 4826, 4831, 4080, 13275, 1962, 13276, 13278, 2] */ function _fun101196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:6, offset: 0x0220b0b2, size: 411 bytes, params: 8, frame: 22 var object3; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_4 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const env0_5 = value.View; const env0_6 = value.ActivityIndicator; const env0_7 = value.ScrollView; const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */; const env0_9 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).AgeCheckStatus; value = require(661) /* metro dependency 661: Constants */; const env0_10 = value.AnalyticEvents; const env0_11 = value.Routes; value = require(33) /* metro dependency 33 */; const env0_12 = value.jsx; const env0_13 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object3 = {}; const object4 = {}; let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object4.paddingHorizontal = PX_12; PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object4.paddingVertical = PX_12; object3.container = object4; object3.loadingIndicator = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center'}; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object3.body = {gap: PX_8}; const env0_14 = Reflect.apply(createStyles, value, [object3]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SafetyHubPage.tsx'); exports.default = SafetyHubPage; } function AutomatedUnderageAppealStatus() { // fn#101197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:264, offset: 0x0220b24d, size: 137 bytes, params: 1, frame: 17 const fluxModule = require(566) /* metro dependency 566: flux */; const useStateFromStores = fluxModule.useStateFromStores; const {message, type} = getAutomatedAppealStatusMessage(Reflect.apply(useStateFromStores, fluxModule, [[SafetyHubStore], function() { return SafetyHubStore.getAgeCheckStatus(); }])); const value3 = null; if (value3 == type) { return value3; } else { const HelpMessage = (require(1305) /* metro dependency 1305: native */).HelpMessage; return ( {message} ); } } function SafetyHubPage({visible}) { // fn#101202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:1459, offset: 0x0220b552, size: 449 bytes, params: 2, frame: 23 const styles = useStyles(); const value2 = (importDefault(13273) /* metro dependency 13273: useSafetyHubLoading */)(); const env0_1 = (require(11503) /* metro dependency 11503: useSafetyHubInitialized */).useSafetyHubInitialized(); const env0_2 = (require(11481) /* metro dependency 11481: useSafetyHubAccountStanding */).useSafetyHubAccountStanding(); const value3 = (require(13274) /* metro dependency 13274: useSafetyHubFetchError */).useSafetyHubFetchError(); (importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun101203); env0_4.useEffect(_fun101204, [value3, visible]); return value2 ? : value3 != null ? null : {((Component) => )(importDefault(13276) /* metro dependency 13276: SafetyHubAccountStanding */)}{((ConnectedSafetyHubViolationsContainer) => )((require(13278) /* metro dependency 13278: SafetyHubViolationsContainer */).ConnectedSafetyHubViolationsContainer)}; } function getAutomatedAppealStatusMessage(a0) { // fn#101198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:311, owner: AutomatedUnderageAppealStatus.getAutomatedAppealStatusMessage, offset: 0x0220b2d6, size: 484 bytes, params: 2, frame: 18 var object2; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const t = (require(1244) /* metro dependency 1244: indexNative */).t; const HelpMessageTypes = (require(1305) /* metro dependency 1305: native */).HelpMessageTypes; const SUCCESS = AgeCheckStatus.SUCCESS; if (SUCCESS === a0) { return {message: intl.format(t.hyh4ls, {loginHook: loginHook_101199}), type: HelpMessageTypes.SUCCESS}; } const ERROR = AgeCheckStatus.ERROR; if (ERROR === a0) { object2 = {}; object2.message = intl.string(t['4sILBU']); object2.type = HelpMessageTypes.ERROR; return object2; } const FAILURE = AgeCheckStatus.FAILURE; if (FAILURE === a0) { object2 = {}; object2.message = intl.string(t['40R63o']); object2.type = HelpMessageTypes.ERROR; return object2; } const LOADING = AgeCheckStatus.LOADING; if (LOADING === a0) { object2 = {}; object2.message = intl.string(t['nhhy/R']); object2.type = HelpMessageTypes.INFO; return object2; } return {'message': null, 'type': null}; } function _fun101203() { // fn#101203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:1649, offset: 0x0220b713, size: 161 bytes, params: 1, frame: 18 var defaultImport; var object2; var defaultImport2; var increment; (importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */).getSafetyHubData(); if (env0_1) { defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; defaultImport.track(AnalyticEvents.SAFETY_HUB_VIEWED, {account_standing: env0_2.state}); defaultImport2 = importDefault(4826) /* metro dependency 4826: MonitoringAgent */; increment = defaultImport2.increment; object2 = {}; object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.SAFETY_HUB_VIEW; Reflect.apply(increment, defaultImport2, [object2]); } } function _fun101204() { // fn#101204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:1831, offset: 0x0220b7b4, size: 148 bytes, params: 1, frame: 16 var defaultImport; var openLazy; var value; if (visible) { if (env0_3 != null) { value = environment.__proto__; defaultImport = importDefault(dependencyMap[22]); openLazy = defaultImport.openLazy; value = require(dependencyMap[24]); value = value(dependencyMap[23], dependencyMap.paths); Reflect.apply(openLazy, defaultImport, [value, 'SafetyHubErrorActionSheet', {}]); } else { value = environment.__proto__; value = importDefault(dependencyMap[22]); value.hideActionSheet('SafetyHubErrorActionSheet'); } } else { value = environment.__proto__; value = importDefault(dependencyMap[22]); value.hideActionSheet('SafetyHubErrorActionSheet'); } } function getAutomatedAppealStatusMessageLoginHook(a0) { // fn#101199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:443, owner: AutomatedUnderageAppealStatus.getAutomatedAppealStatusMessage.loginHook, offset: 0x0220b4ba, size: 76 bytes, params: 2, frame: 14 const Text = (require(4573) /* metro dependency 4573: Text */).Text; return ( {a0} ); }