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

97 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 9600
// Function ID: 9601
2026-07-20 16:05:17 +00:00
// Name: LottieType
2026-08-15 05:55:55 +00:00
// Dependencies: [1924, 8294, 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608, 9609, 9610, 9611, 9612, 9613, 9614, 9615, 9616, 9617, 9618, 9619, 9620, 9621, 9622, 9623, 9624, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGiftAnimationData, getLottieType
2026-08-15 05:55:55 +00:00
// Module 9600 (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-15 05:55:55 +00:00
const result = require("module_9601").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-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp17(9601);
} else if (tmp17(8294).AnimationState.LOOP === ACTION) {
return tmp17(9602);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp17(9603);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CAKE === giftStyle) {
2026-08-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp15(9604);
} else if (tmp15(8294).AnimationState.LOOP === ACTION) {
return tmp15(9605);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp15(9606);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.CHEST === giftStyle) {
2026-08-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp13(9607);
} else if (tmp13(8294).AnimationState.LOOP === ACTION) {
return tmp13(9608);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp13(9609);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.COFFEE === giftStyle) {
2026-08-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp11(9610);
} else if (tmp11(8294).AnimationState.LOOP === ACTION) {
return tmp11(9611);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp11(9612);
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-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp9(9613);
} else if (tmp9(8294).AnimationState.LOOP === ACTION) {
return tmp9(9614);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp9(9615);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CAKE === giftStyle) {
2026-08-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp7(9616);
} else if (tmp7(8294).AnimationState.LOOP === ACTION) {
return tmp7(9617);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp7(9618);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_CHEST === giftStyle) {
2026-08-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp5(9619);
} else if (tmp5(8294).AnimationState.LOOP === ACTION) {
return tmp5(9620);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp5(9621);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
} else if (tmp.SEASONAL_COFFEE === giftStyle) {
2026-08-15 05:55:55 +00:00
if (require(8294) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp3(9622);
} else if (tmp3(8294).AnimationState.LOOP === ACTION) {
return tmp3(9623);
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
return tmp3(9624);
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();
}
};