decord/source/modules/premium/native/utils/GiftAnimationData.tsx

100 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 10824
// Function ID: 10825
2026-07-20 16:05:17 +00:00
// Name: LottieType
2026-09-02 09:53:35 +00:00
// Dependencies: [1923, 8000, 10825, 10826, 10827, 10828, 10829, 10830, 10831, 10832, 10833, 10834, 10835, 10836, 10837, 10838, 10839, 10840, 10841, 10842, 10843, 10844, 10845, 10846, 10847, 10848, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGiftAnimationData, getLottieType
2026-09-02 09:53:35 +00:00
// Module 10824 (LottieType)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import GuildFeatures from "GuildFeatures" /* 1923 */;
import _sendGiftMessage from "_sendGiftMessage" /* 8000 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const PremiumGiftStyles = GuildFeatures.PremiumGiftStyles;
2026-07-20 16:05:17 +00:00
const obj = { JSON: 0, [0]: "JSON", LOTTIE: 1, [1]: "LOTTIE" };
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/premium/native/utils/GiftAnimationData.tsx");
2026-07-20 16:05:17 +00:00
export const LottieType = obj;
export const getLottieType = function getLottieType(giftStyle) {
if (giftStyle === PremiumGiftStyles.NITROWEEN_STANDARD) {
let _JSON = obj.LOTTIE;
} else {
_JSON = obj.JSON;
}
return _JSON;
};
export const getGiftAnimationData = function getGiftAnimationData(giftStyle, ACTION) {
if (PremiumGiftStyles.STANDARD_BOX === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp17(10825);
} else if (tmp17(8000).AnimationState.LOOP === ACTION) {
return tmp17(10826);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp17(10827);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CAKE === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp15(10828);
} else if (tmp15(8000).AnimationState.LOOP === ACTION) {
return tmp15(10829);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp15(10830);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CHEST === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp13(10831);
} else if (tmp13(8000).AnimationState.LOOP === ACTION) {
return tmp13(10832);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp13(10833);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.COFFEE === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp11(10834);
} else if (tmp11(8000).AnimationState.LOOP === ACTION) {
return tmp11(10835);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp11(10836);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_STANDARD_BOX === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp9(10837);
} else if (tmp9(8000).AnimationState.LOOP === ACTION) {
return tmp9(10838);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp9(10839);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CAKE === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp7(10840);
} else if (tmp7(8000).AnimationState.LOOP === ACTION) {
return tmp7(10841);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp7(10842);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CHEST === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp5(10843);
} else if (tmp5(8000).AnimationState.LOOP === ACTION) {
return tmp5(10844);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp5(10845);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_COFFEE === giftStyle) {
2026-08-24 06:08:38 +00:00
if (_sendGiftMessage.AnimationState.IDLE === ACTION) {
2026-09-02 09:53:35 +00:00
return tmp3(10846);
} else if (tmp3(8000).AnimationState.LOOP === ACTION) {
return tmp3(10847);
2026-07-20 16:05:17 +00:00
} else {
2026-09-02 09:53:35 +00:00
return tmp3(10848);
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-29 08:29:29 +00:00
if (tmp.SNOWGLOBE !== giftStyle) {
if (tmp.BOX !== giftStyle) {
const CUP = tmp.CUP;
2026-07-20 16:05:17 +00:00
}
}
const _Error = Error;
throw Error();
}
};