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

97 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 9504
// Function ID: 9505
2026-07-20 16:05:17 +00:00
// Name: LottieType
2026-08-06 08:05:19 +00:00
// Dependencies: [1905, 8105, 9505, 9506, 9507, 9508, 9509, 9510, 9511, 9512, 9513, 9514, 9515, 9516, 9517, 9518, 9519, 9520, 9521, 9522, 9523, 9524, 9525, 9526, 9527, 9528, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGiftAnimationData, getLottieType
2026-08-06 08:05:19 +00:00
// Module 9504 (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-08-06 08:05:19 +00:00
const result = require("module_9505").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-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp17(9505);
} else if (tmp17(8105).AnimationState.LOOP === ACTION) {
return tmp17(9506);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp17(9507);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CAKE === giftStyle) {
2026-08-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp15(9508);
} else if (tmp15(8105).AnimationState.LOOP === ACTION) {
return tmp15(9509);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp15(9510);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CHEST === giftStyle) {
2026-08-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp13(9511);
} else if (tmp13(8105).AnimationState.LOOP === ACTION) {
return tmp13(9512);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp13(9513);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.COFFEE === giftStyle) {
2026-08-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp11(9514);
} else if (tmp11(8105).AnimationState.LOOP === ACTION) {
return tmp11(9515);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp11(9516);
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-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp9(9517);
} else if (tmp9(8105).AnimationState.LOOP === ACTION) {
return tmp9(9518);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp9(9519);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CAKE === giftStyle) {
2026-08-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp7(9520);
} else if (tmp7(8105).AnimationState.LOOP === ACTION) {
return tmp7(9521);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp7(9522);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CHEST === giftStyle) {
2026-08-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp5(9523);
} else if (tmp5(8105).AnimationState.LOOP === ACTION) {
return tmp5(9524);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp5(9525);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_COFFEE === giftStyle) {
2026-08-06 08:05:19 +00:00
if (require(8105) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp3(9526);
} else if (tmp3(8105).AnimationState.LOOP === ACTION) {
return tmp3(9527);
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
return tmp3(9528);
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();
}
};