decord/source/modules/premium/native/utils/GiftAnimationData.tsx
2026-08-08 06:10:11 +00:00

96 lines
3.2 KiB
TypeScript

// Module ID: 9586
// Function ID: 9587
// Name: LottieType
// Dependencies: [1905, 8182, 9587, 9588, 9589, 9590, 9591, 9592, 9593, 9594, 9595, 9596, 9597, 9598, 9599, 9600, 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608, 9609, 9610, 2]
// Exports: getGiftAnimationData, getLottieType
// Module 9586 (LottieType)
import { PremiumGiftStyles } from "GuildFeatures";
const obj = { JSON: 0, [0]: "JSON", LOTTIE: 1, [1]: "LOTTIE" };
const result = require("module_9587").fileFinishedImporting("modules/premium/native/utils/GiftAnimationData.tsx");
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) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp17(9587);
} else if (tmp17(8182).AnimationState.LOOP === ACTION) {
return tmp17(9588);
} else {
return tmp17(9589);
}
} else if (tmp.CAKE === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp15(9590);
} else if (tmp15(8182).AnimationState.LOOP === ACTION) {
return tmp15(9591);
} else {
return tmp15(9592);
}
} else if (tmp.CHEST === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp13(9593);
} else if (tmp13(8182).AnimationState.LOOP === ACTION) {
return tmp13(9594);
} else {
return tmp13(9595);
}
} else if (tmp.COFFEE === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp11(9596);
} else if (tmp11(8182).AnimationState.LOOP === ACTION) {
return tmp11(9597);
} else {
return tmp11(9598);
}
} else if (tmp.SEASONAL_STANDARD_BOX === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp9(9599);
} else if (tmp9(8182).AnimationState.LOOP === ACTION) {
return tmp9(9600);
} else {
return tmp9(9601);
}
} else if (tmp.SEASONAL_CAKE === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp7(9602);
} else if (tmp7(8182).AnimationState.LOOP === ACTION) {
return tmp7(9603);
} else {
return tmp7(9604);
}
} else if (tmp.SEASONAL_CHEST === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp5(9605);
} else if (tmp5(8182).AnimationState.LOOP === ACTION) {
return tmp5(9606);
} else {
return tmp5(9607);
}
} else if (tmp.SEASONAL_COFFEE === giftStyle) {
if (require(8182) /* _sendGiftMessage */.AnimationState.IDLE === ACTION) {
return tmp3(9608);
} else if (tmp3(8182).AnimationState.LOOP === ACTION) {
return tmp3(9609);
} else {
return tmp3(9610);
}
} else {
if (tmp.SNOWGLOBE !== giftStyle) {
if (tmp.BOX !== giftStyle) {
const CUP = tmp.CUP;
}
}
const _Error = Error;
throw Error();
}
};