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

73 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13003
// Function ID: 13004
2026-07-20 16:05:17 +00:00
// Name: handlePress
2026-08-24 06:08:38 +00:00
// Dependencies: [17, 21, 4668, 712, 4346, 13004, 2008, 1236, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 13003 (handlePress)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4346 */;
import Text from "Text" /* 4739 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function handlePress() {
2026-08-24 06:08:38 +00:00
let obj = ACTION_SHEET_HEIGHT_HALFDefault;
2026-07-29 08:29:29 +00:00
obj = { aboutText: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t["07lzz7"]);
obj.openLazy(asyncRequireImpl(13004, 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 };
2026-08-24 06:08:38 +00:00
obj = { backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH, flexDirection: "row", gap: 12, padding: 12, justifyContent: "center", borderColor: ThemesDefault.colors.STATUS_WARNING, borderWidth: 1, borderRadius: ThemesDefault.radii.lg, marginBottom: 12 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
obj[1] = { flex: 1, paddingVertical: 12, paddingHorizontal: 27, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_STRONG, borderRadius: ThemesDefault.radii.xxl, justifyContent: "center" };
2026-07-29 08:29:29 +00:00
obj[2] = { textAlign: "center", color: "#FFEAA0" };
obj[3] = { flex: 1, justifyContent: "center" };
obj[4] = { textAlign: "center" };
let closure_7 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
let obj1 = { flex: 1, paddingVertical: 12, paddingHorizontal: 27, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_STRONG, borderRadius: ThemesDefault.radii.xxl, justifyContent: "center" };
const result = set.fileFinishedImporting("modules/premium/fractional/native/BoostingCountDownPill.tsx");
2026-07-20 16:05:17 +00:00
export default function BoostingCountDownPill(style) {
({ 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;
2026-08-24 06:08:38 +00:00
obj1 = { variant: "text-sm/bold", style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[1] = tmp.fpDurationText;
obj1[2] = fpDurationText.toUpperCase();
2026-08-24 06:08:38 +00:00
obj[1] = tmp2(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;
2026-08-24 06:08:38 +00:00
obj3[3] = intl.string(getSystemLocale.t["5nrJDO"]);
obj2[1] = closure_5(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
};