decord/source/modules/premium/fractional/native/BoostingCountDownPill.tsx

73 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 12665
// Function ID: 12666
2026-07-20 16:05:17 +00:00
// Name: handlePress
2026-08-05 07:35:12 +00:00
// Dependencies: [17, 21, 4255, 712, 4223, 12666, 1959, 1236, 4251, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 12665 (handlePress)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-20 16:05:17 +00:00
function handlePress() {
2026-08-05 07:35:12 +00:00
let obj = importDefault(4223);
2026-07-29 08:29:29 +00:00
obj = { aboutText: null };
const intl = require(1236) /* getSystemLocale */.intl;
obj[0] = intl.string(require(1236) /* getSystemLocale */.t["07lzz7"]);
2026-08-05 07:35:12 +00:00
obj.openLazy(require(1959) /* asyncRequireImpl */(12666, dependencyMap.paths), "NitroCreditEducationActionSheet", obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ TouchableOpacity: c3, View: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let obj = { fractionalPremiumBanner: null, fpDurationPill: null, fpDurationText: null, fpUnavailable: null, fpUnavailableTextNoCountdown: null };
obj = { backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGH, flexDirection: "row", gap: 12, padding: 12, justifyContent: "center", borderColor: require("Themes").colors.STATUS_WARNING, borderWidth: 1, borderRadius: require("Themes").radii.lg, marginBottom: 12 };
obj[0] = obj;
obj[1] = { flex: 1, paddingVertical: 12, paddingHorizontal: 27, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG, borderRadius: require("Themes").radii.xxl, justifyContent: "center" };
obj[2] = { textAlign: "center", color: "#FFEAA0" };
obj[3] = { flex: 1, justifyContent: "center" };
obj[4] = { textAlign: "center" };
let closure_7 = createCacheKey.createStyles(obj);
let obj1 = { flex: 1, paddingVertical: 12, paddingHorizontal: 27, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG, borderRadius: require("Themes").radii.xxl, justifyContent: "center" };
const result = require("createCacheKey").fileFinishedImporting("modules/premium/fractional/native/BoostingCountDownPill.tsx");
2026-07-20 16:05:17 +00:00
export default function BoostingCountDownPill(style) {
let fpDurationText;
let isInReverseTrial;
({ fpDurationText, isInReverseTrial } = style);
2026-07-29 08:29:29 +00:00
const tmp = callback();
2026-07-20 16:05:17 +00:00
let tmp4;
if (!isInReverseTrial) {
tmp4 = handlePress;
}
2026-07-29 08:29:29 +00:00
let obj = { activeOpacity: 0.7, onPress: tmp4, children: null };
obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.fractionalPremiumBanner, style.style];
2026-07-29 08:29:29 +00:00
let tmp2Result = !isInReverseTrial;
if (!isInReverseTrial) {
obj = { style: null, children: null };
obj[0] = tmp.fpDurationPill;
const obj1 = { variant: "text-sm/bold", style: null, children: null };
obj1[1] = tmp.fpDurationText;
obj1[2] = fpDurationText.toUpperCase();
2026-08-05 07:35:12 +00:00
obj[1] = tmp2(require(4251) /* Text */.Text, obj1);
2026-07-29 08:29:29 +00:00
tmp2Result = tmp2(tmp6, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items1 = [tmp2Result, ];
const obj2 = { style: tmp.fpUnavailable, children: null };
2026-07-20 16:05:17 +00:00
let prop;
if (isInReverseTrial) {
prop = tmp.fpUnavailableTextNoCountdown;
}
2026-07-29 08:29:29 +00:00
const obj3 = { variant: "text-md/normal", color: "interactive-text-active", style: prop, children: null };
const intl = tmp10(1236).intl;
obj3[3] = intl.string(require(1236) /* getSystemLocale */.t["5nrJDO"]);
2026-08-05 07:35:12 +00:00
obj2[1] = closure_5(require(4251) /* Text */.Text, obj3);
2026-07-29 08:29:29 +00:00
items1[1] = closure_5(closure_4, obj2);
obj[1] = items1;
obj[2] = closure_6(closure_4, obj);
return closure_5(closure_3, obj);
2026-07-20 16:05:17 +00:00
};