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

97 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 8788
// Function ID: 8789
2026-07-20 16:05:17 +00:00
// Name: LottieType
2026-07-31 08:44:05 +00:00
// Dependencies: [1876, 7862, 8789, 8790, 8791, 8792, 8793, 8794, 8795, 8796, 8797, 8798, 8799, 8800, 8801, 8802, 8803, 8804, 8805, 8806, 8807, 8808, 8809, 8810, 8811, 8812, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGiftAnimationData, getLottieType
2026-07-31 08:44:05 +00:00
// Module 8788 (LottieType)
2026-07-23 10:11:24 +00:00
import { PremiumGiftStyles } from "GuildFeatures";
2026-07-20 16:05:17 +00:00
const obj = { JSON: 0, [0]: "JSON", LOTTIE: 1, [1]: "LOTTIE" };
2026-07-31 08:44:05 +00:00
const result = require("module_8789").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-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp17(8789);
} else if (tmp17(7862).AnimationState.LOOP === ACTION) {
return tmp17(8790);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp17(8791);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CAKE === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp15(8792);
} else if (tmp15(7862).AnimationState.LOOP === ACTION) {
return tmp15(8793);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp15(8794);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CHEST === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp13(8795);
} else if (tmp13(7862).AnimationState.LOOP === ACTION) {
return tmp13(8796);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp13(8797);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.COFFEE === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp11(8798);
} else if (tmp11(7862).AnimationState.LOOP === ACTION) {
return tmp11(8799);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp11(8800);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_STANDARD_BOX === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp9(8801);
} else if (tmp9(7862).AnimationState.LOOP === ACTION) {
return tmp9(8802);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp9(8803);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CAKE === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp7(8804);
} else if (tmp7(7862).AnimationState.LOOP === ACTION) {
return tmp7(8805);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp7(8806);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CHEST === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp5(8807);
} else if (tmp5(7862).AnimationState.LOOP === ACTION) {
return tmp5(8808);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp5(8809);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_COFFEE === giftStyle) {
2026-07-31 08:44:05 +00:00
if (require(7862) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp3(8810);
} else if (tmp3(7862).AnimationState.LOOP === ACTION) {
return tmp3(8811);
2026-07-20 16:05:17 +00:00
} else {
2026-07-31 08:44:05 +00:00
return tmp3(8812);
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();
}
};