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

97 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 8779
// Function ID: 8780
2026-07-20 16:05:17 +00:00
// Name: LottieType
2026-07-29 08:29:29 +00:00
// Dependencies: [1876, 7857, 8780, 8781, 8782, 8783, 8784, 8785, 8786, 8787, 8788, 8789, 8790, 8791, 8792, 8793, 8794, 8795, 8796, 8797, 8798, 8799, 8800, 8801, 8802, 8803, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGiftAnimationData, getLottieType
2026-07-29 08:29:29 +00:00
// Module 8779 (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-29 08:29:29 +00:00
const result = require("module_8780").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-29 08:29:29 +00:00
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp17(8780);
} else if (tmp17(7857).AnimationState.LOOP === ACTION) {
return tmp17(8781);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp17(8782);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CAKE === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp15(8783);
} else if (tmp15(7857).AnimationState.LOOP === ACTION) {
return tmp15(8784);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp15(8785);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CHEST === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp13(8786);
} else if (tmp13(7857).AnimationState.LOOP === ACTION) {
return tmp13(8787);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp13(8788);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.COFFEE === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp11(8789);
} else if (tmp11(7857).AnimationState.LOOP === ACTION) {
return tmp11(8790);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp11(8791);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_STANDARD_BOX === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp9(8792);
} else if (tmp9(7857).AnimationState.LOOP === ACTION) {
return tmp9(8793);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp9(8794);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CAKE === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp7(8795);
} else if (tmp7(7857).AnimationState.LOOP === ACTION) {
return tmp7(8796);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp7(8797);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CHEST === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp5(8798);
} else if (tmp5(7857).AnimationState.LOOP === ACTION) {
return tmp5(8799);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp5(8800);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_COFFEE === giftStyle) {
if (require(7857) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp3(8801);
} else if (tmp3(7857).AnimationState.LOOP === ACTION) {
return tmp3(8802);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
return tmp3(8803);
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();
}
};