decord/source/modules/premium/native/gifting/PremiumFeaturesPromotionalLogo.tsx

76 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 9933
// Function ID: 9934
2026-07-20 16:05:17 +00:00
// Name: PremiumFeaturesPromotionalLogo
2026-08-05 07:35:12 +00:00
// Dependencies: [32, 19, 4247, 21, 589, 9275, 500, 7308, 5221, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 9933 (PremiumFeaturesPromotionalLogo)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import noop from "noop";
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("maybeApplyNoTextColorForLightCustomTheme").fileFinishedImporting("modules/premium/native/gifting/PremiumFeaturesPromotionalLogo.tsx");
2026-07-20 16:05:17 +00:00
export default function PremiumFeaturesPromotionalLogo(arg0) {
let promoRotatingStyle;
let rotatingAvatarImageUrl;
let shouldAnimate;
({ rotatingAvatarImageUrl, promoRotatingStyle, shouldAnimate } = arg0);
if (shouldAnimate === undefined) {
shouldAnimate = true;
}
2026-07-23 10:11:24 +00:00
let stateFromStores;
let aPNGPlayerControls;
let first;
2026-07-20 16:05:17 +00:00
let React;
2026-07-23 10:11:24 +00:00
let obj = shouldAnimate(aPNGPlayerControls[4]);
2026-07-29 08:29:29 +00:00
const items = [maybeApplyNoTextColorForLightCustomTheme];
stateFromStores = obj.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
2026-07-20 16:05:17 +00:00
let num = null;
const ref = React.useRef(null);
2026-07-23 10:11:24 +00:00
aPNGPlayerControls = shouldAnimate(aPNGPlayerControls[5]).useAPNGPlayerControls(ref);
2026-07-29 08:29:29 +00:00
const tmp6 = first(React.useState(false), 2);
first = tmp6[0];
React = tmp6[1];
2026-07-20 16:05:17 +00:00
const items1 = [shouldAnimate, aPNGPlayerControls, stateFromStores];
const effect = React.useEffect(() => {
let isAndroidResult = shouldAnimate(aPNGPlayerControls[6]).isAndroid();
if (isAndroidResult) {
isAndroidResult = !stateFromStores;
}
if (isAndroidResult) {
if (shouldAnimate) {
aPNGPlayerControls.seek(0);
callback(true);
} else {
callback(false);
aPNGPlayerControls.stop();
}
}
}, items1);
2026-07-23 10:11:24 +00:00
const obj2 = shouldAnimate(aPNGPlayerControls[5]);
2026-07-29 08:29:29 +00:00
const tmp9 = stateFromStores;
2026-07-20 16:05:17 +00:00
if (first) {
num = 100;
}
2026-07-23 10:11:24 +00:00
stateFromStores(aPNGPlayerControls[7])(() => {
2026-07-20 16:05:17 +00:00
if (first) {
aPNGPlayerControls.play();
}
}, num);
2026-07-29 08:29:29 +00:00
const tmp10 = stateFromStores(aPNGPlayerControls[7]);
if (tmpResult.isAndroid()) {
2026-07-20 16:05:17 +00:00
if (!stateFromStores) {
2026-07-29 08:29:29 +00:00
obj = { ref: null, url: null, autoplay: false, style: null };
obj[0] = ref;
obj[1] = rotatingAvatarImageUrl;
obj[3] = promoRotatingStyle;
let tmp13 = jsx(tmp(tmp2[5]).APNGPlayer, { ref: null, url: null, autoplay: false, style: null });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp13;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp13 = jsx(tmp9(tmp2[8]), { style: promoRotatingStyle, resizeMode: "contain", source: { uri: rotatingAvatarImageUrl } });
2026-07-20 16:05:17 +00:00
};