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

72 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12482
// Function ID: 96767
2026-07-20 16:05:17 +00:00
// Name: handlePress
2026-07-27 11:26:19 +00:00
// Dependencies: [27, 33, 4131, 689, 4099, 12483, 1935, 1212, 4127, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 12482 (handlePress)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
let closure_5;
let closure_6;
2026-07-20 16:05:17 +00:00
function handlePress() {
2026-07-25 08:10:48 +00:00
let obj = importDefault(4099);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.aboutText = intl.string(require(1212) /* getSystemLocale */.t["07lzz7"]);
2026-07-27 11:26:19 +00:00
obj.openLazy(require(1935) /* maybeLoadBundle */(12483, dependencyMap.paths), "NitroCreditEducationActionSheet", obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
({ TouchableOpacity: closure_3, View: closure_4 } = get_ActivityIndicator);
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_SURFACE_HIGH, flexDirection: "row", gap: 12, padding: 12, justifyContent: "center", borderColor: require("_createForOfIteratorHelperLoose").colors.STATUS_WARNING, borderWidth: 1, borderRadius: require("_createForOfIteratorHelperLoose").radii.lg, marginBottom: 12 };
2026-07-20 16:05:17 +00:00
obj.fractionalPremiumBanner = obj;
2026-07-23 10:11:24 +00:00
let obj1 = { flex: 1, paddingVertical: 12, paddingHorizontal: 27, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_MOD_STRONG, borderRadius: require("_createForOfIteratorHelperLoose").radii.xxl, justifyContent: "center" };
2026-07-20 16:05:17 +00:00
obj.fpDurationPill = obj1;
2026-07-23 10:11:24 +00:00
obj.fpDurationText = { textAlign: "center", color: "#FFEAA0" };
obj.fpUnavailable = { flex: 1, justifyContent: "center" };
2026-07-20 16:05:17 +00:00
obj.fpUnavailableTextNoCountdown = { textAlign: "center" };
2026-07-23 10:11:24 +00:00
let closure_7 = _createForOfIteratorHelperLoose.createStyles(obj);
const result = require("_createForOfIteratorHelperLoose").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);
const tmp = callback2();
let obj = { activeOpacity: 0.7 };
let tmp4;
if (!isInReverseTrial) {
tmp4 = handlePress;
}
obj.onPress = tmp4;
obj = { style: items };
2026-07-23 10:11:24 +00:00
items = [tmp.fractionalPremiumBanner, style.style];
2026-07-20 16:05:17 +00:00
let tmp7 = !isInReverseTrial;
if (tmp7) {
obj = { style: tmp.fpDurationPill };
const obj1 = { variant: "text-sm/bold", style: tmp.fpDurationText, children: fpDurationText.toUpperCase() };
2026-07-25 08:10:48 +00:00
obj.children = callback(require(4127) /* Text */.Text, obj1);
2026-07-20 16:05:17 +00:00
tmp7 = callback(closure_4, obj);
}
const items1 = [tmp7, ];
const obj2 = { style: tmp.fpUnavailable };
2026-07-23 10:11:24 +00:00
const obj3 = { variant: "text-md/normal", color: "interactive-text-active" };
2026-07-20 16:05:17 +00:00
let prop;
if (isInReverseTrial) {
prop = tmp.fpUnavailableTextNoCountdown;
}
obj3.style = prop;
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj3.children = intl.string(require(1212) /* getSystemLocale */.t["5nrJDO"]);
2026-07-25 08:10:48 +00:00
obj2.children = callback(require(4127) /* Text */.Text, obj3);
2026-07-20 16:05:17 +00:00
items1[1] = callback(closure_4, obj2);
obj.children = items1;
obj.children = closure_6(closure_4, obj);
return callback(closure_3, obj);
};