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

73 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10347
// Function ID: 10348
2026-07-20 16:05:17 +00:00
// Name: PremiumFeaturesPromotionalLogo
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 4669, 21, 589, 9254, 500, 7737, 5454, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 10347 (PremiumFeaturesPromotionalLogo)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import closure_5 from "maybeApplyNoTextColorForLightCustomTheme" /* 4669 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/premium/native/gifting/PremiumFeaturesPromotionalLogo.tsx");
2026-07-20 16:05:17 +00:00
export default function PremiumFeaturesPromotionalLogo(arg0) {
({ 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-08-24 06:08:38 +00:00
const items = [closure_5];
2026-07-29 08:29:29 +00:00
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
};