decord/source/modules/premium/native/SubscriptionAccountHoldNotice.tsx

67 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 6546
// Function ID: 6547
2026-07-20 16:05:17 +00:00
// Name: SubscriptionAccountHoldNotice
2026-07-30 10:14:41 +00:00
// Dependencies: [19, 17, 676, 21, 4189, 712, 1297, 6547, 4185, 1236, 3835, 4600, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-30 10:14:41 +00:00
// Module 6546 (SubscriptionAccountHoldNotice)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import { SubscriptionStatusTypes } from "ME";
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;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ Linking: c3, View: c4 } = get_ActivityIndicator);
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { container: null, textContainer: null, icon: null, text: null };
createCacheKey = { padding: 8, margin: 8, backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGH };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flexDirection: "row" };
createCacheKey[2] = { marginRight: 4 };
createCacheKey[3] = { marginBottom: 8, flex: 1 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("modules/premium/native/SubscriptionAccountHoldNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function SubscriptionAccountHoldNotice(subscription) {
subscription = subscription.subscription;
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-07-20 16:05:17 +00:00
let tmp2 = null;
if (subscription.status === SubscriptionStatusTypes.ACCOUNT_HOLD) {
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
obj[0] = tmp.container;
obj = { style: null, children: null };
obj[0] = tmp.textContainer;
obj = { size: null, style: null, source: null };
obj[0] = subscription(1297).IconSizes.MEDIUM;
obj[1] = tmp.icon;
2026-07-30 10:14:41 +00:00
obj[2] = importDefault(6547);
2026-07-29 08:29:29 +00:00
const items = [callback(subscription(1297).Icon, obj), ];
const obj1 = { style: null, variant: "text-sm/medium", children: null };
obj1[0] = tmp.text;
const intl = subscription(1236).intl;
const obj2 = { endDate: null, planDescription: null };
obj2[0] = subscription.currentPeriodEnd;
obj2[1] = subscription(3835).getDisplayName(subscription.planId);
obj1[2] = intl.format(subscription(1236).t["7I21Iz"], obj2);
items[1] = callback(subscription(4185).Text, obj1);
obj[1] = items;
2026-07-20 16:05:17 +00:00
const items1 = [callback2(closure_4, obj), ];
2026-07-29 08:29:29 +00:00
const obj3 = { size: "sm", text: null, onPress: null };
const intl2 = subscription(1236).intl;
obj3[1] = intl2.string(subscription(1236).t.VJmUNy);
obj3[2] = function onPress() {
2026-07-23 10:11:24 +00:00
return outer1_3.openURL(subscription(outer1_2[10]).getExternalSubscriptionMethodUrl(subscription.paymentGateway, "PAYMENT_SOURCE_MANAGEMENT"));
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
items1[1] = callback(subscription(4600).Button, obj3);
obj[1] = items1;
2026-07-20 16:05:17 +00:00
tmp2 = callback2(closure_4, obj);
2026-07-29 08:29:29 +00:00
const obj6 = subscription(3835);
2026-07-20 16:05:17 +00:00
}
return tmp2;
};