65 lines
2.8 KiB
TypeScript
65 lines
2.8 KiB
TypeScript
// Module ID: 12920
|
|
// Function ID: 12921
|
|
// Name: SubscriptionAccountHoldNotice
|
|
// Dependencies: [19, 17, 676, 21, 4445, 712, 1297, 12221, 4441, 1236, 4107, 4880, 2]
|
|
// Exports: default
|
|
|
|
// Module 12920 (SubscriptionAccountHoldNotice)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import registerAssetDefault from "registerAsset" /* 12221 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import { SubscriptionStatusTypes } from "ME" /* 676 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4445 */;
|
|
|
|
const require = arg1;
|
|
noopAll;
|
|
({ 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: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
|
|
createCacheKey[0] = createCacheKey;
|
|
createCacheKey[1] = { flexDirection: "row" };
|
|
createCacheKey[2] = { marginRight: 4 };
|
|
createCacheKey[3] = { marginBottom: 8, flex: 1 };
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/premium/native/SubscriptionAccountHoldNotice.tsx");
|
|
|
|
export default function SubscriptionAccountHoldNotice(subscription) {
|
|
subscription = subscription.subscription;
|
|
const tmp = callback3();
|
|
let tmp2 = null;
|
|
if (subscription.status === SubscriptionStatusTypes.ACCOUNT_HOLD) {
|
|
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;
|
|
obj[2] = registerAssetDefault;
|
|
const items = [callback(subscription(1297).Icon, obj), ];
|
|
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(4107).getDisplayName(subscription.planId);
|
|
obj1[2] = intl.format(subscription(1236).t["7I21Iz"], obj2);
|
|
items[1] = callback(subscription(4441).Text, obj1);
|
|
obj[1] = items;
|
|
const items1 = [callback2(closure_4, obj), ];
|
|
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() {
|
|
return closure_1_3.openURL(subscription(closure_1_2[10]).getExternalSubscriptionMethodUrl(subscription.paymentGateway, "PAYMENT_SOURCE_MANAGEMENT"));
|
|
};
|
|
items1[1] = callback(subscription(4880).Button, obj3);
|
|
obj[1] = items1;
|
|
tmp2 = callback2(closure_4, obj);
|
|
const obj6 = subscription(4107);
|
|
}
|
|
return tmp2;
|
|
};
|