/* Metro module 14622; source: modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx; dependencies: [27, 33, 4501, 697, 4573, 14623, 14624, 1244, 2256, 14627, 2] */ import UseGuildPowerupTier3OverrideConfig from '../hooks/useGuildPowerupTier3OverrideConfig.tsx'; /* Metro dependency 14623 */ import UseGuildPowerupExpiringNotificationsConfig from '../hooks/useGuildPowerupExpiringNotificationsConfig.tsx'; /* Metro dependency 14624 */ 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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ function _fun110548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:6, offset: 0x0237ccc3, size: 369 bytes, params: 8, frame: 23 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); 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 object2 = {}; let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object2.gap = PX_12; const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.margin = PX_16; object.container = object2; const object3 = {}; PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object3.padding = PX_12; const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE; object3.backgroundColor = BACKGROUND_MOD_SUBTLE; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md; object3.borderWidth = 1; object3.borderStyle = 'solid'; const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE; object3.borderColor = BORDER_SUBTLE; object.staffContainer = object3; const env0_6 = Reflect.apply(createStyles, value, [object]); (FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx'); exports.default = GuildPowerupsNotificationContainer; function Tier3OverrideNotice({text}) { // fn#110549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:430, offset: 0x0237ce34, size: 104 bytes, params: 2, frame: 18 const styles = useStyles(); const Text = (TextModule).Text; return ( {text} ); } function GuildPowerupsNotificationContainer({guildId}) { // fn#110550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14819:694, offset: 0x0237ce9c, size: 338 bytes, params: 2, frame: 26 var r6; var r0; const Text = (TextModule).Text; const intl = (IndexNativeModule).intl; var items2; var value; const styles = useStyles(); const value2 = (UseGuildPowerupTier3OverrideConfig)(guildId); const value3 = (UseGuildPowerupExpiringNotificationsConfig)(guildId); let shouldShow = value2.shouldShow; if (shouldShow) { var viewBindingProps = {style: styles.container}; items2 = [ {intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3FRirU'])} , ]; shouldShow = value2.shouldShow; r6 = shouldShow && ; items2[1] = r6; shouldShow = value3.shouldShow; if (shouldShow) { value = importDefault(14627) /* metro dependency 14627: GuildPowerupsWarning */; value = ((Component) => )(value); r6 = value; } else { r6 = shouldShow; } items2[2] = r6; value = ( {items2} ); r0 = value; } else { shouldShow = value3.shouldShow; if (shouldShow) { var viewBindingProps = {style: styles.container}; items2 = [ {intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */)['3FRirU'])} , ]; shouldShow = value2.shouldShow; r6 = shouldShow && ; items2[1] = r6; shouldShow = value3.shouldShow; if (shouldShow) { value = importDefault(14627) /* metro dependency 14627: GuildPowerupsWarning */; value = ((Component) => )(value); r6 = value; } else { r6 = shouldShow; } items2[2] = r6; value = ( {items2} ); r0 = value; } else { r0 = null; } } return r0; } } global.__d(_fun110548, 14622, [27, 33, 4501, 697, 4573, 14623, 14624, 1244, 2256, 14627, 2]) /* metro module 14622, dependencies: [27, 33, 4501, 697, 4573, 14623, 14624, 1244, 2256, 14627, 2] */;