/* Metro module 12157; source: modules/checkout/native/gifting/UnifiedGiftModalSuccessScreen.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 12158, 7633, 5080, 12168, 1962, 7007, 4596, 4573, 1244, 4579, 2] */ import Alert from '../../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */ 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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */ import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as BaseTextButtonNativeModule from '../../../../design/components/Button/native/BaseTextButton.native.tsx'; /* Metro dependency 4579 */ import * as GiftingBadgeExperimentModule from '../../../premium/gifting/experiments/GiftingBadgeExperiment.tsx'; /* Metro dependency 7633 */ import * as PremiumGiftBackgroundSelectTileModule from '../../../premium/native/gifting/PremiumGiftBackgroundSelectTile.tsx'; /* Metro dependency 12158 */ function _fun93245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12343:6, offset: 0x020abf89, size: 395 bytes, params: 8, frame: 22 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = JsxRuntimeModule; const env0_6 = value.jsx; const env0_7 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object = {}; const object2 = {}; let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object2.paddingHorizontal = PX_24; PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object2.paddingBottom = PX_24; object2.alignItems = 'center'; object.alertContainer = object2; object.image = {'position': 'relative', 'top': -50}; const object3 = {}; PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object3.marginTop = -PX_24; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object3.marginBottom = PX_8; object.title = object3; PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object.description = {marginBottom: PX_24}; const env0_8 = Reflect.apply(createStyles, value, [object]); (FileImportTrackerModule).fileFinishedImporting('modules/checkout/native/gifting/UnifiedGiftModalSuccessScreen.tsx'); exports.default = UnifiedGiftModalSuccessScreen; function UnifiedGiftModalSuccessScreen({giftStyle, giftBadgeProgress, onClose}) { // fn#93246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12343:579, offset: 0x020ac114, size: 625 bytes, params: 2, frame: 31 const styles = useStyles(); const GIFT_STYLE_IMG = (PremiumGiftBackgroundSelectTileModule).GIFT_STYLE_IMG; const property = GIFT_STYLE_IMG[giftStyle]; const GiftingBadgeExperiment = (GiftingBadgeExperimentModule).GiftingBadgeExperiment; const useConfig = GiftingBadgeExperiment.useConfig; const enabled = Reflect.apply(useConfig, GiftingBadgeExperiment, [{location: 'UnifiedGiftModalSuccessScreen'}]).enabled; const value2 = ReactModule.useCallback(_fun93247, [enabled, giftBadgeProgress, onClose]); const value3 = ReactModule.useCallback(function() { onClose(); require(dependencyMap[11]).openUserSettings({screen: UserSettingsSections.PREMIUM_GIFTING, params: {}}); }, [onClose]); const items2 = [ , ]; const Text = (TextModule).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const MqZXbv = (require(1244) /* metro dependency 1244: indexNative */).t.MqZXbv; items2[1] = ( {Reflect.apply(string, intl, [MqZXbv])} ); const format = intl.format; const YS2J4S = (require(1244) /* metro dependency 1244: indexNative */).t.YS2J4S; items2[2] = ( {Reflect.apply(format, intl, [YS2J4S, {onClick: value3}])} ); const BaseTextButton = (BaseTextButtonNativeModule).BaseTextButton; items2[3] = ( ); return ( {items2} ); function _fun93247() { // fn#93247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12343:813, offset: 0x020ac385, size: 122 bytes, params: 1, frame: 17 var value3; var defaultImport; onClose(); if (enabled && giftBadgeProgress != null) { value3 = environment.__proto__; defaultImport = importDefault(dependencyMap[8]); defaultImport.pushLazy(require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths), {giftBadgeProgress: giftBadgeProgress}, 'collectibles_shop_gift_badge_modal'); } } } } global.__d(_fun93245, 12157, [31, 27, 661, 33, 4501, 697, 12158, 7633, 5080, 12168, 1962, 7007, 4596, 4573, 1244, 4579, 2]) /* metro module 12157, dependencies: [31, 27, 661, 33, 4501, 697, 12158, 7633, 5080, 12168, 1962, 7007, 4596, 4573, 1244, 4579, 2] */;