decord/source/modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

51 lines
1.9 KiB
TypeScript

// Module ID: 11820
// Function ID: 11821
// Name: GiftIntentType
// Dependencies: [1373, 1074, 2]
// Exports: getGiftIntentTypeForLocation, getPremiumGiftingIntentAnalyticsLocation, parseGiftIntentType
// Module 11820 (GiftIntentType)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import GuildFeatures from "GuildFeatures" /* 1373 */;
const GiftIntentType = GuildFeatures.GiftIntentType;
const AnalyticsLocations = ME.AnalyticsLocations;
const items = [AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT, GiftIntentType.FRIEND_ANNIVERSARY];
const items1 = [items, , ];
const items2 = [AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON, GiftIntentType.FRIEND_ANNIVERSARY];
items1[1] = items2;
const items3 = [AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK, GiftIntentType.FRIEND_ANNIVERSARY];
items1[2] = items3;
const map = new Map(items1);
const result = set.fileFinishedImporting("modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx");
export const getPremiumGiftingIntentAnalyticsLocation = function getPremiumGiftingIntentAnalyticsLocation(arg0) {
if (arg0 === GiftIntentType.FRIEND_ANNIVERSARY) {
let obj = { chat: null, actionButton: null, actionButtonCoachmark: null };
({ FRIEND_ANNIVERSARIES_CHAT: obj2[0], FRIEND_ANNIVERSARIES_ACTION_BUTTON: obj2[1], FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK: obj2[2] } = AnalyticsLocations);
} else {
obj = {};
}
return obj;
};
export const getGiftIntentTypeForLocation = function getGiftIntentTypeForLocation(arg0) {
let value = map.get(arg0);
if (value == null) {
value = null;
}
return value;
};
export const parseGiftIntentType = function parseGiftIntentType(giftIntentType) {
let tmp = null;
if (typeof giftIntentType === "number") {
tmp = null;
if (giftIntentType in GiftIntentType) {
tmp = null;
if (giftIntentType !== GiftIntentType.UNSPECIFIED) {
tmp = giftIntentType;
}
}
}
return tmp;
};