Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
56 lines
2.1 KiB
TypeScript
56 lines
2.1 KiB
TypeScript
// Module ID: 10882
|
|
// Function ID: 10883
|
|
// Name: badgeDetailsCtas
|
|
// Dependencies: [1074, 1076, 7811, 1115, 4548, 6987, 7149, 6789, 10883, 5947, 10887, 10317, 2]
|
|
// Exports: getBadgeDetailsCta
|
|
|
|
// Module 10882 (badgeDetailsCtas)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import CollectiblesShopConstants from "CollectiblesShopConstants" /* 1076 */;
|
|
import util from "util" /* 1115 */;
|
|
import openURLDefault from "openURL" /* 4548 */;
|
|
import QuestContent from "QuestContent" /* 5947 */;
|
|
import AnalyticsLocationDefault from "AnalyticsLocation" /* 6789 */;
|
|
import openUserSettings from "openUserSettings" /* 6987 */;
|
|
import CollectiblesActionCreators from "CollectiblesActionCreators" /* 7149 */;
|
|
import BadgeId from "BadgeId" /* 7811 */;
|
|
import utils_openGiftModal from "utils/openGiftModal" /* 10317 */;
|
|
import QuestUtils from "QuestUtils" /* 10883 */;
|
|
import QuestsEligibility from "QuestsEligibility" /* 10887 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const UserSettingsSections = Constants.UserSettingsSections;
|
|
const constants = CollectiblesShopConstants.CollectiblesMobileShopScreen;
|
|
let obj = { [BadgeId.BadgeId.STAFF]: obj2, [BadgeId.BadgeId.PREMIUM_TENURE]: obj3, [BadgeId.BadgeId.GUILD_BOOSTER]: obj4, [BadgeId.BadgeId.ORB_PROFILE]: obj5 };
|
|
obj[BadgeId.BadgeId.QUEST_COMPLETED] = {
|
|
ctaLabel() {
|
|
const intl = util.intl;
|
|
return intl.string(util.t.swICIT);
|
|
},
|
|
ctaAction() {
|
|
obj = QuestUtils;
|
|
return obj.openQuestHome({ fromContent: QuestContent.QuestContent.QUEST_BADGE });
|
|
},
|
|
isAvailable: QuestsEligibility.getIsEligibleForQuests
|
|
};
|
|
obj[BadgeId.BadgeId.GIFTING] = {
|
|
ctaLabel() {
|
|
const intl = util.intl;
|
|
return intl.string(util.t["nUA/JW"]);
|
|
},
|
|
ctaAction() {
|
|
const obj2 = { analyticsLocations: null };
|
|
const items = [AnalyticsLocationDefault.BADGE];
|
|
obj2.analyticsLocations = items;
|
|
return utils_openGiftModal.openGiftModal(obj2);
|
|
}
|
|
};
|
|
const result = size.fileFinishedImporting("modules/badges/native/badgeDetailsCtas.tsx");
|
|
|
|
export const getBadgeDetailsCta = function getBadgeDetailsCta(badge_id) {
|
|
let isAvailable;
|
|
if (obj[badge_id] != null) {
|
|
isAvailable = obj.isAvailable;
|
|
}
|
|
return obj[badge_id];
|
|
};
|