// Module ID: 12046 // Function ID: 12047 // Name: UnlockWithNitroButton // Dependencies: [19, 5324, 5329, 678, 21, 589, 5327, 9618, 1236, 4751, 4739, 8027, 2] // Exports: UnlockWithNitroButton // Module 12046 (UnlockWithNitroButton) import noopAll from "noop" /* 19 */; import initialize from "initialize" /* 589 */; import CollapsingText from "CollapsingText" /* 4751 */; import NitroWheelIcon from "NitroWheelIcon" /* 8027 */; import useOpenNitroSubscribeActionSheetDefault from "useOpenNitroSubscribeActionSheet" /* 9618 */; import closure_3 from "updateProduct" /* 5324 */; import closure_4 from "map" /* 5329 */; import { ShopCtaEnum } from "items" /* 678 */; import { jsx } from "jsxProd" /* 21 */; require = arg1; noopAll; const result = require("set").fileFinishedImporting("modules/collectibles/native/UnlockWithNitroButton.tsx"); export const UnlockWithNitroButton = function UnlockWithNitroButton(shouldShrink) { let flag = shouldShrink.shouldShrink; if (flag === undefined) { flag = false; } ({ onTrackPress: require, text } = shouldShrink); importDefault = undefined; let obj = initialize; const items = [closure_4, closure_3]; const stateFromStores = obj.useStateFromStores(items, () => { let isPurchasingProductResult = null != isClaiming.isClaiming; if (!isPurchasingProductResult) { isPurchasingProductResult = purchasingProduct.isPurchasingProduct(callback(table[6]).ProductIds.GENERIC_CONSUMABLE); } return isPurchasingProductResult; }); importDefault = useOpenNitroSubscribeActionSheetDefault(); if (text == null) { const intl = tmp(1236).intl; text = intl.string(tmp(1236).t.sEAnVH); } let tmp4Result; if (flag) { obj = { variant: "text-xs/semibold", color: "text-overlay-light", allowFontScaling: false, children: null }; obj[3] = text; tmp4Result = tmp4(tmp(4739).Text, obj); } obj = { textElement: tmp4Result, text: null, accessibilityLabel: null, variant: "primary", size: null, grow: true, icon: null, onPress: null, disabled: null }; let tmp6; if (!flag) { tmp6 = text; } obj[1] = tmp6; obj[2] = text; let str = "md"; if (flag) { str = "sm"; } obj[4] = str; obj[6] = jsx(NitroWheelIcon.NitroWheelIcon, { size: "sm", color: "white" }); obj[7] = function onPress() { if (closure_0 != null) { tmp(closure_1_5.UNLOCK_WITH_NITRO); } callback2(); }; obj[8] = stateFromStores; return jsx(CollapsingText.BaseTextButton, { textElement: tmp4Result, text: null, accessibilityLabel: null, variant: "primary", size: null, grow: true, icon: null, onPress: null, disabled: null }); };