decord/source/modules/collectibles/native/UnlockWithNitroButton.tsx

68 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 11914
// Function ID: 11915
2026-07-20 16:05:17 +00:00
// Name: UnlockWithNitroButton
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 5672, 5814, 678, 21, 589, 5675, 8760, 1236, 4601, 4185, 6627, 2]
2026-07-20 16:05:17 +00:00
// Exports: UnlockWithNitroButton
2026-07-29 08:29:29 +00:00
// Module 11914 (UnlockWithNitroButton)
import "noop";
import updateProduct from "updateProduct";
import map from "map";
2026-07-23 10:11:24 +00:00
import { ShopCtaEnum } from "items";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("map").fileFinishedImporting("modules/collectibles/native/UnlockWithNitroButton.tsx");
2026-07-20 16:05:17 +00:00
export const UnlockWithNitroButton = function UnlockWithNitroButton(shouldShrink) {
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let text;
let flag = shouldShrink.shouldShrink;
if (flag === undefined) {
flag = false;
}
2026-07-23 10:11:24 +00:00
({ onTrackPress: require, text } = shouldShrink);
2026-07-20 16:05:17 +00:00
let importDefault;
2026-07-29 08:29:29 +00:00
let obj = require(589) /* initialize */;
const items = [map, updateProduct];
2026-07-20 16:05:17 +00:00
const stateFromStores = obj.useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
let isPurchasingProductResult = null != isClaiming.isClaiming;
2026-07-20 16:05:17 +00:00
if (!isPurchasingProductResult) {
2026-07-29 08:29:29 +00:00
isPurchasingProductResult = purchasingProduct.isPurchasingProduct(callback(table[6]).ProductIds.GENERIC_CONSUMABLE);
2026-07-20 16:05:17 +00:00
}
return isPurchasingProductResult;
});
2026-07-29 08:29:29 +00:00
importDefault = importDefault(8760)();
if (text == null) {
const intl = tmp(1236).intl;
text = intl.string(tmp(1236).t.sEAnVH);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp4Result;
2026-07-20 16:05:17 +00:00
if (flag) {
2026-07-29 08:29:29 +00:00
obj = { variant: "text-xs/semibold", color: "text-overlay-light", allowFontScaling: false, children: null };
obj[3] = text;
tmp4Result = tmp4(tmp(4185).Text, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { textElement: tmp4Result, text: null, accessibilityLabel: null, variant: "primary", size: null, grow: true, icon: null, onPress: null, disabled: null };
let tmp6;
2026-07-20 16:05:17 +00:00
if (!flag) {
2026-07-29 08:29:29 +00:00
tmp6 = text;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = tmp6;
obj[2] = text;
2026-07-20 16:05:17 +00:00
let str = "md";
if (flag) {
str = "sm";
}
2026-07-29 08:29:29 +00:00
obj[4] = str;
obj[6] = jsx(require(6627) /* NitroWheelIcon */.NitroWheelIcon, { size: "sm", color: "white" });
obj[7] = function onPress() {
if (closure_0 != null) {
tmp(outer1_5.UNLOCK_WITH_NITRO);
2026-07-20 16:05:17 +00:00
}
callback2();
};
2026-07-29 08:29:29 +00:00
obj[8] = stateFromStores;
return jsx(require(4601) /* CollapsingText */.BaseTextButton, { textElement: tmp4Result, text: null, accessibilityLabel: null, variant: "primary", size: null, grow: true, icon: null, onPress: null, disabled: null });
2026-07-20 16:05:17 +00:00
};