Files
discord-decomp/sources/modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx
T
2026-07-27 16:20:00 +03:00

29 lines
2.1 KiB
TypeScript

/* Metro module 11432; source: modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx; dependencies: [1880, 661, 2] */
function _fun87496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:6, offset: 0x01fc0dab, size: 228 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1880) /* metro dependency 1880: PremiumConstants */).GiftIntentType;
const AnalyticsLocations = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
const Set = global.Set;
const FRIEND_ANNIVERSARIES_CHAT = AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT;
const FRIEND_ANNIVERSARIES_ACTION_BUTTON = AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON;
const FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK = AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK;
const set = new Set([FRIEND_ANNIVERSARIES_CHAT, FRIEND_ANNIVERSARIES_ACTION_BUTTON,
FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx');
exports.getPremiumGiftingIntentAnalyticsLocation = function(a0) {
return a0 === GiftIntentType.FRIEND_ANNIVERSARY ? {chat: AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT,
actionButton: AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON,
actionButtonCoachmark: AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK} : {};
};
exports.isGiftingIntentLocation = isGiftingIntentLocation;
exports.parseGiftIntentType = function(a0) {
return a0 !== GiftIntentType.FRIEND_ANNIVERSARY ? null : GiftIntentType.FRIEND_ANNIVERSARY;
};
}
function isGiftingIntentLocation(a0) { // fn#87498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:680, offset: 0x00d715d9, size: 22 bytes, params: 2, frame: 11
return env0_2.has(a0);
}