/* 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] */ 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 var object4; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const env0_5 = value.View; const env0_6 = value.Image; const USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING = (require(661) /* metro dependency 661: Constants */).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; object4 = {}; const object5 = {'flex': 1, 'flexDirection': 'column', 'paddingHorizontal': null, 'paddingVertical': 12, 'backgroundColor': null, 'marginTop': 8}; object5.paddingHorizontal = USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object5.backgroundColor = BACKGROUND_BASE_LOW; object4.card = object5; object4.mainContainer = {'flex': 1, 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'}; object4.textContainer = {'flexDirection': 'row', 'flexShrink': 1, 'alignItems': 'center'}; const object6 = {'width': 32, 'height': 32, 'marginRight': 8, 'borderRadius': null, 'alignItems': 'center', 'justifyContent': 'center'}; object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs; const DARK_BLACK_500_LIGHT_PRIMARY_100 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_BLACK_500_LIGHT_PRIMARY_100; object6.backgroundColor = DARK_BLACK_500_LIGHT_PRIMARY_100; object4.imageContainer = object6; object4.image = {'width': 28, 'height': 28, 'resizeMode': 'contain'}; object4.title = {lineHeight: 20}; object4.subText = {lineHeight: 18}; object4.claimButton = {paddingHorizontal: 12}; object4.moreDetails = {marginLeft: 40}; object4.termsAndConditionsText = {'paddingHorizontal': 16, 'paddingTop': 16}; object4.buttonContainer = {'flexGrow': 1, 'flexDirection': 'row', 'marginLeft': 4, 'justifyContent': 'flex-end'}; const env0_9 = Reflect.apply(createStyles, value, [object4]); (require(2) /* metro dependency 2 */).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 = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet; const object2 = {}; const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const PdKWVT = (require(1244) /* metro dependency 1244: indexNative */).t.PdKWVT; object2.header = ; const Text = (require(4573) /* metro dependency 4573: Text */).Text; return ( {(importDefault(6622) /* metro dependency 6622: 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 = (require(7286) /* metro dependency 7286: PromotionUtils */).getPromotionImageURL(outboundPromotion.id, (importDefault(4048) /* metro dependency 4048: useTheme */)()); const value4 = code != null; const value5 = (importDefault(12282) /* metro dependency 12282: useOutboundPromotionRedemptionEndDate */)(outboundPromotion, value4); const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const formatToPlainString = intl.formatToPlainString; const t = (require(1244) /* metro dependency 1244: indexNative */).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]); const binding = env0_4; var [property, env0_3] = env0_3Binding(binding.useState(false), 2); binding.useLayoutEffect(_fun93836, [property, code, outboundPromotion]); const items2 = []; const Text = (require(4573) /* metro dependency 4573: Text */).Text; items2[1] = {outboundPromotion.outboundTitle}{r21}; const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; items2[2] =