Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,74 @@
|
||||
/* Metro module 11433; source: modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx; dependencies: [31, 1244, 2] */
|
||||
function _fun87500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:6, offset: 0x01fc0ef7, size: 256 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = function() {
|
||||
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['7vWJmY']);
|
||||
};
|
||||
const closure2 = useGiftIntentExpressionPickerConfig;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
|
||||
exports.setGiftIntentExpressionPickerConfig = function(a0) {
|
||||
env0_3 = a0;
|
||||
emitChange();
|
||||
};
|
||||
exports.getGiftIntentCustomMessagePlaceholder = closure;
|
||||
exports.useGiftIntentExpressionPickerConfig = closure2;
|
||||
exports.clearGiftIntentExpressionPickerConfig = clearGiftIntentExpressionPickerConfig;
|
||||
exports.useGiftIntentExpressionPickerActive = useGiftIntentExpressionPickerActive;
|
||||
exports.useGiftIntentExpressionPickerPlaceholder = useGiftIntentExpressionPickerPlaceholder;
|
||||
}
|
||||
|
||||
function emitChange() { // fn#87501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:123, offset: 0x01fc0ff7, size: 30 bytes, params: 1, frame: 11
|
||||
env0_4.forEach(function(a0) {
|
||||
return a0();
|
||||
});
|
||||
}
|
||||
|
||||
function subscribe_87503(a0) { // fn#87503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:165, offset: 0x01fc1015, size: 35 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
env0_4.add(a0);
|
||||
return _fun87504;
|
||||
}
|
||||
|
||||
function useGiftIntentExpressionPickerConfig(a0) { // fn#87507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:380, offset: 0x01fc1092, size: 67 bytes, params: 2, frame: 16
|
||||
const binding = env0_2;
|
||||
const useSyncExternalStore = binding.useSyncExternalStore;
|
||||
const subscribe_87503Binding = subscribe_87503;
|
||||
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
|
||||
const value = Reflect.apply(useSyncExternalStore, binding, [subscribe_87503Binding,
|
||||
getGiftIntentExpressionPickerConfigSnapshotBinding, getGiftIntentExpressionPickerConfigSnapshotBinding]);
|
||||
const value2 = null;
|
||||
return value2 == a0 || (value2 == value ? undefined : value.channelId) !== a0 ? value2 : value;
|
||||
}
|
||||
|
||||
function clearGiftIntentExpressionPickerConfig(a0) { // fn#87509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1008, offset: 0x01fc10eb, size: 61 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var binding;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
binding = env0_3;
|
||||
value = undefined;
|
||||
value = (binding == null ? value : binding.channelId) !== a0;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (!r0) {
|
||||
emitChange();
|
||||
}
|
||||
}
|
||||
|
||||
function useGiftIntentExpressionPickerPlaceholder(a0) { // fn#87511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1316, offset: 0x01fc1128, size: 36 bytes, params: 2, frame: 12
|
||||
const value2 = useGiftIntentExpressionPickerConfig(a0);
|
||||
const value3 = null;
|
||||
return value3 == value2 ? value3 : getGiftIntentCustomMessagePlaceholder();
|
||||
}
|
||||
|
||||
function _fun87504() { // fn#87504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:203, offset: 0x01fc1038, size: 26 bytes, params: 1, frame: 11
|
||||
return env1_4.delete(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Metro module 10387; source: modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx; dependencies: [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320, 10388, 2] */
|
||||
function _fun80468(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:6, offset: 0x01e7c2a7, size: 519 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
|
||||
const env0_7 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {alignItems: 'center'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
object3.container = object4;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.title = {textAlign: 'center', marginBottom: PX_8};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.description = {textAlign: 'center', marginBottom: PX_16};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.tierCards = {'flexDirection': 'row', 'flexWrap': 'wrap', rowGap: PX_8};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.tierCard = {'width': '33.33%', 'alignItems': 'center', padding: PX_8};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.iconWrapper = {paddingVertical: PX_8};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx');
|
||||
exports.default = GiftingBadgeInfoActionSheet;
|
||||
}
|
||||
|
||||
function GiftingBadgeInfoActionSheet() { // fn#80469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:788, offset: 0x01e7c4ae, size: 555 bytes, params: 1, frame: 30
|
||||
const value2 = undefined;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const badgeById = (require(566) /* metro dependency 566: flux */).useStateFromStores([BadgeDirectoryStore],
|
||||
function() {
|
||||
return BadgeDirectoryStore.getBadgeById(require(dependencyMap[10]).BadgeId.GIFTING);
|
||||
});
|
||||
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
env0_3.useEffect(function() {
|
||||
importDefault(dependencyMap[11]).track(AnalyticEvents.GIFTING_BADGE_INFO_ACTION_SHEET_OPENED);
|
||||
}, []);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const items3 = [styles.container];
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items3[1] = {paddingBottom: bottom + PX_16};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const items2 = [<Text style={styles.title} variant="heading-xl/semibold" color="text-strong" accessibilityRole="header">{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0MB2C6'])}</Text>];
|
||||
items2[1] = <Text style={styles.description} variant="text-md/medium" color="text-default">{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).k9sNVH)}</Text>;
|
||||
items2[2] = <View style={styles.tierCards}>{badgeById == null || badgeById.tiers == null ? value2 : badgeById.tiers.map(_fun80473)}</View>;
|
||||
return (
|
||||
<BottomSheet scrollable={false} startExpanded>
|
||||
<View style={items3}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80473(a0) { // fn#80473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:1588, offset: 0x01e7c73e, size: 391 bytes, params: 2, frame: 26
|
||||
var r13;
|
||||
var r7;
|
||||
var r6;
|
||||
var intl;
|
||||
var value;
|
||||
if (useReducedMotion) {
|
||||
r13 = a0.complex_icon_static_url ?? a0.simple_icon_url;
|
||||
} else {
|
||||
r13 = a0.complex_icon_animated_url ?? a0.complex_icon_static_url;
|
||||
r13 = r13 ?? a0.simple_icon_url;
|
||||
}
|
||||
const singleRequirementThreshold = getSingleRequirementThreshold(a0);
|
||||
const value4 = r13 != null;
|
||||
if (value4) {
|
||||
var viewBinding2Props = {style: styles.iconWrapper};
|
||||
value = importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */;
|
||||
value = <View {...viewBinding2Props}>{((Component) => <Component icon={r13} size={58} />)(value)}</View>;
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = value4;
|
||||
}
|
||||
const items2 = [r7];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="text-lg/semibold" color="text-strong">{a0.name}</Text>;
|
||||
value = singleRequirementThreshold != null;
|
||||
if (value) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r6 = <Text variant="text-md/normal" color="text-subtle">{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).qvx9E4,
|
||||
|
||||
{count: singleRequirementThreshold})}</Text>;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
items2[2] = r6;
|
||||
return (
|
||||
<View style={styles.tierCard} key={a0.key}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 13896; source: modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun105573(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14093:6, offset: 0x022bcfe3, size: 145 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-06-mobile-friendship-anniversary', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Metro module 10392; source: modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx; dependencies: [1880, 7669, 2] */
|
||||
function _fun80487(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:6, offset: 0x01e7d90c, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx');
|
||||
exports.default = useShouldShowGiftingPromotionDeco;
|
||||
}
|
||||
|
||||
function useShouldShowGiftingPromotionDeco(a0) { // fn#80488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:237, offset: 0x01e7d981, size: 112 bytes, params: 2, frame: 14
|
||||
const value2 = (require(7669) /* metro dependency 7669: NativeGiftContext */).useNativeGiftContext();
|
||||
const claimableRewards = value2.claimableRewards;
|
||||
return claimableRewards != null && claimableRewards.length > 0 && (a0 != null ? a0 === PremiumTypes.TIER_2 : value2.premiumType === PremiumTypes.TIER_2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* Metro module 10386; source: modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx; dependencies: [4080, 10387, 1962, 2] */
|
||||
function _fun80466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:6, offset: 0x01e7c1f2, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx');
|
||||
exports.default = openGiftingBadgeInfoActionSheet;
|
||||
}
|
||||
|
||||
function openGiftingBadgeInfoActionSheet() { // fn#80467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:202, offset: 0x01e7c259, size: 78 bytes, params: 1, frame: 15
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'GiftingBadgeInfoActionSheet']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 10388; source: modules/premium/gifting/native/views/GiftingBadgeIcon.tsx; dependencies: [31, 27, 33, 2] */
|
||||
function _fun80474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:6, offset: 0x01e7c8c5, size: 145 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_0 = (require(27) /* metro dependency 27 */).Image;
|
||||
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeIcon.tsx');
|
||||
exports.default = GiftingBadgeIcon;
|
||||
}
|
||||
|
||||
function GiftingBadgeIcon({icon, size, style}) { // fn#80475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:235, offset: 0x01e7c956, size: 77 bytes, params: 2, frame: 16
|
||||
return <Image source={{uri: icon}} style={[{width: size, height: size}, style]} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 10471; source: modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx; dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */
|
||||
function _fun81023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:6, offset: 0x01e95d44, size: 453 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.container = {gap: PX_4, width: '100%'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.barRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
|
||||
const object3 = {'flex': 1, 'height': 6, 'borderRadius': null, 'backgroundColor': null, 'overflow': 'hidden'};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object3.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object2.progressBarTrack = object3;
|
||||
const object6 = {height: 6};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object6.backgroundColor = BACKGROUND_BRAND;
|
||||
object2.progressBarFill = object6;
|
||||
object2.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end'};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx');
|
||||
exports.default = GiftingBadgeLevelUpProgress;
|
||||
}
|
||||
|
||||
function GiftingBadgeLevelUpProgress({progress, currentTier, newTier, style}) { // fn#81024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:747, offset: 0x01e95f09, size: 568 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const singleRequirementThreshold = getSingleRequirementThreshold(newTier);
|
||||
const r21 = singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
|
||||
const items3 = [styles.container, style];
|
||||
const items2 = [currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)];
|
||||
items2[1] = <View style={styles.progressBarTrack}><View style={[styles.progressBarFill,
|
||||
{width: '' + r21 + '%'}]} /></View>;
|
||||
items2[2] = newTier.simple_icon_url != null && ((Component) => <Component icon={newTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
|
||||
const view = <View style={styles.barRow}>{items2}</View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={items3}>
|
||||
{view}
|
||||
<View style={styles.labels}>
|
||||
<Text variant="text-xs/normal" color="text-muted">
|
||||
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
|
||||
{count: progress, threshold: singleRequirementThreshold})}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Metro module 10470; source: modules/premium/gifting/native/views/GiftingBadgeProgress.tsx; dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */
|
||||
function _fun81020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:6, offset: 0x01e95860, size: 501 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
|
||||
const object6 = {flex: 1};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.paddingHorizontal = PX_8;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.gap = PX_4;
|
||||
object2.content = object6;
|
||||
const object7 = {height: 6};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object7.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object7.overflow = 'hidden';
|
||||
object2.progressBarTrack = object7;
|
||||
const object8 = {height: 6};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object8.backgroundColor = BACKGROUND_BRAND;
|
||||
object2.progressBarFill = object8;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'alignItems': 'center', minHeight: PX_16};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgress.tsx');
|
||||
exports.default = GiftingBadgeProgress;
|
||||
}
|
||||
|
||||
function GiftingBadgeProgressBar({percent}) { // fn#81021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:186, offset: 0x01e95a55, size: 164 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.progressBarFill];
|
||||
const Math = global.Math;
|
||||
const min = Math.min;
|
||||
const Math2 = global.Math;
|
||||
let value = Math2.max(percent, 0);
|
||||
value = Reflect.apply(min, Math, [value, 100]);
|
||||
items2[1] = {width: '' + value + '%'};
|
||||
return (
|
||||
<View style={styles.progressBarTrack}>
|
||||
<View style={items2} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GiftingBadgeProgress({progress, currentTier, nextTier, iconSize, title}) { // fn#81022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:1003, offset: 0x01e95af9, size: 587 bytes, params: 2, frame: 36
|
||||
var r16;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var intl;
|
||||
iconSize = iconSize === undefined ? 24 : iconSize;
|
||||
const styles = useStyles();
|
||||
const singleRequirementThreshold = getSingleRequirementThreshold(nextTier);
|
||||
const r17 = nextTier != null && singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
|
||||
const items3 = [currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)];
|
||||
const items2 = [title != null && <Text variant="text-md/semibold">{title}</Text>];
|
||||
items2[1] = <GiftingBadgeProgressBar percent={r17} />;
|
||||
const value13 = nextTier != null;
|
||||
if (value13) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r16 = <Text variant="text-xs/normal" color="text-muted">{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
|
||||
|
||||
{count: progress, threshold: singleRequirementThreshold})}</Text>;
|
||||
} else {
|
||||
r16 = value13;
|
||||
}
|
||||
items2[2] = <View style={styles.labels}>{r16}</View>;
|
||||
items3[1] = <View style={styles.content}>{items2}</View>;
|
||||
items3[2] = nextTier?.simple_icon_url != null && ((Component) => <Component icon={nextTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 10396; source: modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx; dependencies: [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320, 2] */
|
||||
function _fun80503(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:6, offset: 0x01e7e2b1, size: 409 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'backgroundColor': null,
|
||||
'borderRadius': null, 'borderWidth': 1, 'borderStyle': 'solid'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.padding = PX_8;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object5.borderColor = BORDER_MUTED;
|
||||
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
||||
copyDataProperties(object5, SHADOW_LOW, undefined);
|
||||
object4.container = object5;
|
||||
const object6 = {'alignItems': 'center', 'justifyContent': 'center'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.padding = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.marginInlineEnd = PX_8;
|
||||
object4.iconContainer = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx');
|
||||
exports.default = GiftingBadgeProgressBanner;
|
||||
}
|
||||
|
||||
function GiftingBadgeProgressBanner({giftsToNextTier, nextTierName, nextTierIcon, analyticsLocation}) { // fn#80504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:674, offset: 0x01e7e44a, size: 467 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const r4 = analyticsLocation != null ? [analyticsLocation] : [];
|
||||
let object = [];
|
||||
arraySpread(object, r4, 0, undefined);
|
||||
const analyticsLocations = apply(defaultImport, object, undefined, undefined).analyticsLocations;
|
||||
const defaultImport2 = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
|
||||
object = {};
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const GIFTING_BADGE_PROGRESS_BANNER = ImpressionNames.GIFTING_BADGE_PROGRESS_BANNER;
|
||||
object.name = GIFTING_BADGE_PROGRESS_BANNER;
|
||||
const ImpressionTypes = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes;
|
||||
const VIEW = ImpressionTypes.VIEW;
|
||||
object.type = VIEW;
|
||||
object.properties = {gifts_to_next_tier: giftsToNextTier, next_tier: nextTierName,
|
||||
location_stack: analyticsLocations};
|
||||
defaultImport2(object, {trackOnInitialLoad: true});
|
||||
const view = <View style={styles.iconContainer}>{nextTierIcon != null && ((Component) => <Component icon={nextTierIcon} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}</View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<Text variant="text-md/semibold">
|
||||
{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0+xfd9'],
|
||||
{giftsRemaining: giftsToNextTier, nextTier: nextTierName})}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 15293; source: modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx; dependencies: [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578, 10381, 6789, 15294, 10112, 566, 7635, 2] */
|
||||
function _fun116950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:6, offset: 0x0249d24d, size: 437 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.Image;
|
||||
const env0_5 = value.View;
|
||||
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
|
||||
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.container = {'alignItems': 'center', 'paddingHorizontal': 20, 'paddingBottom': 20, gap: PX_24};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.graphicContainer = {'height': 188, 'width': 335, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
padding: PX_16};
|
||||
object2.newBadgeImage = {'width': '100%', 'height': '100%', 'objectFit': 'contain'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.textContainer = {gap: PX_8};
|
||||
object2.text = {textAlign: 'center'};
|
||||
object2.footer = {width: '100%'};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx');
|
||||
exports.default = GiftingBadgesCoachmarkActionSheet;
|
||||
}
|
||||
|
||||
function HasBadgeCoachmark({markAsDismissed, currentTier, giftCount}) { // fn#116951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:589, offset: 0x0249d402, size: 729 bytes, params: 2, frame: 39
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useCallback(_fun116952, [markAsDismissed]);
|
||||
const value3 = env0_3.useCallback(function() {
|
||||
markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
||||
}, [markAsDismissed]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const items2 = [<View style={styles.graphicContainer}>{currentTier.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={120} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}</View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let text = styles.text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const text2 = <Text style={text} variant="heading-xl/bold" color="text-strong">{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['a+jfuy'],
|
||||
{tierName: currentTier.name ?? ''})}</Text>;
|
||||
text = styles.text;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const QxRA6w = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).QxRA6w;
|
||||
items2[1] = <View style={styles.textContainer}>{text2}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(formatToPlainString,
|
||||
intl, [QxRA6w, {giftCount: giftCount ?? 0}])}</Text></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const string = intl.string;
|
||||
const RzWDqY = (require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY;
|
||||
items2[2] = <View style={styles.footer}><Button grow text={Reflect.apply(string, intl,
|
||||
[RzWDqY])} onPress={value2} /></View>;
|
||||
return (
|
||||
<BottomSheet startExpanded onDismiss={value3}>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function NewBadgeCoachmark({markAsDismissed}) { // fn#116954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1556, offset: 0x0249d745, size: 690 bytes, params: 2, frame: 36
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useCallback(_fun116955, [markAsDismissed]);
|
||||
const value3 = env0_3.useCallback(function() {
|
||||
markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
||||
}, [markAsDismissed]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object = {};
|
||||
object.uri = importDefault(15294) /* metro dependency 15294: new_gifting_badgesPng */;
|
||||
const items2 = [<View style={styles.graphicContainer}><Image source={object} style={styles.newBadgeImage} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const Q2RQka = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).Q2RQka;
|
||||
items2[1] = <View style={styles.textContainer}><Text style={styles.text} variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl,
|
||||
[Q2RQka])}</Text><Text style={styles.text} variant="text-sm/medium" color="text-muted">{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['3EQnkg'])}</Text></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const DZnomS = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).DZnomS;
|
||||
const GiftIcon = (require(10112) /* metro dependency 10112: GiftIcon */).GiftIcon;
|
||||
const CONTROL_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_PRIMARY_TEXT_DEFAULT;
|
||||
items2[2] = <View style={styles.footer}><Button grow text={Reflect.apply(string, intl,
|
||||
[DZnomS])} icon={<GiftIcon size="sm" color={CONTROL_PRIMARY_TEXT_DEFAULT} />} onPress={value2} /></View>;
|
||||
return (
|
||||
<BottomSheet startExpanded onDismiss={value3}>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function GiftingBadgesCoachmarkActionSheet({markAsDismissed}) { // fn#116957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2638, offset: 0x0249da6e, size: 141 bytes, params: 2, frame: 18
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([BadgeDirectoryStore],
|
||||
_fun116958);
|
||||
const currentTier = value2.currentTier;
|
||||
return currentTier != null ? <HasBadgeCoachmark markAsDismissed={markAsDismissed} currentTier={currentTier} giftCount={value2.giftCount} /> : <NewBadgeCoachmark markAsDismissed={markAsDismissed} />;
|
||||
}
|
||||
|
||||
function _fun116952() { // fn#116952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:692, offset: 0x0249d6db, size: 106 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const markAsDismissedBinding = markAsDismissed;
|
||||
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
|
||||
markAsDismissedBinding(TAKE_ACTION);
|
||||
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
|
||||
value = value.getRootNavigationRef();
|
||||
if (value != null) {
|
||||
value.navigate('you');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116955() { // fn#116955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1631, offset: 0x0249d9f7, size: 119 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const markAsDismissedBinding = markAsDismissed;
|
||||
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
|
||||
markAsDismissedBinding(TAKE_ACTION);
|
||||
value = require(10381) /* metro dependency 10381: openGiftModal */;
|
||||
const openGiftModal = value.openGiftModal;
|
||||
const GIFTING_BADGE_COACHMARK = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GIFTING_BADGE_COACHMARK;
|
||||
Reflect.apply(openGiftModal, value, [{analyticsLocations: [GIFTING_BADGE_COACHMARK]}]);
|
||||
}
|
||||
|
||||
function _fun116958() { // fn#116958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2747, offset: 0x0249dafb, size: 112 bytes, params: 1, frame: 16
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const getCurrentTier = BadgeDirectoryStore.getCurrentTier;
|
||||
value = undefined;
|
||||
const BadgeId = (require(7635) /* metro dependency 7635: BadgeId */).BadgeId;
|
||||
let GIFTING = BadgeId.GIFTING;
|
||||
object2.currentTier = Reflect.apply(getCurrentTier, BadgeDirectoryStore, [GIFTING]);
|
||||
const getSingleRequirementProgress = BadgeDirectoryStore.getSingleRequirementProgress;
|
||||
GIFTING = BadgeId.GIFTING;
|
||||
const value2 = Reflect.apply(getSingleRequirementProgress, BadgeDirectoryStore, [GIFTING]);
|
||||
object2.giftCount = value2 == null ? value : value2.current;
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 10462; source: modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx; dependencies: [31, 4502, 1878, 33, 566, 1305, 2] */
|
||||
function _fun80977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:6, offset: 0x01e93073, size: 166 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx');
|
||||
exports.default = GiftingRewardPreviewAvatar;
|
||||
}
|
||||
|
||||
function GiftingRewardPreviewAvatar(a0) { // fn#80978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:249, offset: 0x01e93119, size: 203 bytes, params: 2, frame: 20
|
||||
const value2 = undefined;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const r6 = a0.asset != null ? {asset: a0.asset} : value2;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
return (
|
||||
<Avatar
|
||||
user={currentUser}
|
||||
guildId={value2}
|
||||
avatarDecoration={r6}
|
||||
animate={!useReducedMotion}
|
||||
{...a0}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
/* Metro module 15280; source: modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx; dependencies: [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275, 477, 7601, 5475, 4573, 4578, 1244, 2] */
|
||||
function _fun116880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:6, offset: 0x0249972b, size: 467 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 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = value.AnalyticsSections;
|
||||
const env0_7 = value.AnalyticsObjects;
|
||||
const env0_8 = value.AnalyticsPages;
|
||||
const env0_9 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {alignItems: 'center', padding: PX_16};
|
||||
const object4 = {};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.paddingVertical = PX_24;
|
||||
object2.textContainer = object4;
|
||||
object2.text = {textAlign: 'center'};
|
||||
const object6 = {'height': 188, 'width': 335};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.imageShared = object6;
|
||||
object2.imageWrapperAndroid = {overflow: 'hidden'};
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx');
|
||||
exports.default = GiftingPromotionCoachmarkActionSheet;
|
||||
}
|
||||
|
||||
function GiftingPromotionCoachmarkActionSheet({coachmarkComponent, markAsDismissed}) { // fn#116881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:717, offset: 0x024998fe, size: 778 bytes, params: 2, frame: 32
|
||||
var r8;
|
||||
var r9;
|
||||
var r0;
|
||||
var BottomSheet;
|
||||
var value6;
|
||||
var moduleValue3;
|
||||
var object;
|
||||
var imageShared;
|
||||
var APNGDecorationNativeComponent;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var text;
|
||||
var items3;
|
||||
var Button;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const value4 = (require(10390) /* metro dependency 10390: MarketingComponentHooks */).useThemeAndReducedMotionAwareAssetUrl(coachmarkComponent?.asset);
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const GIFTING_PROMOTION_COACHMARK = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GIFTING_PROMOTION_COACHMARK;
|
||||
const analyticsLocations = defaultImport(GIFTING_PROMOTION_COACHMARK).analyticsLocations;
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
if (coachmarkComponent == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
var viewBindingProps = {style: styles.container};
|
||||
value6 = value4 != null;
|
||||
if (value6) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue3.isAndroid()) {
|
||||
if (useReducedMotion) {
|
||||
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
} else {
|
||||
object = {};
|
||||
imageShared = styles.imageShared;
|
||||
object.style = [imageShared, styles.imageWrapperAndroid];
|
||||
APNGDecorationNativeComponent = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
|
||||
imageShared = styles.imageShared;
|
||||
r8 = <View {...object}><APNGDecorationNativeComponent url={value4} style={imageShared} /></View>;
|
||||
}
|
||||
} else {
|
||||
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
}
|
||||
r9 = r8;
|
||||
} else {
|
||||
r9 = value6;
|
||||
}
|
||||
items2 = [r9];
|
||||
var viewBinding3Props = {style: styles.textContainer};
|
||||
text = styles.text;
|
||||
items3 = [<Text style={text} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{coachmarkComponent.header}</Text>];
|
||||
text = styles.text;
|
||||
items3[1] = <Text style={text} variant="text-md/normal" color="text-default">{coachmarkComponent.body}</Text>;
|
||||
items2[1] = <View {...viewBinding3Props}>{items3}</View>;
|
||||
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[2] = <Button grow text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY)} onPress={Reflect.apply(useCallback,
|
||||
|
||||
binding, [_fun116883, [analyticsLocations, markAsDismissed]])} />;
|
||||
r0 = <BottomSheet startExpanded onDismiss={function() {
|
||||
return markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
||||
}}><View {...viewBindingProps}>{items2}</View></BottomSheet>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun116883() { // fn#116883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:1031, offset: 0x02499c08, size: 149 bytes, params: 1, frame: 16
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const markAsDismissedBinding = markAsDismissed;
|
||||
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
|
||||
markAsDismissedBinding(TAKE_ACTION);
|
||||
const openGiftModalModule = require(10381) /* metro dependency 10381: openGiftModal */;
|
||||
const openGiftModal = openGiftModalModule.openGiftModal;
|
||||
const PREMUIM_UPSELL_GIFTING_PROMOTION = AnalyticsPages.PREMUIM_UPSELL_GIFTING_PROMOTION;
|
||||
const FOOTER = AnalyticsSections.FOOTER;
|
||||
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
|
||||
Reflect.apply(openGiftModal, openGiftModalModule, [{analyticsLocation: {page: PREMUIM_UPSELL_GIFTING_PROMOTION,
|
||||
section: FOOTER, object: BUTTON_CTA}, analyticsLocations: analyticsLocations}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/* Metro module 10457; source: modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx; dependencies: [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573, 1244, 2] */
|
||||
function _fun80944(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:6, offset: 0x01e90adb, size: 561 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(5126) /* metro dependency 5126: AvatarDecorationRecord */).isAvatarDecorationRecord;
|
||||
const env0_6 = (require(1902) /* metro dependency 1902: NameplateRecord */).isNameplateRecord;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value2.jsx;
|
||||
const env0_8 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'height': 178, 'width': 150, 'display': 'flex', 'flexDirection': 'column', 'alignItems': 'center',
|
||||
'justifyContent': 'center', 'borderWidth': 1, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object4.borderColor = BORDER_SUBTLE;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object4.margin = PX_4;
|
||||
object3.card = object4;
|
||||
object3.overlayContainer = {'position': 'absolute', 'top': 10, 'zIndex': 2, 'display': 'flex',
|
||||
'justifyContent': 'center', 'alignItems': 'center', 'width': '100%', 'height': '75%'};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object3.selected = {borderColor: BACKGROUND_BRAND};
|
||||
object3.claimed = {opacity: 0.4};
|
||||
object3.checkmark = {'position': 'absolute', 'opacity': 1, 'fontWeight': 'bold'};
|
||||
object3.checkmarkContainer = {'position': 'absolute', 'top': 10, 'zIndex': 3, 'display': 'flex',
|
||||
'justifyContent': 'center', 'alignItems': 'center', 'width': '100%', 'height': '75%'};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.textContainer = {'position': 'absolute', 'bottom': 20, 'left': 0, 'right': 0, 'paddingHorizontal': null,
|
||||
'alignItems': 'flex-start', paddingHorizontal: PX_16};
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
const env0_10 = value.memo(_fun80945);
|
||||
const env0_11 = createStylesModule.createStyles({grid: {'flexDirection': 'row', 'flexWrap': 'wrap',
|
||||
'justifyContent': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx');
|
||||
exports.default = GiftingSKUCardsGrid;
|
||||
}
|
||||
|
||||
function _fun80945({rewardSkuId, claimed, onSelect, isSelected}) { // fn#80945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1027, offset: 0x01e90d0c, size: 823 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const value3 = (require(7594) /* metro dependency 7594: useCurrentUser */).useCurrentUser();
|
||||
const env0_3 = value3;
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: isSelected});
|
||||
const useFetchCollectiblesProductModule = require(8461) /* metro dependency 8461: useFetchCollectiblesProduct */;
|
||||
const useFetchCollectiblesProduct = useFetchCollectiblesProductModule.useFetchCollectiblesProduct;
|
||||
const product = Reflect.apply(useFetchCollectiblesProduct, useFetchCollectiblesProductModule, [rewardSkuId]).product;
|
||||
const value5 = env0_3.useMemo(_fun80946, [isSelected, value3]);
|
||||
if (product == null) {
|
||||
return null;
|
||||
}
|
||||
const property = product.items[0];
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const items2 = [styles.card];
|
||||
items2[1] = isSelected && styles.selected;
|
||||
const view = <View style={[styles.overlayContainer,
|
||||
claimed && styles.claimed]}>{isNameplateRecord(property) ? ((Component) => <Component item={property} animate={isSelected} />)(importDefault(10050) /* metro dependency 10050: NameplateCardPreview */) : isAvatarDecorationRecord(property) ? ((Component) => <Component item={property} size={100} animate={isSelected} avatarSource={value5} />)(importDefault(7596) /* metro dependency 7596: AvatarDecorationSampleV2 */) : undefined}</View>;
|
||||
const r6 = claimed && <View style={styles.checkmarkContainer}>{((CheckmarkLargeBoldIcon) => <CheckmarkLargeBoldIcon size="lg" style={styles.checkmark} />)((require(9294) /* metro dependency 9294: CheckmarkLargeBoldIcon */).CheckmarkLargeBoldIcon)}</View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text variant="heading-sm/bold" color="mobile-text-heading-primary" lineClamp={1} accessibilityRole="header">{product.name}</Text>;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return (
|
||||
<PressableOpacity
|
||||
style={items2}
|
||||
onPress={function() {
|
||||
return onSelect(rewardSkuId);
|
||||
}}
|
||||
activeOpacity={0.8}
|
||||
disabled={claimed}
|
||||
accessibilityRole={accessibilityRole}
|
||||
accessibilityState={accessibilityState}
|
||||
>
|
||||
{view}
|
||||
{r6}
|
||||
<View style={styles.textContainer}>
|
||||
{text}
|
||||
<Text
|
||||
variant="text-xs/semibold"
|
||||
color="mobile-text-heading-primary"
|
||||
lineClamp={1}
|
||||
>
|
||||
{claimed ? Reflect.apply(string, intl, [t['6cfuDj']]) : Reflect.apply(string, intl, [t.QQsaCc])}
|
||||
</Text>
|
||||
</View>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function GiftingSKUCardsGrid({rewardsToDisplay, claimableRewards, onSelect, highlightedSkuId}) { // fn#80948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2376, offset: 0x01e91069, size: 103 bytes, params: 2, frame: 16
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.grid}>
|
||||
{rewardsToDisplay.map(_fun80949)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80946() { // fn#80946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1274, offset: 0x01e91043, size: 38 bytes, params: 1, frame: 16
|
||||
return isSelected ? env0_3.getAvatarSource(null, true, 100) : undefined;
|
||||
}
|
||||
|
||||
function _fun80949(a0) { // fn#80949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2527, offset: 0x01e910d0, size: 93 bytes, params: 2, frame: 18
|
||||
const env0_0 = a0;
|
||||
const binding = env1_10;
|
||||
const claimableRewardsBinding = claimableRewards;
|
||||
return ((Component) => <Component rewardSkuId={a0} claimed={!claimableRewardsBinding.some(_fun80950)} isSelected={highlightedSkuId === a0} onSelect={onSelect} key={a0} />)(binding);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
/* Metro module 10456; source: modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578, 2] */
|
||||
function _fun80934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:6, offset: 0x01e904d6, size: 451 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ScrollView;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.scroll = {flex: 1};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.contentContainer = {'display': 'flex', 'flexDirection': 'column', padding: PX_24};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.header = {textAlign: 'center', padding: PX_8};
|
||||
object2.subtitle = {textAlign: 'center'};
|
||||
const object3 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.marginHorizontal = PX_16;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.marginBottom = PX_24;
|
||||
object2.buttonContainer = object3;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.headerContainer = {marginBottom: PX_24};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx');
|
||||
exports.default = GiftingSKUSelectScreen;
|
||||
}
|
||||
|
||||
function GiftingSKUSelectScreen({defaultHighlightedReward, allRewards, claimableRewards, onSelect}) { // fn#80935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:717, offset: 0x01e90699, size: 804 bytes, params: 2, frame: 35
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
let value2 = Reflect.apply(useState, binding, [defaultHighlightedReward]);
|
||||
const binding2 = env0_3;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
var env0_4 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value4[0];
|
||||
const env0_6 = value4[1];
|
||||
const value5 = binding.useCallback(function() {
|
||||
var value2 = claimableRewards.find(_fun80937);
|
||||
if (value2 != null) {
|
||||
onSelect(value2);
|
||||
}
|
||||
}, [onSelect, property, claimableRewards]);
|
||||
const value6 = binding.useCallback(_fun80938, []);
|
||||
const value7 = binding.useMemo(_fun80939, [property, claimableRewards]);
|
||||
binding.useEffect(_fun80941, [property, claimableRewards, property2, defaultHighlightedReward, value7]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let value = <Text style={styles.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+ByEeM'])}</Text>;
|
||||
value = <View style={styles.headerContainer}>{value}<Text style={styles.subtitle} variant="text-md/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vPeaOS)}</Text></View>;
|
||||
const items3 = [<ScrollView style={styles.scroll} contentContainerStyle={styles.contentContainer}>{value}{((Component) => <Component rewardsToDisplay={allRewards} claimableRewards={claimableRewards} onSelect={value6} highlightedSkuId={property} />)(importDefault(10457) /* metro dependency 10457: GiftingSKUCardsGrid */)}</ScrollView>];
|
||||
const items4 = [styles.buttonContainer];
|
||||
items4[1] = {paddingBottom: bottom};
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items3[1] = <View style={items4}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3d0Nmb'])} onPress={value5} disabled={property == null || !value7} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80936() { // fn#80936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:947, offset: 0x01e909bd, size: 48 bytes, params: 1, frame: 12
|
||||
const value2 = claimableRewards.find(_fun80937);
|
||||
if (value2 != null) {
|
||||
onSelect(value2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80938(a0) { // fn#80938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1019, offset: 0x01e909fd, size: 30 bytes, params: 2, frame: 12
|
||||
env0_4(a0);
|
||||
env0_6(true);
|
||||
}
|
||||
|
||||
function _fun80939() { // fn#80939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1053, offset: 0x01e90a1b, size: 42 bytes, params: 1, frame: 12
|
||||
return env0_3 != null && claimableRewards.some(_fun80940);
|
||||
}
|
||||
|
||||
function _fun80941() { // fn#80941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1113, offset: 0x01e90a45, size: 134 bytes, params: 1, frame: 13
|
||||
var r4;
|
||||
var binding;
|
||||
if (claimableRewards.length === 0) {
|
||||
env0_4(undefined);
|
||||
} else if (env0_7) {
|
||||
claimableRewardsBinding = claimableRewards;
|
||||
if (!claimableRewardsBinding.some(_fun80942)) {
|
||||
binding = env0_5;
|
||||
r4 = !binding && defaultHighlightedReward != null;
|
||||
r4 = r4 && claimableRewards.some(function(a0) {
|
||||
return a0 === defaultHighlightedReward;
|
||||
});
|
||||
binding = env0_4;
|
||||
binding(r4 ? defaultHighlightedReward : undefined);
|
||||
}
|
||||
} else {
|
||||
binding = env0_5;
|
||||
r4 = !binding && defaultHighlightedReward != null;
|
||||
r4 = r4 && claimableRewards.some(_fun80943);
|
||||
binding = env0_4;
|
||||
binding(r4 ? defaultHighlightedReward : undefined);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80937(a0) { // fn#80937, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
|
||||
return a0 === env1_3;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user