Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,71 @@
|
||||
/* Metro module 14231; source: modules/premium/native/trials/PremiumTrialOfferActionSheet.tsx; dependencies: [31, 1880, 661, 1376, 33, 6771, 6789, 683, 7506, 5080, 7028, 1962, 3802, 6275, 14232, 2] */
|
||||
function _fun107639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14428:6, offset: 0x02303581, size: 208 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumTypes;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/trials/PremiumTrialOfferActionSheet.tsx');
|
||||
exports.default = _default_107640;
|
||||
}
|
||||
|
||||
function _default_107640({markAsDismissed, userTrialOffer, fallbackPremiumType = PremiumTypes.TIER_2}) { // fn#107640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14428:212, offset: 0x02303651, size: 393 bytes, params: 2, frame: 23
|
||||
let defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const PREMIUM_TRIAL_OFFER_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).PREMIUM_TRIAL_OFFER_ACTION_SHEET;
|
||||
const analyticsLocations = defaultImport(PREMIUM_TRIAL_OFFER_ACTION_SHEET).analyticsLocations;
|
||||
const binding = env0_3;
|
||||
binding.useEffect(_fun107641, []);
|
||||
const value4 = binding.useCallback(function() {
|
||||
var defaultImport = importDefault(dependencyMap[7]);
|
||||
var PREMIUM_TRIAL_OFFER_ACTION_SHEET_DISMISSED = AnalyticEvents.PREMIUM_TRIAL_OFFER_ACTION_SHEET_DISMISSED;
|
||||
defaultImport.track(PREMIUM_TRIAL_OFFER_ACTION_SHEET_DISMISSED, {location: analyticsLocations,
|
||||
trial_id: userTrialOffer.trial_id});
|
||||
markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
||||
}, [analyticsLocations, markAsDismissed, userTrialOffer]);
|
||||
const value5 = binding.useCallback(_fun107643, [analyticsLocations, markAsDismissed, userTrialOffer]);
|
||||
const premiumUtilsModule = require(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
const value6 = premiumUtilsModule.formatIntervalDuration({intervalType: userTrialOffer.subscription_trial?.interval,
|
||||
intervalCount: userTrialOffer.subscription_trial?.interval_count});
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
return (
|
||||
<BottomSheet
|
||||
startExpanded
|
||||
onDismiss={value4}
|
||||
key={userTrialOffer.id}
|
||||
>
|
||||
{((Component) => <Component intervalDuration={value6} trialOffer={userTrialOffer} onConfirm={value5} fallbackPremiumType={fallbackPremiumType} />)(importDefault(14232) /* metro dependency 14232: PremiumTrialOfferActionSheetContent */)}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun107641() { // fn#107641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14428:376, offset: 0x023037da, size: 99 bytes, params: 1, frame: 18
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const PREMIUM_TRIAL_OFFER_ACTION_SHEET_VIEWED = AnalyticEvents.PREMIUM_TRIAL_OFFER_ACTION_SHEET_VIEWED;
|
||||
const userTrialOfferBinding = userTrialOffer;
|
||||
Reflect.apply(track, defaultImport, [PREMIUM_TRIAL_OFFER_ACTION_SHEET_VIEWED, {location: analyticsLocations,
|
||||
trial_id: userTrialOfferBinding.trial_id}]);
|
||||
(importDefault(7506) /* metro dependency 7506: UserTrialActionCreatorsAndroid */).acknowledgeUserTrialOffer(userTrialOfferBinding);
|
||||
}
|
||||
|
||||
function _fun107643() { // fn#107643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14428:679, offset: 0x0230389c, size: 164 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[7]);
|
||||
const track = defaultImport.track;
|
||||
const PREMIUM_TRIAL_OFFER_ACTION_SHEET_CTA_CLICKED = AnalyticEvents.PREMIUM_TRIAL_OFFER_ACTION_SHEET_CTA_CLICKED;
|
||||
Reflect.apply(track, defaultImport, [PREMIUM_TRIAL_OFFER_ACTION_SHEET_CTA_CLICKED, {location: analyticsLocations,
|
||||
trial_id: userTrialOffer.trial_id}]);
|
||||
const markAsDismissedBinding = markAsDismissed;
|
||||
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
|
||||
markAsDismissedBinding(TAKE_ACTION);
|
||||
const defaultImport2 = importDefault(dependencyMap[9]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[11]);
|
||||
value = value(dependencyMap[10], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, {analyticsLocations: analyticsLocations}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
/* Metro module 14232; source: modules/premium/native/trials/PremiumTrialOfferActionSheetContent.tsx; dependencies: [31, 27, 33, 4501, 697, 11441, 1244, 9395, 6685, 5473, 4573, 3802, 14233, 4578, 7954, 2] */
|
||||
function _fun107644(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14429:6, offset: 0x02303940, size: 310 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value2.jsx;
|
||||
const env0_5 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{contentContainer: {'paddingHorizontal': 36,
|
||||
'paddingTop': 18, 'paddingBottom': 36, 'width': '100%', 'backgroundColor': null, 'alignItems': 'flex-start',
|
||||
'display': 'flex', 'flexDirection': 'column', 'gap': 0, backgroundColor: BACKGROUND_BASE_LOW},
|
||||
buttonContainer: {'marginVertical': 6, 'width': '100%', 'height': 48}, title: {'width': '100%',
|
||||
'textAlign': 'center'}, heroIllustrationContainer: {'alignItems': 'center', 'justifyContent': 'center',
|
||||
'height': 188, 'width': '100%'}}]);
|
||||
value = value.memo(PremiumTrialOfferActionSheetContent);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/trials/PremiumTrialOfferActionSheetContent.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function PremiumTrialOfferActionSheetContent({trialOffer, intervalDuration, onConfirm}) { // fn#107645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14429:585, offset: 0x02303a76, size: 964 bytes, params: 2, frame: 33
|
||||
var r17;
|
||||
var moduleValue;
|
||||
const styles = useStyles();
|
||||
const subscription_trial = trialOffer?.subscription_trial;
|
||||
let object2 = {};
|
||||
const UserIcon = (require(11441) /* metro dependency 11441: UserIcon */).UserIcon;
|
||||
object2.IconComponent = UserIcon;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kpMomJ);
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uVUtPw);
|
||||
const items3 = [object2];
|
||||
object2 = {};
|
||||
const ChatSmileIcon = (require(9395) /* metro dependency 9395: ChatSmileIcon */).ChatSmileIcon;
|
||||
object2.IconComponent = ChatSmileIcon;
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R2IV/Q']);
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3SUJLd']);
|
||||
items3[1] = object2;
|
||||
object2 = {};
|
||||
const FolderIcon = (require(6685) /* metro dependency 6685: FolderIcon */).FolderIcon;
|
||||
object2.IconComponent = FolderIcon;
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['u/NJKc']);
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i1UuMk);
|
||||
items3[2] = object2;
|
||||
const NitroWumpusFlightRight3dIllustration = (require(5473) /* metro dependency 5473: native */).NitroWumpusFlightRight3dIllustration;
|
||||
const items2 = [<View style={styles.heroIllustrationContainer}><NitroWumpusFlightRight3dIllustration width={180} height={180} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let formatToPlainString = intl.formatToPlainString;
|
||||
const q8eMc0 = (require(1244) /* metro dependency 1244: indexNative */).t.q8eMc0;
|
||||
if (subscription_trial?.sku_id != null) {
|
||||
moduleValue = require(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r17 = moduleValue.getDisplayNameFromSku(subscription_trial?.sku_id);
|
||||
} else {
|
||||
r17 = null;
|
||||
}
|
||||
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{Reflect.apply(formatToPlainString,
|
||||
intl, [q8eMc0, {displayName: r17, duration: intervalDuration}])}</Text>;
|
||||
items2[2] = ((Component) => <Component perks={items3} />)(importDefault(14233) /* metro dependency 14233: PremiumPerksList */);
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
const xASjq5 = (require(1244) /* metro dependency 1244: indexNative */).t.xASjq5;
|
||||
const object3 = {duration: intervalDuration};
|
||||
const NitroWheelIcon = (require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
items2[3] = <View style={styles.buttonContainer}><Button size="lg" text={Reflect.apply(formatToPlainString, intl,
|
||||
[xASjq5, object3])} onPress={onConfirm} grow icon={<NitroWheelIcon size="md" color={WHITE} />} /></View>;
|
||||
return (
|
||||
<View style={styles.contentContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user