/* Metro module 14237; source: modules/billing/native/otp/SimpleRequestOTPActionSheet.tsx; dependencies: [5, 57, 31, 27, 1878, 4279, 661, 1880, 33, 3, 1585, 7669, 566, 8461, 5120, 1900, 7298, 10147, 4080, 4496, 5134, 4572, 4573, 6239, 4578, 7641, 491, 7294, 6275, 10109, 2] */ function _fun107664(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14434:6, offset: 0x02304980, size: 344 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(57) /* metro dependency 57 */; const env0_5 = importAll(31) /* metro dependency 31 */; const env0_6 = (require(27) /* metro dependency 27 */).View; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */; const env0_9 = (require(661) /* metro dependency 661: Constants */).PriceSetAssignmentPurchaseTypes; const env0_10 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumTypes; let value = require(33) /* metro dependency 33 */; const env0_11 = value.jsxs; const env0_12 = value.jsx; value = importDefault(3) /* metro dependency 3: Logger */; value = new value('PaymentFlowTest.android'); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/otp/SimpleRequestOTPActionSheet.tsx'); exports.default = _default_107687; } function GiftPurchaseSKUView({selectedSkuId, giftRecipientId, giftMessage}) { // fn#107665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14434:317, offset: 0x02304ad8, size: 1116 bytes, params: 2, frame: 30 const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)(); let binding = env0_5; const [property, env0_2] = env0_4(binding.useState(false), 2); const currentUser = UserStore.getCurrentUser(); var env0_4 = binding.useRef({}); const nativeGiftContextModule = require(7669) /* metro dependency 7669: NativeGiftContext */; const useNativeGiftContext = nativeGiftContextModule.useNativeGiftContext; const giftStyle = Reflect.apply(useNativeGiftContext, nativeGiftContextModule, []).giftStyle; const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SKUStore], function() { return SKUStore.get(selectedSkuId); }); const value8 = (require(8461) /* metro dependency 8461: useFetchCollectiblesProduct */).useFetchCollectiblesProduct(selectedSkuId); const product = value8.product; var env0_5 = product; const isFetching = value8.isFetching; binding.useEffect(_fun107667, [selectedSkuId]); let useMemo = binding.useMemo; const value9 = Reflect.apply(useMemo, binding, [_fun107668, [product, currentUser, selectedSkuId]]); binding.useEffect(function() { var env0_0 = _fun107671; _fun107674(); }, [value9, property, binding.useMemo(_fun107669, [value9])]); const env0_8 = (importDefault(10147) /* metro dependency 10147: useMobileCollectiblesPurchaseSKUAndroid */)({product: product ?? ({skuId: selectedSkuId, googleSkuIds: {}}), onPurchaseComplete: onPurchaseComplete, onPurchaseError: onPurchaseError, onPurchasePending: onPurchasePending, giftParams: {isGift: true, options: {recipient_id: giftRecipientId, custom_message: giftMessage, gift_style: giftStyle}}}); const value11 = _fun107678(); binding = env0_5; useMemo = binding.useMemo; const value13 = env0_4(Reflect.apply(useMemo, binding, [_fun107682, [product]]), 2); const property2 = value13[0]; const property3 = value13[1]; let r14 = isFetching || property; r14 = !r14 ? product == null : r14; const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack; const object = {}; object.paddingTop = value3.top; object.paddingBottom = value3.bottom; object.paddingHorizontal = 12; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const name = value7?.name; const value15 = 'No message'; const items2 = [{'Gifting '}{name}{' to '}{giftRecipientId}{' '}{'\n'}{'Regular price: '}{property3}{' '}{'\n'}{'Premium price: '}{property2}{' '}{'\n'}{giftMessage != null ? giftMessage === '' ? value15 : 'Message: ' + giftMessage : value15}]; const Card = (require(6239) /* metro dependency 6239: CardNative */).Card; const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; items2[1] =