115 lines
5.0 KiB
TypeScript
115 lines
5.0 KiB
TypeScript
/* Metro module 7644; source: modules/premium/native/utils/GiftAnimationData.tsx; dependencies: [1880, 7643, 7645, 7646, 7647, 7648, 7649, 7650, 7651, 7652, 7653, 7654, 7655, 7656, 7657, 7658, 7659, 7660, 7661, 7662, 7663, 7664, 7665, 7666, 7667, 7668, 2] */
|
|
function _fun61202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7822:6, offset: 0x0171ddf5, size: 169 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumGiftStyles;
|
|
object2 = {JSON: 0};
|
|
object2[0] = 'JSON';
|
|
object2.LOTTIE = 1;
|
|
object2[1] = 'LOTTIE';
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/utils/GiftAnimationData.tsx');
|
|
exports.LottieType = object2;
|
|
exports.getLottieType = getLottieType;
|
|
exports.getGiftAnimationData = getGiftAnimationData;
|
|
}
|
|
|
|
function getLottieType(a0) { // fn#61203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7822:310, offset: 0x0171de9e, size: 44 bytes, params: 2, frame: 3
|
|
const NITROWEEN_STANDARD = PremiumGiftStyles.NITROWEEN_STANDARD;
|
|
return a0 === NITROWEEN_STANDARD ? env0_3.LOTTIE : env0_3.JSON;
|
|
}
|
|
|
|
function getGiftAnimationData(a0, a1) { // fn#61204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7822:408, offset: 0x0171deca, size: 1292 bytes, params: 3, frame: 14
|
|
const AnimationState = (require(7643) /* metro dependency 7643: PremiumGiftingUtils */).AnimationState;
|
|
const STANDARD_BOX = PremiumGiftStyles.STANDARD_BOX;
|
|
if (STANDARD_BOX === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7645) /* metro dependency 7645 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7646) /* metro dependency 7646 */;
|
|
}
|
|
return require(7647) /* metro dependency 7647 */;
|
|
}
|
|
const CAKE = PremiumGiftStyles.CAKE;
|
|
if (CAKE === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7648) /* metro dependency 7648 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7649) /* metro dependency 7649 */;
|
|
}
|
|
return require(7650) /* metro dependency 7650 */;
|
|
}
|
|
const CHEST = PremiumGiftStyles.CHEST;
|
|
if (CHEST === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7651) /* metro dependency 7651 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7652) /* metro dependency 7652 */;
|
|
}
|
|
return require(7653) /* metro dependency 7653 */;
|
|
}
|
|
const COFFEE = PremiumGiftStyles.COFFEE;
|
|
if (COFFEE === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7654) /* metro dependency 7654 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7655) /* metro dependency 7655 */;
|
|
}
|
|
return require(7656) /* metro dependency 7656 */;
|
|
}
|
|
const SEASONAL_STANDARD_BOX = PremiumGiftStyles.SEASONAL_STANDARD_BOX;
|
|
if (SEASONAL_STANDARD_BOX === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7657) /* metro dependency 7657 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7658) /* metro dependency 7658 */;
|
|
}
|
|
return require(7659) /* metro dependency 7659 */;
|
|
}
|
|
const SEASONAL_CAKE = PremiumGiftStyles.SEASONAL_CAKE;
|
|
if (SEASONAL_CAKE === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7660) /* metro dependency 7660 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7661) /* metro dependency 7661 */;
|
|
}
|
|
return require(7662) /* metro dependency 7662 */;
|
|
}
|
|
const SEASONAL_CHEST = PremiumGiftStyles.SEASONAL_CHEST;
|
|
if (SEASONAL_CHEST === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7663) /* metro dependency 7663 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7664) /* metro dependency 7664 */;
|
|
}
|
|
return require(7665) /* metro dependency 7665 */;
|
|
}
|
|
const SEASONAL_COFFEE = PremiumGiftStyles.SEASONAL_COFFEE;
|
|
if (SEASONAL_COFFEE === a0) {
|
|
if (AnimationState.IDLE === a1) {
|
|
return require(7666) /* metro dependency 7666 */;
|
|
}
|
|
if (AnimationState.LOOP === a1) {
|
|
return require(7667) /* metro dependency 7667 */;
|
|
}
|
|
return require(7668) /* metro dependency 7668 */;
|
|
}
|
|
const SNOWGLOBE = PremiumGiftStyles.SNOWGLOBE;
|
|
if (SNOWGLOBE !== a0) {
|
|
if (PremiumGiftStyles.BOX !== a0) {
|
|
PremiumGiftStyles.CUP;
|
|
}
|
|
}
|
|
const Error = global.Error;
|
|
throw Error();
|
|
}
|
|
|