Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
49 lines
2.5 KiB
TypeScript
49 lines
2.5 KiB
TypeScript
// Module ID: 13474
|
|
// Function ID: 13475
|
|
// Name: SubscriptionRenewalMutationsNotice
|
|
// Dependencies: [19, 17, 4295, 21, 4636, 576, 5522, 1178, 1114, 4294, 2]
|
|
// Exports: default
|
|
|
|
// Module 13474 (SubscriptionRenewalMutationsNotice)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1114 */;
|
|
import native from "native" /* 1178 */;
|
|
import PremiumUtils from "PremiumUtils" /* 4294 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const PremiumUtilsDefault = PremiumUtils;
|
|
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const isNoneSubscription = fn(4295).isNoneSubscription;
|
|
const jsxProd = fn(21);
|
|
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
|
|
const createStyles = fn(4636);
|
|
const obj2 = { container: { padding: 10, marginVertical: 5, marginHorizontal: 15, borderRadius: nativeDefault.radii.xs, display: "flex", flexDirection: "row", justifyContent: "center", backgroundColor: fn(5522).DARK_PRIMARY_630_LIGHT_PRIMARY_230 }, icon: null, text: null };
|
|
let obj3 = { padding: 10, marginVertical: 5, marginHorizontal: 15, borderRadius: nativeDefault.radii.xs, display: "flex", flexDirection: "row", justifyContent: "center", backgroundColor: fn(5522).DARK_PRIMARY_630_LIGHT_PRIMARY_230 };
|
|
obj2.icon = { alignSelf: "center", marginLeft: 15, color: fn(5522).DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
|
|
let obj4 = { alignSelf: "center", marginLeft: 15, color: fn(5522).DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
|
|
obj2.text = { paddingLeft: 10, marginRight: 15, color: fn(5522).DARK_PRIMARY_300_LIGHT_PRIMARY_500 };
|
|
let closure_7 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/premium/native/SubscriptionRenewalMutationsNotice.tsx");
|
|
|
|
export default function SubscriptionRenewalMutationsNotice(arg0) {
|
|
({ subscription, renewalMutations } = arg0);
|
|
const tmp = closure_7();
|
|
const obj = { style: tmp.container, children: null };
|
|
const items = [hasOwnProperty(native.WarningCircle, { style: tmp.icon }), ];
|
|
const obj3 = { style: tmp.text, children: null };
|
|
const intl = util.intl;
|
|
if (!subscription.hasExternalPlanChange) {
|
|
if (!isNoneSubscription(renewalMutations.planId)) {
|
|
let displayName = PremiumUtilsDefault.getDisplayName(renewalMutations.planId);
|
|
}
|
|
const obj5 = { planName: displayName, date: subscription.currentPeriodEnd };
|
|
obj3.children = intl.format(tmp7, obj5);
|
|
items[1] = hasOwnProperty(native.LegacyText, obj3);
|
|
obj.children = items;
|
|
return timestampProducer(View, obj);
|
|
}
|
|
displayName = PremiumUtils.getExternalPlanDisplayName(renewalMutations);
|
|
};
|