/* Metro module 12281; source: components_native/premium/OutboundPromotionCard.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 6235, 6275, 6758, 1244, 4573, 6622, 4048, 7286, 12282, 4496, 12283, 1962, 7289, 4578, 6766, 4080, 2] */ import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */ import UseTheme from '../../hooks/useTheme.tsx'; /* Metro dependency 4048 */ import AlertActionCreators from '../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */ import MarkupUtils from '../../modules/markup/MarkupUtils.tsx'; /* Metro dependency 6622 */ import UseOutboundPromotionRedemptionEndDate from '../../modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx'; /* Metro dependency 12282 */ 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 ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */ 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 LegacyTokensModule from '../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */ import * as BottomSheetNativeModule from '../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */ import * as BottomSheetTitleHeaderNativeModule from '../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */ import * as TextWithIOSLinkWorkaroundModule from '../../modules/a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */ import * as PromotionUtilsModule from '../../modules/premium/promotions/PromotionUtils.tsx'; /* Metro dependency 7286 */ function _fun93833(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12467:6, offset: 0x020c603e, size: 529 bytes, params: 8, frame: 23 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactNativeModule; const env0_5 = value.View; const env0_6 = value.Image; const USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING = (ConstantsModule).USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING; value = require(33) /* metro dependency 33 */; const env0_7 = value.jsx; const env0_8 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object = {}; const object2 = {'flex': 1, 'flexDirection': 'column', 'paddingHorizontal': null, 'paddingVertical': 12, 'backgroundColor': null, 'marginTop': 8}; object2.paddingHorizontal = USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object2.backgroundColor = BACKGROUND_BASE_LOW; object.card = object2; object.mainContainer = {'flex': 1, 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'}; object.textContainer = {'flexDirection': 'row', 'flexShrink': 1, 'alignItems': 'center'}; const object3 = {'width': 32, 'height': 32, 'marginRight': 8, 'borderRadius': null, 'alignItems': 'center', 'justifyContent': 'center'}; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs; const DARK_BLACK_500_LIGHT_PRIMARY_100 = (LegacyTokensModule).DARK_BLACK_500_LIGHT_PRIMARY_100; object3.backgroundColor = DARK_BLACK_500_LIGHT_PRIMARY_100; object.imageContainer = object3; object.image = {'width': 28, 'height': 28, 'resizeMode': 'contain'}; object.title = {lineHeight: 20}; object.subText = {lineHeight: 18}; object.claimButton = {paddingHorizontal: 12}; object.moreDetails = {marginLeft: 40}; object.termsAndConditionsText = {'paddingHorizontal': 16, 'paddingTop': 16}; object.buttonContainer = {'flexGrow': 1, 'flexDirection': 'row', 'marginLeft': 4, 'justifyContent': 'flex-end'}; const env0_9 = Reflect.apply(createStyles, value, [object]); (FileImportTrackerModule).fileFinishedImporting('components_native/premium/OutboundPromotionCard.tsx'); exports.default = OutboundPromotionCard; function TermsAndConditionsActionSheet({termsAndConditions}) { // fn#93834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12467:1039, offset: 0x020c624f, size: 246 bytes, params: 2, frame: 25 const styles = useStyles(); const BottomSheet = (BottomSheetNativeModule).BottomSheet; const object = {}; const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader; const intl = (IndexNativeModule).intl; const string = intl.string; const PdKWVT = (IndexNativeModule).t.PdKWVT; object.header = ; const Text = (TextModule).Text; return ( {(MarkupUtils).parse(termsAndConditions, false, {allowLinks: true})} ); } function OutboundPromotionCard({outboundPromotion, code}) { // fn#93835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12467:1369, offset: 0x020c6345, size: 927 bytes, params: 2, frame: 32 var env0_3Binding = undefined; const styles = useStyles(); const promotionImageURL = (PromotionUtilsModule).getPromotionImageURL(outboundPromotion.id, (UseTheme)()); const value4 = code != null; const value5 = (UseOutboundPromotionRedemptionEndDate)(outboundPromotion, value4); const intl = (IndexNativeModule).intl; const formatToPlainString = intl.formatToPlainString; const t = (IndexNativeModule).t; const r21 = value4 ? Reflect.apply(formatToPlainString, intl, [t.VaD05h, {endDate: value5}]) : Reflect.apply(formatToPlainString, intl, [t['/XWgfG'], {endDate: value5}]); const string = intl.string; const r20 = value4 ? Reflect.apply(string, intl, [t['2cHUti']]) : Reflect.apply(string, intl, [t.O13yhz]); var [property, env0_3] = env0_3Binding(ReactModule.useState(false), 2); ReactModule.useLayoutEffect(_fun93836, [property, code, outboundPromotion]); const items2 = [ , ]; const Text = (TextModule).Text; items2[1] = ( {outboundPromotion.outboundTitle} {r21} ); const Button = (ButtonNativeModule).Button; items2[2] = (