/* Metro module 10152; source: modules/collectibles/native/UnlockWithNitroButton.tsx; dependencies: [31, 5140, 5145, 663, 33, 566, 5143, 10105, 1244, 4579, 4573, 7954, 2] */ function _fun79117(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10338:6, offset: 0x01e4597b, size: 192 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); importAll(31) /* metro dependency 31 */; const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */; const collectiblesPurchaseStore = importDefault(5145) /* metro dependency 5145: CollectiblesPurchaseStore */; const env0_5 = (require(663) /* metro dependency 663: CollectiblesShopConstants */).ShopCtaEnum; const env0_6 = (require(33) /* metro dependency 33 */).jsx; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/native/UnlockWithNitroButton.tsx'); exports.UnlockWithNitroButton = UnlockWithNitroButton; } function UnlockWithNitroButton({shouldShrink, onTrackPress, text}) { // fn#79118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10338:272, offset: 0x01e45a3b, size: 404 bytes, params: 2, frame: 23 var object2; var r7; var intl; shouldShrink = !(shouldShrink === undefined) && shouldShrink; const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([CollectiblesPurchaseStore, IAPStoreAndroid], _fun79119); const env0_1 = (importDefault(10105) /* metro dependency 10105: useOpenNitroSubscribeActionSheet */)(); if (text != null) { r7 = text; } else { intl = (require(1244) /* metro dependency 1244: indexNative */).intl; r7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sEAnVH); } const BaseTextButton = (require(4579) /* metro dependency 4579: BaseTextButtonNative */).BaseTextButton; object2 = {textElement: shouldShrink ? ((Text) => {r7})((require(4573) /* metro dependency 4573: Text */).Text) : undefined, text: shouldShrink ? undefined : r7, accessibilityLabel: r7, variant: 'primary', size: shouldShrink ? 'sm' : 'md', grow: true}; const NitroWheelIcon = (require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon; object2.icon = ; object2.onPress = onPress_79120; object2.disabled = value4; return ; } function _fun79119() { // fn#79119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10338:358, offset: 0x01e45bcf, size: 73 bytes, params: 1, frame: 14 const value = environment.__proto__; return CollectiblesPurchaseStore.isClaiming != null || IAPStoreAndroid.isPurchasingProduct((require(5143) /* metro dependency 5143: ProductIdsAndroid */).ProductIds.GENERIC_CONSUMABLE); } function UnlockWithNitroButtonOnPress() { // fn#79120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10338:805, owner: UnlockWithNitroButton.onPress, offset: 0x01e45c18, size: 49 bytes, params: 1, frame: 12 var value2; let onTrackPressBinding = onTrackPress; if (onTrackPressBinding != null) { onTrackPressBinding = onTrackPress; value2 = environment.__proto__; onTrackPressBinding(ShopCtaEnum.UNLOCK_WITH_NITRO); } env0_1(); }