1383 lines
83 KiB
TypeScript
1383 lines
83 KiB
TypeScript
/* Metro module 13567; source: modules/quests/native/QuestCard.tsx; dependencies: [5, 57, 31, 27, 1878, 7093, 6528, 482, 33, 697, 4501, 3967, 4000, 6531, 7099, 9949, 9483, 1478, 9495, 13568, 4826, 4831, 7120, 566, 9500, 7116, 7091, 9505, 4048, 8461, 3860, 9513, 9519, 9517, 9518, 7121, 9520, 4080, 13591, 1962, 9950, 5132, 1244, 9480, 9523, 13595, 9484, 9502, 9503, 9963, 4020, 10076, 13596, 6239, 13634, 5475, 4589, 676, 4573, 13622, 4572, 6919, 13620, 9542, 13635, 4578, 13638, 8341, 10235, 13623, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
|
|
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import UseTheme from '../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
|
|
import defaultImport3 from '../../../by-id/module-04589-LinearGradient.js'; /* Metro dependency 4589 */
|
|
import FastImage from '../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
|
|
import Module06919 from '../../../by-id/module-06919.js'; /* Metro dependency 6919 */
|
|
import QuestStore from '../QuestStore.tsx'; /* Metro dependency 7093 */
|
|
import QuestGameLogotype from './QuestGameLogotype.tsx'; /* Metro dependency 13622 */
|
|
import QuestContextMenu from './QuestContextMenu.tsx'; /* Metro dependency 13623 */
|
|
import PremiumRewardGradient from './PremiumRewardGradient.tsx'; /* Metro dependency 13634 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsIOSModule from '../../../ConstantsIOS.tsx'; /* Metro dependency 676 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
|
|
import * as SharedModule from '../../../external/discord_common/js/packages/design/shared.tsx'; /* Metro dependency 3967 */
|
|
import * as ColorUtilsModule from '../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
|
|
import * as FabricUtilsModule from '../../../utils/native/FabricUtils.tsx'; /* Metro dependency 4020 */
|
|
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
import * as CardNativeModule from '../../../design/components/Card/native/Card.native.tsx'; /* Metro dependency 6239 */
|
|
import * as QuestConstantsModule from '../QuestConstants.tsx'; /* Metro dependency 6528 */
|
|
import * as QuestDataUtilsModule from '../utils/QuestDataUtils.tsx'; /* Metro dependency 7091 */
|
|
import * as GetQuestLoggerModule from '../lib/getQuestLogger.tsx'; /* Metro dependency 7099 */
|
|
import * as QuestTaskUtilsModule from '../utils/QuestTaskUtils.tsx'; /* Metro dependency 7116 */
|
|
import * as AnalyticsTypesModule from '../lib/analytics/AnalyticsTypes.tsx'; /* Metro dependency 7120 */
|
|
import * as IconButtonNativeModule from '../../../design/components/Button/native/IconButton.native.tsx'; /* Metro dependency 8341 */
|
|
import * as UseFetchCollectiblesProductModule from '../../collectibles/hooks/useFetchCollectiblesProduct.tsx'; /* Metro dependency 8461 */
|
|
import * as QuestUtilsNativeModule from './QuestUtils.native.tsx'; /* Metro dependency 9480 */
|
|
import * as QuestHooksModule from '../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
|
|
import * as AssetUtilsModule from '../lib/AssetUtils.tsx'; /* Metro dependency 9495 */
|
|
import * as QuestRewardUtilsModule from '../utils/QuestRewardUtils.tsx'; /* Metro dependency 9500 */
|
|
import * as QuestOrbMultiplierHooksModule from '../hooks/QuestOrbMultiplierHooks.tsx'; /* Metro dependency 9502 */
|
|
import * as QuestCopyUtilsModule from '../utils/QuestCopyUtils.tsx'; /* Metro dependency 9505 */
|
|
import * as ContentImpressionTrackerHooksModule from '../lib/analytics/ContentImpressionTrackerHooks.tsx'; /* Metro dependency 9513 */
|
|
import * as AdAnalyticsInterfaceExperimentModule from '../experiments/AdAnalyticsInterfaceExperiment.tsx'; /* Metro dependency 9519 */
|
|
import * as AnalyticsHooksModule from '../lib/analytics/AnalyticsHooks.tsx'; /* Metro dependency 9949 */
|
|
import * as QuestCopyHooksModule from '../hooks/QuestCopyHooks.tsx'; /* Metro dependency 9950 */
|
|
import * as GameProfileAnalyticUtilsModule from '../../game_profile/GameProfileAnalyticUtils.tsx'; /* Metro dependency 9963 */
|
|
import * as OrbsIconModule from '../../../design/components/Icon/native/redesign/generated/OrbsIcon.tsx'; /* Metro dependency 10076 */
|
|
import * as QuestHooksNativeModule from './QuestHooks.native.tsx'; /* Metro dependency 13568 */
|
|
|
|
function _fun103070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:6, offset: 0x022561b7, size: 1218 bytes, params: 8, frame: 30
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const StyleSheet = ReactNativeModule.StyleSheet;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
|
const value5 = (require(4501) /* metro dependency 4501: createStyles */).experimental_createToken(_fun103071);
|
|
const value7 = (require(4501) /* metro dependency 4501: createStyles */).experimental_createToken(_fun103072);
|
|
const value9 = (require(4501) /* metro dependency 4501: createStyles */).experimental_createToken(function({theme}) {
|
|
var isThemeDark = require(dependencyMap[11]).isThemeDark(theme);
|
|
theme = importDefault(dependencyMap[9]).colors;
|
|
return isThemeDark ? theme.BACKGROUND_SURFACE_HIGH : theme.BLACK;
|
|
});
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = createStylesModule.createStyles;
|
|
object = {};
|
|
const object2 = {'position': 'relative', 'padding': 0};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
|
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.marginBottom = PX_16;
|
|
object2.overflow = 'hidden';
|
|
object.container = object2;
|
|
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object.heroContainer = {'display': 'flex', 'flexDirection': 'column', 'justifyContent': 'flex-end', padding: PX_12};
|
|
const object4 = {resizeMode: 'cover'};
|
|
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
|
|
object.heroImg = object4;
|
|
object.heroLinearGradientOverlay = StyleSheet.absoluteFillObject;
|
|
const object5 = {position: 'absolute'};
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object5.top = PX_8;
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object5.right = PX_8;
|
|
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
|
object5.backgroundColor = BACKGROUND_BRAND;
|
|
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object5.padding = PX_4;
|
|
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
|
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
|
copyDataProperties(object5, SHADOW_LOW, undefined);
|
|
object.previewBadge = object5;
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object.rewardImgContainer = {'height': 64, 'width': 64, marginRight: PX_12};
|
|
object.heroFooterContainer = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap',
|
|
'justifyContent': 'space-between', 'alignItems': 'flex-end'};
|
|
object.heroFooterLeftContainer = {'display': 'flex', 'flexDirection': 'column', 'alignItems': 'flex-start'};
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object.detailsWrapper = {display: 'flex', padding: PX_12};
|
|
object.detailsContainer = {'display': 'flex', 'flexDirection': 'row'};
|
|
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object.questName = {marginBottom: PX_4};
|
|
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object.bodyContainer = {'display': 'flex', 'flexDirection': 'column', gap: PX_4};
|
|
const object10 = {'flexDirection': 'row', 'alignItems': 'center', 'rowGap': null, 'columnGap': null,
|
|
'flexWrap': 'wrap'};
|
|
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object10.rowGap = PX_4;
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object10.columnGap = PX_8;
|
|
object.subtitleRow = object10;
|
|
object.detailsTextContainer = {'flex': 1, 'justifyContent': 'center'};
|
|
const object11 = {'borderTopWidth': 1, 'borderTopColor': null, 'display': 'flex', 'flexDirection': 'row',
|
|
'alignItems': 'center'};
|
|
object11.borderTopColor = BORDER_SUBTLE;
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object11.padding = PX_12;
|
|
object.buttonContainers = object11;
|
|
const env0_16 = Reflect.apply(createStyles, createStylesModule, [object]);
|
|
const value11 = createStylesModule;
|
|
const env0_17 = value11.createStyleProperties({gradientStart: value5, gradientMid: value7, gradientEnd: value9});
|
|
value = value.memo(_fun103074);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestCard.tsx');
|
|
exports.ESTIMATED_CARD_HEIGHT = 348;
|
|
exports.QuestCard = value;
|
|
function _fun103071({theme}) { // fn#103071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:392, offset: 0x02256679, size: 154 bytes, params: 2, frame: 18
|
|
const isThemeDark2 = (SharedModule).isThemeDark(theme);
|
|
const internal = (Native).internal;
|
|
const resolveSemanticColor = internal.resolveSemanticColor;
|
|
const colors = (Native).colors;
|
|
return (require(4000) /* metro dependency 4000: ColorUtils */).hexOpacityToRgba(Reflect.apply(resolveSemanticColor,
|
|
internal, [theme, isThemeDark2 ? colors.BACKGROUND_SURFACE_HIGH : colors.BLACK]), 0);
|
|
}
|
|
|
|
function _fun103072({theme}) { // fn#103072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:619, offset: 0x02256713, size: 175 bytes, params: 2, frame: 18
|
|
const isThemeDark2 = (SharedModule).isThemeDark(theme);
|
|
const internal = (Native).internal;
|
|
const resolveSemanticColor = internal.resolveSemanticColor;
|
|
const colors = (Native).colors;
|
|
const semanticColor = Reflect.apply(resolveSemanticColor, internal, [theme,
|
|
isThemeDark2 ? colors.BACKGROUND_SURFACE_HIGH : colors.BLACK]);
|
|
return ColorUtilsModule.hexOpacityToRgba(semanticColor, isThemeDark2 ? 0.8 : 0.5);
|
|
}
|
|
|
|
function _fun103074({containerPadding, onLayout, quest, questContent, questContentPosition, sourceQuestContent}) { // fn#103074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:2493, offset: 0x0225681b, size: 4744 bytes, params: 2, frame: 72
|
|
var r20;
|
|
var moduleValue30;
|
|
const Text = (TextModule).Text;
|
|
const Button = (ButtonNativeModule).Button;
|
|
var items13;
|
|
var items14;
|
|
var object;
|
|
const IconButton = (IconButtonNativeModule).IconButton;
|
|
let r25 = questContent !== undefined ? questContent : (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_HOME_MOBILE;
|
|
const sourceQuestContent2 = sourceQuestContent;
|
|
const getQuestLogger = GetQuestLoggerModule.getQuestLogger;
|
|
let QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
|
const env0_5 = Reflect.apply(getQuestLogger, GetQuestLoggerModule, [{quest: quest, location: QUEST_HOME_MOBILE}]);
|
|
const env0_6 = (AnalyticsHooksModule).useTrackQuestContentClickedWithImpression();
|
|
const env0_7 = (QuestHooksModule).useQuestTaskDetails(quest);
|
|
const useQuestCompletionDetails = QuestHooksModule.useQuestCompletionDetails;
|
|
const completedRatio = Reflect.apply(useQuestCompletionDetails, QuestHooksModule, [quest]).completedRatio;
|
|
let userStatus = quest.userStatus;
|
|
const value5 = userStatus?.enrolledAt != null;
|
|
const styles = useStyles();
|
|
const value6 = (UseWindowDimensionsNative)().width - 2 * PX_16;
|
|
const value7 = 0.2803030303030303 * value6;
|
|
let binding = env0_5;
|
|
const value8 = binding.useMemo(_fun103075, [quest, value6, value7]);
|
|
const value9 = (QuestHooksNativeModule).useQuestGameLogotypeAssetUrl(quest);
|
|
const {gradientStart, gradientMid, gradientEnd} = env0_17();
|
|
const [property, env0_11] = sourceQuestContent2(binding.useState(null), 2);
|
|
const value13 = binding.useCallback(_fun103076, []);
|
|
binding.useEffect(_fun103077, [property, quest.id, r25]);
|
|
let useStateFromStores = FluxModule.useStateFromStores;
|
|
const currentUser = Reflect.apply(useStateFromStores, FluxModule, [[UserStore], function() {
|
|
return UserStore.getCurrentUser();
|
|
}]);
|
|
const defaultRewardNameWithArticle = (QuestRewardUtilsModule).getDefaultRewardNameWithArticle(quest.config,
|
|
currentUser);
|
|
const value15 = FluxModule.useStateFromStoresObject([QuestStore], function() {
|
|
var object = {};
|
|
var questStoreBinding = QuestStore;
|
|
var questBinding = quest;
|
|
object.reward = questStoreBinding.getRewards(questBinding.id);
|
|
object.isFetchingRewardCode = questStoreBinding.isFetchingRewardCode(questBinding.id);
|
|
object.isClaimingReward = questStoreBinding.isClaimingReward(questBinding.id);
|
|
object.isEnrolling = questStoreBinding.isEnrolling(questBinding.id);
|
|
object.questEnrollmentBlockedUntil = questStoreBinding.questEnrollmentBlockedUntil;
|
|
return object;
|
|
});
|
|
const env0_13 = value15.isFetchingRewardCode;
|
|
const env0_14 = value15.isClaimingReward;
|
|
const env0_15 = value15.isEnrolling;
|
|
const questEnrollmentBlockedUntil = value15.questEnrollmentBlockedUntil;
|
|
const useQuestFormattedDate = QuestHooksModule.useQuestFormattedDate;
|
|
userStatus = quest.userStatus;
|
|
const value16 = Reflect.apply(useQuestFormattedDate, QuestHooksModule, [userStatus?.completedAt, {'year': 'numeric',
|
|
'month': 'long', 'day': 'numeric'}]);
|
|
const hasWatchVideoTasks2 = (QuestTaskUtilsModule).hasWatchVideoTasks(quest);
|
|
const value17 = (QuestHooksNativeModule).useHasWatchVideoOnMobileTasks(quest.config);
|
|
userStatus = quest.userStatus;
|
|
const value18 = userStatus?.enrolledAt != null;
|
|
userStatus = quest.userStatus;
|
|
const value19 = userStatus?.completedAt != null;
|
|
userStatus = quest.userStatus;
|
|
const value20 = userStatus?.claimedAt != null;
|
|
const isQuestExpired2 = (QuestDataUtilsModule).isQuestExpired(quest);
|
|
const env0_23 = (QuestDataUtilsModule).getIsQuestExpiredButWithinThirtyDayLookback(quest);
|
|
const getDefaultReward = QuestCopyUtilsModule.getDefaultReward;
|
|
const skuId = Reflect.apply(getDefaultReward, QuestCopyUtilsModule, [quest.config]).skuId;
|
|
const isThemeDark2 = (SharedModule).isThemeDark((UseTheme)());
|
|
const hasCollectiblesQuestReward2 = QuestRewardUtilsModule.hasCollectiblesQuestReward(quest.config);
|
|
const useFetchCollectiblesProduct = UseFetchCollectiblesProductModule.useFetchCollectiblesProduct;
|
|
let r8 = hasCollectiblesQuestReward2 && value19 ? skuId : null;
|
|
const value22 = Reflect.apply(useFetchCollectiblesProduct, UseFetchCollectiblesProductModule, [r8]);
|
|
const env0_24 = value22.product;
|
|
const env0_25 = value22.isFetching;
|
|
useStateFromStores = FluxModule.useStateFromStores;
|
|
userStoreBinding = UserStore;
|
|
const env0_26 = Reflect.apply(useStateFromStores, FluxModule, [[userStoreBinding], _fun103080]);
|
|
const env0_27 = FluxModule.useStateFromStores([userStoreBinding], _fun103081);
|
|
const {isMobileActivityQuest, questApplication,
|
|
launchMobileActivity} = (QuestHooksNativeModule).useMobileActivityQuest(quest);
|
|
let useToken = UseTokenModule.useToken;
|
|
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
|
|
const env0_30 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BASE_LOWER]);
|
|
useToken = UseTokenModule.useToken;
|
|
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
|
|
const env0_31 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BASE_LOW]);
|
|
useToken = UseTokenModule.useToken;
|
|
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
|
|
const env0_32 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BASE_LOWEST]);
|
|
const r26 = questEnrollmentBlockedUntil != null && !value18 && !value19 && !value20;
|
|
const value28 = QuestHooksModule.useQuestFormattedDate(quest.config.expiresAt, {'month': 'numeric',
|
|
'day': 'numeric'});
|
|
const value30 = env0_5.useCallback(_fun103083, [quest, r25,
|
|
(ContentImpressionTrackerHooksModule).useQuestImpressionId(),
|
|
sourceQuestContent]);
|
|
const env0_37 = (QuestCopyHooksModule).usePrimaryCtaCopy({quest: quest,
|
|
application: questApplication, shortText: true});
|
|
const value31 = _fun103085();
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const formatToPlainString = intl.formatToPlainString;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const EAYZAr = t.EAYZAr;
|
|
const value32 = Reflect.apply(formatToPlainString, intl, [EAYZAr, {questName: quest.config.messages.questName}]);
|
|
const hasVirtualCurrencyReward2 = QuestRewardUtilsModule.hasVirtualCurrencyReward(quest.config);
|
|
const value33 = (QuestOrbMultiplierHooksModule).useQuestOrbMultiplierEligibility();
|
|
const value34 = QuestHooksModule.useShouldShowBonusOrbsUX(quest, value33);
|
|
r8 = value34 && value33 === (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).QuestOrbMultiplierEligibilityType.NITRO;
|
|
userStatus = quest.userStatus;
|
|
const orbQuantityClaimed = userStatus?.orbQuantityClaimed;
|
|
if (orbQuantityClaimed != null) {
|
|
r20 = orbQuantityClaimed;
|
|
} else {
|
|
moduleValue30 = QuestRewardUtilsModule;
|
|
r20 = moduleValue30.getVirtualCurrencyRewardOrbQuantity(quest.config);
|
|
}
|
|
const questOrbRewardQuantityForUser = QuestRewardUtilsModule.getQuestOrbRewardQuantityForUser(quest.config,
|
|
currentUser);
|
|
const defaultRewardName = QuestRewardUtilsModule.getDefaultRewardName(quest.config, currentUser);
|
|
const useQuestDescription = QuestCopyHooksModule.useQuestDescription;
|
|
QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
|
const GameProfileSources = (GameProfileAnalyticUtilsModule).GameProfileSources;
|
|
const QuestHome = GameProfileSources.QuestHome;
|
|
const value39 = Reflect.apply(useQuestDescription, QuestCopyHooksModule, [quest, sourceQuestContent,
|
|
QUEST_HOME_MOBILE, QuestHome]);
|
|
const value40 = env0_5.useMemo(_fun103094, [value20, hasVirtualCurrencyReward2, questOrbRewardQuantityForUser, r20,
|
|
defaultRewardName, defaultRewardNameWithArticle]);
|
|
const r46 = isQuestExpired2 && value19 && !value20 ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['l1jCM/'],
|
|
{date: value16}) : value39;
|
|
const getCtaLink = QuestCopyUtilsModule.getCtaLink;
|
|
const value44 = Reflect.apply(getCtaLink, QuestCopyUtilsModule, [quest.config]) !== '';
|
|
binding = env0_5;
|
|
const value45 = binding.useCallback(function() {
|
|
var defaultImport = importDefault(dependencyMap[45]);
|
|
var object = {};
|
|
object.questId = quest.id;
|
|
object.initialStep = require(dependencyMap[52]).VideoQuestModalSteps.WATCH_VIDEO;
|
|
object.sourceQuestContent = sourceQuestContent;
|
|
defaultImport(object);
|
|
}, [quest.id, sourceQuestContent]);
|
|
const value47 = binding.useCallback(questContentPosition(_fun103099), [launchMobileActivity]);
|
|
const Card = (CardNativeModule).Card;
|
|
const items4 = [styles.container];
|
|
items4[1] = {marginHorizontal: PX_16 - containerPadding};
|
|
const items2 = [styles.heroContainer];
|
|
items2[1] = {height: value7};
|
|
const items3 = [
|
|
((Component) => <Component source={{uri: value8.url}} style={styles.heroImg} onError={value13} accessible accessibilityRole="image" accessibilityLabel={quest.config.messages.questName} />)(FastImage),
|
|
|
|
];
|
|
const {START, END} = (ConstantsIOSModule).VerticalGradient;
|
|
items3[1] = ((Component) => <Component style={styles.heroLinearGradientOverlay} start={START} end={END} colors={[gradientStart,
|
|
gradientMid, gradientEnd]} />)(defaultImport3);
|
|
items3[2] = quest.preview && <View style={styles.previewBadge}><Text variant="eyebrow" color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.SKNnqq)}</Text></View>;
|
|
const value50 = ((Component) => <Component assetUrl={value9} onError={value13} />)(QuestGameLogotype);
|
|
const Stack = (StackNativeModule).Stack;
|
|
const value51 = 'always-white';
|
|
const r52 = isThemeDark2 ? 'text-muted' : value51;
|
|
let string = intl.string;
|
|
const VAbKhK = (require(1244) /* metro dependency 1244: indexNative */).t.VAbKhK;
|
|
const items6 = [
|
|
<Text variant="text-xs/medium" color={r52}>
|
|
{Reflect.apply(string, intl, [VAbKhK])}
|
|
</Text>,
|
|
];
|
|
const imageBindingProps = {source: Module06919, style: {'height': 16,
|
|
'width': 16}, accessible: true, accessibilityRole: 'image'};
|
|
string = intl.string;
|
|
const OfMjx9 = (require(1244) /* metro dependency 1244: indexNative */).t.OfMjx9;
|
|
imageBindingProps.accessibilityLabel = Reflect.apply(string, intl, [OfMjx9]);
|
|
items6[1] = <Image {...imageBindingProps} />;
|
|
items6[2] = (
|
|
<Text variant="text-xs/medium" color="always-white">
|
|
{quest.config.messages.gamePublisher}
|
|
</Text>
|
|
);
|
|
const view = (
|
|
<View style={styles.heroFooterLeftContainer}>
|
|
{value50}
|
|
<Stack
|
|
direction="horizontal"
|
|
align="center"
|
|
spacing={4}
|
|
>
|
|
{items6}
|
|
</Stack>
|
|
</View>
|
|
);
|
|
const value55 = !isQuestExpired2;
|
|
items3[3] = (
|
|
<View style={styles.heroFooterContainer}>
|
|
{view}
|
|
{(isQuestExpired2 ? value55 : !value20) && <Text variant="text-xs/medium" color={isThemeDark2 ? 'text-default' : value51}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['7D8r4F'],
|
|
{expiryDate: value28})}</Text>}
|
|
</View>
|
|
);
|
|
const items8 = [
|
|
<View style={items2}>
|
|
{items3}
|
|
</View>,
|
|
];
|
|
items8[1] = (
|
|
<View style={styles.detailsWrapper}>
|
|
<View style={styles.detailsContainer}>
|
|
<View style={styles.rewardImgContainer}>
|
|
{
|
|
value5
|
|
? ((Component) => <Component quest={quest} progress={completedRatio} size="sm" />)(importDefault(13620) /* metro dependency 13620: QuestProgressIndicator */)
|
|
: ((Component) => <Component quest={quest} height={64} width={64} />)(importDefault(9542) /* metro dependency 9542: QuestRewardTile */)
|
|
}
|
|
</View>
|
|
<View style={styles.detailsTextContainer}>
|
|
<Text
|
|
variant="eyebrow"
|
|
color="text-brand"
|
|
style={styles.questName}
|
|
accessibilityRole="header"
|
|
>
|
|
{value32}
|
|
</Text>
|
|
<View style={styles.bodyContainer}>
|
|
<View style={styles.subtitleRow}>
|
|
<Text variant="text-md/semibold" color="mobile-text-heading-primary">
|
|
{value40}
|
|
</Text>
|
|
{value34 && ((QuestOrbMultiplierPerkPill) => <QuestOrbMultiplierPerkPill questId={quest.config.id} orbMultiplierEligibility={value33} />)((require(13635) /* metro dependency 13635: QuestOrbMultiplierPerkPill */).QuestOrbMultiplierPerkPill)}
|
|
</View>
|
|
{r46 != null && <Text variant="text-sm/medium" color="text-muted">{r46}</Text>}
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
);
|
|
const PX_8 = (Native).space.PX_8;
|
|
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
|
const object3 = {};
|
|
if (r26) {
|
|
items14 = [
|
|
<Button
|
|
grow
|
|
onPress={NOOP}
|
|
variant="secondary"
|
|
disabled
|
|
text={intl.string(t.V293qn)}
|
|
/>,
|
|
];
|
|
items14[1] = (
|
|
<Button
|
|
onPress={onPress_103101}
|
|
variant="tertiary"
|
|
text={intl.string(t.vY9GgG)}
|
|
/>
|
|
);
|
|
object3.children = items14;
|
|
} else {
|
|
r25 = value44 && !r26;
|
|
r25 = r25 && value55;
|
|
r25 = r25 && !value20;
|
|
r25 = r25 && !value19;
|
|
r25 = r25 && <Button grow variant="secondary" text={QuestCopyUtilsModule.getExternalCtaLabel(quest)} onPress={value30} />;
|
|
items13 = [r25];
|
|
items13[1] = <Button grow {...value31} />;
|
|
object3.children = items13;
|
|
}
|
|
const fragment = ((Fragment) => <Fragment {...object3} />)(jsxRuntimeEnv0_14Binding);
|
|
const r15 = value19 && hasWatchVideoTasks2 && value17 && <IconButton accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.YsCuyF)} icon={importDefault(10235) /* metro dependency 10235 */} onPress={value45} variant="secondary" />;
|
|
const r13 = value19 && isMobileActivityQuest && <IconButton accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CkUzLd)} icon={importDefault(10235) /* metro dependency 10235 */} onPress={value47} variant="secondary" />;
|
|
const QUESTS_CARD = QuestsExperimentLocations.QUESTS_CARD;
|
|
items8[2] = (
|
|
<Stack
|
|
direction="horizontal"
|
|
align="center"
|
|
spacing={PX_8}
|
|
style={styles.buttonContainers}
|
|
>
|
|
{fragment}
|
|
{r15}
|
|
{r13}
|
|
<QuestContextMenu
|
|
quest={quest}
|
|
showShareLink={value55}
|
|
location={QUESTS_CARD}
|
|
sourceQuestContent={sourceQuestContent}
|
|
/>
|
|
</Stack>
|
|
);
|
|
return (
|
|
<Card
|
|
style={items4}
|
|
onLayout={function(a0) {
|
|
if (onLayout != null) {
|
|
onLayout(a0, quest.id);
|
|
}
|
|
}}
|
|
key={quest.id}
|
|
>
|
|
<PremiumRewardGradient visible={r8} glow>
|
|
{items8}
|
|
</PremiumRewardGradient>
|
|
</Card>
|
|
);
|
|
function _fun103075() { // fn#103075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:3014, offset: 0x02257aa3, size: 220 bytes, params: 1, frame: 18
|
|
let value = environment.__proto__;
|
|
const getQuestAsset = AssetUtilsModule.getQuestAsset;
|
|
const questBinding = quest;
|
|
const QuestAssetType = AssetUtilsModule.QuestAssetType;
|
|
const HERO = QuestAssetType.HERO;
|
|
const value3 = Reflect.apply(getQuestAsset, AssetUtilsModule, [questBinding, HERO]);
|
|
const isAnimated = value3.isAnimated;
|
|
const object = {};
|
|
copyDataProperties(object, value3, require);
|
|
value = AssetUtilsModule;
|
|
if (isAnimated) {
|
|
value = value.getScaledFirstFrameImageUrl({assetUrl: value3.url, width: env0_8, height: env0_9});
|
|
object['url'] = value ?? value3.url;
|
|
} else {
|
|
value = value.getScaledImageUrl({assetUrl: value3.url, width: env0_8, height: env0_9});
|
|
object['url'] = value;
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function _fun103076() { // fn#103076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:3446, offset: 0x02257b7f, size: 18 bytes, params: 1, frame: 11
|
|
env0_11(false);
|
|
}
|
|
|
|
function _fun103077() { // fn#103077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:3476, offset: 0x02257b91, size: 199 bytes, params: 1, frame: 19
|
|
var value2;
|
|
var defaultImport;
|
|
var increment;
|
|
var object;
|
|
var items2;
|
|
if (QuestConstantsModule.QuestsExperimentLocations === false) {
|
|
value2 = environment.__proto__;
|
|
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
|
increment = defaultImport.increment;
|
|
object = {};
|
|
object.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_CONTENT_RENDERING_FAILURE;
|
|
items2 = ['quest_id:' + quest.id];
|
|
items2[1] = 'quest_content:' + (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(env0_2);
|
|
items2[2] = 'reason:asset_loading_error';
|
|
object.tags = items2;
|
|
Reflect.apply(increment, defaultImport, [object]);
|
|
}
|
|
}
|
|
|
|
function _fun103080() { // fn#103080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:4893, offset: 0x02257ccb, size: 39 bytes, params: 1, frame: 10
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
value = UserStore.getCurrentUser();
|
|
if (value == null) {
|
|
r0 = undefined;
|
|
} else {
|
|
value = value.hasVerifiedEmailOrPhone();
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun103081() { // fn#103081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:5014, offset: 0x02257cf2, size: 35 bytes, params: 1, frame: 10
|
|
const value = environment.__proto__;
|
|
return UserStore.getCurrentUser()?.verified;
|
|
}
|
|
|
|
function trackClick(a0) { // fn#103082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:5533, offset: 0x02257d15, size: 267 bytes, params: 2, frame: 17
|
|
var object;
|
|
var captureAdUserAction;
|
|
let value = environment.__proto__;
|
|
const shouldMigrateToAdAnalyticsInterface = AdAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
|
const AdAnalyticsInterfaceExperimentStep = AdAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
|
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
|
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, AdAnalyticsInterfaceExperimentModule,
|
|
[STEP_2_CLICKED_INTERNAL, 'quest_card'])) {
|
|
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
|
captureAdUserAction = value.captureAdUserAction;
|
|
object = {};
|
|
object.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
|
object.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
|
object.adCreativeId = quest.id;
|
|
object.questContentCTA = a0;
|
|
object.surfaceId = env0_2;
|
|
object.sourceQuestContent = sourceQuestContent;
|
|
object.impressionId = env0_34;
|
|
Reflect.apply(captureAdUserAction, value, [object]);
|
|
} else {
|
|
env0_6({questId: quest.id, questContent: env0_2, questContentCTA: a0, sourceQuestContent: sourceQuestContent});
|
|
}
|
|
}
|
|
|
|
function _fun103083() { // fn#103083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:5963, offset: 0x02257e20, size: 103 bytes, params: 1, frame: 18
|
|
let value = environment.__proto__;
|
|
value = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
|
|
const openGameLinkDirectly = value.openGameLinkDirectly;
|
|
const questBinding = quest;
|
|
const object = {content: env0_2};
|
|
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
|
|
const OPEN_GAME_LINK = QuestContentCTA.OPEN_GAME_LINK;
|
|
object.ctaContent = OPEN_GAME_LINK;
|
|
object.impressionId = env0_34;
|
|
object.sourceQuestContent = sourceQuestContent;
|
|
Reflect.apply(openGameLinkDirectly, value, [questBinding, object]);
|
|
}
|
|
|
|
function showQuestBottomSheet() { // fn#103084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:6136, offset: 0x02257e87, size: 117 bytes, params: 1, frame: 17
|
|
let value = environment.__proto__;
|
|
const defaultImport = importDefault(dependencyMap[37]);
|
|
const openLazy = defaultImport.openLazy;
|
|
value = require(dependencyMap[39]);
|
|
value = value(dependencyMap[38], dependencyMap.paths);
|
|
Reflect.apply(openLazy, defaultImport, [value, 'QuestBottomSheet', {questId: quest.id,
|
|
questContentPosition: questContentPosition, sourceQuestContent: sourceQuestContent}]);
|
|
}
|
|
|
|
function _fun103085() { // fn#103085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:6336, offset: 0x02257efc, size: 1064 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var r4;
|
|
var r0;
|
|
var r5;
|
|
var object;
|
|
var styles;
|
|
var value2;
|
|
var value3;
|
|
var items3;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
var value5;
|
|
var value8;
|
|
var moduleValue2;
|
|
var value9;
|
|
var moduleValue3;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value;
|
|
let productBinding = product;
|
|
if (productBinding != null) {
|
|
productBinding = product;
|
|
object = {};
|
|
styles = productBinding.styles;
|
|
value2 = undefined;
|
|
r4 = (styles == null ? value2 : styles.buttonColors) ?? [];
|
|
object.buttonColors = r4;
|
|
styles = product.styles;
|
|
r4 = (styles == null ? value2 : styles.confettiColors) ?? [];
|
|
object.confettiColors = r4;
|
|
value3 = environment.__proto__;
|
|
items3 = [(importDefault(5132) /* metro dependency 5132 */)(env0_31)];
|
|
items3[1] = (importDefault(5132) /* metro dependency 5132 */)(env0_30);
|
|
items3[2] = (importDefault(5132) /* metro dependency 5132 */)(env0_32);
|
|
object.backgroundColors = items3;
|
|
productBinding.styles = object;
|
|
}
|
|
if (result_3) {
|
|
value13 = environment.__proto__;
|
|
r0 = {text: intl.string(t.vTgCWx), loading: isFetching, onPress: onPress_103086};
|
|
} else if (result_2) {
|
|
if (env0_22) {
|
|
if (env0_23) {
|
|
value12 = environment.__proto__;
|
|
r4 = isClaimingReward || isFetchingRewardCode;
|
|
r4 = !r4 ? isFetching : r4;
|
|
r0 = {text: intl.string(t.cfY4PE), loading: r4, onPress: onPress_103093};
|
|
} else if (env0_22) {
|
|
value11 = environment.__proto__;
|
|
r5 = isClaimingReward || isFetchingRewardCode;
|
|
r5 = !r5 ? isFetching : r5;
|
|
r0 = {text: intl.formatToPlainString(t['6p8BZx'], {expiryDate: env0_33}), loading: r5, disabled: true,
|
|
variant: 'secondary', onPress: NOOP};
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {};
|
|
value10 = environment.__proto__;
|
|
object.text = (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaText(env0_7);
|
|
object.accessibilityLabel = (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7);
|
|
object.disabled = false;
|
|
object.onPress = onPress_103087;
|
|
r0 = object;
|
|
} else if (result) {
|
|
if (isMobileActivityQuest) {
|
|
object = {text: env0_37};
|
|
value9 = environment.__proto__;
|
|
moduleValue3 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
object.icon = moduleValue3.getPrimaryCtaIcon(quest);
|
|
object.disabled = false;
|
|
object.onPress = onPress_103088;
|
|
r0 = object;
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else if (result) {
|
|
if (isMobileActivityQuest) {
|
|
object = {text: env0_37};
|
|
value9 = environment.__proto__;
|
|
moduleValue3 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
object.icon = moduleValue3.getPrimaryCtaIcon(quest);
|
|
object.disabled = false;
|
|
object.onPress = onPress_103088;
|
|
r0 = object;
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else {
|
|
value12 = environment.__proto__;
|
|
r4 = isClaimingReward || isFetchingRewardCode;
|
|
r4 = !r4 ? isFetching : r4;
|
|
r0 = {text: intl.string(t.cfY4PE), loading: r4, onPress: onPress_103093};
|
|
}
|
|
} else if (env0_22) {
|
|
value11 = environment.__proto__;
|
|
r5 = isClaimingReward || isFetchingRewardCode;
|
|
r5 = !r5 ? isFetching : r5;
|
|
r0 = {text: intl.formatToPlainString(t['6p8BZx'], {expiryDate: env0_33}), loading: r5, disabled: true,
|
|
variant: 'secondary', onPress: NOOP};
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {};
|
|
value10 = environment.__proto__;
|
|
object.text = (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaText(env0_7);
|
|
object.accessibilityLabel = (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7);
|
|
object.disabled = false;
|
|
object.onPress = onPress_103087;
|
|
r0 = object;
|
|
} else if (result) {
|
|
if (isMobileActivityQuest) {
|
|
object = {text: env0_37};
|
|
value9 = environment.__proto__;
|
|
moduleValue3 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
object.icon = moduleValue3.getPrimaryCtaIcon(quest);
|
|
object.disabled = false;
|
|
object.onPress = onPress_103088;
|
|
r0 = object;
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else if (result) {
|
|
if (isMobileActivityQuest) {
|
|
object = {text: env0_37};
|
|
value9 = environment.__proto__;
|
|
moduleValue3 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
object.icon = moduleValue3.getPrimaryCtaIcon(quest);
|
|
object.disabled = false;
|
|
object.onPress = onPress_103088;
|
|
r0 = object;
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
} else if (result) {
|
|
if (env0_17) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else if (isMobileActivityQuest) {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
} else {
|
|
value = environment.__proto__;
|
|
r0 = {'text': null, 'variant': 'secondary', 'disabled': false, text: intl.string(t.JiosAn),
|
|
onPress: onPress_103092};
|
|
}
|
|
} else {
|
|
object = {text: env0_37, disabled: false};
|
|
object.loading = isEnrolling;
|
|
value5 = undefined;
|
|
r4 = env0_17 ? (require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaAccessibilityLabel(env0_7) : value5;
|
|
object.accessibilityLabel = r4;
|
|
if (isMobileActivityQuest) {
|
|
value8 = environment.__proto__;
|
|
moduleValue2 = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
|
r4 = moduleValue2.getPrimaryCtaIcon(quest);
|
|
} else {
|
|
r4 = value5;
|
|
}
|
|
object.icon = r4;
|
|
value = environment.__proto__;
|
|
var env0_0 = env1_3(_fun103090);
|
|
object.onPress = onPress_103091;
|
|
r0 = object;
|
|
}
|
|
return r0;
|
|
function onPress_103086() { // fn#103086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:6656, offset: 0x02258324, size: 121 bytes, params: 1, frame: 14
|
|
const trackClickBinding = trackClick;
|
|
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
|
|
const SHOW_REWARD = QuestContentCTA.SHOW_REWARD;
|
|
trackClickBinding(SHOW_REWARD);
|
|
(QuestUtilsNativeModule).viewReward({product: product, quest: quest,
|
|
questContent: env1_2, questContentPosition: questContentPosition, sourceQuestContent: sourceQuestContent});
|
|
}
|
|
|
|
function onPress_103087() { // fn#103087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:7111, offset: 0x0225839d, size: 139 bytes, params: 1, frame: 14
|
|
env1_5.log('Navigating to video quest bottom sheet');
|
|
const trackClickBinding = trackClick;
|
|
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
|
|
const WATCH_VIDEO = QuestContentCTA.WATCH_VIDEO;
|
|
trackClickBinding(WATCH_VIDEO);
|
|
if (env1_18) {
|
|
(importDefault(13595) /* metro dependency 13595: openVideoQuestModal */)({questId: quest.id,
|
|
sourceQuestContent: sourceQuestContent});
|
|
} else {
|
|
showQuestBottomSheet();
|
|
}
|
|
}
|
|
|
|
function onPress_103088() { // fn#103088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:7358, offset: 0x02258428, size: 59 bytes, params: 1, frame: 13
|
|
const trackClickBinding = trackClick;
|
|
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
|
|
const LAUNCH_MOBILE_ACTIVITY = QuestContentCTA.LAUNCH_MOBILE_ACTIVITY;
|
|
trackClickBinding(LAUNCH_MOBILE_ACTIVITY);
|
|
env1_42();
|
|
}
|
|
|
|
function* _fun103090() { // fn#103090, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:7614, offset: 0x0225846e, size: 295 bytes, params: 1, frame: 21
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_5.log('Enrolling in quest');
|
|
var value4 = env3_0(env3_2[46]);
|
|
var enrollInQuest = value4.enrollInQuest;
|
|
var id = importDefault.id;
|
|
var object = {};
|
|
object.questContent = dependencyMap;
|
|
object.questContentCTA = env2_28 || env2_17 ? env3_0(env3_2[22]).QuestContentCTA.START_QUEST : env3_0(env3_2[22]).QuestContentCTA.ACCEPT_QUEST;
|
|
object.sourceQuestContent = env2_4;
|
|
yield Reflect.apply(enrollInQuest, value4, [id, object]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (env2_17) {
|
|
if (env2_18) {
|
|
env3_1(env3_2[45])({questId: importDefault.id, sourceQuestContent: env2_4});
|
|
} else if (env2_28) {
|
|
env2_42();
|
|
} else {
|
|
env2_36();
|
|
}
|
|
} else if (env2_28) {
|
|
env2_42();
|
|
} else {
|
|
env2_36();
|
|
}
|
|
}
|
|
}
|
|
|
|
function onPress_103091() { // fn#103091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:7912, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
function onPress_103092() { // fn#103092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:8043, offset: 0x02258595, size: 80 bytes, params: 1, frame: 13
|
|
env1_5.log('Navigating to console connection action sheet');
|
|
const trackClickBinding = trackClick;
|
|
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
|
|
const VIEW_REQUIREMENTS = QuestContentCTA.VIEW_REQUIREMENTS;
|
|
trackClickBinding(VIEW_REQUIREMENTS);
|
|
showQuestBottomSheet();
|
|
}
|
|
|
|
function onPress_103093() { // fn#103093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:8256, offset: 0x022585e5, size: 139 bytes, params: 1, frame: 14
|
|
const trackClickBinding = trackClick;
|
|
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
|
|
const CLAIM_REWARD = QuestContentCTA.CLAIM_REWARD;
|
|
trackClickBinding(CLAIM_REWARD);
|
|
(QuestUtilsNativeModule).handleRewardClaimThenView({product: product,
|
|
quest: quest, questContent: env1_2, questContentPosition: questContentPosition,
|
|
currentUserHasVerifiedEmailOrPhone: env1_26, currentUserHasVerifiedEmail: env1_27,
|
|
sourceQuestContent: sourceQuestContent});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun103094() { // fn#103094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:9130, offset: 0x02258670, size: 442 bytes, params: 1, frame: 24
|
|
var environment;
|
|
var r0;
|
|
var object;
|
|
var binding;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var format;
|
|
var property;
|
|
var Fragment;
|
|
var items2;
|
|
let value = environment.__proto__;
|
|
const isFabric2 = (FabricUtilsModule).isFabric();
|
|
let r10 = isFabric2 ? {transform: [{translateY: 3}]} : {'marginTop': 0, 'marginRight': 3};
|
|
if (result_3) {
|
|
if (env0_38) {
|
|
Fragment = env1_5.Fragment;
|
|
const OrbsIcon = (require(10076) /* metro dependency 10076: OrbsIcon */).OrbsIcon;
|
|
items2 = [
|
|
<OrbsIcon
|
|
size="xs"
|
|
color="mobile-text-heading-primary"
|
|
style={r10}
|
|
/>,
|
|
];
|
|
items2[1] = isFabric2 && <View style={{width: 2}} />;
|
|
format = intl.format;
|
|
property = (require(1244) /* metro dependency 1244: indexNative */).t['nLXlh+'];
|
|
value = 0;
|
|
r10 = env0_39 ?? value;
|
|
items2[2] = Reflect.apply(format, intl, [property, {orbAmount: r10}]);
|
|
value = (
|
|
<Fragment key="balance">
|
|
{items2}
|
|
</Fragment>
|
|
);
|
|
r0 = value;
|
|
} else if (result_3) {
|
|
r0 = env0_41;
|
|
} else {
|
|
binding = env0_38;
|
|
format = intl.format;
|
|
property = (require(1244) /* metro dependency 1244: indexNative */).t['0IUT4Y'];
|
|
object = {};
|
|
if (binding) {
|
|
object.rewardWithArticleHook = rewardWithArticleHook;
|
|
r0 = Reflect.apply(format, intl, [property, object]);
|
|
} else {
|
|
object.rewardWithArticleHook = rewardWithArticleHook_103096;
|
|
r0 = Reflect.apply(format, intl, [property, object]);
|
|
}
|
|
}
|
|
} else if (result_3) {
|
|
r0 = env0_41;
|
|
} else {
|
|
binding = env0_38;
|
|
format = intl.format;
|
|
property = (require(1244) /* metro dependency 1244: indexNative */).t['0IUT4Y'];
|
|
object = {};
|
|
if (binding) {
|
|
object.rewardWithArticleHook = rewardWithArticleHook;
|
|
r0 = Reflect.apply(format, intl, [property, object]);
|
|
} else {
|
|
object.rewardWithArticleHook = rewardWithArticleHook_103096;
|
|
r0 = Reflect.apply(format, intl, [property, object]);
|
|
}
|
|
}
|
|
return r0;
|
|
function rewardWithArticleHook() { // fn#103095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:9519, offset: 0x0225882a, size: 236 bytes, params: 1, frame: 22
|
|
const Fragment = env2_5.Fragment;
|
|
const OrbsIcon = (OrbsIconModule).OrbsIcon;
|
|
const items2 = [
|
|
<OrbsIcon
|
|
size="xs"
|
|
color="mobile-text-heading-primary"
|
|
style={env0_1}
|
|
/>,
|
|
];
|
|
items2[1] = env0_0 && <View style={{width: 2}} />;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
items2[2] = intl.format((require(1244) /* metro dependency 1244: indexNative */).t['nLXlh+'],
|
|
{orbAmount: env1_40 ?? 0});
|
|
return (
|
|
<Fragment key="balance">
|
|
{items2}
|
|
</Fragment>
|
|
);
|
|
}
|
|
|
|
function rewardWithArticleHook_103096() { // fn#103096, offset: 0x00e2f9de, size: 9 bytes, params: 1, frame: 1
|
|
return env1_12;
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun103099() { // fn#103099, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:10118, offset: 0x0225897e, size: 72 bytes, params: 1, frame: 12
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_0(env2_2[43]).dismissOverlayScreens();
|
|
value = environment.__proto__;
|
|
yield env1_29();
|
|
}
|
|
}
|
|
|
|
function onPress_103101() { // fn#103101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13757:12580, offset: 0x022589ef, size: 117 bytes, params: 1, frame: 17
|
|
let value = environment.__proto__;
|
|
const defaultImport = importDefault(dependencyMap[37]);
|
|
const openLazy = defaultImport.openLazy;
|
|
value = require(dependencyMap[39]);
|
|
value = value(dependencyMap[66], dependencyMap.paths);
|
|
Reflect.apply(openLazy, defaultImport, [value, 'QuestEnrollmentBlockedBottomSheet', {questId: quest.id,
|
|
questEnrollmentBlockedUntil: questEnrollmentBlockedUntil, sourceQuestContent: sourceQuestContent}]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun103070, 13567, [5, 57, 31, 27, 1878, 7093, 6528, 482, 33, 697, 4501, 3967, 4000, 6531, 7099, 9949,
|
|
9483, 1478, 9495, 13568, 4826, 4831, 7120, 566, 9500, 7116, 7091, 9505, 4048, 8461, 3860, 9513, 9519, 9517,
|
|
9518, 7121, 9520, 4080, 13591, 1962, 9950, 5132, 1244, 9480, 9523, 13595, 9484, 9502, 9503, 9963, 4020, 10076,
|
|
13596, 6239, 13634, 5475, 4589, 676, 4573, 13622, 4572, 6919, 13620, 9542, 13635, 4578, 13638, 8341, 10235,
|
|
13623,
|
|
2]) /* metro module 13567, dependencies: [5, 57, 31, 27, 1878, 7093, 6528, 482, 33, 697, 4501, 3967, 4000, 6531, 7099, 9949, 9483, 1478, 9495, 13568, 4826, 4831, 7120, 566, 9500, 7116, 7091, 9505, 4048, 8461, 3860, 9513, 9519, 9517, 9518, 7121, 9520, 4080, 13591, 1962, 9950, 5132, 1244, 9480, 9523, 13595, 9484, 9502, 9503, 9963, 4020, 10076, 13596, 6239, 13634, 5475, 4589, 676, 4573, 13622, 4572, 6919, 13620, 9542, 13635, 4578, 13638, 8341, 10235, 13623, 2] */;
|