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

55 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7956
// Function ID: 7957
2026-07-20 16:05:17 +00:00
// Name: SubscriptionRenewalMutationsNotice
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 4043, 21, 4668, 712, 6320, 1297, 1236, 4042, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 7956 (SubscriptionRenewalMutationsNotice)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Button from "Button" /* 1297 */;
import getPremiumPlanItem from "getPremiumPlanItem" /* 4042 */;
import getPremiumPlanItemDefault from "getPremiumPlanItem" /* 4042 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { isNoneSubscription } from "createFromServer" /* 4043 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { container: null, icon: null, text: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { padding: 10, marginVertical: 5, marginHorizontal: 15, borderRadius: ThemesDefault.radii.xs, display: "flex", flexDirection: "row", justifyContent: "center", backgroundColor: require("result").DARK_PRIMARY_630_LIGHT_PRIMARY_230 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { alignSelf: "center", marginLeft: 15, color: require("result").DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
2026-07-23 10:11:24 +00:00
let obj1 = { alignSelf: "center", marginLeft: 15, color: require("result").DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { paddingLeft: 10, marginRight: 15, color: require("result").DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
2026-08-24 06:08:38 +00:00
let closure_7 = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const obj2 = { paddingLeft: 10, marginRight: 15, color: require("result").DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/premium/native/SubscriptionRenewalMutationsNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function SubscriptionRenewalMutationsNotice(arg0) {
({ subscription, renewalMutations } = arg0);
2026-08-24 06:08:38 +00:00
const tmp = callback2();
2026-07-29 08:29:29 +00:00
let obj = { style: tmp.container, children: null };
2026-07-20 16:05:17 +00:00
obj = { style: tmp.icon };
2026-08-24 06:08:38 +00:00
const items = [callback(Button.WarningCircle, obj), ];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.text, children: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-20 16:05:17 +00:00
if (!subscription.hasExternalPlanChange) {
if (!isNoneSubscription(renewalMutations.planId)) {
2026-08-24 06:08:38 +00:00
let displayName = getPremiumPlanItemDefault.getDisplayName(renewalMutations.planId);
const obj4 = getPremiumPlanItemDefault;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj1 = { planName: null, date: null };
2026-07-29 08:29:29 +00:00
obj1[0] = displayName;
obj1[1] = subscription.currentPeriodEnd;
obj[1] = intl.format(tmp7, obj1);
2026-08-24 06:08:38 +00:00
items[1] = callback(Button.LegacyText, obj);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
}
2026-08-24 06:08:38 +00:00
displayName = getPremiumPlanItem.getExternalPlanDisplayName(renewalMutations);
2026-07-20 16:05:17 +00:00
};