decord/source/modules/chat_input/native/GiftIconTrinketsAnimation.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

52 lines
2.4 KiB
TypeScript

// Module ID: 12379
// Function ID: 12380
// Name: GiftIconTrinketsAnimation
// Dependencies: [19, 17, 4628, 21, 4636, 4338, 576, 504, 1925, 1150, 8935, 5668, 2]
// Module 12379 (GiftIconTrinketsAnimation)
import initialize from "initialize" /* 504 */;
import nativeDefault from "native" /* 576 */;
import useToken from "useToken" /* 4338 */;
import noop from "module_19" /* 19 */;
import AccessibilityStore from "AccessibilityStore" /* 4628 */;
const PlatformUtils = APNGPlayer(1150);
const FastImageDefault = tmp(5668);
const APNGPlayer2 = APNGPlayer(8935);
require = fn;
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
let closure_6 = createStyles.createStyles((width) => ({ containerRefresh: { position: "absolute", top: 0, left: 0, width, height: width, overflow: "visible", marginLeft: 0, zIndex: 0 }, trinketsRefresh: { zIndex: 4, position: "absolute", pointerEvents: "none", width: "175%", height: "175%", top: "-37.5%", left: "-37.5%" } }));
const size = fn(2);
const result = size.fileFinishedImporting("modules/chat_input/native/GiftIconTrinketsAnimation.tsx");
export const GiftIconTrinketsAnimation = noop.memo((trinketsAnimationUrl) => {
trinketsAnimationUrl = trinketsAnimationUrl.trinketsAnimationUrl;
let APNGPlayer = require;
let obj = dependencyMap;
const tmp2 = closure_6(useToken.useToken(nativeDefault.modules.mobile.CHAT_INPUT_ACTION_BUTTON_SIZE));
const items = [AccessibilityStore];
const stateFromStores = initialize.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
const trinketsRefresh = tmp2.trinketsRefresh;
if (obj4.isNullOrEmpty(trinketsAnimationUrl)) {
return null;
} else {
const obj5 = { style: tmp2.containerRefresh, pointerEvents: "none", children: null };
if (APNGPlayerResult.isAndroid()) {
APNGPlayer = APNGPlayer2.APNGPlayer;
obj = { url: trinketsAnimationUrl, autoplay: !stateFromStores, style: trinketsRefresh };
let tmp4Result = tmp4(APNGPlayer, obj);
} else {
const obj6 = { source: null, style: null, resizeMode: "contain", enableAnimation: null };
const obj7 = { uri: trinketsAnimationUrl };
obj6.source = obj7;
obj6.style = trinketsRefresh;
obj6.enableAnimation = !stateFromStores;
tmp4Result = tmp4(FastImageDefault, obj6);
}
obj5.children = tmp4Result;
<View style={tmp2.containerRefresh} pointerEvents="none">{null}</View>;
APNGPlayerResult = PlatformUtils;
}
});