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

68 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 12168
// Function ID: 12169
2026-07-20 16:05:17 +00:00
// Name: UnlockWithNitroButton
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 5858, 7017, 678, 21, 589, 5861, 9567, 1236, 4715, 4299, 7704, 2]
2026-07-20 16:05:17 +00:00
// Exports: UnlockWithNitroButton
2026-08-08 06:10:11 +00:00
// Module 12168 (UnlockWithNitroButton)
2026-07-29 08:29:29 +00:00
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-08-08 06:10:11 +00:00
importDefault = importDefault(9567)();
2026-07-29 08:29:29 +00:00
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;
2026-08-08 06:10:11 +00:00
tmp4Result = tmp4(tmp(4299).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;
2026-08-08 06:10:11 +00:00
obj[6] = jsx(require(7704) /* NitroWheelIcon */.NitroWheelIcon, { size: "sm", color: "white" });
2026-07-29 08:29:29 +00:00
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;
2026-08-08 06:10:11 +00:00
return jsx(require(4715) /* 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
};