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

100 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 10523
// Function ID: 10524
2026-07-20 16:05:17 +00:00
// Name: LottieType
2026-08-27 16:17:25 +00:00
// Dependencies: [1924, 7923, 10524, 10525, 10526, 10527, 10528, 10529, 10530, 10531, 10532, 10533, 10534, 10535, 10536, 10537, 10538, 10539, 10540, 10541, 10542, 10543, 10544, 10545, 10546, 10547, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGiftAnimationData, getLottieType
2026-08-27 16:17:25 +00:00
// Module 10523 (LottieType)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import GuildFeatures from "GuildFeatures" /* 1924 */;
2026-08-27 16:17:25 +00:00
import _sendGiftMessage from "_sendGiftMessage" /* 7923 */;
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-08-27 16:17:25 +00:00
return tmp17(10524);
} else if (tmp17(7923).AnimationState.LOOP === ACTION) {
return tmp17(10525);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp17(10526);
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-08-27 16:17:25 +00:00
return tmp15(10527);
} else if (tmp15(7923).AnimationState.LOOP === ACTION) {
return tmp15(10528);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp15(10529);
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-08-27 16:17:25 +00:00
return tmp13(10530);
} else if (tmp13(7923).AnimationState.LOOP === ACTION) {
return tmp13(10531);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp13(10532);
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-08-27 16:17:25 +00:00
return tmp11(10533);
} else if (tmp11(7923).AnimationState.LOOP === ACTION) {
return tmp11(10534);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp11(10535);
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-08-27 16:17:25 +00:00
return tmp9(10536);
} else if (tmp9(7923).AnimationState.LOOP === ACTION) {
return tmp9(10537);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp9(10538);
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-08-27 16:17:25 +00:00
return tmp7(10539);
} else if (tmp7(7923).AnimationState.LOOP === ACTION) {
return tmp7(10540);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp7(10541);
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-08-27 16:17:25 +00:00
return tmp5(10542);
} else if (tmp5(7923).AnimationState.LOOP === ACTION) {
return tmp5(10543);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp5(10544);
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-08-27 16:17:25 +00:00
return tmp3(10545);
} else if (tmp3(7923).AnimationState.LOOP === ACTION) {
return tmp3(10546);
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
return tmp3(10547);
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();
}
};