Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
97 lines
5.1 KiB
TypeScript
97 lines
5.1 KiB
TypeScript
// Module ID: 15777
|
|
// Function ID: 15778
|
|
// Name: PremiumTrialOfferActionSheetContent
|
|
// Dependencies: [19, 17, 1373, 21, 4636, 576, 11955, 1114, 9551, 5155, 5211, 4294, 5773, 4632, 15778, 5056, 8785, 2]
|
|
|
|
// Module 15777 (PremiumTrialOfferActionSheetContent)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1114 */;
|
|
import PremiumUtils from "PremiumUtils" /* 4294 */;
|
|
import Text_Text from "Text/Text" /* 4632 */;
|
|
import components_Button_Button from "components/Button/Button" /* 5056 */;
|
|
import FolderIcon from "FolderIcon" /* 5155 */;
|
|
import NitroFileUploadExperiments from "NitroFileUploadExperiments" /* 5211 */;
|
|
import native from "native" /* 5773 */;
|
|
import NitroWheelIcon from "NitroWheelIcon" /* 8785 */;
|
|
import ChatSmileIcon from "ChatSmileIcon" /* 9551 */;
|
|
import UserIcon from "UserIcon" /* 11955 */;
|
|
import PremiumPerksListDefault from "PremiumPerksList" /* 15778 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const PremiumTypes = fn(1373).PremiumTypes;
|
|
const jsxProd = fn(21);
|
|
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
|
|
const createStyles = fn(4636);
|
|
let obj = { contentContainer: { paddingHorizontal: 36, paddingTop: 18, paddingBottom: 36, width: "100%", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 0 }, buttonContainer: { marginVertical: 6, width: "100%", height: 48 }, title: { width: "100%", textAlign: "center" }, heroIllustrationContainer: { alignItems: "center", justifyContent: "center", height: 188, width: "100%" } };
|
|
let closure_7 = createStyles.createStyles(obj);
|
|
let obj3 = { paddingHorizontal: 36, paddingTop: 18, paddingBottom: 36, width: "100%", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 0 };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/premium/native/trials/PremiumTrialOfferActionSheetContent.tsx");
|
|
|
|
export default noop.memo(function PremiumTrialOfferActionSheetContent(onConfirm) {
|
|
({ trialOffer, intervalDuration } = onConfirm);
|
|
const tmp = closure_7();
|
|
let subscriptionTrial;
|
|
if (trialOffer != null) {
|
|
subscriptionTrial = trialOffer.subscriptionTrial;
|
|
}
|
|
const obj = { IconComponent: UserIcon.UserIcon, label: null, description: null };
|
|
const intl = util.intl;
|
|
obj.label = intl.string(util.t.kpMomJ);
|
|
const intl2 = util.intl;
|
|
obj.description = intl2.string(util.t.uVUtPw);
|
|
const items = [obj, , ];
|
|
const obj2 = { IconComponent: ChatSmileIcon.ChatSmileIcon, label: null, description: null };
|
|
const intl3 = util.intl;
|
|
obj2.label = intl3.string(util.t["R2IV/Q"]);
|
|
const intl4 = util.intl;
|
|
obj2.description = intl4.string(util.t["3SUJLd"]);
|
|
items[1] = obj2;
|
|
const obj3 = { IconComponent: FolderIcon.FolderIcon, label: null, description: null };
|
|
const intl5 = util.intl;
|
|
obj3.label = intl5.string(util.t["u/NJKc"]);
|
|
const obj5 = { legacyCopy: null, rolloutCopy: null };
|
|
const intl6 = util.intl;
|
|
obj5.legacyCopy = intl6.string(util.t.i1UuMk);
|
|
const intl7 = util.intl;
|
|
const obj6 = { maxFileSize: null };
|
|
const obj4 = NitroFileUploadExperiments;
|
|
obj6.maxFileSize = PremiumUtils.getMaxFileSizeForPremiumType(PremiumTypes.TIER_2, { useSpace: false });
|
|
obj5.rolloutCopy = intl7.formatToPlainString(util.t.PvqncD, obj6);
|
|
obj3.description = obj4.getNitroFileUploadRolloutCopy(obj5);
|
|
items[2] = obj3;
|
|
const obj8 = { style: tmp.contentContainer, children: null };
|
|
const items1 = [hasOwnProperty(View, { style: tmp.heroIllustrationContainer, children: hasOwnProperty(native.NitroWumpusFlightRight3dIllustration, { width: 180, height: 180 }) }), , , ];
|
|
const obj10 = { variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: tmp.title, children: null };
|
|
const intl8 = util.intl;
|
|
let skuId;
|
|
if (subscriptionTrial != null) {
|
|
skuId = subscriptionTrial.skuId;
|
|
}
|
|
let displayNameFromSku = null;
|
|
if (null != skuId) {
|
|
let skuId1;
|
|
if (subscriptionTrial != null) {
|
|
skuId1 = subscriptionTrial.skuId;
|
|
}
|
|
displayNameFromSku = tmp3(4294).getDisplayNameFromSku(skuId1);
|
|
const tmp3Result = tmp3(4294);
|
|
}
|
|
obj10.children = intl8.formatToPlainString(util.t.q8eMc0, { displayName: displayNameFromSku, duration: intervalDuration });
|
|
items1[1] = hasOwnProperty(Text_Text.Text, obj10);
|
|
items1[2] = hasOwnProperty(PremiumPerksListDefault, { perks: items });
|
|
const obj11 = { style: tmp.buttonContainer, children: null };
|
|
const obj12 = { size: "lg", text: null, onPress: null, grow: true, icon: null };
|
|
const intl9 = tmp3(1114).intl;
|
|
obj12.text = intl9.formatToPlainString(util.t.xASjq5, { duration: intervalDuration });
|
|
obj12.onPress = onConfirm.onConfirm;
|
|
const obj9 = { style: tmp.heroIllustrationContainer, children: hasOwnProperty(native.NitroWumpusFlightRight3dIllustration, { width: 180, height: 180 }) };
|
|
const tmp5 = timestampProducer;
|
|
obj12.icon = hasOwnProperty(NitroWheelIcon.NitroWheelIcon, { size: "md", color: nativeDefault.unsafe_rawColors.WHITE });
|
|
obj11.children = hasOwnProperty(components_Button_Button.Button, obj12);
|
|
items1[3] = hasOwnProperty(View, obj11);
|
|
obj8.children = items1;
|
|
return tmp5(View, obj8);
|
|
});
|