decord/source/modules/premium/fractional/native/BoostingCountDownPill.tsx
2026-08-25 06:04:03 +00:00

72 lines
3.4 KiB
TypeScript

// Module ID: 12991
// Function ID: 12992
// Name: handlePress
// Dependencies: [17, 21, 4380, 712, 4347, 12992, 2009, 1236, 4376, 2]
// Exports: default
// Module 12991 (handlePress)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2009 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4347 */;
import Text from "Text" /* 4376 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4380 */;
function handlePress() {
let obj = ACTION_SHEET_HEIGHT_HALFDefault;
obj = { aboutText: null };
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t["07lzz7"]);
obj.openLazy(asyncRequireImpl(12992, dependencyMap.paths), "NitroCreditEducationActionSheet", obj);
}
({ 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: 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 };
obj[0] = obj;
obj[1] = { flex: 1, paddingVertical: 12, paddingHorizontal: 27, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_STRONG, borderRadius: ThemesDefault.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: ThemesDefault.colors.BACKGROUND_MOD_STRONG, borderRadius: ThemesDefault.radii.xxl, justifyContent: "center" };
const result = set.fileFinishedImporting("modules/premium/fractional/native/BoostingCountDownPill.tsx");
export default function BoostingCountDownPill(style) {
({ fpDurationText, isInReverseTrial } = style);
const tmp = callback();
let tmp4;
if (!isInReverseTrial) {
tmp4 = handlePress;
}
let obj = { activeOpacity: 0.7, onPress: tmp4, children: null };
obj = { style: items, children: null };
items = [tmp.fractionalPremiumBanner, style.style];
let tmp2Result = !isInReverseTrial;
if (!isInReverseTrial) {
obj = { style: null, children: null };
obj[0] = tmp.fpDurationPill;
obj1 = { variant: "text-sm/bold", style: null, children: null };
obj1[1] = tmp.fpDurationText;
obj1[2] = fpDurationText.toUpperCase();
obj[1] = tmp2(Text.Text, obj1);
tmp2Result = tmp2(tmp6, obj);
}
const items1 = [tmp2Result, ];
const obj2 = { style: tmp.fpUnavailable, children: null };
let prop;
if (isInReverseTrial) {
prop = tmp.fpUnavailableTextNoCountdown;
}
const obj3 = { variant: "text-md/normal", color: "interactive-text-active", style: prop, children: null };
const intl = tmp10(1236).intl;
obj3[3] = intl.string(getSystemLocale.t["5nrJDO"]);
obj2[1] = closure_5(Text.Text, obj3);
items1[1] = closure_5(closure_4, obj2);
obj[1] = items1;
obj[2] = closure_6(closure_4, obj);
return closure_5(closure_3, obj);
};