Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,171 @@
|
||||
/* Metro module 11070; source: modules/stickers/native/premium/StickersPremiumUpsellAlert.tsx; dependencies: [31, 27, 5140, 661, 1880, 33, 11071, 1244, 697, 11072, 11073, 4501, 1305, 4573, 694, 7037, 7942, 1478, 6771, 4596, 683, 5080, 7028, 1962, 5278, 8160, 11074, 2] */
|
||||
function _fun84760(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:6, offset: 0x01f564d5, size: 742 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
const env0_6 = value.ScrollView;
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.AnalyticEvents;
|
||||
const env0_9 = value.AnalyticsSections;
|
||||
const env0_10 = value.AnalyticsObjects;
|
||||
value = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_11 = value.SubscriptionPlans;
|
||||
const env0_12 = value.NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
object2 = {icon: importDefault(11071) /* metro dependency 11071 */, description: function() {
|
||||
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.uAfKTe);
|
||||
}};
|
||||
const PREMIUM_PERK_PURPLE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PREMIUM_PERK_PURPLE;
|
||||
object2.color = PREMIUM_PERK_PURPLE;
|
||||
const items2 = [object2];
|
||||
items2[1] = {icon: importDefault(11072) /* metro dependency 11072 */, description: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.aVSVBO,
|
||||
{numFreeGuildSubscriptions: NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM});
|
||||
}};
|
||||
object2 = {icon: importDefault(11073) /* metro dependency 11073 */, description: function() {
|
||||
return require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.pqHIf7);
|
||||
}};
|
||||
const PREMIUM_PERK_GREEN = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PREMIUM_PERK_GREEN;
|
||||
object2.color = PREMIUM_PERK_GREEN;
|
||||
items2[2] = object2;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.alert = {paddingTop: 18};
|
||||
object2.shortHeightAlert = {height: 500};
|
||||
object2.content = {alignItems: 'center'};
|
||||
object2.closeContainer = {'flexDirection': 'row-reverse', 'width': '100%', 'marginBottom': 16};
|
||||
object2.description = {'textAlign': 'center', 'lineHeight': 20};
|
||||
const object3 = {'backgroundColor': null, 'borderRadius': null, 'marginTop': 16, 'marginBottom': 0,
|
||||
'paddingHorizontal': 12, 'paddingVertical': 8, 'width': '100%'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.perks = object3;
|
||||
const PRIMARY_560 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_560;
|
||||
object2.perkRow = {'paddingVertical': 10, 'borderBottomColor': null, 'borderBottomWidth': 1, 'flexDirection': 'row',
|
||||
'alignItems': 'center', borderBottomColor: PRIMARY_560};
|
||||
object2.lastPerkRow = {borderBottomWidth: 0};
|
||||
object2.perkIcon = {'width': 24, 'marginRight': 20};
|
||||
object2.perkText = {'lineHeight': 20, 'flexShrink': 1};
|
||||
object2.imageHeader = {marginBottom: 12};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/premium/StickersPremiumUpsellAlert.tsx');
|
||||
exports.default = _default_84765;
|
||||
}
|
||||
|
||||
function PerkRow({perk, isLastPerk}) { // fn#84764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1378, offset: 0x01f56887, size: 238 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.perkRow];
|
||||
items2[1] = isLastPerk ? styles.lastPerkRow : undefined;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const icon = <Icon style={styles.perkIcon} source={perk.icon} disableColor={perk.color == null} color={perk.color} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{icon}
|
||||
<Text
|
||||
style={styles.perkText}
|
||||
variant="text-md/medium"
|
||||
color="interactive-text-active"
|
||||
>
|
||||
{perk.description()}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_84765({onClose, analyticsLocation}) { // fn#84765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1699, offset: 0x01f56975, size: 814 bytes, params: 2, frame: 33
|
||||
const styles = useStyles();
|
||||
env0_3.useEffect(_fun84766, []);
|
||||
const defaultImport = importDefault(7942) /* metro dependency 7942: usePremiumPlanPrice */;
|
||||
const PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
|
||||
const priceString = defaultImport(PREMIUM_MONTH_TIER_2)?.priceString;
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
|
||||
const env0_1 = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.f3Pet9);
|
||||
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
|
||||
const GREEN = ButtonColors.GREEN;
|
||||
object2.confirmColor = GREEN;
|
||||
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o3Tnif);
|
||||
object2.onConfirm = onConfirm;
|
||||
object2.onClose = onClose;
|
||||
object2.onCancel = onClose;
|
||||
object2.style = [styles.alert, height <= 580 ? styles.shortHeightAlert : null];
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const view = <View style={styles.closeContainer}><PressableOpacity accessibilityRole="button" accessibilityLabel="close" onPress={onClose}><Icon source={importDefault(8160) /* metro dependency 8160 */} /></PressableOpacity></View>;
|
||||
const items3 = [<Image source={importDefault(11074) /* metro dependency 11074 */} style={styles.imageHeader} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const format = intl.format;
|
||||
const TBsJfQ = (require(1244) /* metro dependency 1244: indexNative */).t.TBsJfQ;
|
||||
items3[1] = <Text style={styles.description} variant="text-md/medium">{Reflect.apply(format, intl, [TBsJfQ,
|
||||
{monthlyPrice: priceString ?? '$...'}])}</Text>;
|
||||
items3[2] = <View style={styles.perks}>{env0_15.map(_fun84770)}</View>;
|
||||
return (
|
||||
<Alert {...object2}>
|
||||
{view}
|
||||
<ScrollView>
|
||||
<View style={styles.content} onStartShouldSetResponder={function() {
|
||||
return true;
|
||||
}}>
|
||||
{items3}
|
||||
</View>
|
||||
</ScrollView>
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84766() { // fn#84766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1758, offset: 0x01f56ca3, size: 66 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
if (!IAPStoreAndroid.isReady()) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun84767);
|
||||
}
|
||||
}
|
||||
|
||||
function _default_84765OnConfirm() { // fn#84768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:2118, owner: _default_84765.onConfirm, offset: 0x01f56d0a, size: 177 bytes, params: 1, frame: 21
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[20]);
|
||||
const track = defaultImport.track;
|
||||
const PREMIUM_PROMOTION_OPENED = AnalyticEvents.PREMIUM_PROMOTION_OPENED;
|
||||
const object = {};
|
||||
copyDataProperties(object, analyticsLocation, undefined);
|
||||
const STICKER_PREMIUM_TIER_2_UPSELL_MODAL = AnalyticsSections.STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
|
||||
object['section'] = STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
|
||||
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
|
||||
object['object'] = BUTTON_CTA;
|
||||
Reflect.apply(track, defaultImport, [PREMIUM_PROMOTION_OPENED, {location: object}]);
|
||||
const defaultImport2 = importDefault(dependencyMap[21]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[23]);
|
||||
value = value(dependencyMap[22], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, {analyticsLocations: analyticsLocations}]);
|
||||
}
|
||||
|
||||
function _fun84770(a0, a1) { // fn#84770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:2872, offset: 0x01f56dbb, size: 60 bytes, params: 3, frame: 16
|
||||
return (
|
||||
<PerkRow
|
||||
perk={a0}
|
||||
isLastPerk={a1 === env1_15.length - 1}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun84767() { // fn#84767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11256:1791, offset: 0x01f56ce5, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(7037) /* metro dependency 7037: BillingActionCreators */).loadProducts();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* Metro module 11069; source: modules/stickers/native/premium/openStickersPremiumUpsellAlert.tsx; dependencies: [5, 31, 661, 33, 683, 6847, 4223, 4496, 11070, 1962, 2] */
|
||||
function _fun84752(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:6, offset: 0x01f56264, size: 197 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.AnalyticEvents;
|
||||
const env0_5 = constantsModule.AnalyticsSections;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/premium/openStickersPremiumUpsellAlert.tsx');
|
||||
exports.default = function() {
|
||||
return _openStickersPremiumUpsellAlert.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _openStickersPremiumUpsellAlert() { // fn#84753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:181, offset: 0x01f56329, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun84755).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun84755(a0) { // fn#84755, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:266, offset: 0x01f56366, size: 228 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
if (true) {
|
||||
var env0_0 = a0;
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
var value3 = binding(binding2[4]);
|
||||
var track = value3.track;
|
||||
var OPEN_MODAL = env2_4.OPEN_MODAL;
|
||||
var STICKER_PREMIUM_TIER_2_UPSELL_MODAL = env2_5.STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
|
||||
Reflect.apply(track, value3, [OPEN_MODAL, {type: STICKER_PREMIUM_TIER_2_UPSELL_MODAL, location: a0}]);
|
||||
var Promise = global.Promise;
|
||||
var all = Promise.all;
|
||||
binding = env2_0;
|
||||
items = [binding(binding2[5]).fetchPremiumSubscriptionPlans()];
|
||||
var value5 = binding(binding2[6]);
|
||||
items[1] = value5.fetchPaymentSources();
|
||||
yield Reflect.apply(all, Promise, [items]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = env2_1(env2_2[7]);
|
||||
value.openLazy({importer: importer_84756});
|
||||
}
|
||||
}
|
||||
|
||||
function importer_84756() { // fn#84756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:481, offset: 0x01f5644a, size: 64 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_0;
|
||||
const binding2 = env3_2;
|
||||
value = binding(binding2[9]);
|
||||
value = value(binding2[8], binding2.paths);
|
||||
return value.then(function({default: env0_0}) {
|
||||
return _fun84758;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun84757({default: env0_0}) { // fn#84757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:513, offset: 0x01f5648a, size: 23 bytes, params: 2, frame: 2
|
||||
return _fun84758;
|
||||
}
|
||||
|
||||
function _fun84758(a0) { // fn#84758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11255:528, offset: 0x01f564a1, size: 52 bytes, params: 2, frame: 14
|
||||
const binding = env5_6;
|
||||
const binding2 = env0_0;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['analyticsLocation'] = env2_0;
|
||||
return binding(binding2, object2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user